Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347429 - =net-print/cups-1.3.11-r4 fails to emerge: epatch failed
Summary: =net-print/cups-1.3.11-r4 fails to emerge: epatch failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords: InVCS
: 347441 347451 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-01 14:43 UTC by Luis Ferreira
Modified: 2010-12-01 17:31 UTC (History)
3 users (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 Luis Ferreira 2010-12-01 14:43:53 UTC
don't emerge

Reproducible: Always

Steps to Reproduce:
1.emerge -avDNu world
2.
3.

Actual Results:  
>>> Emerging (1 of 1) net-print/cups-1.3.11-r4
 * cups-1.3.11-source.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                [ ok ]
 * Package:    net-print/cups-1.3.11-r4
 * Repository: gentoo
 * Maintainer: printing@gentoo.org
 * USE:  X acl amd64 dbus elibc_glibc gnutls java jpeg kernel_linux linguas_en pam perl png ppds python ssl tiff userland_GNU
>>> Unpacking source...
>>> Unpacking cups-1.3.11-source.tar.bz2 to /var/tmp/portage/net-print/cups-1.3.11-r4/work
>>> Source unpacked in /var/tmp/portage/net-print/cups-1.3.11-r4/work
>>> Preparing source in /var/tmp/portage/net-print/cups-1.3.11-r4/work/cups-1.3.11 ...
 * Applying cups-1.3.0-configure.patch ...                                                                                                                                   [ ok ]
 * Applying cups-1.3.7-backend-https.patch ...                                                                                                                               [ ok ]
 * Applying cups-1.3.10-str3178.patch ...                                                                                                                                    [ ok ]
 * Applying cups-1.3.11-str3367-security-1.3v2.patch ...                                                                                                                     [ ok ]
 * Applying cups-1.3.11-str3401-security-1.3v2-regression.patch ...                                                                                                          [ ok ]
 * Applying cups-1.3.11-str3200.patch ...                                                                                                                                    [ ok ]
 * Applying cups-1.3.11-pdf-m4.patch ...

 * Failed Patch: cups-1.3.11-pdf-m4.patch !
 *  ( /usr/portage/net-print/cups/files/cups-1.3.11-pdf-m4.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/net-print/cups-1.3.11-r4/temp/cups-1.3.11-pdf-m4.patch.out

 * ERROR: net-print/cups-1.3.11-r4 failed:
 *   Failed Patch: cups-1.3.11-pdf-m4.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_prepare
 *   environment, line 3585:  Called epatch '/usr/portage/net-print/cups/files/cups-1.3.11-pdf-m4.patch'
 *   environment, line 2006:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of 'emerge --info =net-print/cups-1.3.11-r4',
 * the complete build log and the output of 'emerge -pqv =net-print/cups-1.3.11-r4'.
 * The complete build log is located at '/var/tmp/net-print:cups-1.3.11-r4:20101201-140427.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-print/cups-1.3.11-r4/temp/environment'.
 * S: '/var/tmp/portage/net-print/cups-1.3.11-r4/work/cups-1.3.11'

>>> Failed to emerge net-print/cups-1.3.11-r4, Log file:


Expected Results:  
emerge cups

Portage 2.1.9.24 (default/linux/amd64/10.0/no-multilib, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r6-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-1.12.14
Timestamp of tree: Wed, 01 Dec 2010 13:15:03 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.4_p6-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://cesium.di.uminho.pt/pub/gentoo  ftp://ftp.di.fc.ul.pt/pub/linux/gentoo/  http://cesium.di.uminho.pt/pub/gentoo http://ftp.dei.uc.pt/pub/linux/gentoo/ ftp://gentoo.imj.fr/pub/gentoo/ http://130.59.10.35/ftp/mirror/gentoo/"
LANG="pt_PT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pt en"
MAKEOPTS="-j -l9"
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="/var/lib/layman/zugaina /var/lib/layman/sunrise /usr/local/portage /var/lib/layman"
SYNC="rsync://ftp.rnl.ist.utl.pt/gentoo-portage"
USE="R X a52 aac aalib acl acpi addressbook aften alsa amd64 amr aspell atmo autotrace bash-completion berkdb bluetooth bzip2 cairo cdda cddax cddb cdio cli consolekit cpudetection cracklib crypt cups curl cxx dbus dc1394 dirac djvu dri dts dv dvd embedded enca encode exif expat faac faad facedetect fam fame ffmpeg fftw flac fontconfig fortran fpx frei0r gd gdbm geolocation gif gnuplot gnutls gpac gphoto2 gpm gs gsl gstreamer guile hal iconv id3tag ieee1394 imagemagick inkjar ipod ipv6 jack java jbig jpeg jpeg2k kate kde kipi ladspa lame lapack lash lastfm latex lcms lensfun libass libcaca libsamplerate libsysfs libtiger libv4l libv4l2 libvisual lm_sensors lua luatex lzma lzo mad matroska melt mjpeg mmx mng modules mp3 mp3tunes mp4 mpeg mtp mudflap musepack musicbrainz mysql ncurses networking nls nptl nptlonly nsplugin nuv octave ogg openal openexr opengl openmp pam pcre pdf perl plasma plotutils png policykit portaudio postproc ppds pppd python qt3support qt4 quicktime rar readline redeyes rtmp rtsp ruby sasl scale0tilt scanner schroedinger sdl sdl-image semantic-desktop session shine smime smp smtp sndfile snmp soundtouch sox speex spell sql sqlite sse sse2 ssl subtitles subversion svg sysfs taglib tcpd theora threads thumbnail tiff tk truetype twolame udev unicode usb v4l v4l2 vaapi vcdinfo vdpau video vorbis vpx webkit wma-fixed wmf wxwidgets x264 xcomposite xml xorg xpm xvid zip 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 cgi cgid 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" CAMERAS="sony_dscf55" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev wacom keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt en" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Dustin Polke 2010-12-01 15:07:48 UTC
(In reply to comment #0)
> 
>  * Include in your bugreport the contents of:
>  * 
>  *  
> /var/tmp/portage/net-print/cups-1.3.11-r4/temp/cups-1.3.11-pdf-m4.patch.out
Please do so. Thanks.
Comment 2 Aparicio 2010-12-01 15:13:11 UTC
This happens to me in my two systems, x86_64 and i686, both up to date.

/var/tmp/portage/net-print/cups-1.3.11-r4/temp/cups-1.3.11-pdf-m4.patch.out:
***** cups-1.3.11-pdf-m4.patch *****

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

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch < '/usr/portage/net-print/cups/files/cups-1.3.11-pdf-m4.patch'

====================================
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|# This patch is taken from cups 1.4.5 and fixes annoying requirement to have poppler around during build-time
|
|--- cups-1.3.11/config-scripts/cups-pdf.m4	2009-03-12 22:34:21.000000000 +0100
|+++ cups-1.4.5/config-scripts/cups-pdf.m4	2009-08-08 00:30:30.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
====================================

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch < '/usr/portage/net-print/cups/files/cups-1.3.11-pdf-m4.patch'

====================================
patching file config-scripts/cups-pdf.m4
Hunk #1 FAILED at 1.
Hunk #5 FAILED at 84.
2 out of 5 hunks FAILED -- saving rejects to file config-scripts/cups-pdf.m4.rej
====================================

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch < '/usr/portage/net-print/cups/files/cups-1.3.11-pdf-m4.patch'

====================================
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|# This patch is taken from cups 1.4.5 and fixes annoying requirement to have poppler around during build-time
|
|--- cups-1.3.11/config-scripts/cups-pdf.m4	2009-03-12 22:34:21.000000000 +0100
|+++ cups-1.4.5/config-scripts/cups-pdf.m4	2009-08-08 00:30:30.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
====================================

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch < '/usr/portage/net-print/cups/files/cups-1.3.11-pdf-m4.patch'

====================================
missing header for unified diff at line 5 of patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|# This patch is taken from cups 1.4.5 and fixes annoying requirement to have poppler around during build-time
|
|--- cups-1.3.11/config-scripts/cups-pdf.m4	2009-03-12 22:34:21.000000000 +0100
|+++ cups-1.4.5/config-scripts/cups-pdf.m4	2009-08-08 00:30:30.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
====================================

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch < '/usr/portage/net-print/cups/files/cups-1.3.11-pdf-m4.patch'

====================================
missing header for unified diff at line 5 of patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|# This patch is taken from cups 1.4.5 and fixes annoying requirement to have poppler around during build-time
|
|--- cups-1.3.11/config-scripts/cups-pdf.m4	2009-03-12 22:34:21.000000000 +0100
|+++ cups-1.4.5/config-scripts/cups-pdf.m4	2009-08-08 00:30:30.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2010-12-01 15:40:52 UTC
Sorry about that,
cvs screwed up the patch file.

Simple thought, i seriously hate cvs.
Comment 4 Luis Ferreira 2010-12-01 15:52:25 UTC
cat /var/tmp/portage/net-print/cups-1.3.11-r4/temp/cups-1.3.11-pdf-m4.patch.out
***** cups-1.3.11-pdf-m4.patch *****

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

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch < '/usr/portage/net-print/cups/files/cups-1.3.11-pdf-m4.patch'

====================================
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|# This patch is taken from cups 1.4.5 and fixes annoying requirement to have poppler around during build-time
|
|--- cups-1.3.11/config-scripts/cups-pdf.m4     2009-03-12 22:34:21.000000000 +0100
|+++ cups-1.4.5/config-scripts/cups-pdf.m4      2009-08-08 00:30:30.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
====================================

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch < '/usr/portage/net-print/cups/files/cups-1.3.11-pdf-m4.patch'

====================================
patching file config-scripts/cups-pdf.m4
Hunk #1 FAILED at 1.
Hunk #5 FAILED at 84.
2 out of 5 hunks FAILED -- saving rejects to file config-scripts/cups-pdf.m4.rej
====================================

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch < '/usr/portage/net-print/cups/files/cups-1.3.11-pdf-m4.patch'

====================================
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|# This patch is taken from cups 1.4.5 and fixes annoying requirement to have poppler around during build-time
|
|--- cups-1.3.11/config-scripts/cups-pdf.m4     2009-03-12 22:34:21.000000000 +0100
|+++ cups-1.4.5/config-scripts/cups-pdf.m4      2009-08-08 00:30:30.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
====================================

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch < '/usr/portage/net-print/cups/files/cups-1.3.11-pdf-m4.patch'

====================================
missing header for unified diff at line 5 of patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|# This patch is taken from cups 1.4.5 and fixes annoying requirement to have poppler around during build-time
|
|--- cups-1.3.11/config-scripts/cups-pdf.m4     2009-03-12 22:34:21.000000000 +0100
|+++ cups-1.4.5/config-scripts/cups-pdf.m4      2009-08-08 00:30:30.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
====================================

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch < '/usr/portage/net-print/cups/files/cups-1.3.11-pdf-m4.patch'

====================================
missing header for unified diff at line 5 of patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|# This patch is taken from cups 1.4.5 and fixes annoying requirement to have poppler around during build-time
|
|--- cups-1.3.11/config-scripts/cups-pdf.m4     2009-03-12 22:34:21.000000000 +0100
|+++ cups-1.4.5/config-scripts/cups-pdf.m4      2009-08-08 00:30:30.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
Comment 5 Dustin Polke 2010-12-01 16:22:07 UTC
*** Bug 347441 has been marked as a duplicate of this bug. ***
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2010-12-01 17:31:41 UTC
*** Bug 347451 has been marked as a duplicate of this bug. ***