Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169133 - sys-apps/util-linux-2.12r-r6 fails to patch with USE=-crypt
Summary: sys-apps/util-linux-2.12r-r6 fails to patch with USE=-crypt
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-03 15:09 UTC by Milan Barta
Modified: 2007-04-08 02:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Barta 2007-03-03 15:09:08 UTC
Emerge fails to apply a patch util-linux-2.12r-HAVE_asm_page_h.patch when compiling util-linux-2.12r-r6.

Reproducible: Always

Steps to Reproduce:




cat /var/tmp/portage/sys-apps/util-linux-2.12r-r6/temp/util-linux-2.12r-HAVE_asm_page_h.patch-11463.out
***** util-linux-2.12r-HAVE_asm_page_h.patch *****

==================================================

PATCH COMMAND:   patch -p0 -g0 -E --no-backup-if-mismatch < /mnt/portage/portage/sys-apps/util-linux/files/util-linux-2.12r-HAVE_asm_page_h.patch

==================================================
patching file disk-utils/fsck.cramfs.c
patching file mount/swapon.c
Hunk #1 FAILED at 31.
1 out of 1 hunk FAILED -- saving rejects to file mount/swapon.c.rej
==================================================

PATCH COMMAND:   patch -p1 -g0 -E --no-backup-if-mismatch < /mnt/portage/portage/sys-apps/util-linux/files/util-linux-2.12r-HAVE_asm_page_h.patch

==================================================
can't find file to patch at input line 7
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|fix building when asm/page.h is not available
|
|http://bugs.gentoo.org/168278
|
|--- disk-utils/fsck.cramfs.c
|+++ disk-utils/fsck.cramfs.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 19
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- mount/swapon.c
|+++ mount/swapon.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
==================================================

PATCH COMMAND:   patch -p2 -g0 -E --no-backup-if-mismatch < /mnt/portage/portage/sys-apps/util-linux/files/util-linux-2.12r-HAVE_asm_page_h.patch

==================================================
missing header for unified diff at line 7 of patch
can't find file to patch at input line 7
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|fix building when asm/page.h is not available
|
|http://bugs.gentoo.org/168278
|
|--- disk-utils/fsck.cramfs.c
|+++ disk-utils/fsck.cramfs.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 19 of patch
can't find file to patch at input line 19
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- mount/swapon.c
|+++ mount/swapon.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
==================================================

PATCH COMMAND:   patch -p3 -g0 -E --no-backup-if-mismatch < /mnt/portage/portage/sys-apps/util-linux/files/util-linux-2.12r-HAVE_asm_page_h.patch

==================================================
missing header for unified diff at line 7 of patch
can't find file to patch at input line 7
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|fix building when asm/page.h is not available
|
|http://bugs.gentoo.org/168278
|
|--- disk-utils/fsck.cramfs.c
|+++ disk-utils/fsck.cramfs.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 19 of patch
can't find file to patch at input line 19
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- mount/swapon.c
|+++ mount/swapon.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
==================================================

PATCH COMMAND:   patch -p4 -g0 -E --no-backup-if-mismatch < /mnt/portage/portage/sys-apps/util-linux/files/util-linux-2.12r-HAVE_asm_page_h.patch

==================================================
missing header for unified diff at line 7 of patch
can't find file to patch at input line 7
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|fix building when asm/page.h is not available
|
|http://bugs.gentoo.org/168278
|
|--- disk-utils/fsck.cramfs.c
|+++ disk-utils/fsck.cramfs.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 19 of patch
can't find file to patch at input line 19
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- mount/swapon.c
|+++ mount/swapon.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored



emerge --info
Portage 2.1.2-r14 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo x86_64)
=================================================================
System uname: 2.6.20-gentoo x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.9
Timestamp of tree: Sat, 03 Mar 2007 14:20:01 +0000
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -msse3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -msse3 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/portage/distfiles"
FEATURES="autoconfig ccache distlocks eix metadata-transfer parallel-fetch prelink sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://gentoo.po.opole.pl "
LANG="cs_CZ.UTF-8"
LC_ALL="cs_CZ.UTF-8"
LINGUAS="cs"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/portage/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa amd64 apm audiofile bitmap-fonts bluetooth bzip2 cddb cdinstall cdparanoia cdr cli cracklib css cups dbus directfb divx dri dvd dvdr dvdread encode exif fbcon ffmpeg fortran ftp fuse gdbm gif glut gnutls gpm hal iconv icq imagemagick irc isdnlog javascript jpeg kde kdeenablefinal kdehiddenvisibility kdexdeltas kipi libg++ lm_sensors mad matroska midi mikmod mime mmap mp3 mp4 mpeg mplayer musicbrainz ncurses nls nptl nptlonly nsplugin ogg oggvorbis openal opengl oss pam pcre pdf perl pic png ppds pppd python qt qt3 qt4 quicktime readline realmedia reflection samba scanner sdl session sharedmem sndfile sockets spell spl sse3 ssl svg symlink szip tcpd theora tidy tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 verbose vorbis wmp x264 xine xorg xosd xv xvid zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 James 2007-03-03 20:44:46 UTC
Same problem here on some of my systems.  They are a cluster that I use for compiling.  I have a buildhost that I build binaries on and then emerge them on the cluster.  The emerge --info on a chrooted environment on the buildhost is:
Portage 2.1.2-r14 (!../usr/portage/profiles/default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo i686)
=================================================================
System uname: 2.6.20-gentoo i686 Intel(R) Celeron(R) CPU 2.93GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 03 Mar 2007 16:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/nfs_portage/distfiles"
FEATURES="autoconfig buildpkg distcc distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j15"
PKGDIR="/mnt/nfs_portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/nfs_portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.1.1/gentoo-portage"
USE="gpm mmx ncurses pam sse tcpd x86" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mga neomagic nsc nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
I also could not emerge it separately on the cluster computers.
notably on the same system, it seems to have emerged just fine.  Here's the info for that one.
emerge --info
Portage 2.1.2-r14 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo i686)
=================================================================
System uname: 2.6.20-gentoo i686 Intel(R) Celeron(R) CPU 2.93GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 03 Mar 2007 16:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=prescott -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://gentoo.chem.wisc.edu/gentoo/ ftp://ftp.ndlug.nd.edu/pub/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ "
MAKEOPTS="-j11"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aac acpi alsa apache2 audiofile berkdb bitmap-fonts bzip2 cairo ccache cdparanoia cdr cli cracklib crypt cups dbus divx4linux dlloader dri dvd dvdr dvdread eds emboss encode esd fam ffmpeg firefox fortran gdbm gif glut gpm gstreamer gtk hal iconv imagemagick isdnlog java jpeg kde ldap libg++ lirc lm_sensors mad midi mikmod mjpeg mmx mmx2 mmxext mp3 mpeg mplayer mysql mythtv ncurses nls nptl nptlonly nsplugin nvidia ogg openal opengl oss pam pcre pda pdf pdflib perl png posix ppds pppd python qt3 qt4 quicktime readline reflection samba sdl session sockets spell spl sse sse2 sse3 ssl subtitles swat szip tcpd threads truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vorbis wifi win32codecs x86 xine xml xorg xv xvid xvmc zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="nvidia vesa vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

I have a dual PIII system that has also emerged it just fine.
Thanks in advance
Comment 2 SpanKY gentoo-dev 2007-03-03 21:21:33 UTC
fixed in cvs
Comment 3 Gunnlaugur Thor Briem 2007-04-08 02:20:14 UTC
This fix to -r6 (which is unstable on most archs) breaks -r5 (which is supposed to be stable) by removing stuff from the existing patch. So -r5 breaks with missing asm/page.h ... whoops. :)

Workaround: add the line

    use crypt && epatch "${FILESDIR}"/${PN}-2.12r-HAVE_asm_page_h-loop-aes.patch

to /usr/portage/sys-apps/util-linux/util-linux-2.12r-r5.ebuild right after the line

    epatch "${FILESDIR}"/${PN}-2.12r-HAVE_asm_page_h.patch #168278

and ebuild /usr/portage/sys-apps/util-linux/util-linux-2.12r-r5.ebuild digest