Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/e2fsprogs: ChangeLog e2fsprogs-1.41.9.ebuild
Date: Sun, 23 Aug 2009 21:28:06
Message-Id: E1MfKbc-000648-Kj@stork.gentoo.org
1 vapier 09/08/23 21:28:04
2
3 Modified: ChangeLog
4 Added: e2fsprogs-1.41.9.ebuild
5 Log:
6 Version bump #282445 by Marcin Mirosław.
7 (Portage version: 2.2_rc38/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.196 sys-fs/e2fsprogs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/ChangeLog?rev=1.196&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/ChangeLog?rev=1.196&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/ChangeLog?r1=1.195&r2=1.196
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/ChangeLog,v
19 retrieving revision 1.195
20 retrieving revision 1.196
21 diff -u -r1.195 -r1.196
22 --- ChangeLog 22 Jul 2009 14:05:59 -0000 1.195
23 +++ ChangeLog 23 Aug 2009 21:28:04 -0000 1.196
24 @@ -1,6 +1,11 @@
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.195 2009/07/22 14:05:59 aballier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/ChangeLog,v 1.196 2009/08/23 21:28:04 vapier Exp $
29 +
30 +*e2fsprogs-1.41.9 (23 Aug 2009)
31 +
32 + 23 Aug 2009; Mike Frysinger <vapier@g.o> +e2fsprogs-1.41.9.ebuild:
33 + Version bump #282445 by Marcin Mirosław.
34
35 22 Jul 2009; Alexis Ballier <aballier@g.o> e2fsprogs-1.41.8.ebuild:
36 Keyword -x86-fbsd due to bug #278667 and broken deps on util-linux
37
38
39
40 1.1 sys-fs/e2fsprogs/e2fsprogs-1.41.9.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/e2fsprogs-1.41.9.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/e2fsprogs-1.41.9.ebuild?rev=1.1&content-type=text/plain
44
45 Index: e2fsprogs-1.41.9.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/e2fsprogs-1.41.9.ebuild,v 1.1 2009/08/23 21:28:04 vapier Exp $
50
51 inherit eutils flag-o-matic toolchain-funcs multilib
52
53 DESCRIPTION="Standard EXT2/EXT3/EXT4 filesystem utilities"
54 HOMEPAGE="http://e2fsprogs.sourceforge.net/"
55 SRC_URI="mirror://sourceforge/e2fsprogs/${P}.tar.gz"
56
57 LICENSE="GPL-2 BSD"
58 SLOT="0"
59 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -x86-fbsd"
60 IUSE="nls elibc_FreeBSD"
61
62 RDEPEND="~sys-libs/${PN}-libs-${PV}
63 >=sys-apps/util-linux-2.16
64 nls? ( virtual/libintl )"
65 DEPEND="${RDEPEND}
66 nls? ( sys-devel/gettext )
67 dev-util/pkgconfig
68 sys-apps/texinfo"
69
70 pkg_setup() {
71 if [[ ! -e ${ROOT}/etc/mtab ]] ; then
72 # add some crap to deal with missing /etc/mtab #217719
73 ewarn "No /etc/mtab file, creating one temporarily"
74 echo "${PN} crap for src_test" > "${ROOT}"/etc/mtab
75 fi
76 }
77
78 src_unpack() {
79 unpack ${A}
80 cd "${S}"
81 epatch "${FILESDIR}"/${PN}-1.38-tests-locale.patch #99766
82 epatch "${FILESDIR}"/${PN}-1.41.8-makefile.patch
83 epatch "${FILESDIR}"/${PN}-1.40-fbsd.patch
84 # use symlinks rather than hardlinks
85 sed -i \
86 -e 's:$(LN) -f $(DESTDIR).*/:$(LN_S) -f :' \
87 {e2fsck,misc}/Makefile.in || die
88 # blargh ... trick e2fsprogs into using e2fsprogs-libs
89 rm -rf doc
90 sed -i -r \
91 -e 's:@LIBINTL@:@LTLIBINTL@:' \
92 -e '/^LIB(COM_ERR|SS)/s:[$][(]LIB[)]/lib([^@]*)@LIB_EXT@:-l\1:' \
93 -e '/^DEPLIB(COM_ERR|SS)/s:=.*:=:' \
94 MCONFIG.in || die "muck libs" #122368
95 sed -i -r \
96 -e '/^LIB_SUBDIRS/s:lib/(et|ss)::g' \
97 Makefile.in || die "remove subdirs"
98 # stupid configure script clobbers CC for us
99 sed -i \
100 -e '/if test -z "$CC" ; then CC=cc; fi/d' \
101 configure || die "touching configure"
102
103 # Avoid rebuild
104 touch lib/ss/ss_err.h
105 }
106
107 src_compile() {
108 # Keep the package from doing silly things #261411
109 export VARTEXFONTS=${T}/fonts
110
111 # We want to use the "bsd" libraries while building on Darwin, but while
112 # building on other Gentoo/*BSD we prefer elf-naming scheme.
113 local libtype
114 case ${CHOST} in
115 *-darwin*) libtype=bsd;;
116 *) libtype=elf;;
117 esac
118
119 ac_cv_path_LDCONFIG=: \
120 econf \
121 --with-root-prefix=/ \
122 --enable-${libtype}-shlibs \
123 --with-ldopts="${LDFLAGS}" \
124 $(use_enable !elibc_uclibc tls) \
125 --without-included-gettext \
126 $(use_enable nls) \
127 --disable-libblkid \
128 --disable-libuuid \
129 --disable-fsck \
130 --disable-uuidd
131 if [[ ${CHOST} != *-uclibc ]] && grep -qs 'USE_INCLUDED_LIBINTL.*yes' config.{log,status} ; then
132 eerror "INTL sanity check failed, aborting build."
133 eerror "Please post your ${S}/config.log file as an"
134 eerror "attachment to http://bugs.gentoo.org/show_bug.cgi?id=81096"
135 die "Preventing included intl cruft from building"
136 fi
137 emake COMPILE_ET=compile_et MK_CMDS=mk_cmds || die
138
139 # Build the FreeBSD helper
140 if use elibc_FreeBSD ; then
141 cp "${FILESDIR}"/fsck_ext2fs.c .
142 emake fsck_ext2fs || die
143 fi
144 }
145
146 pkg_preinst() {
147 if [[ -r ${ROOT}/etc/mtab ]] ; then
148 if [[ $(<"${ROOT}"/etc/mtab) == "${PN} crap for src_test" ]] ; then
149 rm -f "${ROOT}"/etc/mtab
150 fi
151 fi
152 }
153
154 src_install() {
155 # need to set root_libdir= manually as any --libdir options in the
156 # econf above (i.e. multilib) will screw up the default #276465
157 emake \
158 STRIP=: \
159 root_libdir="/$(get_libdir)" \
160 DESTDIR="${D}" \
161 install install-libs || die
162 dodoc README RELEASE-NOTES
163
164 # make sure symlinks are relative, not absolute, for cross-compiling
165 cd "${D}"/usr/$(get_libdir)
166 local x l
167 for x in lib* ; do
168 l=$(readlink "${x}")
169 [[ ${l} == /* ]] || continue
170 rm -f "${x}"
171 ln -s "../..${l}" "${x}"
172 done
173
174 if use elibc_FreeBSD ; then
175 # Install helpers for us
176 into /
177 dosbin "${S}"/fsck_ext2fs || die
178 doman "${FILESDIR}"/fsck_ext2fs.8
179
180 # filefrag is linux only
181 rm \
182 "${D}"/usr/sbin/filefrag \
183 "${D}"/usr/share/man/man8/filefrag.8 || die
184 fi
185 }