Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 59292

Summary: kernel-2.eclass should sort using LC_ALL="C"
Product: Gentoo Linux Reporter: Wil Dge <wildge>
Component: New packagesAssignee: John Mylchreest (RETIRED) <johnm>
Status: RESOLVED FIXED    
Severity: major CC: drakoun, kernel
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Wil Dge 2004-08-03 10:23:38 UTC
When I try to emerge gentoo-sources, I get error while applying patch gentoo-sources-2.4.26-OpenSWAN-CompileFix.patch.

Reproducible: Always
Steps to Reproduce:
1. emerge gentoo-sources

Actual Results:  
comp root # emerge gentoo-sources
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-kernel/gentoo-sources-2.4.26-r6 to /
>>> md5 src_uri ;-) linux-2.4.26.tar.bz2
>>> md5 src_uri ;-) gentoo-sources-2.4.26-r6.tar.bz2
>>> Preparing to unpack...
>>> Unpacking source...
>>> Unpacking linux-2.4.26.tar.bz2 to /var/tmp/portage/gentoo-sources-2.4.26-r6/work
 * gentoo-sources-2.4.26-r6.tar.bz2 unpacked
 * Applying gentoo-sources-2.4.CAN-2004-0495.patch...          [ ok ]
 * Applying gentoo-sources-2.4.CAN-2004-0497.patch...          [ ok ]
 * Applying gentoo-sources-2.4.CAN-2004-0535.patch...          [ ok ]
 * Applying gentoo-sources-2.4.FPULockup-53804.patch...        [ ok ]
 * Applying gentoo-sources-2.4.26-OpenSWAN-CompileFix.patch..  [ !! ]

 * Please attach
/var/tmp/portage/gentoo-sources-2.4.26-r6/temp/gentoo-sources-2.4.26-OpenSWAN-CompileFix.err
to any bug you may post.

!!! ERROR: sys-kernel/gentoo-sources-2.4.26-r6 failed.
!!! Function unipatch, Line 513, Exitcode 0
!!! Unable to dry-run patch.

Expected Results:  
Install gentoo-sources-2.4.26-r6 package.

Requested error file:

comp root #cat
/var/tmp/portage/gentoo-sources-2.4.26-r6/temp/gentoo-sources-2.4.26-OpenSWAN-CompileFix.err
Attempting Dry-run:
cmd: patch -p0 --dry-run -f <
/var/tmp/portage/gentoo-sources-2.4.26-r6/work/patches/gentoo-sources-2.4.26-OpenSWAN-CompileFix.patch
=======================================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur linux-2.4.26-gentoo-r5/include/freeswan/ipsec_rcv.h
linux-2.4.26-gentoo-r6/include/freeswan/ipsec_rcv.h
|--- linux-2.4.26-gentoo-r5/include/freeswan/ipsec_rcv.h        2004-07-13
17:41:55.589176744 +0100
|+++ linux-2.4.26-gentoo-r6/include/freeswan/ipsec_rcv.h        2004-07-13
17:40:32.749770248 +0100
--------------------------
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:
--------------------------
|diff -ur linux-2.4.26-gentoo-r5/include/freeswan/ipsec_xmit.h
linux-2.4.26-gentoo-r6/include/freeswan/ipsec_xmit.h
|--- linux-2.4.26-gentoo-r5/include/freeswan/ipsec_xmit.h       2004-07-09
15:56:33.000000000 +0100
|+++ linux-2.4.26-gentoo-r6/include/freeswan/ipsec_xmit.h       2004-07-13
17:16:15.614288512 +0100
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
Attempting Dry-run:
cmd: patch -p1 --dry-run -f <
/var/tmp/portage/gentoo-sources-2.4.26-r6/work/patches/gentoo-sources-2.4.26-OpenSWAN-CompileFix.patch
=======================================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur linux-2.4.26-gentoo-r5/include/freeswan/ipsec_rcv.h
linux-2.4.26-gentoo-r6/include/freeswan/ipsec_rcv.h
|--- linux-2.4.26-gentoo-r5/include/freeswan/ipsec_rcv.h        2004-07-13
17:41:55.589176744 +0100
|+++ linux-2.4.26-gentoo-r6/include/freeswan/ipsec_rcv.h        2004-07-13
17:40:32.749770248 +0100
--------------------------
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:
--------------------------
|diff -ur linux-2.4.26-gentoo-r5/include/freeswan/ipsec_xmit.h
linux-2.4.26-gentoo-r6/include/freeswan/ipsec_xmit.h
|--- linux-2.4.26-gentoo-r5/include/freeswan/ipsec_xmit.h       2004-07-09
15:56:33.000000000 +0100
|+++ linux-2.4.26-gentoo-r6/include/freeswan/ipsec_xmit.h       2004-07-13
17:16:15.614288512 +0100
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
Attempting Dry-run:
cmd: patch -p2 --dry-run -f <
/var/tmp/portage/gentoo-sources-2.4.26-r6/work/patches/gentoo-sources-2.4.26-OpenSWAN-CompileFix.patch
=======================================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur linux-2.4.26-gentoo-r5/include/freeswan/ipsec_rcv.h
linux-2.4.26-gentoo-r6/include/freeswan/ipsec_rcv.h
|--- linux-2.4.26-gentoo-r5/include/freeswan/ipsec_rcv.h        2004-07-13
17:41:55.589176744 +0100
|+++ linux-2.4.26-gentoo-r6/include/freeswan/ipsec_rcv.h        2004-07-13
17:40:32.749770248 +0100
--------------------------
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:
--------------------------
|diff -ur linux-2.4.26-gentoo-r5/include/freeswan/ipsec_xmit.h
linux-2.4.26-gentoo-r6/include/freeswan/ipsec_xmit.h
|--- linux-2.4.26-gentoo-r5/include/freeswan/ipsec_xmit.h       2004-07-09
15:56:33.000000000 +0100
|+++ linux-2.4.26-gentoo-r6/include/freeswan/ipsec_xmit.h       2004-07-13
17:16:15.614288512 +0100
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
Attempting Dry-run:
cmd: patch -p3 --dry-run -f <
/var/tmp/portage/gentoo-sources-2.4.26-r6/work/patches/gentoo-sources-2.4.26-OpenSWAN-CompileFix.patch
=======================================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur linux-2.4.26-gentoo-r5/include/freeswan/ipsec_rcv.h
linux-2.4.26-gentoo-r6/include/freeswan/ipsec_rcv.h
|--- linux-2.4.26-gentoo-r5/include/freeswan/ipsec_rcv.h        2004-07-13
17:41:55.589176744 +0100
|+++ linux-2.4.26-gentoo-r6/include/freeswan/ipsec_rcv.h        2004-07-13
17:40:32.749770248 +0100
--------------------------
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:
--------------------------
|diff -ur linux-2.4.26-gentoo-r5/include/freeswan/ipsec_xmit.h
linux-2.4.26-gentoo-r6/include/freeswan/ipsec_xmit.h
|--- linux-2.4.26-gentoo-r5/include/freeswan/ipsec_xmit.h       2004-07-09
15:56:33.000000000 +0100
|+++ linux-2.4.26-gentoo-r6/include/freeswan/ipsec_xmit.h       2004-07-13
17:16:15.614288512 +0100
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
Attempting Dry-run:
cmd: patch -p4 --dry-run -f <
/var/tmp/portage/gentoo-sources-2.4.26-r6/work/patches/gentoo-sources-2.4.26-OpenSWAN-CompileFix.patch
=======================================================
missing header for unified diff at line 4 of patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur linux-2.4.26-gentoo-r5/include/freeswan/ipsec_rcv.h
linux-2.4.26-gentoo-r6/include/freeswan/ipsec_rcv.h
|--- linux-2.4.26-gentoo-r5/include/freeswan/ipsec_rcv.h        2004-07-13
17:41:55.589176744 +0100
|+++ linux-2.4.26-gentoo-r6/include/freeswan/ipsec_rcv.h        2004-07-13
17:40:32.749770248 +0100
--------------------------
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:
--------------------------
|diff -ur linux-2.4.26-gentoo-r5/include/freeswan/ipsec_xmit.h
linux-2.4.26-gentoo-r6/include/freeswan/ipsec_xmit.h
|--- linux-2.4.26-gentoo-r5/include/freeswan/ipsec_xmit.h       2004-07-09
15:56:33.000000000 +0100
|+++ linux-2.4.26-gentoo-r6/include/freeswan/ipsec_xmit.h       2004-07-13
17:16:15.614288512 +0100
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored





Requested emerge info:

comp root # emerge info
Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d aalib alsa apm arts audiofile avi berkdb cdr crypt cups dga
directfb divx4linux dvd encode esd fftw flac foomaticdb gdbm gif gmp gphoto2 gpm
gps gtk gtk2 guile icq imagemagick imap imlib jabber java jpeg kde ldap lesstif
libcaca libg++ libwww linguas_cs linguas_en live mad matroska mbox mcal mdir
mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oscar oss pam pdflib
perl plotutils png python qt quicktime readline samba sdl slang speex spell sse
ssl svga tcltk tcpd tetex theora tiff truetype unicode usb v4l v4l2 videos wmf
wxwindows x86 xml xml2 xmms xosd xv xvid zlib"
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-08-03 11:09:27 UTC
If you try "LC_ALL=C emerge ..." does it work?
Comment 2 Wil Dge 2004-08-03 12:21:15 UTC
Tim Yamin: Yes, it works. Where is the problem?
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-08-03 14:27:27 UTC
The problem is that the kernel-2.eclass runs sort which sorts the list of patches using your current locale - which caused the ones in the tarball to go later. It should run sort with LC_ALL="C" which would eliminate this.
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2004-08-07 02:46:29 UTC
*** Bug 59646 has been marked as a duplicate of this bug. ***
Comment 5 John Mylchreest (RETIRED) gentoo-dev 2004-08-25 13:51:24 UTC
fixed in the more recent revision of kernel-2.eclass