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.40.3-r1.ebuild
Date: Mon, 24 Dec 2007 12:49:58
Message-Id: E1J6mkj-0005H7-9j@stork.gentoo.org
1 vapier 07/12/24 12:49:53
2
3 Modified: ChangeLog
4 Added: e2fsprogs-1.40.3-r1.ebuild
5 Log:
6 Add patch from upstream for fuse syntax which has inline # characters #195405 by Thorsten Kampe.
7 (Portage version: 2.1.4_rc11)
8
9 Revision Changes Path
10 1.126 sys-fs/e2fsprogs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/ChangeLog?rev=1.126&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/ChangeLog?rev=1.126&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/ChangeLog?r1=1.125&r2=1.126
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/ChangeLog,v
19 retrieving revision 1.125
20 retrieving revision 1.126
21 diff -u -r1.125 -r1.126
22 --- ChangeLog 12 Dec 2007 01:30:04 -0000 1.125
23 +++ ChangeLog 24 Dec 2007 12:49:52 -0000 1.126
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sys-fs/e2fsprogs
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/ChangeLog,v 1.125 2007/12/12 01:30:04 ranger Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/ChangeLog,v 1.126 2007/12/24 12:49:52 vapier Exp $
29 +
30 +*e2fsprogs-1.40.3-r1 (24 Dec 2007)
31 +
32 + 24 Dec 2007; Mike Frysinger <vapier@g.o>
33 + +files/e2fsprogs-1.40.3-fsck-fuse.patch, +e2fsprogs-1.40.3-r1.ebuild:
34 + Add patch from upstream for fuse syntax which has inline # characters
35 + #195405 by Thorsten Kampe.
36
37 12 Dec 2007; Brent Baude <ranger@g.o> e2fsprogs-1.40.3.ebuild:
38 Marking e2fsprogs-1.40.3 ppc64 stable for 201546
39
40
41
42 1.1 sys-fs/e2fsprogs/e2fsprogs-1.40.3-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/e2fsprogs-1.40.3-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/e2fsprogs/e2fsprogs-1.40.3-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: e2fsprogs-1.40.3-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2007 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.40.3-r1.ebuild,v 1.1 2007/12/24 12:49:52 vapier Exp $
52
53 inherit eutils flag-o-matic toolchain-funcs
54
55 DESCRIPTION="Standard EXT2 and EXT3 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 static elibc_FreeBSD"
63
64 RDEPEND="~sys-libs/com_err-${PV}
65 ~sys-libs/ss-${PV}
66 nls? ( virtual/libintl )"
67 DEPEND="${RDEPEND}
68 nls? ( sys-devel/gettext )
69 sys-apps/texinfo"
70
71 src_unpack() {
72 unpack ${A}
73 cd "${S}"
74 epatch "${FILESDIR}"/${P}-fsck-fuse.patch #195405
75 # Fix locale issues while running tests #99766
76 epatch "${FILESDIR}"/${PN}-1.38-tests-locale.patch #99766
77 epatch "${FILESDIR}"/e2fsprogs-1.39-util-strptime.patch
78 chmod u+w po/*.po # Userpriv fix #27348
79 # Clean up makefile to suck less
80 epatch "${FILESDIR}"/e2fsprogs-1.39-makefile.patch
81 epatch "${FILESDIR}"/${PN}-1.40-libintl.patch #122368
82
83 # Fix compile on FreeBSD
84 epatch "${FILESDIR}"/${PN}-1.40-fbsd.patch
85
86 # kernel headers use the same defines as e2fsprogs and can cause issues #48829
87 sed -i \
88 -e 's:CONFIG_JBD_DEBUG:__CONFIG_JBD_DEBUG__E2FS:g' \
89 $(grep -rl CONFIG_JBD_DEBUG *) \
90 || die "sed jbd debug failed"
91
92 # fake out files we forked into sep packages
93 sed -i \
94 -e '/^LIB_SUBDIRS/s:lib/et::' \
95 -e '/^LIB_SUBDIRS/s:lib/ss::' \
96 Makefile.in || die "remove subdirs"
97
98 ln -s "${ROOT}"/usr/$(get_libdir)/libcom_err.a lib/libcom_err.a
99 ln -s "${ROOT}"/$(get_libdir)/libcom_err.so lib/libcom_err.so
100 ln -s /usr/bin/mk_cmds lib/ss/mk_cmds
101 ln -s "${ROOT}"/usr/include/ss/ss_err.h lib/ss/
102 ln -s "${ROOT}"/$(get_libdir)/libss.so lib/libss.so
103
104 # sanity check for Bug 105304
105 if [[ -z ${USERLAND} ]] ; then
106 eerror "You just hit Bug 105304, please post your 'emerge info' here:"
107 eerror "http://bugs.gentoo.org/105304"
108 die "Aborting to prevent screwing your system"
109 fi
110 }
111
112 src_compile() {
113 # Keep the package from doing silly things
114 export LDCONFIG=:
115 export CC=$(tc-getCC)
116 export STRIP=:
117
118 econf \
119 --bindir=/bin \
120 --sbindir=/sbin \
121 --enable-elf-shlibs \
122 --with-ldopts="${LDFLAGS}" \
123 $(use_enable !static dynamic-e2fsck) \
124 --without-included-gettext \
125 $(use_enable nls) \
126 $(use_enable userland_GNU fsck) \
127 || die
128 if [[ ${CHOST} != *-uclibc ]] && grep -qs 'USE_INCLUDED_LIBINTL.*yes' config.{log,status} ; then
129 eerror "INTL sanity check failed, aborting build."
130 eerror "Please post your ${S}/config.log file as an"
131 eerror "attachment to http://bugs.gentoo.org/show_bug.cgi?id=81096"
132 die "Preventing included intl cruft from building"
133 fi
134 # Parallel make sometimes fails
135 emake -j1 COMPILE_ET=compile_et || 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 src_install() {
145 emake DESTDIR="${D}" install || die
146 dodoc README RELEASE-NOTES
147
148 # Move shared libraries to /lib/, install static libraries to /usr/lib/,
149 # and install linker scripts to /usr/lib/.
150 dodir /$(get_libdir)
151 mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir)/
152 dolib.a lib/*.a || die "dolib.a"
153 rm -f "${D}"/usr/$(get_libdir)/libcom_err.a #125146
154 local x
155 cd "${D}"/$(get_libdir)
156 for x in *.so ; do
157 gen_usr_ldscript ${x} || die "gen ldscript ${x}"
158 done
159
160 # move 'useless' stuff to /usr/
161 dosbin "${D}"/sbin/mklost+found
162 rm -f "${D}"/sbin/mklost+found
163
164 if use elibc_FreeBSD ; then
165 # Install helpers for us
166 into /
167 dosbin "${S}"/fsck_ext2fs || die
168 doman "${FILESDIR}"/fsck_ext2fs.8
169
170 # these manpages are already provided by FreeBSD libc
171 # and filefrag is linux only
172 rm -f \
173 "${D}"/sbin/filefrag \
174 "${D}"/usr/share/man/man8/filefrag.8 \
175 "${D}"/bin/uuidgen \
176 "${D}"/usr/share/man/man3/{uuid,uuid_compare}.3 \
177 "${D}"/usr/share/man/man1/uuidgen.1 || die
178 fi
179 }
180
181
182
183 --
184 gentoo-commits@g.o mailing list