From 2c12eb0a5a935f859774efc84a5b8f2465dfeef2 Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Tue, 6 Jul 2010 00:29:07 +0200 Subject: util-linux for cross compile --- sys-apps/util-linux/ChangeLog | 1111 ++++++++++++++++++++ sys-apps/util-linux/files/crypto-loop.confd | 9 + sys-apps/util-linux/files/crypto-loop.initd | 70 ++ sys-apps/util-linux/files/no-symlink-resolve.patch | 11 + sys-apps/util-linux/files/uclibc.diff | 96 ++ ...util-linux-2.11z-agetty-domainname-option.patch | 69 ++ .../files/util-linux-2.11z-parallel-make.patch | 11 + .../files/util-linux-2.12-mips-lseek.patch | 24 + .../files/util-linux-2.12i-ignore-managed.patch | 11 + .../util-linux/files/util-linux-2.12i-nfsv4.patch | 456 ++++++++ .../util-linux-2.12p-swapon-check-symlinks.patch | 34 + .../files/util-linux-2.12q-debian-10cfdisk.patch | 48 + .../files/util-linux-2.12q-dont-umask.patch | 17 + .../files/util-linux-2.12q-i18n-update.patch | 10 + .../util-linux-2.12q-more-fake-checks-v2.patch | 40 + .../files/util-linux-2.12q-no-m68k-fdisk.patch | 15 + ...2.12q-umount-dont-write-mtab-with-remount.patch | 18 + .../util-linux-2.12q-update-mtab-when-moving.patch | 33 + .../files/util-linux-2.12q-update_mtab-fixes.patch | 68 ++ ...util-linux-2.12q-use-update_mtab-for-fake.patch | 16 + ...util-linux-2.12r-HAVE_asm_page_h-loop-aes.patch | 18 + .../files/util-linux-2.12r-HAVE_asm_page_h.patch | 16 + .../files/util-linux-2.12r-cal-dumb-terminal.patch | 37 + .../files/util-linux-2.12r-cracklib-words.patch | 19 + .../util-linux-2.12r-fdisk-frame-pointers.patch | 12 + .../files/util-linux-2.12r-no-_syscall.patch | 53 + .../files/util-linux-2.12r-umount-no-special.patch | 11 + .../files/util-linux-2.12r-umount-nosysfs.patch | 11 + .../files/util-linux-2.13-ioprio-syscalls.patch | 16 + .../files/util-linux-2.13-setuid-checks.patch | 52 + .../util-linux/files/util-linux-2.13-uclibc.patch | 71 ++ .../files/util-linux-2.13.1-no-a.out.patch | 26 + .../files/util-linux-2.14-AC_BIG_ENDIAN.patch | 257 +++++ sys-apps/util-linux/metadata.xml | 8 + sys-apps/util-linux/util-linux-2.13.1.1.ebuild | 93 ++ sys-apps/util-linux/util-linux-2.14.1.ebuild | 95 ++ sys-apps/util-linux/util-linux-2.14.2.ebuild | 93 ++ sys-apps/util-linux/util-linux-9999.ebuild | 84 ++ 38 files changed, 3139 insertions(+) create mode 100644 sys-apps/util-linux/ChangeLog create mode 100644 sys-apps/util-linux/files/crypto-loop.confd create mode 100755 sys-apps/util-linux/files/crypto-loop.initd create mode 100644 sys-apps/util-linux/files/no-symlink-resolve.patch create mode 100644 sys-apps/util-linux/files/uclibc.diff create mode 100644 sys-apps/util-linux/files/util-linux-2.11z-agetty-domainname-option.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.11z-parallel-make.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12-mips-lseek.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12i-ignore-managed.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12i-nfsv4.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12p-swapon-check-symlinks.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12q-debian-10cfdisk.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12q-dont-umask.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12q-i18n-update.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12q-more-fake-checks-v2.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12q-no-m68k-fdisk.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12q-umount-dont-write-mtab-with-remount.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12q-update-mtab-when-moving.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12q-update_mtab-fixes.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12q-use-update_mtab-for-fake.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12r-HAVE_asm_page_h-loop-aes.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12r-HAVE_asm_page_h.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12r-cal-dumb-terminal.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12r-cracklib-words.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12r-fdisk-frame-pointers.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12r-no-_syscall.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12r-umount-no-special.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.12r-umount-nosysfs.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.13-ioprio-syscalls.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.13-setuid-checks.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.13-uclibc.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.13.1-no-a.out.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.14-AC_BIG_ENDIAN.patch create mode 100644 sys-apps/util-linux/metadata.xml create mode 100644 sys-apps/util-linux/util-linux-2.13.1.1.ebuild create mode 100644 sys-apps/util-linux/util-linux-2.14.1.ebuild create mode 100644 sys-apps/util-linux/util-linux-2.14.2.ebuild create mode 100644 sys-apps/util-linux/util-linux-9999.ebuild (limited to 'sys-apps') diff --git a/sys-apps/util-linux/ChangeLog b/sys-apps/util-linux/ChangeLog new file mode 100644 index 00000000..d52d06ae --- /dev/null +++ b/sys-apps/util-linux/ChangeLog @@ -0,0 +1,1111 @@ +# ChangeLog for sys-apps/util-linux +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v 1.257 2009/02/15 00:21:10 vapier Exp $ + + 15 Feb 2009; Mike Frysinger util-linux-2.14.2.ebuild: + Update loop-aes patch #258456. + + 15 Feb 2009; Mike Frysinger util-linux-2.14.1.ebuild, + util-linux-2.14.2.ebuild: + Touchup wording on USE=loop-aes info. + +*util-linux-2.14.2 (10 Feb 2009) + + 10 Feb 2009; Mike Frysinger +util-linux-2.14.2.ebuild: + Version bump. + + 30 Dec 2008; Mike Frysinger util-linux-2.14.1.ebuild, + util-linux-9999.ebuild: + Depend on sys-libs/e2fsprogs-libs rather than sys-fs/e2fsprogs #249663. + + 06 Dec 2008; Mike Frysinger + +files/util-linux-2.14-AC_BIG_ENDIAN.patch, util-linux-2.14.1.ebuild: + Add fix from upstream for missing call to AC_BIG_ENDIAN in configure. + + 02 Dec 2008; Brent Baude util-linux-2.14.1.ebuild: + stable ppc64, bug 249107 + + 02 Dec 2008; Raúl Porcel util-linux-2.14.1.ebuild: + alpha/ia64/sparc stable wrt #249107 + + 30 Nov 2008; Markus Meier util-linux-2.14.1.ebuild: + amd64/x86 stable, bug #249107 + + 29 Nov 2008; Tobias Scherbaum + util-linux-2.14.1.ebuild: + ppc stable, bug #249107 + + 29 Nov 2008; util-linux-2.14.1.ebuild: + - quick hack for dirty times + + 27 Nov 2008; Jeroen Roovers util-linux-2.14.1.ebuild: + Stable for HPPA (bug #249107). + + 17 Nov 2008; Diego E. Pettenò + files/util-linux-2.12q-debian-10cfdisk.patch: + Fix patch with absolute paths. + + 26 Oct 2008; Mike Frysinger files/crypto-loop.initd: + Apply POSIX patch #236858. + + 26 Oct 2008; Mike Frysinger util-linux-2.14.1.ebuild: + Update loop-aes support #242874 by Fabio Coatti and Lars (Polynomial-C). + +*util-linux-2.14.1 (20 Oct 2008) + + 20 Oct 2008; Mike Frysinger +util-linux-2.14.1.ebuild: + Version bump. + + 23 Aug 2008; Doug Goldstein metadata.xml: + add GLEP 56 USE flag desc from use.local.desc + + 28 Jun 2008; Mike Frysinger util-linux-2.14.ebuild: + Update loop-aes patch from upstream #228691. + +*util-linux-2.14 (21 Jun 2008) + + 21 Jun 2008; Mike Frysinger +util-linux-2.14.ebuild: + Version bump #228061 by Conrad Kostecki. + + 07 Jun 2008; Mike Frysinger + +files/util-linux-2.13.1-no-a.out.patch, util-linux-2.13.1.1.ebuild: + Do not rely on a.out.h #221939 by Mart Raudsepp. + + 28 Apr 2008; Tobias Scherbaum + util-linux-2.13.1.1.ebuild: + ppc stable, bug #219202 + + 27 Apr 2008; Markus Meier util-linux-2.13.1.1.ebuild: + amd64 stable, security bug #219202 + + 27 Apr 2008; Markus Rothe util-linux-2.13.1.1.ebuild: + Stable on ppc64; bug #219202 + + 25 Apr 2008; Raúl Porcel util-linux-2.13.1.1.ebuild: + alpha/ia64/x86 stable wrt security #219202 + + 25 Apr 2008; Jeroen Roovers util-linux-2.13.1.1.ebuild: + Stable for HPPA (bug #219202). + + 25 Apr 2008; Ferris McCormick + util-linux-2.13.1.1.ebuild: + Sparc stable, Security Bug #219202. + +*util-linux-2.13.1.1 (21 Apr 2008) + + 21 Apr 2008; Mike Frysinger + +util-linux-2.13.1.1.ebuild: + Version bump. + + 31 Mar 2008; Jeroen Roovers util-linux-2.13.1.ebuild: + Stable for HPPA (bug #215371). + + 30 Mar 2008; Santiago M. Mola + util-linux-2.13.1.ebuild: + amd64 stable wrt bug #215371 + + 30 Mar 2008; Raúl Porcel util-linux-2.13.1.ebuild: + alpha/ia64/sparc/x86 stable wrt #215371 + + 30 Mar 2008; Brent Baude util-linux-2.13.1.ebuild: + stable ppc64, bug 215371 + + 30 Mar 2008; Brent Baude util-linux-2.13.1.ebuild: + stable ppc, bug 215371 + + 29 Mar 2008; Mike Frysinger util-linux-2.13.1.ebuild, + util-linux-9999.ebuild: + Add support for USE=unicode and USE=slang #208976. Update loop-aes cruft + #206331. + + 26 Feb 2008; Mike Frysinger util-linux-2.13.1.ebuild: + Add ioprio workaround back as it hasnt been properly fixed in this release + #211573 by Mike Hammill. + + 01 Feb 2008; Diego Pettenò + files/crypto-loop.initd: + Update init script to work with current development version of OpenRC + (checkroot -> root; checkfs -> fsck). + + 20 Jan 2008; Mike Frysinger + util-linux-2.13.0.1.ebuild, util-linux-2.13.1.ebuild: + Document USE=crypt -> USE=loop-aes transition #206747 by Jan Schubert. + +*util-linux-2.13.1 (16 Jan 2008) + + 16 Jan 2008; Mike Frysinger +util-linux-2.13.1.ebuild: + Version bump. + +*util-linux-2.13.0.1 (12 Jan 2008) + + 12 Jan 2008; Mike Frysinger + -util-linux-2.13-r3.ebuild, +util-linux-2.13.0.1.ebuild: + Bump source tarball so that loop-aes applies again #205529 by Ryan Tandy. + Otherwise, there is no functional changes from previous version. + + 12 Jan 2008; Mike Frysinger + +files/util-linux-2.13-uclibc.patch, util-linux-2.13-r2.ebuild, + util-linux-2.13-r3.ebuild: + Fixup building on uClibc #203711. + + 11 Jan 2008; Richard Freeman util-linux-2.13-r2.ebuild: + amd64 stable - #202181 + + 10 Jan 2008; Raúl Porcel util-linux-2.13-r2.ebuild: + alpha/ia64 stable wrt #205101 + + 09 Jan 2008; Brent Baude util-linux-2.13-r2.ebuild: + Marking util-linux-2.13-r2 ppc64 for bug 202181 + + 09 Jan 2008; Brent Baude util-linux-2.13-r2.ebuild: + Marking util-linux-2.13-r2 ppc for bug 202181 + + 09 Jan 2008; Markus Meier util-linux-2.13-r2.ebuild: + x86 stable, bug #202181 + + 09 Jan 2008; Ferris McCormick + util-linux-2.13-r2.ebuild: + Sparc stable --- Bug #202181 --- utilities seem fine. + + 09 Jan 2008; Jeroen Roovers util-linux-2.13-r2.ebuild: + Stable for HPPA (bug #202181). + +*util-linux-2.13-r3 (14 Dec 2007) + + 14 Dec 2007; Mike Frysinger + +files/util-linux-2.13-hwclock-rtc.patch, + +files/util-linux-2.13-losetup-P.patch, +util-linux-2.13-r3.ebuild: + Fix from upstream for rtc/hwclock handling #179780 and fix for losetup -P + with loop-aes #201981. + + 19 Nov 2007; Joshua Kinard util-linux-2.12r-r8.ebuild: + Stable on mips, per #195390. + + 12 Oct 2007; Tobias Scherbaum + util-linux-2.12r-r8.ebuild: + ppc stable, bug #195390 + + 11 Oct 2007; Raúl Porcel util-linux-2.12r-r8.ebuild: + alpha/ia64 stable wrt security #195390 + + 11 Oct 2007; Tom Gall util-linux-2.12r-r8.ebuild: + stable on ppc64, bug #195390 + + 11 Oct 2007; Jeroen Roovers util-linux-2.12r-r8.ebuild: + Stable for SPARC (bug #195390). + + 11 Oct 2007; Steve Dibb util-linux-2.12r-r8.ebuild: + amd64 stable, security bug 195390 + + 11 Oct 2007; Jeroen Roovers util-linux-2.12r-r8.ebuild: + Stable for HPPA (bug #195390). + + 10 Oct 2007; Christian Faulhammer + util-linux-2.12r-r8.ebuild: + stable x86, security bug 195390 + +*util-linux-2.13-r2 (05 Oct 2007) + + 05 Oct 2007; Mike Frysinger + +files/util-linux-2.13-script-SIGWINCH.patch, + +files/util-linux-2.13-setuid-checks.patch, files/crypto-loop.initd, + +util-linux-2.13-r2.ebuild: + 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. + +*util-linux-2.12r-r8 (05 Oct 2007) + + 05 Oct 2007; Mike Frysinger + +files/util-linux-2.13-setuid-checks.patch, +util-linux-2.12r-r8.ebuild: + Add security fix from upstream. + + 04 Sep 2007; Mike Frysinger + +files/util-linux-2.13-ioprio-syscalls.patch, util-linux-2.13-r1.ebuild: + Stub out ioprio syscalls on dated systems #190613 by Panagiotis Christopoulos. + + 03 Sep 2007; Mike Frysinger + util-linux-2.12r-r7.ebuild: + Delete default LDFLAGS setting to -s #191112 by Andrew Ross. + +*util-linux-2.13-r1 (03 Sep 2007) + + 03 Sep 2007; Mike Frysinger + +files/util-linux-2.13-locale.patch, +util-linux-2.13-r1.ebuild: + Fix up building with NLS disabled #191111 by Jason S. and fix locale dir + setting #190895 by Benno Schulenberg. + +*util-linux-2.13 (28 Aug 2007) + + 28 Aug 2007; Mike Frysinger +util-linux-2.13.ebuild: + Version bump. + +*util-linux-2.13_rc3 (10 Aug 2007) + + 10 Aug 2007; Mike Frysinger + +util-linux-2.13_rc3.ebuild: + Version bump. + + 23 Jul 2007; Mike Frysinger + util-linux-2.12r-r7.ebuild: + Punt bindnow-flags usage. + +*util-linux-2.13_rc2 (17 Jul 2007) + + 17 Jul 2007; Mike Frysinger + +util-linux-2.13_rc2.ebuild: + Version bump. + + 09 Jul 2007; Mike Frysinger + util-linux-2.12r-r7.ebuild: + Pull in setarch for amd64/mips/ppc/sparc. + +*util-linux-2.13_rc1 (07 Jul 2007) + + 07 Jul 2007; Mike Frysinger + +util-linux-2.13_rc1.ebuild: + Version bump. + + 15 Jun 2007; Joe Peterson util-linux-2.12r-r7.ebuild: + Add blocker: sys-apps/more (since both provide the "more" pager) + + 13 Jun 2007; Mike Frysinger + util-linux-2.12r-r7.ebuild, util-linux-9999.ebuild: + Add /usr/bin/arch symlink needed by autotools. + + 19 May 2007; Raúl Porcel util-linux-2.12r-r7.ebuild: + alpha stable wrt #178444 + + 19 May 2007; Markus Rothe util-linux-2.12r-r7.ebuild: + Stable on ppc64; bug #178444 + + 16 May 2007; Joseph Jezak util-linux-2.12r-r7.ebuild: + Marked ppc stable for bug #178444. + + 16 May 2007; Daniel Gryniewicz + util-linux-2.12r-r7.ebuild: + Marked stable on amd64 for bug #178444 + + 15 May 2007; Jeroen Roovers util-linux-2.12r-r7.ebuild: + Stable for HPPA (bug #178444). + +*util-linux-2.12r-r7 (13 May 2007) + + 13 May 2007; Mike Frysinger + +util-linux-2.12r-r7.ebuild: + Delete nfs(5) man page #178348 by Diego Petteno. + + 11 May 2007; Joshua Kinard util-linux-2.12r-r6.ebuild: + Stable on mips. + + 23 Apr 2007; Gustavo Zacarias + util-linux-2.12r-r6.ebuild: + Stable on sparc + + 21 Apr 2007; Raúl Porcel util-linux-2.12r-r6.ebuild: + ia64 + x86 stable + +*util-linux-9999 (13 Apr 2007) + + 13 Apr 2007; Mike Frysinger +util-linux-9999.ebuild: + Testing ebuild for current git version. + + 03 Mar 2007; Mike Frysinger + files/util-linux-2.12r-HAVE_asm_page_h.patch, + +files/util-linux-2.12r-HAVE_asm_page_h-loop-aes.patch, + util-linux-2.12r-r6.ebuild: + Split the asm/page.h patch to account for USE=-crypt #169133 by Milan Barta. + +*util-linux-2.12r-r6 (03 Mar 2007) + + 03 Mar 2007; Mike Frysinger + +util-linux-2.12r-r6.ebuild, util-linux-2.13_pre7.ebuild: + Update loop-aes version #168174 by Alon Bar-Lev. + + 03 Mar 2007; Mike Frysinger + +files/util-linux-2.12r-HAVE_asm_page_h.patch, util-linux-2.12r-r5.ebuild: + Fix building when asm/page.h is not available #168278 by Daniel Black. + + 31 Jan 2007; Markus Rothe util-linux-2.12r-r5.ebuild: + Stable on ppc64; bug #164011 + + 29 Jan 2007; Gustavo Zacarias + util-linux-2.12r-r5.ebuild: + Stable on sparc wrt #164011 + + 27 Jan 2007; Jeroen Roovers util-linux-2.12r-r5.ebuild: + Stable for HPPA (bug #164011). + + 27 Jan 2007; Joseph Jezak util-linux-2.12r-r5.ebuild: + Marked ppc stable for bug #164011. + + 27 Jan 2007; Raúl Porcel util-linux-2.12r-r5.ebuild: + x86 stable wrt bug 164011 + + 27 Jan 2007; Alexander H. Færøy + util-linux-2.12r-r5.ebuild: + Stable on Alpha; bug #164011 + + 27 Jan 2007; Alexander H. Færøy + util-linux-2.12r-r5.ebuild: + Stable on MIPS; bug #164011 + + 27 Jan 2007; Olivier Crête + util-linux-2.12r-r5.ebuild: + Stable on amd64 per bug #164011 + + 31 Oct 2006; Mike Frysinger + +files/util-linux-2.12r-no-_syscall.patch, util-linux-2.12r-r5.ebuild: + Fix building with linux-headers-2.6.18+ as _syscall#() no longer exists + #150852 by Mario Fetka. + +*util-linux-2.12r-r5 (28 Oct 2006) + + 28 Oct 2006; Mike Frysinger + +util-linux-2.12r-r5.ebuild: + Version bump loop-aes support #153140 by Alon Bar-Lev. + + 04 Sep 2006; Saleem Abdulrasool + util-linux-2.12r-r4.ebuild: + stable on x86 (bug #144712) + + 29 Aug 2006; Bryan Østergaard + util-linux-2.12r-r4.ebuild: + Stable on alpha. + + 23 Aug 2006; util-linux-2.12r-r4.ebuild: + stable on ppc (Bug #144712) + + 23 Aug 2006; util-linux-2.12r-r4.ebuild: + Stable on amd64 + + 22 Aug 2006; Markus Rothe util-linux-2.12r-r4.ebuild: + Stable on ppc64; bug #144712 + +*util-linux-2.13_pre7 (02 Jul 2006) + + 02 Jul 2006; Mike Frysinger + +util-linux-2.13_pre7.ebuild: + Version bump #138498 by David Watzke. + + 29 Jun 2006; Gustavo Zacarias + util-linux-2.12r-r4.ebuild: + Stable on sparc + + 23 May 2006; -util-linux-2.12i-r1.ebuild, + -util-linux-2.12q-r3.ebuild, -util-linux-2.12r-r2.ebuild: + - removed obsolete vuln ebuilds + + 27 Apr 2006; Alec Warner + files/digest-util-linux-2.12q-r3, files/digest-util-linux-2.12r-r3, + Manifest: + Fixing SHA256 digest, pass four + + 29 Apr 2006; Joshua Kinard util-linux-2.12r-r4.ebuild: + Marked stable on mips. + + 21 Apr 2006; Stephen P. Becker + +files/util-linux-2.12-mips-lseek.patch, util-linux-2.12r-r3.ebuild, + util-linux-2.12r-r4.ebuild: + use lseek instead of llseek for mips, and mark -r3 stable on mips + + 17 Apr 2006; Markus Rothe util-linux-2.12r-r3.ebuild: + Stable on ppc64; bug #129540 + + 12 Apr 2006; Emanuele Giaquinta + util-linux-2.12r-r3.ebuild: + Stable on ppc; bug #129540 + + 12 Apr 2006; Bryan Østergaard + util-linux-2.12r-r3.ebuild: + Stable on sparc wrt #129540 + + 11 Apr 2006; Patrick McLean + util-linux-2.12r-r3.ebuild: + Stable on amd64 (bug 129540) + + 11 Apr 2006; Joshua Jackson + util-linux-2.12r-r3.ebuild: + Stable on x86; bug #129540 + +*util-linux-2.12r-r4 (11 Apr 2006) + + 11 Apr 2006; Mike Frysinger + +files/util-linux-2.12r-umount-no-special.patch, + +util-linux-2.12r-r4.ebuild: + Update loop aes #129496 by Alon Bar-Lev and fix building on sparc/arm + systems with gcc-4.1 by ignoring the bogus code. + + 13 Mar 2006; Diego Pettenò + util-linux-2.13_pre6.ebuild: + Drop pam support for 2.13 as done for 2.12, leave all up to shadow. + + 12 Mar 2006; Diego Pettenò + util-linux-2.12r-r3.ebuild: + Drop pam useflag and dependency over pam-login, as all the stuff that might + use pam is provided by shadow on modern systems. + + 07 Mar 2006; Mike Frysinger + +files/util-linux-2.12r-umount-nosysfs.patch, util-linux-2.12r-r3.ebuild: + Grab patch from Fedora. + + 24 Feb 2006; Mike Frysinger + +files/util-linux-2.13-no-nls.patch, util-linux-2.13_pre6.ebuild: + Fix building with USE=-nls #123826 by Chris Fairles. + + 09 Feb 2006; Joshua Kinard util-linux-2.12r-r2.ebuild: + Marked stable on mips for Bug #120111. + + 29 Jan 2006; Mike Frysinger + util-linux-2.13_pre6.ebuild: + Block schedutils package since its been integrated. + +*util-linux-2.13_pre6 (25 Jan 2006) + + 25 Jan 2006; Mike Frysinger + +util-linux-2.13_pre6.ebuild: + Add a pre version for people to play with #119734 by Matthew Schick. + + 24 Jan 2006; Jose Luis Rivero + util-linux-2.12r-r2.ebuild: + Stable on alpha wrt bug #120111 + + 24 Jan 2006; Ian Leitch util-linux-2.12r-r2.ebuild: + Stable on x86 (bug #120111). + + 24 Jan 2006; Markus Rothe util-linux-2.12r-r2.ebuild: + Stable on ppc64; bug #120111 + + 24 Jan 2006; Luca Barbato util-linux-2.12r-r2.ebuild: + Marked ppc + + 24 Jan 2006; Gustavo Zacarias + util-linux-2.12r-r2.ebuild: + Stable on sparc wrt #120111 + + 23 Jan 2006; Luis Medinas + util-linux-2.12r-r2.ebuild: + Stable on amd64. See bug #120111. + +*util-linux-2.12r-r3 (23 Jan 2006) + + 23 Jan 2006; Mike Frysinger + +util-linux-2.12r-r3.ebuild: + Version bump the loop-aes support #119846 by Alon Bar-Lev. + + 27 Dec 2005; Bryan Østergaard + util-linux-2.12r-r2.ebuild: + Use bindnow-flags function instead of -Wl,-z,now. + + 25 Dec 2005; Joshua Kinard util-linux-2.12r-r1.ebuild: + Marked stable on mips. + + 21 Dec 2005; Marcus D. Hanwell + util-linux-2.12r-r1.ebuild: + Stable on amd64. + + 18 Dec 2005; Markus Rothe util-linux-2.12r-r1.ebuild: + Stable on ppc64 + +*util-linux-2.12r-r2 (13 Dec 2005) + + 13 Dec 2005; Mike Frysinger + +files/util-linux-2.12r-cal-dumb-terminal.patch, + +util-linux-2.12r-r2.ebuild: + Fix cal display with dumb terminals #112406 by Chris Smith. + + 11 Dec 2005; Michael Hanselmann + util-linux-2.12r-r1.ebuild: + Stable on ppc. + + 09 Dec 2005; Gustavo Zacarias + util-linux-2.12r-r1.ebuild: + Stable on sparc + + 09 Dec 2005; Mark Loeser util-linux-2.12r-r1.ebuild: + Stable on x86; bug #114883 + + 04 Dec 2005; Mike Frysinger + +files/util-linux-2.12r-cracklib-words.patch, util-linux-2.12r-r1.ebuild: + Fall back to cracklib-{words,small} if the words dict doesnt exist #114416. + +*util-linux-2.12r-r1 (15 Oct 2005) + + 15 Oct 2005; + +files/util-linux-2.12r-fdisk-frame-pointers.patch, + +util-linux-2.12r-r1.ebuild: + - bug #108988 fdisk is unable to always lseek when omiting frame pointers + +*util-linux-2.12r (05 Oct 2005) + + 05 Oct 2005; Mike Frysinger + -util-linux-2.12q-r2.ebuild, +util-linux-2.12r.ebuild: + Version bump #108042 by Alon Bar-Lev. + + 20 Sep 2005; Hardave Riar util-linux-2.12q-r3.ebuild: + Stable on mips, bug #105805. + + 19 Sep 2005; Michael Hanselmann + util-linux-2.12q-r3.ebuild: + Stable on hppa and ppc. + + 19 Sep 2005; Fernando J. Pereda + util-linux-2.12q-r3.ebuild: + stable on alph, wrt bug #105805 + + 19 Sep 2005; Mark Loeser util-linux-2.12q-r3.ebuild: + Stable on x86 + + 19 Sep 2005; Jason Wever util-linux-2.12q-r3.ebuild: + Stable on SPARC wrt security bug #105805. + + 19 Sep 2005; Luis Medinas + util-linux-2.12q-r3.ebuild: + Marked Stable on amd64. Bug #105805. + + 18 Sep 2005; Markus Rothe util-linux-2.12q-r3.ebuild: + Stable on ppc64 (bug #105805) + +*util-linux-2.12q-r3 (14 Sep 2005) + + 14 Sep 2005; Martin Schlemmer + +files/util-linux-2.12q-use-update_mtab-for-fake.patch, + +util-linux-2.12q-r3.ebuild: + Fix 'mount -f' adding dups in mtab. Bump rev for security fix to umount + (bug #105805). + + 14 Sep 2005; Martin Schlemmer + files/util-linux-2.12q-update_mtab-fixes.patch: + Do not leak memory. + + 14 Sep 2005; Martin Schlemmer + files/util-linux-2.12q-update-mtab-when-moving.patch: + Use xstrdup() instead of strdup() to catch out of memory issues. + + 14 Sep 2005; Martin Schlemmer + +files/util-linux-2.12q-update_mtab-fixes.patch, + util-linux-2.12q-r2.ebuild: + Fix various issues with update_mtab(), causing 'mount -f' to not update mtab + as expected, bug #105641. + + 14 Sep 2005; Mike Frysinger + +files/util-linux-2.12q-umount-dont-write-mtab-with-remount.patch, + util-linux-2.12q-r2.ebuild: + Fix by Derick Swanepoel to have umount respect -n when using -r #98675. + + 13 Sep 2005; Mike Frysinger + +files/util-linux-2.12-only-root-can-remount.patch, + util-linux-2.12i-r1.ebuild, util-linux-2.12q-r2.ebuild: + Fix small security issue with umount and remount #105805. + +*util-linux-2.12q-r2 (13 Sep 2005) + + 13 Sep 2005; Martin Schlemmer + +files/util-linux-2.12q-more-fake-checks-v2.patch, + +util-linux-2.12q-r2.ebuild: + Fix 'mount -f' not updating /etc/mtab, bug #105641. + + 05 Sep 2005; Mike Frysinger + +files/util-linux-2.12q-update-mtab-when-moving.patch, + util-linux-2.12q-r1.ebuild: + Fix `mount --move` mtab updating #104697 by Jakub Jozwicki. + + 03 Sep 2005; Mike Frysinger + +files/util-linux-2.12q-more-fake-checks.patch, + util-linux-2.12q-r1.ebuild: + Add some fixes for -f handling. + + 18 Aug 2005; Mike Frysinger + +files/util-linux-2.12q-dont-umask.patch, util-linux-2.12q-r1.ebuild: + Dont force umask to 022 all the time #93671 by Clock / Daniel Drake. + +*util-linux-2.12q-r1 (13 Jun 2005) + + 13 Jun 2005; Mike Frysinger + +util-linux-2.12q-r1.ebuild: + Update loop-aes patch #95939 by Alon Bar-Lev. + + 30 Apr 2005; Mike Frysinger + +files/util-linux-2.12q-i18n-update.patch, util-linux-2.12q.ebuild: + Fix typo in french translation #75693 by DELACOUR Guillaume. + + 29 Apr 2005; Mike Frysinger +files/crypto-loop.confd, + +files/crypto-loop.initd, util-linux-2.12i-r1.ebuild, + util-linux-2.12p-r1.ebuild, util-linux-2.12q.ebuild: + Move the crypto-loop script from baselayout to here. + +*util-linux-2.12q (21 Feb 2005) + + 21 Feb 2005; Mike Frysinger +util-linux-2.12q.ebuild: + Version bump. + +*util-linux-2.12p-r1 (06 Feb 2005) + + 06 Feb 2005; Mike Frysinger + files/util-linux-2.12p-swapon-check-symlinks.patch: + Touchup the swapon patch to work properly. + + 14 Jan 2005; Jeremy Huddleston + util-linux-2.12i-r1.ebuild, util-linux-2.12p.ebuild: + Added virtual/os-headers to DEPEND. It was missing and as such util-linux + was trying to update before linux-headers... thus missing the fix I placed + in 2.6.8.1-r4 for 2.12p. + + 11 Jan 2005; Stephen P. Becker + util-linux-2.12i-r1.ebuild: + stable on mips + + 10 Jan 2005; Aron Griffis util-linux-2.12i-r1.ebuild: + stable on alpha (needed now that 2.12-r5 is pmasked) + +*util-linux-2.12p (09 Jan 2005) + + 09 Jan 2005; Mike Frysinger + +files/util-linux-2.12p-fat-LABEL-support.patch, + +files/util-linux-2.12p-swapon-check-symlinks.patch, + +util-linux-2.12p.ebuild: + Version bump. Change default crypto to loop-aes (since its actually + maintained upstream) #69082 by Arnvid L. Karstad. + + 09 Jan 2005; Jason Wever util-linux-2.12i-r1.ebuild: + Stable on sparc, resolves bug #77295. + + 20 Dec 2004; Dylan Carlson + util-linux-2.12i-r1.ebuild: + Stable on amd64. + + 17 Dec 2004; Markus Rothe util-linux-2.12i-r1.ebuild: + Stable on ppc64 + + 15 Nov 2004; Mike Frysinger + util-linux-2.12i-r1.ebuild: + Only include compiler.h if using 2.6 headers #71330. + +*util-linux-2.12i-r1 (14 Nov 2004) + + 14 Nov 2004; Mike Frysinger + +util-linux-2.12i-r1.ebuild, -util-linux-2.12i.ebuild: + Disable aes-loop and forward port the cryptoapi patch. Devices encrypted + with the old cryptoapi arent compatible with the aes-loop work. + +*util-linux-2.12i (11 Nov 2004) + + 11 Nov 2004; Mike Frysinger + files/util-linux-2.12b-pic.patch, + +files/util-linux-2.12i-fat-LABEL-support.patch, + +files/util-linux-2.12i-ignore-managed.patch, + +files/util-linux-2.12i-nfsv4.patch, +files/util-linux-2.12i-pic.patch, + +files/util-linux-2.12i-swapon-check-symlinks.patch, + +util-linux-2.12i.ebuild: + Version bump. Add loop-aes patch (#24458 / #25192). Punt gcloop/cryptoapi + patches. Add patch to ignore managed/kudzu options #70873. + +*util-linux-2.12b-r1 (30 Oct 2004) + + 30 Oct 2004; Mike Frysinger + +files/util-linux-swapon-check-symlinks.patch, + +util-linux-2.12b-r1.ebuild: + Add a fallback routine to swapon -a that checks symlinks #69162. + + 15 Sep 2004; Martin Schlemmer util-linux-2.12b.ebuild: + Add >=sys-fs/e2fsprogs-1.34 dependency (blkid_known_fstype in + /usr/include/blkid/blkid.h introduced in 1.34). + Pointed out by Maximilian Decker . + + 04 Sep 2004; files/util-linux-2.12b-pic.patch, + util-linux-2.12-r4.ebuild, util-linux-2.12b.ebuild: + updated util-linux-2.12b-pic.patch to fix BREG problem that just showed up the + the new partx to util-linux. use non-lazy bindings for +s apps installed by + util-linux + +*util-linux-2.12b (03 Sep 2004) + + 03 Sep 2004; Martin Schlemmer + +files/util-linux-2.12b-fat-LABEL-support.patch, + +files/util-linux-2.12b-gcloop-with-crypt.patch, + +files/util-linux-2.12b-gcloop.patch, +files/util-linux-2.12b-pic.patch, + +util-linux-2.12b.ebuild: + Update version; also build partx. SELinux users should erify support, as it + seems it was merged upstream. + + 01 Jul 2004; Jeremy Huddleston + util-linux-2.11z-r8.ebuild, util-linux-2.11z-r9.ebuild, + util-linux-2.12-r2.ebuild, util-linux-2.12-r3.ebuild, + util-linux-2.12-r4.ebuild, util-linux-2.12-r5.ebuild: + virtual/glibc -> virtual/libc + + 30 Jun 2004; Aron Griffis util-linux-2.12-r5.ebuild: + stable on alpha and ia64 + + 28 Jun 2004; Luca Barbato util-linux-2.12-r5.ebuild: + Marked ppc + + 27 Jun 2004; Aron Griffis util-linux-2.11z-r8.ebuild, + util-linux-2.11z-r9.ebuild, util-linux-2.12-r2.ebuild, + util-linux-2.12-r3.ebuild, util-linux-2.12-r4.ebuild: + QA - fix use invocation + + 16 Jun 2004; Daniel Black + util-linux-2.12-r4.ebuild, util-linux-2.12-r5.ebuild: + uclibc fixes thanks to Peter S. Mazinger + + 02 Jun 2004; Travis Tilley util-linux-2.12-r5.ebuild: + stable on amd64 + + 08 May 2004; util-linux-2.12-r4.ebuild, + util-linux-2.12-r5.ebuild, files/util-linux-2.12-swapon-unistd.patch: + access() is a macro which uses R_OK. However R_OK is not defined on sparc + during a bootstrap unless we actually include unistd.h + + 19 Apr 2004; Travis Tilley util-linux-2.11z-r9.ebuild, + util-linux-2.12-r2.ebuild, util-linux-2.12-r3.ebuild, + util-linux-2.12-r4.ebuild: + filtering -fPIC on amd64 is a dumb idea + + 07 Apr 2004; Joshua Kinard util-linux-2.12-r5.ebuild: + Marked stable on mips. + + 02 Apr 2004; util-linux-2.12-r5.ebuild: + util-linux gives additional -fPIC errors on amd64 with -pie. Bugzilla Bug 46366 + + 01 Apr 2004; Jon Portnoy util-linux-2.12-r4.ebuild : + Stable on AMD64. + + 09 Mar 2004; util-linux-2.12-r4.ebuild: + stable on alpha and ia64 + + 07 Mar 2004; Joshua Kinard util-linux-2.12-r4.ebuild: + Marked stable on mips. + + 27 Feb 2004; Seemant Kulleen + util-linux-2.11z-r8.ebuild: + move the filter-flags statement into src_compile + + 22 Feb 2004; Daniel Ahlberg util-linux-2.12-r5.ebuild: + Add installation of rdev on amd64. Closing #35902. + +*util-linux-2.12-r5 (17 Feb 2004) + + 17 Feb 2004; Luca Barbato util-linux-2.12-r5.ebuild, + files/util-linux-2.12-gcloop.patch: + Added support for gcloop in losetup + + 09 Feb 2004; util-linux-2.12-r4.ebuild: + stable on hppa and sparc + + 06 Feb 2004; Martin Schlemmer util-linux-2.12-r4.ebuild: + Bump to stable for x86. + + 03 Feb 2004; Bartosch Pixa + util-linux-2.12-r3.ebuild: + set ppc in keywords + +*util-linux-2.12-r4 (30 Dec 2003) + + 30 Dec 2003; Martin Schlemmer util-linux-2.12-r4.ebuild, + files/util-linux-2.12-fat-LABEL-support.patch: + Add support to read fat/fat32 labels, bug #36722. + + 11 Dec 2003; Mike Frysinger util-linux-2.12-r3.ebuild : + Add patch to compile against 2.6.x headers #31286. + +*util-linux-2.11z-r9 (06 Dec 2003) +*util-linux-2.11z-r8 (08 Dec 2003) +*util-linux-2.12-r2 (08 Dec 2003) +*util-linux-2.12-r3 (08 Dec 2003) + + 06 Dec 2003; Seemant Kulleen + util-linux-2.11z-r6.ebuild, util-linux-2.11z-r7.ebuild, + util-linux-2.11z-r8.ebuild, util-linux-2.11z-r9.ebuild, + util-linux-2.12-r1.ebuild, util-linux-2.12-r2.ebuild, + util-linux-2.12-r3.ebuild, util-linux-2.12.ebuild, + files/util-linux-no-kill.patch: + /bin/kill used to be part of this package. procps will now be the only one + providing that + +*util-linux-2.12-r1 (02 Dec 2003) + + 02 Dec 2003; Brad House util-linux-2.12-r1.ebuild: + Add cryptoapi support to util-linux-2.12 + Mailing list post with info: + http://www.kerneli.org/pipermail/cryptoapi-devel/2003-September/000634.html + Follow thread for usage. + + 28 Oct 2003; Chris PeBenito util-linux-2.12.ebuild, + files/util-linux-2.12-selinux.diff.bz2: + Add new API SELinux patch + + 09 Oct 2003; Alexander Gabert util-linux-2.11z-r6.ebuild: + removed hardened-gcc appendix flags again + + 03 Oct 2003; Alexander Gabert util-linux-2.11z-r6.ebuild: + added libgcc.a problem evasion and removed overwriting of LDFLAGS in ebuild + + 20 Sep 2003; Alexander Gabert util-linux-2.11z-r6.ebuild: + removed check again, only caused by problems with __libc_csu in hardened-gcc + + 20 Sep 2003; Alexander Gabert util-linux-2.11z-r6.ebuild: + added yet_exec exclusion flag for hardened-gcc + + 19 Sep 2003; Seemant Kulleen + util-linux-2.11z-r6.ebuild, util-linux-2.11z-r7.ebuild, + util-linux-2.12.ebuild: + fix for USE=static, thanks to: Sascha Silbe + in bug #29160 + + 10 Aug 2003; Martin Schlemmer + util-linux-2.11z-r6.ebuild: + Mark stable. + +*util-linux-2.12 (24 Jul 2003) + + 28 Jul 2003; util-linux-2.12.ebuild: + util-linux was overriding all LDFLAGS for when use static was enabled, please + dont export LDFLAGS=-static alone in this or any other packages + + 24 Jul 2003; Martin Schlemmer util-linux-2.12.ebuild: + New version, bug #24880. + + 21 Jul 2003; util-linux-2.11z-r7.ebuild: + verified -fPIC works with this pkg on x86, sparc64, ppc and hppa + + 20 Jul 2003; Martin Schlemmer + util-linux-2.11z-r7.ebuild, files/util-linux-2.11z-01-nfsv4-crypt.dif: + Fix NFS4 patch to work with crypt in USE. + +*util-linux-2.11z-r7 (20 Jul 2003) + + 04 Aug 2003; Joshua Kinard util-linux-2.11z-r7.ebuild: + Changed ~mips to mips in KEYWORDS + Added mips to the list of archs that can use -fPIC + + 20 Jul 2003; Martin Schlemmer + util-linux-2.11z-r7.ebuild, files/util-linux-2.11z-01-nfsv4.dif: + Add NFS4 support (kernel 2.5/2.6). Notified by Michael Locher + . + +*util-linux-2.11z-r6 (17 Jul 2003) + + 17 Jul 2003; Martin Schlemmer + util-linux-2.11z-r6.ebuild, + files/util-linux-2.11z-agetty-domainname-option.patch: + Add the O option to agetty to display DNS domainname in the issue file, thanks + to Marius Mauch , bug #22275. + + 13 Jul 2003; util-linux-2.11z-r5.ebuild: + verified -fPIC works with this pkg on sparc,ppc and hppa + +*util-linux-2.11z-r5 (12 Jul 2003) + + 12 Jul 2003; util-linux-2.11z-r5.ebuild, + files/util-linux-2.11z-pic.patch: + Added defines for fPIC code to avoid the use the of old __NR* inline assembly + construction of syscalls + + 05 Jul 2003; Luca Barbato util-linux-2.11z-r4.ebuild: + Keyworded ppc + + 29 Jun 2003; Chris PeBenito + util-linux-2.11z-r4.ebuild: + Remove selinux stuff, as its no longer needed. Using pam-login again. + + 26 Jun 2003; Joshua Brindle util-linux-2.11z-r4.ebuild: + Added -e s:SUIDMODE=.*4755:SUIDMODE=4711: for more secure suid permissions + + 24 Jun 2003; Aron Griffis util-linux-2.11z-r4.ebuild: + Mark stable on alpha + +*util-linux-2.11z-r4 (01 Jun 2003) + + 06 Jul 2003; Guy Martin util-linux-2.11z-r4.ebuild : + Marked stable on hppa. + + 22 Jun 2003; Joshua Kinard util-linux-2.11z-r4.ebuild: + Changed ~sparc & ~mips to sparc & mips + + 09 Jun 2003; Nick Hadaway util-linux-2.11z-r4.ebuild: + If pam was disabled in IUSE, src_unpack would fail. Fixed the logic. + + 01 Jun 2003; Brandon Low util-linux-2.11z-r4.ebuild: + Add enhancement to script command from bug 21147 + + 26 May 2003; Patrick Kursawe + util-linux-2.11z-r3.ebuild: + category was missing with sed dependency + + 25 May 2003; Martin Holzer util-linux-2.11o-r3.ebuild, + util-linux-2.11y.ebuild, util-linux-2.11z-r1.ebuild, + util-linux-2.11z-r2.ebuild, util-linux-2.11z-r3.ebuild: + now uses mirror://kernel + + 25 May 2003; Seemant Kulleen + util-linux-2.11z-r3.ebuild: + pam fix + +*util-linux-2.11z-r3 (24 May 2003) + + 29 May 2003; Joshua Brindle util-linux-2.11z-r3.ebuild: + fixed selinux dependancy issue + + 24 May 2003; Joshua Brindle util-linux-2.11z-r3.ebuild: + added support for pam optionally + +*util-linux-2.11z-r2 (24 Apr 2003) + + 24 Apr 2003; Brandon Low util-linux-2.11z-r2.ebuild: + Several changes, including support for USE=static the use of sed -i, proper + die messages, econf instead of ./configure. Please test this and let me know + if there are any regressions + + See bug 19597 + +*util-linux-2.11z (03 Feb 2003) + + 22 Apr 2003; Joshua Kinard util-linux-2.11z-r1.ebuild: + added patch from util-linux maintainer that makes fdisk function correctly on mips + patch only gets added on "mips" archs, but will be standard in util-linux 2.12 + + 23 Mar 2003; Joshua Brindle util-linux-2.11z-r1.ebuild: + added selinux support, thanks sindian + + 27 Feb 2003; Jan Seidel util-linux-2.11z-r1.ebuild : + Mark as unstable for mips + + 24 Feb 2003; Nicholas Wourms util-linux-2.11z-r1.ebuild : + Mark as stable for mips. + + 21 Feb 2003; Zach Welch : + Added arm to keywords. + + 09 Feb 2003; Guy Martin : + Added hppa to keywords. + + 07 Feb 2003; Jon Portnoy + util-linux-2.11z-r1.ebuild files/no-symlink-resolve.patch : + + Added a patch to keep mount from resolving symlinks, which + makes the output of programs like `df` unreadable with devfs. + + 03 Feb 2003; Seemant Kulleen + util-linux-2.11z.ebuild files/util-linux-2.11z-parallel-make.patch + files/digest-util-linux-2.11z : + + Version bump. Closes bug #14955 by lone_iguana@hotmail.com + +*util-linux-2.11y (27 Oct 2002) + + 11 Jan 2003; Seemant Kulleen util-linux-2.11y.ebuild : + + filtered out -fPIC from user's CFLAGS + + 16 Dec 2002; Martin Schlemmer util-linux-2.11y.ebuild : + Fix rare failures with parallel makes. Update to use epatch. + + 10 Dec 2002; Martin Schlemmer util-linux-2.11y.ebuild : + Mark stable. + + 06 Dec 2002; Rodney Rees : + Changed sparc ~sparc keywords + + 13 Dec 2002; Martin Holzer util-linux-2.11y.ebuild files/digest-util-linux-2.11y Changelog : + Changed from tar.gz to tar.bz2 + + 29 Nov 2002; Nicholas Jones : + Latest release. Patched 2.11r crypto patch for this version. + On mirrors as util-linux-2.11y-crypt-gentoo.patch.gz + Updates are mostly cleanups. + +*util-linux-2.11w (27 Oct 2002) + + 27 Oct 2002; Donny Davies : + Chase latest release. Fixes potential root exploit. + +*util-linux-2.11u (14 Aug 2002) + + 14 Aug 2002; Daniel Ahlberg util-linux-2.11u.ebuild: + Version bump. Added patch for chfn. + +*util-linux-2.11t (05 Aug 2002) + + 05 Aug 2002; Daniel Ahlberg util-linux-2.11t.ebuild: + Version bump. + +*util-linux-2.11r-r1 (9 Jul 2002) + + 24 Jul 2002; Mark Guertin : + Added ppc to keywords + + 14 Jul 2002; Daniel Ahlberg util-linux-2.11r-r1.ebuild : + Added LICENSE, KEYWORDS. + + 14 Jul 2002; Daniel Ahlberg util-linux-2.11r.ebuild : + Added LICENSE, KEYWORDS. + + 9 Jul 2002; Daniel Ahlberg util-linux-2.11r-r1.ebuild files/digest-util-linux-2.11r-r1 : + + Crypto patch only applied if USE setting "crypt" is enabled. + +*util-linux-2.11r (7 Jul 2002) + + 7 Jul 2002; Martin Schlemmer : + + Version update. + +*util-linux-2.11o-r3 (28 Apr 2002) + + 18 Jan 2003; Jan Seidel : + Added mips to keywords + + 14 Jul 2002; Daniel Ahlberg util-linux-2.11o-r3.ebuild : + Added LICENSE, KEYWORDS. + + 28 Apr 2002; Martin Schlemmer : + + Removed /bin/login in favour of pam-login. + +*util-linux-2.11o-r2 (25 Apr 2002) + + 25 Apr 2002; Ryan Phillips util-linux-2.11o-r2.ebuild + files/digest-util-linux-2.11o-r2 + + patch util-linux with the international crypto patch. This patch + does not contain any cryptographic components. (#1607) + +*util-linux-2.11o-r1 (11 Apr 2002) + + 11 Apr 2002; Seemant Kulleen util-linux-2.11o-r1.ebuild + files/digest-util-linux-2.11o-r1 + + USE dependent nls compilation. + +*util-linux-2.11o (8 Apr 2002) + + 8 Apr 2002; M.Schlemmer util-linux-2.11o : + + /bin/login that comes with sys-apps/shadow has a bug that gives a normal + user root priviliges in certain (usually if pam_limits is used). + +*util-linux-2.11l-r1 (1 Apr 2002) + + 1 Apr 2002; Seemant Kulleen util-linux-2.11l-r1.ebuild : + + USE dependent nls compilation. + +*util-linux-2.11l (1 Feb 2002) + + 1 Feb 2002; G.Bevin ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/sys-apps/util-linux/files/crypto-loop.confd b/sys-apps/util-linux/files/crypto-loop.confd new file mode 100644 index 00000000..6a884346 --- /dev/null +++ b/sys-apps/util-linux/files/crypto-loop.confd @@ -0,0 +1,9 @@ +# /etc/conf.d/crypto-loop: Configuration file for /etc/init.d/crypto-loop + +# More info can be found in the init.d script + +# Specify loopback configurations here. The format of this file is +# shown in the following commented-out example. One line per loopback +# configuration. For possible hash values, see `man hashalot`. + +# loop=/dev/loop0 hash='' cipher=serpent keysize=256 device=/dev/system/test other='' diff --git a/sys-apps/util-linux/files/crypto-loop.initd b/sys-apps/util-linux/files/crypto-loop.initd new file mode 100755 index 00000000..853bae27 --- /dev/null +++ b/sys-apps/util-linux/files/crypto-loop.initd @@ -0,0 +1,70 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/files/crypto-loop.initd,v 1.4 2008/10/26 03:16:48 vapier Exp $ + +depend() { + if [ -x /etc/init.d/root ]; then + need root + else + need checkroot + fi + need modules + before localmount +} + +start() { + local status="0" + + ebegin "Starting crypto loop devices" + + if [ -e /etc/conf.d/crypto-loop ] ; then + egrep "^loop" /etc/conf.d/crypto-loop | \ + while read loopline ; do + eval ${loopline} + + local configured=$(awk -v MOUNT="${device}" \ + '($2 == MOUNT) { print "yes" }' /proc/mounts) + + if [ "${configured}" != "yes" ] ; then + einfo " Loop ${loop} on device ${device} (cipher ${cipher}, key size ${keysize}): " + + if [ -n "${hash}" ] ; then + /usr/sbin/hashalot -n ${keysize} ${hash} /dev/null) ; do + losetup ${loop} > /dev/null 2>&1 + if [ $? -eq 0 ] ; then + ( umount ${loop} || swapoff "${loop}" ) >/dev/null 2>&1 + if ! /sbin/losetup -d ${loop} > /dev/null 2>&1; then + ewarn "Failure deconfiguring ${loop}." + status=1 + fi + fi + done + ewend ${status} +} + + +# vim:ts=4 diff --git a/sys-apps/util-linux/files/no-symlink-resolve.patch b/sys-apps/util-linux/files/no-symlink-resolve.patch new file mode 100644 index 00000000..9d64310f --- /dev/null +++ b/sys-apps/util-linux/files/no-symlink-resolve.patch @@ -0,0 +1,11 @@ +--- old/mount/realpath.c 2003-01-28 11:57:20.000000000 -0500 ++++ new/mount/realpath.c 2003-02-07 21:56:46.000000000 -0500 +@@ -13,7 +13,7 @@ + * GNU Library Public License for more details. + */ + +-#define resolve_symlinks ++#undef resolve_symlinks + + /* + * This routine is part of libc. We include it nevertheless, diff --git a/sys-apps/util-linux/files/uclibc.diff b/sys-apps/util-linux/files/uclibc.diff new file mode 100644 index 00000000..dc6b7eda --- /dev/null +++ b/sys-apps/util-linux/files/uclibc.diff @@ -0,0 +1,96 @@ +--- configure 2008-09-10 12:13:51.000000000 +0200 ++++ configure 2009-01-03 02:08:44.000000000 +0100 +@@ -9185,6 +9185,9 @@ + int + main () + { ++#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 ++#error taskset unusable ++#endif + int test = SYS_sched_getaffinity; + ; + return 0; +--- misc-utils/scriptreplay.c 2008-08-13 19:15:45.000000000 +0200 ++++ misc-utils/scriptreplay.c 2009-01-03 03:23:11.000000000 +0100 +@@ -30,6 +30,10 @@ + + #include "nls.h" + ++#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 ++static const char *program_invocation_short_name; ++#endif ++ + #define SCRIPT_MIN_DELAY 0.0001 /* from original sripreplay.pl */ + + void __attribute__((__noreturn__)) +@@ -133,6 +137,14 @@ + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + ++#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 ++ program_invocation_short_name = strrchr(argv[0],'/'); ++ if (program_invocation_short_name) ++ program_invocation_short_name++; ++ else ++ program_invocation_short_name = argv[0]; ++#endif ++ + if (argc < 2 && argc > 4) + usage(EXIT_FAILURE); + +--- sys-utils/ldattach.c 2008-05-29 01:01:02.000000000 +0200 ++++ sys-utils/ldattach.c 2009-01-03 03:40:55.000000000 +0100 +@@ -43,6 +43,10 @@ + # define TIOCSETD 0x5423 + #endif + ++#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 ++static const char *program_invocation_short_name; ++#endif ++ + static const char *progname; + static int debug = 0; + +@@ -145,6 +149,14 @@ + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + ++#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 ++ program_invocation_short_name = strrchr(argv[0],'/'); ++ if (program_invocation_short_name) ++ program_invocation_short_name++; ++ else ++ program_invocation_short_name = argv[0]; ++#endif ++ + /* parse options */ + progname = program_invocation_short_name; + +--- sys-utils/setarch.c 2008-05-29 01:01:02.000000000 +0200 ++++ sys-utils/setarch.c 2009-01-03 02:12:22.000000000 +0100 +@@ -37,6 +37,10 @@ + #include + #include "nls.h" + ++#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 ++static const char *program_invocation_short_name; ++#endif ++ + #define set_pers(pers) ((long)syscall(SYS_personality, pers)) + + /* Option --4gb has no equivalent short option, use a non-character as a +@@ -245,6 +249,14 @@ + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + ++#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 ++ program_invocation_short_name = strrchr(argv[0],'/'); ++ if (program_invocation_short_name) ++ program_invocation_short_name++; ++ else ++ program_invocation_short_name = argv[0]; ++#endif ++ + if (argc < 1) + show_usage(_("Not enough arguments")); + diff --git a/sys-apps/util-linux/files/util-linux-2.11z-agetty-domainname-option.patch b/sys-apps/util-linux/files/util-linux-2.11z-agetty-domainname-option.patch new file mode 100644 index 00000000..d94d8b81 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.11z-agetty-domainname-option.patch @@ -0,0 +1,69 @@ +--- util-linux-2.11z/login-utils/agetty.c 2002-07-29 09:36:42.000000000 +0200 ++++ util-linux-2.11z.O/login-utils/agetty-with-dns.c 2003-07-13 04:24:01.000000000 +0200 +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + #include "xstrncpy.h" + #include "nls.h" + +@@ -122,6 +123,17 @@ + #define BUFSIZ 1024 + #endif + ++/* set a maximum length for the hostname, */ ++#ifdef HOST_NAME_MAX ++ /* defined by POSIX */ ++ #define HOSTNAME_LENGTH HOST_NAME_MAX ++#elif defined(MAXHOSTNAMELEN) ++ /* implemented in current Unix-versions */ ++ #define HOSTNAME_LENGTH MAXHOSTNAMELEN ++#else ++ #define HOSTNAME_LENGTH 500 ++#endif ++ + /* + * When multiple baud rates are specified on the command line, the first one + * we will try is the first one specified. +@@ -878,7 +890,25 @@ + printf ("%s", domainname); + } + break; +- ++ ++ case 'O': ++ { ++ char *domain = NULL; ++ char host[HOSTNAME_LENGTH + 1]; ++ struct hostent *hp = NULL; ++ ++ if (gethostname(host, HOSTNAME_LENGTH) || !(hp = gethostbyname(host))) { ++ domain = " unknown_domain"; ++ } else { ++ /* get the substring after the first . */ ++ domain = strchr(hp->h_name, '.'); ++ if (domain == NULL) ++ domain = ".(none)"; ++ } ++ printf("%s", ++domain); ++ } ++ break; ++ + case 'd': + case 't': + { +--- util-linux-2.11z/login-utils/agetty.8 1999-11-03 00:28:11.000000000 +0100 ++++ util-linux-2.11z.O/login-utils/agetty-with-dns.8 2003-07-13 04:27:17.000000000 +0200 +@@ -217,7 +217,10 @@ + Insert the nodename of the machine, also known as the hostname. + .TP + o +-Insert the domainname of the machine. ++Insert the NIS domainname of the machine. ++.TP ++O ++Insert the DNS domainname of the machine. + .TP + r + Insert the release number of the OS, eg. 1.1.9. diff --git a/sys-apps/util-linux/files/util-linux-2.11z-parallel-make.patch b/sys-apps/util-linux/files/util-linux-2.11z-parallel-make.patch new file mode 100644 index 00000000..65c5166e --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.11z-parallel-make.patch @@ -0,0 +1,11 @@ +--- util-linux-2.11y/mount/Makefile.orig 2002-12-16 17:46:29.000000000 +0000 ++++ util-linux-2.11y/mount/Makefile 2002-12-16 17:46:59.000000000 +0000 +@@ -78,7 +78,7 @@ + + sundries.o nfsmount.o nfsmount_xdr.o nfsmount_clnt.o: nfsmount.h + +-umount.o: mount_constants.h ++umount.o: mount_constants.h nfsmount.h + + mount.o mount_by_label.o mount_guess_fstype.o: linux_fs.h + diff --git a/sys-apps/util-linux/files/util-linux-2.12-mips-lseek.patch b/sys-apps/util-linux/files/util-linux-2.12-mips-lseek.patch new file mode 100644 index 00000000..3fcd5b55 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12-mips-lseek.patch @@ -0,0 +1,24 @@ +Because there is no llseek defined for mips n32, we will use lseek instead. + +--- util-linux-2.12r/fdisk/sfdisk.c.orig ++++ util-linux-2.12r/fdisk/sfdisk.c +@@ -172,7 +172,7 @@ + * Note: we use 512-byte sectors here, irrespective of the hardware ss. + */ + #undef use_lseek +-#if defined (__alpha__) || defined (__ia64__) || defined (__x86_64__) || defined (__s390x__) ++#if defined (__alpha__) || defined (__ia64__) || defined (__x86_64__) || defined (__s390x__) || defined (__mips__) + #define use_lseek + #endif + +--- util-linux-2.12r/partx/partx.c.orig ++++ util-linux-2.12r/partx/partx.c +@@ -333,7 +333,7 @@ + /* + * sseek: seek to specified sector + */ +-#if !defined (__alpha__) && !defined (__ia64__) && !defined (__s390x__) && !defined(__x86_64__) ++#if !defined (__alpha__) && !defined (__ia64__) && !defined (__s390x__) && !defined(__x86_64__) && !defined(__mips__) + #define NEED__llseek + #endif + diff --git a/sys-apps/util-linux/files/util-linux-2.12i-ignore-managed.patch b/sys-apps/util-linux/files/util-linux-2.12i-ignore-managed.patch new file mode 100644 index 00000000..b6cb5670 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12i-ignore-managed.patch @@ -0,0 +1,11 @@ +--- util-linux-2.12a/mount/mount.c.sopwith 2004-03-04 20:28:22.000000000 -0500 ++++ util-linux-2.12a/mount/mount.c 2004-07-16 16:50:18.792814782 -0400 +@@ -191,6 +191,8 @@ + { "diratime", 0, 1, MS_NODIRATIME }, /* Update dir access times */ + { "nodiratime", 0, 0, MS_NODIRATIME },/* Do not update dir access times */ + #endif ++ { "kudzu", 0, 0, 0 }, /* Silently remove this option (backwards compat use only) */ ++ { "managed", 0, 0, 0 }, /* Silently remove this option */ + { NULL, 0, 0, 0 } + }; + diff --git a/sys-apps/util-linux/files/util-linux-2.12i-nfsv4.patch b/sys-apps/util-linux/files/util-linux-2.12i-nfsv4.patch new file mode 100644 index 00000000..864449b1 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12i-nfsv4.patch @@ -0,0 +1,456 @@ +diff -ur util-linux-2.12i.orig/mount/Makefile util-linux-2.12i/mount/Makefile +--- util-linux-2.12i.orig/mount/Makefile 2004-11-11 20:03:33.032897551 -0500 ++++ util-linux-2.12i/mount/Makefile 2004-11-11 20:04:38.279986828 -0500 +@@ -29,2 +29,4 @@ + ++NFS_OBJS += nfs4mount.o ++GEN_FILES += nfs4mount.c + all: $(PROGS) +diff -ur util-linux-2.12i.orig/mount/mount.c util-linux-2.12i/mount/mount.c +--- util-linux-2.12i.orig/mount/mount.c 2004-11-11 20:03:33.033897369 -0500 ++++ util-linux-2.12i/mount/mount.c 2004-11-11 20:03:40.384555521 -0500 +@@ -810,6 +810,19 @@ + "without support for the type `nfs'")); + #endif + } ++#ifdef HAVE_NFS ++ /* ++ * NFSv4 support ++ */ ++ if (!fake && types && streq (types, "nfs4")) { ++ mnt_err = nfs4mount(spec, node, &flags, &extra_opts, &mount_opts, bg); ++ if (mnt_err) ++ return mnt_err; ++#else ++ die (EX_SOFTWARE, _("mount: this version was compiled " ++ "without support for the type `nfs4'")); ++#endif ++ } + + block_signals (SIG_BLOCK); + +diff -ur util-linux-2.12i.orig/mount/sundries.h util-linux-2.12i/mount/sundries.h +--- util-linux-2.12i.orig/mount/sundries.h 2004-11-11 20:03:33.034897186 -0500 ++++ util-linux-2.12i/mount/sundries.h 2004-11-11 20:03:40.386555156 -0500 +@@ -37,6 +37,8 @@ + #ifdef HAVE_NFS + int nfsmount (const char *spec, const char *node, int *flags, + char **orig_opts, char **opt_args, int *version, int running_bg); ++int nfs4mount (const char *spec, const char *node, int *flags, ++ char **orig_opts, char **opt_args, int running_bg); + #endif + + /* exit status - bits below are ORed */ +diff -puN /dev/null mount/nfs4_mount.h +--- /dev/null 2003-01-08 17:56:04.000000000 -0500 ++++ util-linux-2.11z-bfields/mount/nfs4_mount.h 2003-04-23 16:40:57.000000000 -0400 +@@ -0,0 +1,82 @@ ++#ifndef _LINUX_NFS4_MOUNT_H ++#define _LINUX_NFS4_MOUNT_H ++ ++/* ++ * linux/include/linux/nfs4_mount.h ++ * ++ * Copyright (C) 2002 Trond Myklebust ++ * ++ * structure passed from user-space to kernel-space during an nfsv4 mount ++ */ ++ ++/* ++ * WARNING! Do not delete or change the order of these fields. If ++ * a new field is required then add it to the end. The version field ++ * tracks which fields are present. This will ensure some measure of ++ * mount-to-kernel version compatibility. Some of these aren't used yet ++ * but here they are anyway. ++ */ ++#define NFS4_MOUNT_VERSION 1 ++ ++struct nfs_string { ++ unsigned int len; ++ const char* data; ++}; ++ ++struct nfs4_mount_data { ++ int version; /* 1 */ ++ int flags; /* 1 */ ++ int rsize; /* 1 */ ++ int wsize; /* 1 */ ++ int timeo; /* 1 */ ++ int retrans; /* 1 */ ++ int acregmin; /* 1 */ ++ int acregmax; /* 1 */ ++ int acdirmin; /* 1 */ ++ int acdirmax; /* 1 */ ++ ++ /* see the definition of 'struct clientaddr4' in RFC3010 */ ++ struct nfs_string client_addr; /* 1 */ ++ ++ /* Mount path */ ++ struct nfs_string mnt_path; /* 1 */ ++ ++ /* Server details */ ++ struct nfs_string hostname; /* 1 */ ++ /* Server IP address */ ++ unsigned int host_addrlen; /* 1 */ ++ struct sockaddr* host_addr; /* 1 */ ++ ++ /* Transport protocol to use */ ++ int proto; /* 1 */ ++ ++ /* Pseudo-flavours to use for authentication. See RFC2623 */ ++ int auth_flavourlen; /* 1 */ ++ int *auth_flavours; /* 1 */ ++}; ++ ++/* bits in the flags field */ ++/* Note: the fields that correspond to existing NFSv2/v3 mount options ++ * should mirror the values from include/linux/nfs_mount.h ++ */ ++ ++#define NFS4_MOUNT_SOFT 0x0001 /* 1 */ ++#define NFS4_MOUNT_INTR 0x0002 /* 1 */ ++#define NFS4_MOUNT_NOCTO 0x0010 /* 1 */ ++#define NFS4_MOUNT_NOAC 0x0020 /* 1 */ ++#define NFS4_MOUNT_STRICTLOCK 0x1000 /* 1 */ ++#define NFS4_MOUNT_FLAGMASK 0xFFFF ++ ++/* pseudoflavors: */ ++ ++#define RPC_AUTH_GSS_KRB5 390003 ++#define RPC_AUTH_GSS_KRB5I 390004 ++#define RPC_AUTH_GSS_KRB5P 390005 ++#define RPC_AUTH_GSS_LKEY 390006 ++#define RPC_AUTH_GSS_LKEYI 390007 ++#define RPC_AUTH_GSS_LKEYP 390008 ++#define RPC_AUTH_GSS_SPKM 390009 ++#define RPC_AUTH_GSS_SPKMI 390010 ++#define RPC_AUTH_GSS_SPKMP 390011 ++ ++#endif +diff -puN /dev/null mount/nfs4mount.c +--- /dev/null 2003-01-08 17:56:04.000000000 -0500 ++++ util-linux-2.11z-bfields/mount/nfs4mount.c 2003-04-23 17:28:54.000000000 -0400 +@@ -0,0 +1,323 @@ ++/* ++ * nfs4mount.c -- Linux NFS mount ++ * Copyright (C) 2002 Trond Myklebust ++ * ++ * This program is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2, or (at your option) ++ * any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * Note: this file based on the original nfsmount.c ++ */ ++ ++#include "../defines.h" /* for HAVE_rpcsvc_nfs_prot_h and HAVE_inet_aton */ ++ ++#include ++#include ++#undef __FD_CLR ++#undef __FD_SET ++#undef __FD_ISSET ++#undef __FD_ZERO ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++#include "sundries.h" ++ ++#include "mount_constants.h" ++#include "nfs4_mount.h" ++ ++#include "nls.h" ++ ++#ifndef NFS_PORT ++#define NFS_PORT 2049 ++#endif ++ ++static int parse_devname(char *hostdir, char **hostname, char **dirname) ++{ ++ char *s; ++ ++ if (!(s = strchr(hostdir, ':'))) { ++ fprintf(stderr, ++ _("mount: " ++ "directory to mount not in host:dir format\n")); ++ return -1; ++ } ++ *hostname = hostdir; ++ *dirname = s + 1; ++ *s = '\0'; ++ /* Ignore all but first hostname in replicated mounts ++ until they can be fully supported. (mack@sgi.com) */ ++ if ((s = strchr(hostdir, ','))) { ++ *s = '\0'; ++ fprintf(stderr, ++ _("mount: warning: " ++ "multiple hostnames not supported\n")); ++ } ++ return 0; ++} ++ ++static int fill_ipv4_sockaddr(const char *hostname, struct sockaddr_in *addr) ++{ ++ struct hostent *hp; ++ addr->sin_family = AF_INET; ++ ++ if (inet_aton(hostname, &addr->sin_addr)) ++ return 0; ++ if ((hp = gethostbyname(hostname)) == NULL) { ++ fprintf(stderr, _("mount: can't get address for %s\n"), ++ hostname); ++ return -1; ++ } ++ if (hp->h_length > sizeof(struct in_addr)) { ++ fprintf(stderr, ++ _("mount: got bad hp->h_length\n")); ++ hp->h_length = sizeof(struct in_addr); ++ } ++ memcpy(&addr->sin_addr, hp->h_addr, hp->h_length); ++ return 0; ++} ++ ++static int get_my_ipv4addr(char *ip_addr, int len) ++{ ++ char myname[1024]; ++ struct sockaddr_in myaddr; ++ ++ if (gethostname(myname, sizeof(myname))) { ++ fprintf(stderr, _("mount: can't determine client address\n")); ++ return -1; ++ } ++ if (fill_ipv4_sockaddr(myname, &myaddr)) ++ return -1; ++ snprintf(ip_addr, len, "%s", inet_ntoa(myaddr.sin_addr)); ++ ip_addr[len-1] = '\0'; ++ return 0; ++} ++ ++int nfs4mount(const char *spec, const char *node, int *flags, ++ char **extra_opts, char **mount_opts, ++ int running_bg) ++{ ++ static struct nfs4_mount_data data; ++ static char hostdir[1024]; ++ static char ip_addr[16] = "127.0.0.1"; ++ static struct sockaddr_in server_addr; ++ static int pseudoflavour = 0; ++ ++ char *hostname, *dirname, *old_opts; ++ char new_opts[1024]; ++ char *opt, *opteq; ++ char *s; ++ int val; ++ int port, bg, soft, intr; ++ int nocto, noac; ++ int retry; ++ int retval; ++ ++ retval = EX_FAIL; ++ if (strlen(spec) >= sizeof(hostdir)) { ++ fprintf(stderr, _("mount: " ++ "excessively long host:dir argument\n")); ++ goto fail; ++ } ++ strcpy(hostdir, spec); ++ if (parse_devname(hostdir, &hostname, &dirname)) ++ goto fail; ++ ++ if (fill_ipv4_sockaddr(hostname, &server_addr)) ++ goto fail; ++ if (get_my_ipv4addr(ip_addr, sizeof(ip_addr))) ++ goto fail; ++ ++ /* add IP address to mtab options for use when unmounting */ ++ s = inet_ntoa(server_addr.sin_addr); ++ old_opts = *extra_opts; ++ if (!old_opts) ++ old_opts = ""; ++ if (strlen(old_opts) + strlen(s) + 10 >= sizeof(new_opts)) { ++ fprintf(stderr, _("mount: " ++ "excessively long option argument\n")); ++ goto fail; ++ } ++ snprintf(new_opts, sizeof(new_opts), "%s%saddr=%s", ++ old_opts, *old_opts ? "," : "", s); ++ *extra_opts = xstrdup(new_opts); ++ ++ /* Set default options. ++ * rsize/wsize and timeo are left 0 in order to ++ * let the kernel decide. ++ */ ++ memset(&data, 0, sizeof(data)); ++ data.retrans = 3; ++ data.acregmin = 3; ++ data.acregmax = 60; ++ data.acdirmin = 30; ++ data.acdirmax = 60; ++ data.proto = IPPROTO_TCP; ++ ++ bg = 0; ++ soft = 0; ++ intr = 0; ++ nocto = 0; ++ noac = 0; ++ retry = 10000; /* 10000 minutes ~ 1 week */ ++ ++ /* ++ * NFSv4 specifies that the default port should be 2049 ++ */ ++ port = NFS_PORT; ++ ++ /* parse options */ ++ ++ for (opt = strtok(old_opts, ","); opt; opt = strtok(NULL, ",")) { ++ if ((opteq = strchr(opt, '='))) { ++ val = atoi(opteq + 1); ++ *opteq = '\0'; ++ if (!strcmp(opt, "rsize")) ++ data.rsize = val; ++ else if (!strcmp(opt, "wsize")) ++ data.wsize = val; ++ else if (!strcmp(opt, "timeo")) ++ data.timeo = val; ++ else if (!strcmp(opt, "retrans")) ++ data.retrans = val; ++ else if (!strcmp(opt, "acregmin")) ++ data.acregmin = val; ++ else if (!strcmp(opt, "acregmax")) ++ data.acregmax = val; ++ else if (!strcmp(opt, "acdirmin")) ++ data.acdirmin = val; ++ else if (!strcmp(opt, "acdirmax")) ++ data.acdirmax = val; ++ else if (!strcmp(opt, "actimeo")) { ++ data.acregmin = val; ++ data.acregmax = val; ++ data.acdirmin = val; ++ data.acdirmax = val; ++ } ++ else if (!strcmp(opt, "retry")) ++ retry = val; ++ else if (!strcmp(opt, "port")) ++ port = val; ++ else if (!strcmp(opt, "proto")) { ++ if (!strncmp(opteq+1, "tcp", 3)) ++ data.proto = IPPROTO_TCP; ++ else if (!strncmp(opteq+1, "udp", 3)) ++ data.proto = IPPROTO_UDP; ++ else ++ printf(_("Warning: Unrecognized proto= option.\n")); ++ } else if (!strcmp(opt, "clientaddr")) { ++ if (strlen(opteq+1) >= sizeof(ip_addr)) ++ printf(_("Invalid client address %s"), ++ opteq+1); ++ strncpy(ip_addr,opteq+1, sizeof(ip_addr)); ++ ip_addr[sizeof(ip_addr)-1] = '\0'; ++ } else if (!strcmp(opt, "sec")) { ++ if (!strncmp(opteq+1, "krb5i",5)) ++ pseudoflavour = 390004; ++ else if (!strncmp(opteq+1, "krb5p",5)) ++ pseudoflavour = 390005; ++ else if (!strncmp(opteq+1, "krb5",4)) ++ pseudoflavour = 390003; ++ else { ++ printf(_("unknown security type %s\n"), ++ opteq+1); ++ goto fail; ++ } ++ } else if (!strcmp(opt, "addr")) { ++ /* ignore */; ++ } else { ++ printf(_("unknown nfs mount parameter: " ++ "%s=%d\n"), opt, val); ++ goto fail; ++ } ++ } else { ++ val = 1; ++ if (!strncmp(opt, "no", 2)) { ++ val = 0; ++ opt += 2; ++ } ++ if (!strcmp(opt, "bg")) ++ bg = val; ++ else if (!strcmp(opt, "fg")) ++ bg = !val; ++ else if (!strcmp(opt, "soft")) ++ soft = val; ++ else if (!strcmp(opt, "hard")) ++ soft = !val; ++ else if (!strcmp(opt, "intr")) ++ intr = val; ++ else if (!strcmp(opt, "cto")) ++ nocto = !val; ++ else if (!strcmp(opt, "ac")) ++ noac = !val; ++ else { ++ if (!sloppy) { ++ printf(_("unknown nfs mount option: " ++ "%s%s\n"), val ? "" : "no", opt); ++ goto fail; ++ } ++ } ++ } ++ } ++ ++ data.flags = (soft ? NFS4_MOUNT_SOFT : 0) ++ | (intr ? NFS4_MOUNT_INTR : 0) ++ | (nocto ? NFS4_MOUNT_NOCTO : 0) ++ | (noac ? NFS4_MOUNT_NOAC : 0); ++ ++ if (pseudoflavour != 0) { ++ data.auth_flavourlen = 1; ++ data.auth_flavours = &pseudoflavour; ++ } ++ ++ data.client_addr.data = ip_addr; ++ data.client_addr.len = strlen(ip_addr); ++ ++ data.mnt_path.data = dirname; ++ data.mnt_path.len = strlen(dirname); ++ ++ data.hostname.data = hostname; ++ data.hostname.len = strlen(hostname); ++ data.host_addr = (struct sockaddr *)&server_addr; ++ data.host_addrlen = sizeof(server_addr); ++ ++#ifdef NFS_MOUNT_DEBUG ++ printf("rsize = %d, wsize = %d, timeo = %d, retrans = %d\n", ++ data.rsize, data.wsize, data.timeo, data.retrans); ++ printf("acreg (min, max) = (%d, %d), acdir (min, max) = (%d, %d)\n", ++ data.acregmin, data.acregmax, data.acdirmin, data.acdirmax); ++ printf("port = %d, bg = %d, retry = %d, flags = %.8x\n", ++ port, bg, retry, data.flags); ++ printf("soft = %d, intr = %d, nocto = %d, noac = %d\n", ++ (data.flags & NFS4_MOUNT_SOFT) != 0, ++ (data.flags & NFS4_MOUNT_INTR) != 0, ++ (data.flags & NFS4_MOUNT_NOCTO) != 0, ++ (data.flags & NFS4_MOUNT_NOAC) != 0); ++ printf("proto = %s\n", (data.proto == IPPROTO_TCP) ? "tcp" : "udp"); ++#endif ++ ++ data.version = NFS4_MOUNT_VERSION; ++ ++ *mount_opts = (char *) &data; ++ /* clean up */ ++ return 0; ++ ++fail: ++ return retval; ++} diff --git a/sys-apps/util-linux/files/util-linux-2.12p-swapon-check-symlinks.patch b/sys-apps/util-linux/files/util-linux-2.12p-swapon-check-symlinks.patch new file mode 100644 index 00000000..f4214580 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12p-swapon-check-symlinks.patch @@ -0,0 +1,34 @@ +--- util-linux-2.12b/mount/swapon.c ++++ util-linux-2.12b/mount/swapon.c +@@ -7,2 +7,3 @@ + #include ++#include + #include +@@ -137,10 +138,27 @@ + static int + is_in_proc_swaps(const char *fname) { + int i; ++ struct stat fstatbuf; + + for (i = 0; i < numSwaps; i++) + if (swapFiles[i] && !strcmp(fname, swapFiles[i])) + return 1; ++ ++ /* fallback: ++ * if the device in /etc/fstab is a symlink, the entry ++ * in /proc/swaps won't match because the kernel stores ++ * absolute pathnames. Here we compare dev_t's. ++ */ ++ if (!lstat(fname, &fstatbuf)) ++ if (S_ISLNK(fstatbuf.st_mode)) { ++ struct stat swapstatbuf; ++ stat(fname, &fstatbuf); ++ for (i = 0; i < numSwaps; i++) ++ if (swapFiles[i] && !stat(swapFiles[i], &swapstatbuf) && \ ++ swapstatbuf.st_rdev == fstatbuf.st_rdev) ++ return 1; ++ } ++ + return 0; + } + diff --git a/sys-apps/util-linux/files/util-linux-2.12q-debian-10cfdisk.patch b/sys-apps/util-linux/files/util-linux-2.12q-debian-10cfdisk.patch new file mode 100644 index 00000000..9092e0be --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12q-debian-10cfdisk.patch @@ -0,0 +1,48 @@ +## 10cfdisk.dpatch by LaMont Jones +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Buffer overruns with narrow terminal windows. + +@DPATCH@ +diff -urNad util-linux/fdisk/cfdisk.c /tmp/dpep.rEB26p/util-linux/fdisk/cfdisk.c +--- util-linux.orig/fdisk/cfdisk.c 2004-12-24 14:41:20.000000000 -0700 ++++ util-linux/fdisk/cfdisk.c 2004-12-24 15:00:00.503453740 -0700 +@@ -2100,7 +2100,7 @@ + if (to_file) { + if ((fp = fopen(fname, "w")) == NULL) { + char errstr[LINE_LENGTH]; +- sprintf(errstr, _("Cannot open file '%s'"), fname); ++ snprintf(errstr, sizeof(errstr), _("Cannot open file '%s'"), fname); + print_warning(errstr); + return; + } +@@ -2184,7 +2184,7 @@ + if (to_file) { + if ((fp = fopen(fname, "w")) == NULL) { + char errstr[LINE_LENGTH]; +- sprintf(errstr, _("Cannot open file '%s'"), fname); ++ snprintf(errstr, sizeof(errstr), _("Cannot open file '%s'"), fname); + print_warning(errstr); + return; + } +@@ -2638,9 +2638,9 @@ + mvaddstr(WARNING_START, 0, line); + + +- sprintf(line, "cfdisk %s", VERSION); ++ snprintf(line, COLS+1, "cfdisk %s", VERSION); + mvaddstr(HEADER_START, (COLS-strlen(line))/2, line); +- sprintf(line, _("Disk Drive: %s"), disk_device); ++ snprintf(line, COLS+1, _("Disk Drive: %s"), disk_device); + mvaddstr(HEADER_START+2, (COLS-strlen(line))/2, line); + { + long long bytes = actual_size*(long long) SECTOR_SIZE; +@@ -2654,7 +2654,7 @@ + bytes, megabytes/K, (10*megabytes/K)%10); + } + mvaddstr(HEADER_START+3, (COLS-strlen(line))/2, line); +- sprintf(line, _("Heads: %d Sectors per Track: %d Cylinders: %lld"), ++ snprintf(line, COLS+1, _("Heads: %d Sectors per Track: %d Cylinders: %lld"), + heads, sectors, cylinders); + mvaddstr(HEADER_START+4, (COLS-strlen(line))/2, line); + diff --git a/sys-apps/util-linux/files/util-linux-2.12q-dont-umask.patch b/sys-apps/util-linux/files/util-linux-2.12q-dont-umask.patch new file mode 100644 index 00000000..704c2581 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12q-dont-umask.patch @@ -0,0 +1,17 @@ +Don't force umask to 022 or the -o umask option doesn't work. + +Patch by Daniel Drake. + +http://bugs.gentoo.org/93671 + +--- mount/mount.c ++++ mount/mount.c +@@ -1491,8 +1491,6 @@ main(int argc, char *argv[]) { + if ((p = strrchr(progname, '/')) != NULL) + progname = p+1; + +- umask(022); +- + /* People report that a mount called from init without console + writes error messages to /etc/mtab + Let us try to avoid getting fd's 0,1,2 */ diff --git a/sys-apps/util-linux/files/util-linux-2.12q-i18n-update.patch b/sys-apps/util-linux/files/util-linux-2.12q-i18n-update.patch new file mode 100644 index 00000000..a47810cd --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12q-i18n-update.patch @@ -0,0 +1,10 @@ +DELACOUR Guillaume reports: +i18n: Typo in french translation of mount error +http://bugs.gentoo.org/show_bug.cgi?id=75693 +--- po/fr.po ++++ po/fr.po +@@ -8358,3 +8358,3 @@ + msgid "%s looks like swapspace - not mounted" +-msgstr "%s ressemble à un esapce de swap - n'a pas été monté" ++msgstr "%s ressemble à un espace de swap - n'a pas été monté" + diff --git a/sys-apps/util-linux/files/util-linux-2.12q-more-fake-checks-v2.patch b/sys-apps/util-linux/files/util-linux-2.12q-more-fake-checks-v2.patch new file mode 100644 index 00000000..f598a8da --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12q-more-fake-checks-v2.patch @@ -0,0 +1,40 @@ +> Running `mount -fv /mnt/pnt` incorrectly updates /etc/mtab + +This one is bogus. + +Manpage: + +===== +-f Causes everything to be done except for the actual system call; + if it's not obvious, this ``fakes'' mounting the file system. This option + is useful in conjunction with the -v flag to determine what the mount + command is trying to do. It can also be used to add entries for devices that + were mounted earlier with the -n option. +===== + +Also, we need it in /etc/init.d/checkroot to regen /etc/mtab ... + + +======================================================================= +Running `mount -afvt type` incorrectly warns that 'nothing was mounted' + +--- mount/mount.c ++++ mount/mount.c +#@@ -659,7 +659,7 @@ +# if (verbose) +# print_one (&mnt); +# +#- if (!nomtab && mtab_is_writable()) { +#+ if (!fake && !nomtab && mtab_is_writable()) { +# if (flags & MS_REMOUNT) +# update_mtab (mnt.mnt_dir, &mnt); +# else { +@@ -1629,7 +1629,7 @@ + case 0: + /* mount -a */ + result = do_mount_all (types, options, test_opts); +- if (result == 0 && verbose) ++ if (result == 0 && verbose && !fake) + error(_("nothing was mounted")); + break; + diff --git a/sys-apps/util-linux/files/util-linux-2.12q-no-m68k-fdisk.patch b/sys-apps/util-linux/files/util-linux-2.12q-no-m68k-fdisk.patch new file mode 100644 index 00000000..6d3334f4 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12q-no-m68k-fdisk.patch @@ -0,0 +1,15 @@ +Disable building fdisk on m68k + +--- fdisk/Makefile ++++ fdisk/Makefile +@@ -18,8 +18,10 @@ + endif + endif + ++ifneq "$(ARCH)" "m68k" + SBIN:=$(SBIN) fdisk + MAN8:=$(MAN8) fdisk.8 ++endif + + ifneq "$(ARCH)" "sparc" + SBIN:=$(SBIN) $(CFDISK) sfdisk diff --git a/sys-apps/util-linux/files/util-linux-2.12q-umount-dont-write-mtab-with-remount.patch b/sys-apps/util-linux/files/util-linux-2.12q-umount-dont-write-mtab-with-remount.patch new file mode 100644 index 00000000..2b8f4ad3 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12q-umount-dont-write-mtab-with-remount.patch @@ -0,0 +1,18 @@ +Make umount respect the -n option when using -r + +Patch by Derick Swanepoel + +http://bugs.gentoo.org/98675 + +--- mount/umount.c ++++ mount/umount.c +@@ -349,7 +349,8 @@ + remnt.mnt_type = remnt.mnt_fsname = NULL; + remnt.mnt_dir = xstrdup(node); + remnt.mnt_opts = xstrdup("ro"); +- update_mtab(node, &remnt); ++ if (!nomtab && mtab_is_writable()) ++ update_mtab(node, &remnt); + return 0; + } else if (errno != EBUSY) { /* hmm ... */ + perror("remount"); diff --git a/sys-apps/util-linux/files/util-linux-2.12q-update-mtab-when-moving.patch b/sys-apps/util-linux/files/util-linux-2.12q-update-mtab-when-moving.patch new file mode 100644 index 00000000..aa921f5e --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12q-update-mtab-when-moving.patch @@ -0,0 +1,33 @@ +Running `mount --move /foo /bar` would leave the old /foo entry in /etc/mtab +and create a new /bar entry with wrong info. + +http://bugs.gentoo.org/104697 + +--- 1/mount/mount.c ++++ 2/mount/mount.c +@@ -665,6 +665,25 @@ + else { + mntFILE *mfp; + ++ /* when moving a mount point, we have to make sure the mtab ++ * gets updated properly. We get info about the old mount ++ * point, copy it to the new mount point, and then delete ++ * the old mount point. */ ++ if (flags & MS_MOVE) { ++ const char *olddir = mnt.mnt_fsname; ++ struct mntentchn *oldmc = oldmc = getmntfile(olddir); ++ if (oldmc != NULL) { ++ mnt.mnt_fsname = xstrdup(oldmc->m.mnt_fsname); ++ mnt.mnt_type = oldmc->m.mnt_type; ++ mnt.mnt_opts = oldmc->m.mnt_opts; ++ mnt.mnt_freq = oldmc->m.mnt_freq; ++ mnt.mnt_passno = oldmc->m.mnt_passno; ++ } ++ update_mtab(olddir, NULL); ++ if (oldmc != NULL) ++ my_free(olddir); ++ } ++ + lock_mtab(); + mfp = my_setmntent(MOUNTED, "a+"); + if (mfp == NULL || mfp->mntent_fp == NULL) { diff --git a/sys-apps/util-linux/files/util-linux-2.12q-update_mtab-fixes.patch b/sys-apps/util-linux/files/util-linux-2.12q-update_mtab-fixes.patch new file mode 100644 index 00000000..7e1c9db6 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12q-update_mtab-fixes.patch @@ -0,0 +1,68 @@ +This fixes a few issues with update_mtab(): +- If it is a remount, and only mnt_opts needs updating, mc->m.mnt_opts is set + to point to instead->mnt_opts, rather than allocating a new string, which + would cause a double free if the caller actually freed the passed mnt_opts, + as we free mc->m.mnt_opts before returning to the caller. +- Mostly the same issue as above. If mtab does not contain the new entry, then + absent->m is set to point to instead, which would have cause a double free + if absent was inserted properly into the linked list, since we free all + elements of absent before returning to the caller. +- If mtab does not contain the new entry, then only mc0->prev is updated to + point to absent, but not the old mc0->prev's nxt pointer. Because we then + use the nxt pointers to write the new mtab, absent is not added to the new + mtab. +- If mtab is empty, absent->prev should be set to mc0, and not mc0->prev, as + it will be NULL. +- Memory leak if we have to abort before mc0 and co are freed. + +Patch by Martin Schlemmer + + +--- util-linux-2.12q/mount/fstab.c 2005-09-14 15:30:10.000000000 +0200 ++++ util-linux-2.12q.az/mount/fstab.c 2005-09-14 15:31:48.000000000 +0200 +@@ -604,15 +604,32 @@ update_mtab (const char *dir, struct my_ + free(mc); + } + } else { +- /* A remount */ +- mc->m.mnt_opts = instead->mnt_opts; ++ /* A remount. */ ++ my_free(mc->m.mnt_opts); ++ /* Need to alloc memory, else we might ++ * run into issues if both we and the caller frees ++ * mnt_opts ... */ ++ mc->m.mnt_opts = xstrdup(instead->mnt_opts); + } + } else if (instead) { + /* not found, add a new entry */ + absent = xmalloc(sizeof(*absent)); +- absent->m = *instead; ++ /* Cannot just set absent->m to instead, as we free absent ++ * below, and the caller might free instead */ ++ absent->m.mnt_fsname = xstrdup(instead->mnt_fsname); ++ absent->m.mnt_dir = xstrdup(instead->mnt_dir); ++ absent->m.mnt_type = xstrdup(instead->mnt_type); ++ absent->m.mnt_opts = xstrdup(instead->mnt_opts); ++ absent->m.mnt_freq = instead->mnt_freq; ++ absent->m.mnt_passno = instead->mnt_passno; ++ + absent->nxt = mc0; +- absent->prev = mc0->prev; ++ if (mc0->prev != NULL) { ++ absent->prev = mc0->prev; ++ mc0->prev->nxt = absent; ++ } else { ++ absent->prev = mc0; ++ } + mc0->prev = absent; + if (mc0->nxt == NULL) + mc0->nxt = absent; +@@ -624,6 +641,8 @@ update_mtab (const char *dir, struct my_ + int errsv = errno; + error (_("cannot open %s (%s) - mtab not updated"), + MOUNTED_TEMP, strerror (errsv)); ++ /* Do not leak memory */ ++ discard_mntentchn(mc0); + goto leave; + } + diff --git a/sys-apps/util-linux/files/util-linux-2.12q-use-update_mtab-for-fake.patch b/sys-apps/util-linux/files/util-linux-2.12q-use-update_mtab-for-fake.patch new file mode 100644 index 00000000..5d0b4366 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12q-use-update_mtab-for-fake.patch @@ -0,0 +1,16 @@ +Use update_mtab() to update /etc/mtab on fake mounts (mount -f), else we get +dup entries in /etc/mtab. + +Patch by Mike Frysinger + +--- util-linux-2.12q/mount/mount.c 2005-09-14 15:37:43.000000000 +0200 ++++ util-linux-2.12q.az/mount/mount.c 2005-09-14 15:27:14.000000000 +0200 +@@ -662,7 +662,7 @@ update_mtab_entry(const char *spec, cons + print_one (&mnt); + + if (!nomtab && mtab_is_writable()) { +- if (flags & MS_REMOUNT) ++ if (fake || (flags & MS_REMOUNT)) + update_mtab (mnt.mnt_dir, &mnt); + else { + mntFILE *mfp; diff --git a/sys-apps/util-linux/files/util-linux-2.12r-HAVE_asm_page_h-loop-aes.patch b/sys-apps/util-linux/files/util-linux-2.12r-HAVE_asm_page_h-loop-aes.patch new file mode 100644 index 00000000..8c5bbc7a --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12r-HAVE_asm_page_h-loop-aes.patch @@ -0,0 +1,18 @@ +fix building when asm/page.h is not available + +http://bugs.gentoo.org/168278 + +the loop-aes patch adds this ... + +--- mount/swapon.c ++++ mount/swapon.c +@@ -31,7 +31,9 @@ + #include + #include + #include ++#ifdef HAVE_asm_page_h + #include ++#endif + #include "xmalloc.h" + #include "swap_constants.h" + #include "swapargs.h" diff --git a/sys-apps/util-linux/files/util-linux-2.12r-HAVE_asm_page_h.patch b/sys-apps/util-linux/files/util-linux-2.12r-HAVE_asm_page_h.patch new file mode 100644 index 00000000..21c04709 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12r-HAVE_asm_page_h.patch @@ -0,0 +1,16 @@ +fix building when asm/page.h is not available + +http://bugs.gentoo.org/168278 + +--- disk-utils/fsck.cramfs.c ++++ disk-utils/fsck.cramfs.c +@@ -76,7 +76,9 @@ + + #define PAD_SIZE 512 + ++#ifdef HAVE_asm_page_h + #include ++#endif + #ifdef PAGE_SIZE + #define PAGE_CACHE_SIZE ((int) PAGE_SIZE) + #elif defined __ia64__ diff --git a/sys-apps/util-linux/files/util-linux-2.12r-cal-dumb-terminal.patch b/sys-apps/util-linux/files/util-linux-2.12r-cal-dumb-terminal.patch new file mode 100644 index 00000000..073506ec --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12r-cal-dumb-terminal.patch @@ -0,0 +1,37 @@ +If you try to use cal on a terminal which doesnt support highlighting, +Senter and Sexit will be set to NULL instead of "" which will cause the +resulting output to be off: + +$ env TERM=dumb cal + December 2005 +Su Mo Tu We Th Fr Sa + 1 2 3 + 4 5 6 7 8 9 10 +111 13 14 15 16 17 +18 19 20 21 22 23 24 +25 26 27 28 29 30 31 + +http://bugs.gentoo.org/112406 + +--- util-linux/misc-utils/cal.c ++++ util-linux/misc-utils/cal.c +@@ -89,7 +89,8 @@ + + static char * + my_tgetstr(char *s, char *ss) { +- return tigetstr(ss); ++ char *ret = tigetstr(ss); ++ return (ret == NULL ? "" : ret); + } + + #elif defined(HAVE_termcap) +@@ -112,7 +113,8 @@ + + static char * + my_tgetstr(char *s, char *ss) { +- return tgetstr(s, &strbuf); ++ char *ret = tgetstr(s, &strbuf); ++ return (ret == NULL ? "" : ret); + } + + #endif diff --git a/sys-apps/util-linux/files/util-linux-2.12r-cracklib-words.patch b/sys-apps/util-linux/files/util-linux-2.12r-cracklib-words.patch new file mode 100644 index 00000000..30bc7e0b --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12r-cracklib-words.patch @@ -0,0 +1,19 @@ +--- misc-utils/look.c ++++ misc-utils/look.c +@@ -137,7 +137,15 @@ + *++p = '\0'; + + if ((fd = open(file, O_RDONLY, 0)) < 0 || fstat(fd, &sb)) +- err("%s: %s", file, strerror(errno)); ++ { ++ /* if opening the primary file failed, fall back to cracklib word files */ ++ file = "/usr/share/dict/cracklib-words"; ++ if ((fd = open(file, O_RDONLY, 0)) < 0 || fstat(fd, &sb)) { ++ file = "/usr/share/dict/cracklib-small"; ++ if ((fd = open(file, O_RDONLY, 0)) < 0 || fstat(fd, &sb)) ++ err("%s: %s\n\tplease emerge sys-apps/cracklib-words or sys-apps/miscfiles", file, strerror(errno)); ++ } ++ } + front = mmap(NULL, (size_t) sb.st_size, PROT_READ, + #ifdef MAP_FILE + MAP_FILE | diff --git a/sys-apps/util-linux/files/util-linux-2.12r-fdisk-frame-pointers.patch b/sys-apps/util-linux/files/util-linux-2.12r-fdisk-frame-pointers.patch new file mode 100644 index 00000000..1ad29166 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12r-fdisk-frame-pointers.patch @@ -0,0 +1,12 @@ +--- fdisk/Makefile.orig 2005-10-15 14:30:56.000000000 +0000 ++++ fdisk/Makefile 2005-10-15 14:33:02.000000000 +0000 +@@ -6,6 +6,9 @@ + include ../make_include + include ../MCONFIG + ++# fdisk when built with ssp and omiting -fomit-frame-pointer causes fdisk/cfdisk/sfdisk to not see the device ++CFLAGS += -fno-omit-frame-pointer ++ + MAN8= + SBIN= + CFDISK=cfdisk diff --git a/sys-apps/util-linux/files/util-linux-2.12r-no-_syscall.patch b/sys-apps/util-linux/files/util-linux-2.12r-no-_syscall.patch new file mode 100644 index 00000000..fb5ab38b --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12r-no-_syscall.patch @@ -0,0 +1,53 @@ +newer kernel headers stop exporting _syscall#() macro's, so let's insert +some workarounds to handle this ... + +util-linux-2.13 doesnt use _syscall#() anymore + +http://bugs.gentoo.org/150852 + +--- lib/my-syscall.h ++++ lib/my-syscall.h +@@ -0,0 +1,12 @@ ++#ifndef __MY_SYSCALL_H__ ++#define __MY_SYSCALL_H__ ++ ++#ifndef _syscall5 ++# define _syscall5(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4,type5,arg5) \ ++type name (type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) \ ++{ \ ++ return (type) syscall(__NR_##name, arg1, arg2, arg3, arg4, arg5); \ ++} ++#endif ++ ++#endif +--- fdisk/llseek.c ++++ fdisk/llseek.c +@@ -10,6 +10,8 @@ + #include + #include + ++#include "my-syscall.h" ++ + extern long long ext2_llseek (unsigned int, long long, unsigned int); + + #ifdef __linux__ +--- fdisk/sfdisk.c ++++ fdisk/sfdisk.c +@@ -177,6 +177,7 @@ + #endif + + #ifndef use_lseek ++#include + static __attribute__used + _syscall5(int, _llseek, unsigned int, fd, ulong, hi, ulong, lo, + loff_t *, res, unsigned int, wh); +--- partx/partx.c ++++ partx/partx.c +@@ -339,6 +339,7 @@ + + #ifdef NEED__llseek + #include /* _syscall */ ++#include "../lib/my-syscall.h" + static + _syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo, + long long *, res, uint, wh); diff --git a/sys-apps/util-linux/files/util-linux-2.12r-umount-no-special.patch b/sys-apps/util-linux/files/util-linux-2.12r-umount-no-special.patch new file mode 100644 index 00000000..2d2c1cfd --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12r-umount-no-special.patch @@ -0,0 +1,11 @@ +--- mount/umount.c ++++ mount/umount.c +@@ -31,7 +31,7 @@ + #include + #endif + +-#if defined(MNT_FORCE) && !defined(__sparc__) && !defined(__arm__) ++#if defined(MNT_FORCE) + /* Interesting ... it seems libc knows about MNT_FORCE and presumably + about umount2 as well -- need not do anything */ + #else /* MNT_FORCE */ diff --git a/sys-apps/util-linux/files/util-linux-2.12r-umount-nosysfs.patch b/sys-apps/util-linux/files/util-linux-2.12r-umount-nosysfs.patch new file mode 100644 index 00000000..eb0d4059 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12r-umount-nosysfs.patch @@ -0,0 +1,11 @@ +--- util-linux-2.12r/mount/umount.c.orig 2006-03-03 11:29:57.000000000 -0500 ++++ util-linux-2.12r/mount/umount.c 2006-03-03 11:30:07.000000000 -0500 +@@ -724,7 +724,7 @@ + if (all) { + /* nodev stuff: sysfs, usbfs, oprofilefs, ... */ + if (types == NULL) +- types = "noproc,nodevfs,nodevpts"; ++ types = "noproc,nodevfs,nodevpts,nosysfs"; + result = umount_all (types, test_opts); + } else if (argc < 1) { + usage (stderr, 2); diff --git a/sys-apps/util-linux/files/util-linux-2.13-ioprio-syscalls.patch b/sys-apps/util-linux/files/util-linux-2.13-ioprio-syscalls.patch new file mode 100644 index 00000000..f558ff6d --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.13-ioprio-syscalls.patch @@ -0,0 +1,16 @@ +Just stub this cruft for crappy arches + +http://bugs.gentoo.org/190613 + +--- schedutils/ionice.c ++++ schedutils/ionice.c +@@ -39,7 +39,8 @@ + # define __NR_ioprio_set 196 + # define __NR_ioprio_get 218 + # else +-# error "Unsupported arch" ++# define __NR_ioprio_set -1 ++# define __NR_ioprio_get -1 + # endif + + # define SYS_ioprio_get __NR_ioprio_get diff --git a/sys-apps/util-linux/files/util-linux-2.13-setuid-checks.patch b/sys-apps/util-linux/files/util-linux-2.13-setuid-checks.patch new file mode 100644 index 00000000..a3758ddb --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.13-setuid-checks.patch @@ -0,0 +1,52 @@ +From: Ludwig Nussel +Date: Thu, 20 Sep 2007 12:57:20 +0000 (+0200) +Subject: mount: doesn't drop privileges properly when calling helpers +X-Git-Url: http://git.kernel.org/?p=utils%2Futil-linux-ng%2Futil-linux-ng.git;a=commitdiff_plain;h=ebbeb2c7ac1b00b6083905957837a271e80b187e + +mount: doesn't drop privileges properly when calling helpers + +{,u}mount calls setuid() and setgid() in the wrong order and doesn't checking +the return value of set{u,g}id(() when running helpers like mount.nfs. + +Signed-off-by: Ludwig Nussel +Signed-off-by: Karel Zak +--- + +diff --git a/mount/mount.c b/mount/mount.c +index 40699f3..5bc2b30 100644 +--- a/mount/mount.c ++++ b/mount/mount.c +@@ -634,8 +634,12 @@ check_special_mountprog(const char *spec, const char *node, const char *type, in + char *oo, *mountargs[10]; + int i = 0; + +- setuid(getuid()); +- setgid(getgid()); ++ if(setgid(getgid()) < 0) ++ die(EX_FAIL, _("mount: cannot set group id: %s"), strerror(errno)); ++ ++ if(setuid(getuid()) < 0) ++ die(EX_FAIL, _("mount: cannot set user id: %s"), strerror(errno)); ++ + oo = fix_opts_string (flags, extra_opts, NULL); + mountargs[i++] = mountprog; /* 1 */ + mountargs[i++] = (char *) spec; /* 2 */ +diff --git a/mount/umount.c b/mount/umount.c +index b3100c9..3221619 100644 +--- a/mount/umount.c ++++ b/mount/umount.c +@@ -102,8 +102,12 @@ check_special_umountprog(const char *spec, const char *node, + char *umountargs[8]; + int i = 0; + +- setuid(getuid()); +- setgid(getgid()); ++ if(setgid(getgid()) < 0) ++ die(EX_FAIL, _("umount: cannot set group id: %s"), strerror(errno)); ++ ++ if(setuid(getuid()) < 0) ++ die(EX_FAIL, _("umount: cannot set user id: %s"), strerror(errno)); ++ + umountargs[i++] = umountprog; + umountargs[i++] = xstrdup(node); + if (nomtab) diff --git a/sys-apps/util-linux/files/util-linux-2.13-uclibc.patch b/sys-apps/util-linux/files/util-linux-2.13-uclibc.patch new file mode 100644 index 00000000..237e126e --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.13-uclibc.patch @@ -0,0 +1,71 @@ +--- login-utils/agetty.c ++++ login-utils/agetty.c +@@ -884,7 +884,7 @@ + + case 'o': + { +- char domainname[HOST_NAME_MAX+1]; ++ char domainname[HOSTNAME_LENGTH+1]; + #ifdef HAVE_GETDOMAINNAME + if (getdomainname(domainname, sizeof(domainname))) + #endif +@@ -897,7 +897,7 @@ + case 'O': + { + char *dom = "unknown_domain"; +- char host[HOST_NAME_MAX + 1]; ++ char host[HOSTNAME_LENGTH + 1]; + struct addrinfo hints, *info = NULL; + + memset(&hints, 0, sizeof(hints)); +@@ -992,7 +992,7 @@ + } + #endif + { +- char hn[HOST_NAME_MAX+1]; ++ char hn[HOSTNAME_LENGTH+1]; + if (gethostname(hn, sizeof(hn)) == 0) + write(1, hn, strlen(hn)); + } +--- configure ++++ configure +@@ -7663,7 +7663,10 @@ + main () + { + +-int test = SYS_sched_getaffinity; ++#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 ++#error taskset unusable ++#endif ++int test = SYS_sched_getaffinity; + + ; + return 0; +--- sys-utils/setarch.c ++++ sys-utils/setarch.c +@@ -39,6 +39,10 @@ + #include + #include "nls.h" + ++#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 ++static const char *program_invocation_short_name; ++#endif ++ + #define set_pers(pers) ((long)syscall(SYS_personality, pers)) + + struct { +@@ -184,6 +188,14 @@ + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + ++#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 ++ program_invocation_short_name = strrchr(argv[0],'/'); ++ if (program_invocation_short_name) ++ program_invocation_short_name++; ++ else ++ program_invocation_short_name = argv[0]; ++#endif ++ + if (argc < 1) + show_usage(_("Not enough arguments")); + diff --git a/sys-apps/util-linux/files/util-linux-2.13.1-no-a.out.patch b/sys-apps/util-linux/files/util-linux-2.13.1-no-a.out.patch new file mode 100644 index 00000000..d871575e --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.13.1-no-a.out.patch @@ -0,0 +1,26 @@ +http://bugs.gentoo.org/221939 +http://article.gmane.org/gmane.linux.utilities.util-linux-ng/1463 + +--- a/text-utils/more.c ++++ b/text-utils/more.c +@@ -54,7 +54,6 @@ + #include + #include + #include +-#include + #include "xstrncpy.h" + #include "nls.h" + #include "widechar.h" +@@ -546,9 +545,9 @@ magic(f, fs) + + if (fread(twobytes, 2, 1, f) == 1) { + switch(twobytes[0] + (twobytes[1]<<8)) { +- case OMAGIC: /* 0407 */ +- case NMAGIC: /* 0410 */ +- case ZMAGIC: /* 0413 */ ++ case 0407: /* a.out obj */ ++ case 0410: /* a.out exec */ ++ case 0413: /* a.out demand exec */ + case 0405: + case 0411: + case 0177545: diff --git a/sys-apps/util-linux/files/util-linux-2.14-AC_BIG_ENDIAN.patch b/sys-apps/util-linux/files/util-linux-2.14-AC_BIG_ENDIAN.patch new file mode 100644 index 00000000..beff6b84 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.14-AC_BIG_ENDIAN.patch @@ -0,0 +1,257 @@ +patch configure to avoid running autotools + +commit 43f2d5bcbc61d2fb4731a7a28908fee20132727f +Author: Karel Zak +Date: Fri Dec 5 14:01:12 2008 +0100 + +build-sys: add missing AC_C_BIGENDIAN + +This configure test is required in include/bitops.h. + +Signed-off-by: Karel Zak +--- configure ++++ configure +@@ -5157,6 +5157,243 @@ fi + done + + ++{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 ++echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } ++if test "${ac_cv_c_bigendian+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # See if sys/param.h defines the BYTE_ORDER macro. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++ ++int ++main () ++{ ++#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ ++ && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) ++ bogus endian macros ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ # It does; now see whether it defined to BIG_ENDIAN or not. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++ ++int ++main () ++{ ++#if BYTE_ORDER != BIG_ENDIAN ++ not big endian ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_c_bigendian=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_c_bigendian=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # It does not; compile a test program. ++if test "$cross_compiling" = yes; then ++ # try to guess the endianness by grepping values into an object file ++ ac_cv_c_bigendian=unknown ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; ++short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; ++void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } ++short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; ++short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; ++void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } ++int ++main () ++{ ++ _ascii (); _ebcdic (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then ++ ac_cv_c_bigendian=yes ++fi ++if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then ++ if test "$ac_cv_c_bigendian" = unknown; then ++ ac_cv_c_bigendian=no ++ else ++ # finding both strings is unlikely to happen, but who knows? ++ ac_cv_c_bigendian=unknown ++ fi ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++int ++main () ++{ ++ ++ /* Are we little or big endian? From Harbison&Steele. */ ++ union ++ { ++ long int l; ++ char c[sizeof (long int)]; ++ } u; ++ u.l = 1; ++ return u.c[sizeof (long int) - 1] == 1; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_c_bigendian=no ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ac_cv_c_bigendian=yes ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 ++echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } ++case $ac_cv_c_bigendian in ++ yes) ++ ++cat >>confdefs.h <<\_ACEOF ++#define WORDS_BIGENDIAN 1 ++_ACEOF ++ ;; ++ no) ++ ;; ++ *) ++ { { echo "$as_me:$LINENO: error: unknown endianness ++presetting ac_cv_c_bigendian=no (or yes) will help" >&5 ++echo "$as_me: error: unknown endianness ++presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++ ++ + + + diff --git a/sys-apps/util-linux/metadata.xml b/sys-apps/util-linux/metadata.xml new file mode 100644 index 00000000..1dc54bd1 --- /dev/null +++ b/sys-apps/util-linux/metadata.xml @@ -0,0 +1,8 @@ + + + +base-system + + include support for Loop AES encryption + + diff --git a/sys-apps/util-linux/util-linux-2.13.1.1.ebuild b/sys-apps/util-linux/util-linux-2.13.1.1.ebuild new file mode 100644 index 00000000..d9aef43c --- /dev/null +++ b/sys-apps/util-linux/util-linux-2.13.1.1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/util-linux-2.13.1.1.ebuild,v 1.9 2008/12/05 17:42:19 vapier Exp $ + +EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux-ng/util-linux-ng.git" +inherit eutils +[[ ${PV} == "9999" ]] && inherit git + +MY_PV=${PV/_/-} +MY_P=${PN}-ng-${MY_PV} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="Various useful Linux utilities" +HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux-ng/" +if [[ ${PV} == "9999" ]] ; then + SRC_URI="" +else + SRC_URI="mirror://kernel/linux/utils/util-linux-ng/v${PV:0:4}/${MY_P}.tar.bz2 + loop-aes? ( http://loop-aes.sourceforge.net/loop-AES/loop-AES-v3.2c.tar.bz2 )" +fi + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="crypt loop-aes nls old-linux selinux slang unicode" + +RDEPEND="!sys-process/schedutils + !sys-apps/setarch + >=sys-libs/ncurses-5.2-r2 + >=sys-fs/e2fsprogs-1.34 + selinux? ( sys-libs/libselinux ) + slang? ( sys-libs/slang )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext ) + virtual/os-headers" + +src_unpack() { + if [[ ${PV} == "9999" ]] ; then + git_src_unpack + cd "${S}" + ./autogen.sh || die + else + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-2.13-uclibc.patch #203711 + use loop-aes && epatch "${WORKDIR}"/loop-AES-*/util-linux-ng-*.diff + use unicode && sed -i 's:-lncurses:-lncursesw:' */Makefile.in #208976 + epatch "${FILESDIR}"/${PN}-2.13-ioprio-syscalls.patch #190613 + epatch "${FILESDIR}"/${PN}-2.13.1-no-a.out.patch #221939 + fi +} + +src_compile() { + econf \ + --with-fsprobe=blkid \ + $(use_enable nls) \ + --enable-agetty \ + --enable-cramfs \ + $(use_enable old-linux elvtune) \ + --disable-init \ + --disable-kill \ + --disable-last \ + --disable-mesg \ + --enable-partx \ + --enable-raw \ + --enable-rdev \ + --enable-rename \ + --disable-reset \ + --disable-login-utils \ + --enable-schedutils \ + --disable-wall \ + --enable-write \ + --without-pam \ + $(use_with selinux) \ + $(use_with slang) \ + || die "configure failed" + emake || die "emake failed" +} + +src_install() { + emake install DESTDIR="${D}" || die "install failed" + dodoc AUTHORS NEWS README* TODO docs/* + + if use crypt ; then + newinitd "${FILESDIR}"/crypto-loop.initd crypto-loop || die + newconfd "${FILESDIR}"/crypto-loop.confd crypto-loop || die + fi +} + +pkg_postinst() { + ewarn "USE=crypt has been changed to USE=loop-aes. If you need" + ewarn "support for it, make sure to update your USE accordingly." +} diff --git a/sys-apps/util-linux/util-linux-2.14.1.ebuild b/sys-apps/util-linux/util-linux-2.14.1.ebuild new file mode 100644 index 00000000..e6fd1d12 --- /dev/null +++ b/sys-apps/util-linux/util-linux-2.14.1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/util-linux-2.14.1.ebuild,v 1.14 2009/02/15 00:19:52 vapier Exp $ + +EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux-ng/util-linux-ng.git" +inherit eutils +[[ ${PV} == "9999" ]] && inherit git + +MY_PV=${PV/_/-} +MY_P=${PN}-ng-${MY_PV} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="Various useful Linux utilities" +HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux-ng/" +if [[ ${PV} == "9999" ]] ; then + SRC_URI="" +else + SRC_URI="mirror://kernel/linux/utils/util-linux-ng/v${PV:0:4}/${MY_P}.tar.bz2 + loop-aes? ( http://loop-aes.sourceforge.net/updates/util-linux-ng-2.14.1-20081015.diff.bz2 )" +fi + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="crypt loop-aes nls old-linux selinux slang uclibc unicode" + +RDEPEND="!sys-process/schedutils + !sys-apps/setarch + >=sys-libs/ncurses-5.2-r2 + >=sys-libs/e2fsprogs-libs-1.41 + selinux? ( sys-libs/libselinux ) + slang? ( sys-libs/slang )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext ) + virtual/os-headers" + +src_unpack() { + if [[ ${PV} == "9999" ]] ; then + git_src_unpack + cd "${S}" + ./autogen.sh || die + else + unpack ${A} + cd "${S}" + #epatch "${FILESDIR}"/${PN}-2.13-uclibc.patch #203711 + epatch "${FILESDIR}"/${PN}-2.14-AC_BIG_ENDIAN.patch + use loop-aes && epatch "${WORKDIR}"/util-linux-ng-2.14.1-20081015.diff + epatch "${FILESDIR}"/${PN}-2.13.1-no-a.out.patch #221939 + fi + use uclibc && sed -i -e s/versionsort/alphasort/g -e s/strverscmp.h/dirent.h/g mount/lomount.c + use uclibc && epatch ${FILESDIR}/uclibc.diff +} + +src_compile() { + econf \ + --with-fsprobe=blkid \ + $(use_enable nls) \ + --enable-agetty \ + --enable-cramfs \ + $(use_enable old-linux elvtune) \ + --disable-init \ + --disable-kill \ + --disable-last \ + --disable-mesg \ + --enable-partx \ + --enable-raw \ + --enable-rdev \ + --enable-rename \ + --disable-reset \ + --disable-login-utils \ + --enable-schedutils \ + --disable-wall \ + --enable-write \ + --without-pam \ + $(use unicode || echo --with-ncurses) \ + $(use_with selinux) \ + $(use_with slang) \ + || die "configure failed" + emake || die "emake failed" +} + +src_install() { + emake install DESTDIR="${D}" || die "install failed" + dodoc AUTHORS NEWS README* TODO docs/* + + if use crypt ; then + newinitd "${FILESDIR}"/crypto-loop.initd crypto-loop || die + newconfd "${FILESDIR}"/crypto-loop.confd crypto-loop || die + fi +} + +pkg_postinst() { + ewarn "The loop-aes code has been split out of USE=crypt and into USE=loop-aes." + ewarn "If you need support for it, make sure to update your USE accordingly." +} diff --git a/sys-apps/util-linux/util-linux-2.14.2.ebuild b/sys-apps/util-linux/util-linux-2.14.2.ebuild new file mode 100644 index 00000000..489efdf3 --- /dev/null +++ b/sys-apps/util-linux/util-linux-2.14.2.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/util-linux-2.14.2.ebuild,v 1.3 2009/02/15 00:21:10 vapier Exp $ + +EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux-ng/util-linux-ng.git" +inherit eutils +[[ ${PV} == "9999" ]] && inherit git + +MY_PV=${PV/_/-} +MY_P=${PN}-ng-${MY_PV} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="Various useful Linux utilities" +HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux-ng/" +if [[ ${PV} == "9999" ]] ; then + SRC_URI="" +else + SRC_URI="mirror://kernel/linux/utils/util-linux-ng/v${PV:0:4}/${MY_P}.tar.bz2 + loop-aes? ( http://loop-aes.sourceforge.net/updates/util-linux-ng-2.14.2-20090214.diff.bz2 )" +fi + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="crypt loop-aes nls old-linux selinux slang uclibc unicode" + +RDEPEND="!sys-process/schedutils + !sys-apps/setarch + >=sys-libs/ncurses-5.2-r2 + >=sys-libs/e2fsprogs-libs-1.41 + selinux? ( sys-libs/libselinux ) + slang? ( sys-libs/slang )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext ) + virtual/os-headers" + +src_unpack() { + if [[ ${PV} == "9999" ]] ; then + git_src_unpack + cd "${S}" + ./autogen.sh || die + else + unpack ${A} + cd "${S}" + #epatch "${FILESDIR}"/${PN}-2.13-uclibc.patch #203711 + use loop-aes && epatch "${WORKDIR}"/util-linux-ng-*.diff + fi + use uclibc && sed -i -e s/versionsort/alphasort/g -e s/strverscmp.h/dirent.h/g mount/lomount.c + use uclibc && epatch ${FILESDIR}/uclibc.diff +} + +src_compile() { + econf \ + --with-fsprobe=blkid \ + $(use_enable nls) \ + --enable-agetty \ + --enable-cramfs \ + $(use_enable old-linux elvtune) \ + --disable-init \ + --disable-kill \ + --disable-last \ + --disable-mesg \ + --enable-partx \ + --enable-raw \ + --enable-rdev \ + --enable-rename \ + --disable-reset \ + --disable-login-utils \ + --enable-schedutils \ + --disable-wall \ + --enable-write \ + --without-pam \ + $(use unicode || echo --with-ncurses) \ + $(use_with selinux) \ + $(use_with slang) \ + || die "configure failed" + emake || die "emake failed" +} + +src_install() { + emake install DESTDIR="${D}" || die "install failed" + dodoc AUTHORS NEWS README* TODO docs/* + + if use crypt ; then + newinitd "${FILESDIR}"/crypto-loop.initd crypto-loop || die + newconfd "${FILESDIR}"/crypto-loop.confd crypto-loop || die + fi +} + +pkg_postinst() { + ewarn "The loop-aes code has been split out of USE=crypt and into USE=loop-aes." + ewarn "If you need support for it, make sure to update your USE accordingly." +} diff --git a/sys-apps/util-linux/util-linux-9999.ebuild b/sys-apps/util-linux/util-linux-9999.ebuild new file mode 100644 index 00000000..b9e059b2 --- /dev/null +++ b/sys-apps/util-linux/util-linux-9999.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/util-linux-9999.ebuild,v 1.7 2008/12/30 04:33:59 vapier Exp $ + +EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux-ng/util-linux-ng.git" +inherit eutils +[[ ${PV} == "9999" ]] && inherit git + +MY_PV=${PV/_/-} +MY_P=${PN}-ng-${MY_PV} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="Various useful Linux utilities" +HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux-ng/" +if [[ ${PV} == "9999" ]] ; then + SRC_URI="" +else + SRC_URI="mirror://kernel/linux/utils/util-linux-ng/v${PV:0:4}/${MY_P}.tar.bz2 + loop-aes? ( http://loop-aes.sourceforge.net/loop-AES/loop-AES-v3.2c.tar.bz2 )" +fi + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="crypt loop-aes nls old-linux selinux slang unicode" + +RDEPEND="!sys-process/schedutils + !sys-apps/setarch + >=sys-libs/ncurses-5.2-r2 + >=sys-libs/e2fsprogs-libs-1.41 + selinux? ( sys-libs/libselinux ) + slang? ( sys-libs/slang )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext ) + virtual/os-headers" + +src_unpack() { + if [[ ${PV} == "9999" ]] ; then + git_src_unpack + cd "${S}" + ./autogen.sh || die + else + unpack ${A} + use loop-aes && epatch "${WORKDIR}"/loop-AES-*/util-linux-ng-*.diff + fi +} + +src_compile() { + econf \ + --with-fsprobe=blkid \ + $(use_enable nls) \ + --enable-agetty \ + --enable-cramfs \ + $(use_enable old-linux elvtune) \ + --disable-init \ + --disable-kill \ + --disable-last \ + --disable-mesg \ + --enable-partx \ + --enable-raw \ + --enable-rdev \ + --enable-rename \ + --disable-reset \ + --disable-login-utils \ + --enable-schedutils \ + --disable-wall \ + --enable-write \ + --without-pam \ + $(use unicode || echo --with-ncurses) \ + $(use_with selinux) \ + $(use_with slang) \ + || die "configure failed" + emake || die "emake failed" +} + +src_install() { + emake install DESTDIR="${D}" || die "install failed" + dodoc AUTHORS NEWS README* TODO docs/* + + if use crypt ; then + newinitd "${FILESDIR}"/crypto-loop.initd crypto-loop || die + newconfd "${FILESDIR}"/crypto-loop.confd crypto-loop || die + fi +} -- cgit v1.2.3