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

Bug 308485

Summary: Patch fails without X use flag in media-libs/libdc1394-1.2.2
Product: Gentoo Linux Reporter: Eric Westbrook <gentoo>
Component: [OLD] LibraryAssignee: Stefaan De Roeck (RETIRED) <stefaan>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Ebuild's patch output as requested by error message
Corrected nox11 patch file for libdc1394-1.2.2
Changes to media-libs/libdc1394-1.2.2.ebuild for using new nox11 patch file

Description Eric Westbrook 2010-03-08 16:10:17 UTC
When emerging media-libs/libdc1394-1.2.2 with the X use flag UNSET, application of the libdc1394-1.2.1-nox11.patch patch file fails during emerge, causing the emerge to fail.

Reproducible: Always

Steps to Reproduce:
1. Ensure that the X USE flag is not set for media-libs/libdc1394-1.2.2
2. emerge -tav =media-libs/libdc1394-1.2.2 (for me this is the version that "emerge -utavDN world" wants)
3. Watch the emerge fail

Actual Results:  
>>> Emerging (1 of 36) media-libs/libdc1394-1.2.2
 * libdc1394-1.2.2.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                             [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                [ ok ]
 * CPV:  media-libs/libdc1394-1.2.2
 * REPO: gentoo
 * USE:  elibc_glibc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking libdc1394-1.2.2.tar.gz to /var/tmp/portage/media-libs/libdc1394-1.2.2/work
 * Applying libdc1394-1.2.1-nox11.patch ...

 * Failed Patch: libdc1394-1.2.1-nox11.patch !
 *  ( /usr/portage/media-libs/libdc1394/files/libdc1394-1.2.1-nox11.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/media-libs/libdc1394-1.2.2/temp/libdc1394-1.2.1-nox11.patch.out


Expected Results:  
Successful emerge

ds2 ~ # emerge --info
Portage 2.1.7.17 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Core-TM-2_Duo_CPU_T6400_@_2.00GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 08 Mar 2010 15:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.6.3-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 Broadcom"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=prescott -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/X11 /etc/portage /usr/share/X11/app-defaults /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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"
CXXFLAGS="-Os -march=prescott -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext a52 aac acl acpi adns aften alsa amrnb amrwb aspell audio bcmath berkdb bzip2 cairo ccache cdda cddax cddb cdparanoia cdr cgi cjk cli cracklib crypt ctype cups curl curlwrappers cxx dbus dirac djbfft djvu dri dts dv dvb dvd dvdnav dvdr emacs encode exif fastcgi ffmpeg flac fluidsynth fontconfig ftp gd gdbm gif gpm iconv id3tag imagemagick imlib ipv6 jbig jpeg jpeg2k kate lame lcms libsamplerate libv4l2 lm_sensors logrotate lzo mad math matroska md5sum midi mikmod mjpeg mmx mmxext mng modules mp3 mp4 mpeg mpeg2 mplayer mudflap musepack mysql mysqli nas ncurses nemesi network nls nptl nptlonly nuv offensive ogg openal opengl openmp pam pcre pdf perl png pnm portaudio posix pppd pvr python qt3support qt4 quicktime rar raw readline reflection rtc rtsp ruby schroedinger sdl sdl-image session shout slang sndfile snmp soap speex spell spl sqlite sqlite3 sse ssl svg sysfs syslog tcpd theora tiff tk truetype twolame unicode urandom usb utils v4l v4l2 vcd vcdinfo vhosts video vorbis wavpack win32codecs wma wmf wmp x264 x86 xcb xml xorg xosd xpm xscreensaver xv xvid xvmc yv12 zip zlib zvbi" ALSA_CARDS="usb-audio hda-intel" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Eric Westbrook 2010-03-08 16:11:37 UTC
I neglected to be clear that enabling the X use flag does result in a successful emerge, but one might expect that, since the offending patch name contains "nox11". :)
Comment 2 Eric Westbrook 2010-03-08 16:14:14 UTC
Created attachment 222693 [details]
Ebuild's patch output as requested by error message
Comment 3 Eric Westbrook 2010-03-08 16:37:52 UTC
I also suspect that bug 263251 is closely related to this, even though the failure output is a bit different.  Please advise if this bug should be marked duplicate and that bug reopened instead.
Comment 4 Eric Westbrook 2010-03-08 20:09:08 UTC
Created attachment 222713 [details, diff]
Corrected nox11 patch file for libdc1394-1.2.2

I created this patch file by manually merging the libdc1394-1.2.1-nox11.patch file's differences into examples/Makefile.in and then using diff -ur.  It seems to resolve this issue for me.
Comment 5 Eric Westbrook 2010-03-08 20:10:19 UTC
Created attachment 222715 [details, diff]
Changes to media-libs/libdc1394-1.2.2.ebuild for using new nox11 patch file

Differences in the ebuild used in my overlay to implement the above new patch file.
Comment 6 cx405 2010-10-05 18:47:08 UTC
It still fails with "-X". Why is 1.2.2 pulling 1.2.1 patch?

--------------------
 * Package:    media-libs/libdc1394-1.2.2
 * Repository: gentoo
 * Maintainer: stefaan@gentoo.org
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
>>> cfg-update-1.8.2-r1: Checksum index is up-to-date ...
 * Applying libdc1394-1.2.1-nox11.patch ...

 * Failed Patch: libdc1394-1.2.1-nox11.patch !
 *  ( /usr/portage/media-libs/libdc1394/files/libdc1394-1.2.1-nox11.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/media-libs/libdc1394-1.2.2/temp/libdc1394-1.2.1-nox11.patch.out

 * ERROR: media-libs/libdc1394-1.2.2 failed:
 *   Failed Patch: libdc1394-1.2.1-nox11.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_unpack
 *   environment, line 2656:  Called epatch '/usr/portage/media-libs/libdc1394/files/libdc1394-1.2.1-nox11.patch'
 *   environment, line 1294:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of 'emerge --info =media-libs/libdc1394-1.2.2',
 * the complete build log and the output of 'emerge -pqv =media-libs/libdc1394-1.2.2'.
 * The complete build log is located at '/var/tmp/portage/media-libs/libdc1394-1.2.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/libdc1394-1.2.2/temp/environment'.
 * S: '/var/tmp/portage/media-libs/libdc1394-1.2.2/work/libdc1394-1.2.2'
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-03-21 14:28:46 UTC
Patch has been removed altogether (see bug #226751 as for why, it was a bad idea in the first place).