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

Bug 300383

Summary: net-libs/xulrunner-1.9.1.7 fails to apply patch
Product: Gentoo Linux Reporter: Hans Nieser <hans>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gerdesj
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: failed patch output

Description Hans Nieser 2010-01-10 09:57:11 UTC
When trying to update xulrunner to 1.9.1.7 an error occurs when trying to apply a patch:

>>> Preparing source in /var/tmp/portage/net-libs/xulrunner-1.9.1.7/work/mozilla-1.9.1 ...
 * Applying various patches (bugfixes/updates) ...
 *   001-xul_gentoo_install_dirs.patch ...[ ok ]
 *   065-bzXXX_pc_honour_system_nspr_nss-gentoo_fixed.patch ...[ ok ]
 *   066-fix-includedir-mozilla-js.patch ...[ ok ]
 *   067-fix-includedir-mozilla-plugin.patch ...[ ok ]
 *   102-dont_install_so_in_dev.patch ...[ ok ]
 *   104-protect_tests_by_ifdefs.patch ...[ ok ]
 *   108-bzXXX_no_zlib_export_if_native.patch ...[ ok ]
 *   112-bz466923_att350251_password_prompt_branding_fallback.patch ...[ ok ]
 *   118-bz467766_att351173-dont-reset-user-prefs-on-upgrade.patch ...[ ok ]
 *   135-xulrunner-1.9.1.1-nptypes.h.patch ...[ ok ]
 *   136-fix_ftbfs_with_cairo_fb.patch ...

 * Failed Patch: 136-fix_ftbfs_with_cairo_fb.patch !
 *  ( /var/tmp/portage/net-libs/xulrunner-1.9.1.7/work/136-fix_ftbfs_with_cairo_fb.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/net-libs/xulrunner-1.9.1.7/temp/136-fix_ftbfs_with_cairo_fb.patch.out

 * ERROR: net-libs/xulrunner-1.9.1.7 failed:
 *   Failed Patch: 136-fix_ftbfs_with_cairo_fb.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_prepare
 *   environment, line 6165:  Called epatch '/var/tmp/portage/net-libs/xulrunner-1.9.1.7/work'
 *   environment, line 2238:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of 'emerge --info =net-libs/xulrunner-1.9.1.7',
 * the complete build log and the output of 'emerge -pqv =net-libs/xulrunner-1.9.1.7'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/var/tmp/portage/net-libs/xulrunner-1.9.1.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/xulrunner-1.9.1.7/temp/environment'.
 * S: '/var/tmp/portage/net-libs/xulrunner-1.9.1.7/work/mozilla-1.9.1'



My emerge --info:
Portage 2.1.7.16 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r1-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_5050e-with-gentoo-2.0.1
Timestamp of tree: Sun, 10 Jan 2010 09:30:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
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"
CXXFLAGS="-O2 -march=athlon64 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.tiscali.nl/pub/mirror/gentoo "
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
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/layman/x11 /usr/local/aphax-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 audacious automount avahi bash-completion berkdb bluetooth branding bzip2 cairo cdr cjk cli consolekit cracklib crypt cups cxx dbus dirac divx djvu dri dts dv dvd dvdr eds emboss encode evo fam ffmpeg firefox flac fortran fuse gdbm gif gnome gnome-keyring gpm gstreamer gtk gtk2 hal iconv ieee1394 ipv6 jpeg jpeg2k ldap libnotify mad matroska mikmod mmx mmxext mng modules mono moonlight mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nntp nptl nptlonly nvidia ogg opengl openmp pam pcre pdf perl png policykit ppds pppd python qt3support quicktime readline reflection samba sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd theora threads thunar tiff truetype unicode usb vcd vim-syntax vorbis wmf wmp wxwindows x264 xinerama xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa radeon radeonhd nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Might be related to/dupe of bug 300360 (it doesn't seem to fail on the exact same patch though)
Comment 1 Hans Nieser 2010-01-10 09:58:14 UTC
Created attachment 215909 [details]
failed patch output
Comment 2 Jon Gerdes 2010-01-10 12:01:07 UTC
(In reply to comment #0)

> Might be related to/dupe of bug 300360 (it doesn't seem to fail on the exact
> same patch though)

I don't think so.  I have the same issue ie fails to patch 136-fix_ftbfs_with_cairo_fb.patch.

In the ebuild:

src_prepare() {
        # Apply our patches
        EPATCH_EXCLUDE="136-fix_ftbfs_with_cairo_fb.patch" \
        EPATCH_SUFFIX="patch" \
        EPATCH_FORCE="yes" \
        epatch "${WORKDIR}"

So I think this patch is supposed to be excluded.  I followed the link in the bug 300360 and checked that my eclass/eutils.class had the change posted there.

The fault still occurs.  

I don't think that EPATCH_EXCLUDE is working properly (but I am in no way a programmer!)
Comment 3 garulf 2010-01-10 12:07:19 UTC
same error. Looking at the code seams that the patch doesn't need anymore.
Comment 4 Ben de Groot (RETIRED) gentoo-dev 2010-01-10 13:25:10 UTC

*** This bug has been marked as a duplicate of bug 300360 ***