Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/e2fsprogs: ChangeLog e2fsprogs-1.41.6-r1.ebuild
Date: Sun, 28 Jun 2009 17:56:02
Message-Id: E1MKybf-00081y-59@stork.gentoo.org
1 robbat2 09/06/28 17:55:59
2
3 Modified: ChangeLog
4 Added: e2fsprogs-1.41.6-r1.ebuild
5 Log:
6 The 1.41.6 release removed the blkid and findfs binaries as well, which are still needed.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.189 sys-fs/e2fsprogs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/ChangeLog?rev=1.189&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/ChangeLog?rev=1.189&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/ChangeLog?r1=1.188&r2=1.189
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/ChangeLog,v
19 retrieving revision 1.188
20 retrieving revision 1.189
21 diff -p -w -b -B -u -u -r1.188 -r1.189
22 --- ChangeLog 20 Jun 2009 11:59:03 -0000 1.188
23 +++ ChangeLog 28 Jun 2009 17:55:59 -0000 1.189
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sys-fs/e2fsprogs
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/ChangeLog,v 1.188 2009/06/20 11:59:03 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/ChangeLog,v 1.189 2009/06/28 17:55:59 robbat2 Exp $
29 +
30 +*e2fsprogs-1.41.6-r1 (28 Jun 2009)
31 +
32 + 28 Jun 2009; Robin H. Johnson <robbat2@g.o>
33 + +e2fsprogs-1.41.6-r1.ebuild:
34 + The 1.41.6 release removed the blkid and findfs binaries as well, which
35 + are still needed.
36
37 20 Jun 2009; Mike Frysinger <vapier@g.o>
38 e2fsprogs-1.41.3-r1.ebuild, e2fsprogs-1.41.6.ebuild:
39
40
41
42 1.1 sys-fs/e2fsprogs/e2fsprogs-1.41.6-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/e2fsprogs-1.41.6-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/e2fsprogs-1.41.6-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: e2fsprogs-1.41.6-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/e2fsprogs-1.41.6-r1.ebuild,v 1.1 2009/06/28 17:55:59 robbat2 Exp $
52
53 inherit eutils flag-o-matic toolchain-funcs multilib
54
55 DESCRIPTION="Standard EXT2/EXT3/EXT4 filesystem utilities"
56 HOMEPAGE="http://e2fsprogs.sourceforge.net/"
57 SRC_URI="mirror://sourceforge/e2fsprogs/${P}.tar.gz"
58
59 LICENSE="GPL-2 BSD"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
62 IUSE="nls elibc_FreeBSD"
63
64 RDEPEND="~sys-libs/${PN}-libs-${PV}
65 nls? ( virtual/libintl )"
66 DEPEND="${RDEPEND}
67 nls? ( sys-devel/gettext )
68 dev-util/pkgconfig
69 sys-apps/texinfo"
70
71 pkg_setup() {
72 if [[ ! -e ${ROOT}/etc/mtab ]] ; then
73 # add some crap to deal with missing /etc/mtab #217719
74 ewarn "No /etc/mtab file, creating one temporarily"
75 echo "${PN} crap for src_test" > "${ROOT}"/etc/mtab
76 fi
77 }
78
79 src_unpack() {
80 unpack ${A}
81 cd "${S}"
82 epatch "${FILESDIR}"/${PN}-1.38-tests-locale.patch #99766
83 epatch "${FILESDIR}"/${PN}-1.41.5-makefile.patch
84 epatch "${FILESDIR}"/${PN}-1.40-fbsd.patch
85 # blargh ... trick e2fsprogs into using e2fsprogs-libs
86 rm -rf doc
87 sed -i -r \
88 -e 's:@LIBINTL@:@LTLIBINTL@:' \
89 -e '/^LIB(COM_ERR|SS|UUID)/s:[$][(]LIB[)]/lib([^@]*)@LIB_EXT@:-l\1:' \
90 -e '/^DEPLIB(COM_ERR|SS|UUID)/s:=.*:=:' \
91 MCONFIG.in || die "muck libs" #122368
92 sed -i -r \
93 -e '/^LIB_SUBDIRS/s:lib/(et|ss|uuid)::g' \
94 Makefile.in || die "remove subdirs"
95 # stupid configure script clobbers CC for us
96 sed -i \
97 -e '/if test -z "$CC" ; then CC=cc; fi/d' \
98 configure || die "touching configure"
99
100 # we want to build the blkid/findfs binaries, but not the libs
101 sed -i \
102 -e '/BLKID_CMT=/s:BLKID_CMT:LIBBLKID_CMT:g' \
103 configure || die "touching configure for blkid"
104 sed -i \
105 -e '/BLKID_LIB_SUBDIR/s:@BLKID_CMT@:@LIBBLKID_CMT@:g' \
106 Makefile.in || die "remove blkid subdir better"
107
108 # Avoid rebuild
109 touch lib/ss/ss_err.h
110 }
111
112 src_compile() {
113 # Keep the package from doing silly things
114 addwrite /var/cache/fonts
115
116 # We want to use the "bsd" libraries while building on Darwin, but while
117 # building on other Gentoo/*BSD we prefer elf-naming scheme.
118 local libtype
119 case ${CHOST} in
120 *-darwin*) libtype=bsd;;
121 *) libtype=elf;;
122 esac
123
124 ac_cv_path_LDCONFIG=: \
125 econf \
126 --bindir=/bin \
127 --sbindir=/sbin \
128 --enable-${libtype}-shlibs \
129 --with-ldopts="${LDFLAGS}" \
130 $(use_enable !elibc_uclibc tls) \
131 --without-included-gettext \
132 $(use_enable nls) \
133 $(use_enable userland_GNU fsck) \
134 --disable-libblkid \
135 || die
136 if [[ ${CHOST} != *-uclibc ]] && grep -qs 'USE_INCLUDED_LIBINTL.*yes' config.{log,status} ; then
137 eerror "INTL sanity check failed, aborting build."
138 eerror "Please post your ${S}/config.log file as an"
139 eerror "attachment to http://bugs.gentoo.org/show_bug.cgi?id=81096"
140 die "Preventing included intl cruft from building"
141 fi
142 emake COMPILE_ET=compile_et MK_CMDS=mk_cmds || die
143
144 # Build the FreeBSD helper
145 if use elibc_FreeBSD ; then
146 cp "${FILESDIR}"/fsck_ext2fs.c .
147 emake fsck_ext2fs || die
148 fi
149 }
150
151 pkg_preinst() {
152 if [[ -r ${ROOT}/etc/mtab ]] ; then
153 if [[ $(<"${ROOT}"/etc/mtab) == "${PN} crap for src_test" ]] ; then
154 rm -f "${ROOT}"/etc/mtab
155 fi
156 fi
157 }
158
159 src_install() {
160 emake STRIP=: DESTDIR="${D}" install install-libs || die
161 dodoc README RELEASE-NOTES
162
163 # Move shared libraries to /lib/, install static libraries to /usr/lib/,
164 # and install linker scripts to /usr/lib/.
165 set -- "${D}"/usr/$(get_libdir)/*.a
166 set -- ${@/*\/lib}
167 gen_usr_ldscript -a "${@/.a}"
168
169 # move 'useless' stuff to /usr/
170 dosbin "${D}"/sbin/mklost+found
171 rm -f "${D}"/sbin/mklost+found
172
173 if use elibc_FreeBSD ; then
174 # Install helpers for us
175 into /
176 dosbin "${S}"/fsck_ext2fs || die
177 doman "${FILESDIR}"/fsck_ext2fs.8
178
179 # these manpages are already provided by FreeBSD libc
180 # and filefrag is linux only
181 rm -f \
182 "${D}"/sbin/filefrag \
183 "${D}"/usr/share/man/man8/filefrag.8 \
184 "${D}"/bin/uuidgen \
185 "${D}"/usr/share/man/man3/{uuid,uuid_compare}.3 \
186 "${D}"/usr/share/man/man1/uuidgen.1 || die
187 fi
188 }