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.12.ebuild
Date: Sat, 03 Jul 2010 02:12:25
Message-Id: 20100703021223.442452CE15@corvid.gentoo.org
1 vapier 10/07/03 02:12:23
2
3 Modified: ChangeLog
4 Added: e2fsprogs-1.41.12.ebuild
5 Log:
6 Version bump #326655 by Sebastian Koehler.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.215 sys-fs/e2fsprogs/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/e2fsprogs/ChangeLog?rev=1.215&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/e2fsprogs/ChangeLog?rev=1.215&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/e2fsprogs/ChangeLog?r1=1.214&r2=1.215
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/ChangeLog,v
19 retrieving revision 1.214
20 retrieving revision 1.215
21 diff -u -r1.214 -r1.215
22 --- ChangeLog 3 Jul 2010 02:11:22 -0000 1.214
23 +++ ChangeLog 3 Jul 2010 02:12:23 -0000 1.215
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-fs/e2fsprogs
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/ChangeLog,v 1.214 2010/07/03 02:11:22 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/ChangeLog,v 1.215 2010/07/03 02:12:23 vapier Exp $
29 +
30 +*e2fsprogs-1.41.12 (03 Jul 2010)
31 +
32 + 03 Jul 2010; Mike Frysinger <vapier@g.o> +e2fsprogs-1.41.12.ebuild:
33 + Version bump #326655 by Sebastian Koehler.
34
35 03 Jul 2010; Mike Frysinger <vapier@g.o> e2fsprogs-1.41.11.ebuild:
36 Mark alpha/arm/ia64/s390/sh stable #323893.
37
38
39
40 1.1 sys-fs/e2fsprogs/e2fsprogs-1.41.12.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/e2fsprogs/e2fsprogs-1.41.12.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/e2fsprogs/e2fsprogs-1.41.12.ebuild?rev=1.1&content-type=text/plain
44
45 Index: e2fsprogs-1.41.12.ebuild
46 ===================================================================
47 # Copyright 1999-2010 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.12.ebuild,v 1.1 2010/07/03 02:12:23 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 sed -i \
99 -e '/^#define _XOPEN/i#define _GNU_SOURCE' \
100 misc/mke2fs.c || die # needs open64() prototype
101
102 # Avoid rebuild
103 touch lib/ss/ss_err.h
104 }
105
106 src_compile() {
107 # Keep the package from doing silly things #261411
108 export VARTEXFONTS=${T}/fonts
109
110 # We want to use the "bsd" libraries while building on Darwin, but while
111 # building on other Gentoo/*BSD we prefer elf-naming scheme.
112 local libtype
113 case ${CHOST} in
114 *-darwin*) libtype=bsd;;
115 *) libtype=elf;;
116 esac
117
118 ac_cv_path_LDCONFIG=: \
119 econf \
120 --with-root-prefix=/ \
121 --enable-${libtype}-shlibs \
122 $(tc-has-tls || echo --disable-tls) \
123 --without-included-gettext \
124 $(use_enable nls) \
125 --disable-libblkid \
126 --disable-libuuid \
127 --disable-fsck \
128 --disable-uuidd
129 if [[ ${CHOST} != *-uclibc ]] && grep -qs 'USE_INCLUDED_LIBINTL.*yes' config.{log,status} ; then
130 eerror "INTL sanity check failed, aborting build."
131 eerror "Please post your ${S}/config.log file as an"
132 eerror "attachment to http://bugs.gentoo.org/show_bug.cgi?id=81096"
133 die "Preventing included intl cruft from building"
134 fi
135 emake COMPILE_ET=compile_et MK_CMDS=mk_cmds || die
136
137 # Build the FreeBSD helper
138 if use elibc_FreeBSD ; then
139 cp "${FILESDIR}"/fsck_ext2fs.c .
140 emake fsck_ext2fs || die
141 fi
142 }
143
144 pkg_preinst() {
145 if [[ -r ${ROOT}/etc/mtab ]] ; then
146 if [[ $(<"${ROOT}"/etc/mtab) == "${PN} crap for src_test" ]] ; then
147 rm -f "${ROOT}"/etc/mtab
148 fi
149 fi
150 }
151
152 src_install() {
153 # need to set root_libdir= manually as any --libdir options in the
154 # econf above (i.e. multilib) will screw up the default #276465
155 emake \
156 STRIP=: \
157 root_libdir="/$(get_libdir)" \
158 DESTDIR="${D}" \
159 install install-libs || die
160 dodoc README RELEASE-NOTES
161
162 insinto /etc
163 doins "${FILESDIR}"/e2fsck.conf || die
164
165 # make sure symlinks are relative, not absolute, for cross-compiling
166 cd "${D}"/usr/$(get_libdir)
167 local x l
168 for x in lib* ; do
169 l=$(readlink "${x}")
170 [[ ${l} == /* ]] || continue
171 rm -f "${x}"
172 ln -s "../..${l}" "${x}"
173 done
174
175 if use elibc_FreeBSD ; then
176 # Install helpers for us
177 into /
178 dosbin "${S}"/fsck_ext2fs || die
179 doman "${FILESDIR}"/fsck_ext2fs.8
180
181 # filefrag is linux only
182 rm \
183 "${D}"/usr/sbin/filefrag \
184 "${D}"/usr/share/man/man8/filefrag.8 || die
185 fi
186 }