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-apps/util-linux: ChangeLog util-linux-2.12r-r8.ebuild util-linux-2.13-r2.ebuild
Date: Fri, 05 Oct 2007 23:36:19
Message-Id: E1IdwZN-0001aV-28@stork.gentoo.org
1 vapier 07/10/05 23:26:57
2
3 Modified: ChangeLog
4 Added: util-linux-2.12r-r8.ebuild
5 util-linux-2.13-r2.ebuild
6 Log:
7 Add fix from upstream for `script` breakage with SIGWINCH #191452 by Eric Augustus. Add security fix from upstream. Fix from Petr Pisar for swap on cryptoloop #182031. Add by in loop-aes support via USE=crypt #193088 by Hank Leininger and Alon Bar-Lev.
8 (Portage version: 2.1.3.11)
9
10 Revision Changes Path
11 1.203 sys-apps/util-linux/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/util-linux/ChangeLog?rev=1.203&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/util-linux/ChangeLog?rev=1.203&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/util-linux/ChangeLog?r1=1.202&r2=1.203
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v
20 retrieving revision 1.202
21 retrieving revision 1.203
22 diff -u -r1.202 -r1.203
23 --- ChangeLog 4 Sep 2007 00:12:44 -0000 1.202
24 +++ ChangeLog 5 Oct 2007 23:26:56 -0000 1.203
25 @@ -1,6 +1,23 @@
26 # ChangeLog for sys-apps/util-linux
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v 1.202 2007/09/04 00:12:44 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v 1.203 2007/10/05 23:26:56 vapier Exp $
30 +
31 +*util-linux-2.13-r2 (05 Oct 2007)
32 +
33 + 05 Oct 2007; Mike Frysinger <vapier@g.o>
34 + +files/util-linux-2.13-script-SIGWINCH.patch,
35 + +files/util-linux-2.13-setuid-checks.patch, files/crypto-loop.initd,
36 + +util-linux-2.13-r2.ebuild:
37 + Add fix from upstream for `script` breakage with SIGWINCH #191452 by
38 + Eric Augustus. Add security fix from upstream. Fix from Petr Pisar
39 + for swap on cryptoloop #182031. Add by in loop-aes support via USE=crypt
40 + #193088 by Hank Leininger and Alon Bar-Lev.
41 +
42 +*util-linux-2.12r-r8 (05 Oct 2007)
43 +
44 + 05 Oct 2007; Mike Frysinger <vapier@g.o>
45 + +files/util-linux-2.13-setuid-checks.patch, +util-linux-2.12r-r8.ebuild:
46 + Add security fix from upstream.
47
48 04 Sep 2007; Mike Frysinger <vapier@g.o>
49 +files/util-linux-2.13-ioprio-syscalls.patch, util-linux-2.13-r1.ebuild:
50
51
52
53 1.1 sys-apps/util-linux/util-linux-2.12r-r8.ebuild
54
55 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/util-linux/util-linux-2.12r-r8.ebuild?rev=1.1&view=markup
56 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/util-linux/util-linux-2.12r-r8.ebuild?rev=1.1&content-type=text/plain
57
58 Index: util-linux-2.12r-r8.ebuild
59 ===================================================================
60 # Copyright 1999-2007 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 # $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/util-linux-2.12r-r8.ebuild,v 1.1 2007/10/05 23:26:56 vapier Exp $
63
64 inherit eutils flag-o-matic toolchain-funcs
65
66 OLD_CRYPT_VER=2.12i
67 LOOP_AES_VER=3.1f
68 DESCRIPTION="Various useful Linux utilities"
69 HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux/"
70 SRC_URI="mirror://kernel/linux/utils/${PN}/${P}.tar.bz2
71 old-crypt? (
72 mirror://kernel/linux/utils/${PN}/${PN}-${OLD_CRYPT_VER}.tar.gz
73 mirror://gentoo/util-linux-${OLD_CRYPT_VER}-cryptoapi-losetup.patch.bz2
74 )
75 crypt? ( http://loop-aes.sourceforge.net/loop-AES/loop-AES-v${LOOP_AES_VER}.tar.bz2 )"
76
77 LICENSE="GPL-2"
78 SLOT="0"
79 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
80 IUSE="crypt old-crypt nls static selinux perl"
81
82 RDEPEND=">=sys-libs/ncurses-5.2-r2
83 >=sys-fs/e2fsprogs-1.34
84 selinux? ( sys-libs/libselinux )
85 crypt? ( app-crypt/hashalot )
86 perl? ( dev-lang/perl )
87 amd64? ( sys-apps/setarch )
88 mips? ( sys-apps/setarch )
89 ppc? ( sys-apps/setarch )
90 ppc64? ( sys-apps/setarch )
91 sparc? ( sys-apps/setarch )
92 !sys-apps/more"
93 DEPEND="${RDEPEND}
94 nls? ( sys-devel/gettext )
95 virtual/os-headers"
96
97 OLD_CRYPT_P=${WORKDIR}/${PN}-${OLD_CRYPT_VER}
98
99 yesno() { useq $1 && echo yes || echo no; }
100
101 src_unpack() {
102 unpack ${A}
103
104 # Old crypt support
105 if use old-crypt ; then
106 cd "${OLD_CRYPT_P}"
107 ewarn "You should update your system as USE=old-crypt"
108 ewarn "support will be dropped in future versions."
109 epatch "${WORKDIR}"/util-linux-${OLD_CRYPT_VER}-cryptoapi-losetup.patch
110 fi
111
112 cd "${S}"
113
114 sed -i '/LDFLAGS.*-s/d' configure #191112
115
116 # crypto support
117 use crypt && epatch "${WORKDIR}"/loop-AES-v${LOOP_AES_VER}/${P}.diff
118
119 # Fall back to cracklib if default words file doesnt exist #114416
120 epatch "${FILESDIR}"/${PN}-2.12r-cracklib-words.patch
121
122 # Fix rare failures with -j4 or higher
123 epatch "${FILESDIR}"/${PN}-2.11z-parallel-make.patch
124
125 # Fix -f usage with -a and in general
126 epatch "${FILESDIR}"/${PN}-2.12q-more-fake-checks-v2.patch
127
128 # Fix mtab updates with `mount --move /foo /bar` #104697
129 epatch "${FILESDIR}"/${PN}-2.12q-update-mtab-when-moving.patch
130
131 # Respect -n with -r and umount #98675
132 epatch "${FILESDIR}"/${PN}-2.12q-umount-dont-write-mtab-with-remount.patch
133
134 # A few fixes to beat update_mtab() into submission.
135 epatch "${FILESDIR}"/${PN}-2.12q-update_mtab-fixes.patch
136
137 # Use update_mtab() to avoid dups in mtab for 'mount -f'
138 epatch "${FILESDIR}"/${PN}-2.12q-use-update_mtab-for-fake.patch
139
140 # Fix unreadable df output when using devfs ... this check is kind of
141 # a hack, but whatever, the output isnt critical at all :P
142 [[ -e /dev/.devfsd ]] && epatch "${FILESDIR}"/no-symlink-resolve.patch
143
144 # Add the O option to agetty to display DNS domainname in the issue
145 # file, thanks to Marius Mauch <genone@××××××.de>, bug #22275.
146 #
147 # NOTE: Removing this will break future baselayout, so PLEASE
148 # consult with me before doing so.
149 epatch "${FILESDIR}"/${PN}-2.11z-agetty-domainname-option.patch
150
151 # Fix french translation typo #75693
152 epatch "${FILESDIR}"/${PN}-2.12q-i18n-update.patch
153
154 # Add NFS4 support (kernel 2.5/2.6)
155 epatch "${FILESDIR}"/${PN}-2.12i-nfsv4.patch
156
157 # ignore managed/kudzu options #70873
158 epatch "${FILESDIR}"/${PN}-2.12i-ignore-managed.patch
159
160 # swapon gets confused by symlinks in /dev #69162
161 epatch "${FILESDIR}"/${PN}-2.12p-swapon-check-symlinks.patch
162
163 # fix simple buffer overflow (from Debian)
164 epatch "${FILESDIR}"/${PN}-2.12q-debian-10cfdisk.patch
165
166 # don't build fdisk on m68k
167 epatch "${FILESDIR}"/${PN}-2.12q-no-m68k-fdisk.patch
168
169 # don't force umask to 022 #93671
170 epatch "${FILESDIR}"/${PN}-2.12q-dont-umask.patch
171
172 # fix cal display when using featureless terminals #112406
173 epatch "${FILESDIR}"/${PN}-2.12r-cal-dumb-terminal.patch
174
175 # Bug #108988 unable to always seek when omiting frame pointers
176 epatch "${FILESDIR}"/${PN}-2.12r-fdisk-frame-pointers.patch
177
178 # don't treat sparc/arm specially
179 epatch "${FILESDIR}"/${PN}-2.12r-umount-no-special.patch
180
181 # Patches from Fedora
182 epatch "${FILESDIR}"/${PN}-2.12r-umount-nosysfs.patch
183
184 # fix mips n32 (no llseek syscall)
185 epatch "${FILESDIR}"/${PN}-2.12-mips-lseek.patch
186
187 epatch "${FILESDIR}"/${PN}-2.13-setuid-checks.patch
188 epatch "${FILESDIR}"/${PN}-2.12r-no-_syscall.patch #150852
189 epatch "${FILESDIR}"/${PN}-2.12r-HAVE_asm_page_h.patch #168278
190 use crypt && epatch "${FILESDIR}"/${PN}-2.12r-HAVE_asm_page_h-loop-aes.patch
191
192 # Enable random features
193 local mconfigs="MCONFIG"
194 use old-crypt && mconfigs="${mconfigs} ${OLD_CRYPT_P}/MCONFIG"
195 sed -i \
196 -e "/^HAVE_SELINUX=/s:no:$(yesno selinux):" \
197 -e "/^DISABLE_NLS=/s:no:$(yesno !nls):" \
198 -e "/^HAVE_KILL=/s:no:yes:" \
199 -e "/^HAVE_SLN=/s:no:yes:" \
200 -e "/^HAVE_TSORT/s:no:yes:" \
201 -e "s:-pipe -O2 \$(CPUOPT) -fomit-frame-pointer:${CFLAGS}:" \
202 -e "s:CPU=.*:CPU=${CHOST%%-*}:" \
203 -e "s:SUIDMODE=.*4755:SUIDMODE=4711:" \
204 ${mconfigs} || die "MCONFIG sed"
205 }
206
207 src_compile() {
208 use static && append-ldflags -static
209 export CC="$(tc-getCC)"
210
211 econf || die "configure failed"
212 emake || die "emake failed"
213
214 cd partx
215 has_version '>=sys-kernel/linux-headers-2.6' && \
216 has_version '<sys-kernel/linux-headers-2.6.18' \
217 && append-flags -include linux/compiler.h
218 emake CFLAGS="${CFLAGS}" || die "make partx failed"
219
220 if use old-crypt ; then
221 cd "${OLD_CRYPT_P}"
222 econf || die "old configure failed"
223 emake -C lib || die "old lib failed"
224 emake -C mount losetup mount || die "old make failed"
225 fi
226 }
227
228 src_install() {
229 make install DESTDIR="${D}" || die "install failed"
230 dosym ../man8/agetty.8 /usr/share/man/man1/getty.1
231 dosbin partx/{addpart,delpart,partx} || die "dosbin"
232 use perl || rm -f "${D}"/usr/bin/chkdupexe
233 # required by autotools
234 dosym /bin/arch /usr/bin/arch
235
236 if use crypt || use old-crypt ; then
237 newinitd "${FILESDIR}"/crypto-loop.initd crypto-loop
238 newconfd "${FILESDIR}"/crypto-loop.confd crypto-loop
239 fi
240
241 # man-pages installs renice(1p) but util-linux does renice(8)
242 dosym ../man8/renice.8 /usr/share/man/man1/renice.1
243 # nfs-utils provides nfs(5) now
244 rm "${D}"/usr/share/man/man5/nfs.5 || die
245
246 dodoc HISTORY MAINTAINER README VERSION
247 docinto examples
248 dodoc example.files/*
249
250 if use old-crypt ; then
251 cd "${OLD_CRYPT_P}"/mount
252 into /
253 newbin mount mount-old-crypt || die
254 newbin losetup losetup-old-crypt || die
255 fperms 4711 /bin/{mount,losetup}-old-crypt
256 fi
257 }
258
259 pkg_postinst() {
260 if ! use old-crypt && use crypt ; then
261 ewarn "This version of util-linux includes crypto support"
262 ewarn "for loop-aes instead of the old cryptoapi."
263 ewarn "If you need the older support, please re-emerge"
264 ewarn "util-linux with USE=old-crypt. This will create"
265 ewarn "/sbin/mount-old-crypt and /sbin/losetup-old-crypt."
266 fi
267 }
268
269
270
271 1.1 sys-apps/util-linux/util-linux-2.13-r2.ebuild
272
273 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/util-linux/util-linux-2.13-r2.ebuild?rev=1.1&view=markup
274 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/util-linux/util-linux-2.13-r2.ebuild?rev=1.1&content-type=text/plain
275
276 Index: util-linux-2.13-r2.ebuild
277 ===================================================================
278 # Copyright 1999-2007 Gentoo Foundation
279 # Distributed under the terms of the GNU General Public License v2
280 # $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/util-linux-2.13-r2.ebuild,v 1.1 2007/10/05 23:26:56 vapier Exp $
281
282 EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux-ng/util-linux-ng.git"
283 inherit eutils
284 [[ ${PV} == "9999" ]] && inherit git
285
286 MY_PV=${PV/_/-}
287 MY_P=${PN}-ng-${MY_PV}
288 S=${WORKDIR}/${MY_P}
289
290 DESCRIPTION="Various useful Linux utilities"
291 HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux-ng/"
292 if [[ ${PV} == "9999" ]] ; then
293 SRC_URI=""
294 else
295 SRC_URI="http://www.kernel.org/pub/linux/utils/util-linux-ng/v${PV:0:4}/${MY_P}.tar.bz2
296 crypt? ( http://loop-aes.sourceforge.net/updates/${MY_P}-1.diff.bz2 )"
297 fi
298
299 LICENSE="GPL-2"
300 SLOT="0"
301 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
302 IUSE="crypt nls old-linux selinux"
303
304 RDEPEND="!sys-process/schedutils
305 !sys-apps/setarch
306 >=sys-libs/ncurses-5.2-r2
307 >=sys-fs/e2fsprogs-1.34
308 selinux? ( sys-libs/libselinux )"
309 DEPEND="${RDEPEND}
310 nls? ( sys-devel/gettext )
311 virtual/os-headers"
312
313 src_unpack() {
314 if [[ ${PV} == "9999" ]] ; then
315 git_src_unpack
316 cd "${S}"
317 ./autogen.sh || die
318 else
319 unpack ${A}
320 cd "${S}"
321 epatch "${FILESDIR}"/${P}-locale.patch #191111
322 epatch "${FILESDIR}"/${P}-ioprio-syscalls.patch #190613
323 epatch "${FILESDIR}"/${P}-setuid-checks.patch
324 epatch "${FILESDIR}"/${P}-script-SIGWINCH.patch #191452
325 use crypt && epatch "${WORKDIR}"/${MY_P}-1.diff
326 sed -i '/#include <asm\/page.h>/d' mount/swapon.c || die
327 fi
328 }
329
330 src_compile() {
331 export localedir="/usr/share/locale" #190895
332 econf \
333 --with-fsprobe=blkid \
334 $(use_enable nls) \
335 --enable-agetty \
336 --enable-cramfs \
337 $(use_enable old-linux elvtune) \
338 --disable-init \
339 --disable-kill \
340 --disable-last \
341 --disable-mesg \
342 --enable-partx \
343 --enable-raw \
344 --enable-rdev \
345 --enable-rename \
346 --disable-reset \
347 --disable-login-utils \
348 --enable-schedutils \
349 --disable-wall \
350 --enable-write \
351 --without-pam \
352 $(use_with selinux) \
353 || die "configure failed"
354 emake || die "emake failed"
355 }
356
357 src_install() {
358 emake install DESTDIR="${D}" || die "install failed"
359 dodoc AUTHORS NEWS README* TODO docs/*
360
361 if use crypt ; then
362 newinitd "${FILESDIR}"/crypto-loop.initd crypto-loop || die
363 newconfd "${FILESDIR}"/crypto-loop.confd crypto-loop || die
364 fi
365 }
366
367
368
369 --
370 gentoo-commits@g.o mailing list