Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258456 - USE +loop-aes will fail to patch sys-apps/util-linux-2.14.2
Summary: USE +loop-aes will fail to patch sys-apps/util-linux-2.14.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 258808 259012 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-10 15:46 UTC by Dolores
Modified: 2009-02-15 00:21 UTC (History)
9 users (show)

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


Attachments
util-linux-ng-2.14.1-20081015.diff-24425.out (util-linux-ng-2.14.1-20081015.diff-24425.out,36.43 KB, text/plain)
2009-02-10 15:47 UTC, Dolores
Details
Naive forward-port of patch (util-linux-ng-2.14.2-20090213-gentoo-local.diff,223.58 KB, patch)
2009-02-13 02:05 UTC, Peter Alfredsen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dolores 2009-02-10 15:46:38 UTC
USE="loop-aes" emerge -1av sys-apps/util-linux

Reproducible: Always

Steps to Reproduce:
USE="loop-aes" emerge -1av sys-apps/util-linux
Actual Results:  
>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/util-linux-2.14.2
 * util-linux-ng-2.14.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...          [ ok ]
 * util-linux-ng-2.14.1-20081015.diff.bz2 RMD160 SHA1 SHA256 size ;-) ...[ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking util-linux-ng-2.14.2.tar.bz2 to /var/tmp/portage/sys-apps/util-linux-2.14.2/work
>>> Unpacking util-linux-ng-2.14.1-20081015.diff.bz2 to /var/tmp/portage/sys-apps/util-linux-2.14.2/work
 * Applying util-linux-ng-2.14.1-20081015.diff ...

 * Failed Patch: util-linux-ng-2.14.1-20081015.diff !
 *  ( /var/tmp/portage/sys-apps/util-linux-2.14.2/work/util-linux-ng-2.14.1-20081015.diff )
Comment 1 Dolores 2009-02-10 15:47:44 UTC
Created attachment 181547 [details]
util-linux-ng-2.14.1-20081015.diff-24425.out
Comment 2 ziggysquatch 2009-02-10 16:22:55 UTC
same here.

emerge info:
Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.2.4, glibc-2.9_p20081201-r1, 2.6.25-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r6-i686-Intel-R-_Pentium-R-_4_CPU_3.06GHz-with-glibc2.0
Timestamp of tree: Tue, 10 Feb 2009 07:35:01 +0000
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.5
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=i686 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/wschlich-testing"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi alsa apache2 artworkextra bash-completion bluetooth bzip2 cairo cddb cdparanoia cdr cli cracklib crypt cups dbus dri dts dvd eds encode equalizer esd evo exif ffmpeg firefox flac foomaticdb fortran gdbm gif gimp glitz gnome gnome2 gphoto2 gpm gstreamer gtk gtk2 hal iconv ipod isdnlog java jpeg kerberos ldap libnotify lirc loop-aes mad midi mmx mmx2 mmxext mono mozsvg mp3 mpeg mudflap musicbrainz mysql mythtv ncurses nls nntp nptl nptlonly nsplugin odbc ofx ogg opengl openmp pam pcre pda perl png pppd python quicktime quotes readline reflection samba sdl session sound spell spl sse sse2 ssl stream svg svga sysfs system-libvncserver tagwriting tcpd tiff truetype unicode usb v4l v4l2 vhosts vim-syntax vorbis win32codecs x86 xcomposite xml xorg xrandr xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authz_host filter access auth auth_dbm auth_anon auth_digest alias file-cache echo charset-lite cache disk-cache mem-cache ext-filter case_filter case-filter-in deflate mime-magic cern-meta expires headers usertrack unique-id proxy proxy-connect proxy-ftp proxy-http info include cgi cgid dav dav-fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="v4l vesa nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 RB 2009-02-10 16:46:06 UTC
Looks like it needs a DEPEND entry:

loop-aes? ( sys-fs/loop-aes )
Comment 4 RB 2009-02-10 17:06:25 UTC
While my earlier comment might have been valid, it's irrelevant to this bug - should have looked more carefully.  It's failing on patching mount/lomount.c and mount/Makefile.in in more locations than I care to fix ATM.
Comment 5 SpanKY gentoo-dev 2009-02-11 02:46:39 UTC
loop-aes isnt maintained here ... contact upstream for an updated patch
Comment 6 Florian GYS 2009-02-11 16:43:11 UTC
(In reply to comment #5)
> loop-aes isnt maintained here ... contact upstream for an updated patch

Same here: if I compile util-linux with USE="crypt -loop-aes" then it compile fine, but with USE="-crypt loop-aes" it doesn't.

The only reason I want util-linux to be compiled with USE="-crypt loop-aes" is because of the comment that show up when you emerge util-linux:

* USE=crypt has been changed to USE=loop-aes.  If you need
* support for it, make sure to update your USE accordingly.

So i have disable use "crypt" in favor of use "loop-aes" as suggested... but is this comment still relevant?
Comment 7 SpanKY gentoo-dev 2009-02-11 16:59:50 UTC
the comment doesnt say "use loop-aes", it says "if you want loop-aes".  clearly you dont care one way or the other, so dont use it.
Comment 8 Florian GYS 2009-02-11 18:43:43 UTC
(In reply to comment #7)
> the comment doesnt say "use loop-aes", it says "if you want loop-aes".  clearly
> you dont care one way or the other, so dont use it.
> 
Sorry to insist, but I want to be sure to understand:
Comment:

1* USE=crypt has been changed to USE=loop-aes.

Which I understand as: USE "crypt" as been deprecated in favor of USE "loop-aes"

2*If you need support for it, make sure to update your USE accordingly.

Which I understand as: if you want to build this package with USE="crypt", then be sure to change it in favor of USE="loop-aes" because of reason 1.

But I understand that if I don't need crypt support, i can disable both two.

Best regards.


Comment 9 SpanKY gentoo-dev 2009-02-11 18:54:05 UTC
no, USE=crypt is not deprecated.  the loop-aes code has been split out of USE=crypt.  i will update the message to be more clear in this regard.
Comment 10 Sunit Das 2009-02-11 19:30:53 UTC
Same, here. I've not had a package break like this in an emerge world update... I'd like to still use "emerge -NuDav world" to emerge deps in the correct order, but I'm wary of masking "util-linux" out of "world" temporarily (what if I forget to put it back??). Any ideas for a workaround or anything? I'm kind of stuck here, I can't fix the patch myself, and I need loop-aes (or I'll have a mighty hard time getting to my data :-D ).

Brilliant insights into how to rescue me without destroying my install or my portage tree are welcome!

Any suggestions?

Bug report inclusions:

My "util-linux-(...).out" file is identical to Dolores', using "diff -s":

Files /var/tmp/portage/sys-apps/util-linux-2.14.2/temp/util-linux-ng-2.14.1-20081015.diff-19226.out and /tmp/util-linux-ng-2.14.1-20081015.diff-24425.out are identical

elogv output:
ERROR: sys-apps/util-linux-2.14.2 failed.
Call stack:
              ebuild.sh, line   49:  Called src_unpack
            environment, line 2103:  Called epatch '/var/tmp/portage/sys-apps/util-linux-2.14.2/work
/util-linux-ng-2.14.1-20081015.diff'
            environment, line 1127:  Called die
The specific snippet of code:
                  die "Failed Patch: ${patchname}!";
 The die message:
  Failed Patch: util-linux-ng-2.14.1-20081015.diff!

Emerge info:

Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-i686-Intel-R-_Pentium-R-_D_CPU_2.80GHz-with-glibc2.0
Timestamp of tree: Wed, 11 Feb 2009 01:45:02 +0000
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r5, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.5
sys-devel/autoconf:  2.13, 2.63
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.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe"
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/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/vmware /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa asf audiofile avi berkdb bitmap-fonts bzip2 cdaudio cdparanoia cdr chroot cracklib crypt cscope ctype cups dbus doc dri dvd encode ethereal exif expat fam fat fbcon festival ffmpeg flac font-server foomaticdb fortran gd gdb gdbm gif gimp gkrellm glitz glx gmp gnuplot gnustep gpgme gpm graphviz gsl gtk gtk2 gvim hal iconv imap imlib isdnlog jack jpeg kerberos ladcca ladspa ldap libg++ lm_sensors logitech-mouse loop-aes mad mbox midi mikmod mng motif mozilla mp3 mpeg mudflap multitarget ncurses nptl nptlonly ntfs nvidia octave offensive ogg openal opengl openmp openssl oss pam pcre pdflib perforce perl png pop posix pppd python qdbm qt quicktime rar readline reflection samba sasl sdl session sftp simplexml smtp sockets spell ssl sysfs tcltk tcpd tetex theora tiff tk truetype truetype-fonts type1-fonts udev unicode usb vim vim-pager vim-syntax vim-with-x vorbis win32codecs x86 xine xinerama xml xml2 xorg xrandr xsl xulrunner xv xvid zenmap zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 11 SpanKY gentoo-dev 2009-02-11 21:56:58 UTC
the "solution" is to contact upstream loop-aes for an updated patch like i already said
Comment 12 Sunit Das 2009-02-11 23:00:59 UTC
Ok, I've e-mailed Jari and asked him very nicely to make a new patch against 2.14.2 for us. We'll wait and see if he wants to help us out :-)
Comment 13 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-13 01:15:57 UTC
*** Bug 258808 has been marked as a duplicate of this bug. ***
Comment 14 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-13 02:05:32 UTC
Created attachment 181827 [details, diff]
Naive forward-port of patch

This took me about 5 minutes to do. It applies and the conflicts have been resolved.
Comment 15 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-14 22:15:45 UTC
*** Bug 259012 has been marked as a duplicate of this bug. ***
Comment 16 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-14 22:16:47 UTC
(In reply to comment #15)
> *** Bug 259012 has been marked as a duplicate of this bug. ***
> 

Please see the above duped bug for the official fix.