System runs with dev-php/php-4.4.0. After doing an "emerge sync" today it tried to update php-4.4.0 to php-4.4.0-r1. Download of php-pcrelib-new-secpatch.tar. bz2 went without problems, unpacking the patch too. However, applying the patch aborts with an error. Reproducible: Always Steps to Reproduce: 1.emerge --sync 2.emerge -uq dev-php/php Actual Results: # emerge -uq dev-php/php Calculating dependencies ...done! >>> emerge (1 of 1) dev-php/php-4.4.0-r1 to / >>> md5 files ;-) php-4.3.11-r1.ebuild >>> md5 files ;-) php-4.4.0.ebuild >>> md5 files ;-) php-4.3.11.ebuild >>> md5 files ;-) php-4.4.0-r1.ebuild >>> md5 files ;-) files/digest-php-4.3.11-r1 >>> md5 files ;-) files/php-4.3.4-amd64hack.diff >>> md5 files ;-) files/php4.4.0-imap-symlink.diff >>> md5 files ;-) files/digest-php-4.4.0-r1 >>> md5 files ;-) files/stdint.diff >>> md5 files ;-) files/php4.4.0-pcre-security.patch >>> md5 files ;-) files/libmbfl-headers.patch >>> md5 files ;-) files/php4.3.11-imap-symlink.diff >>> md5 files ;-) files/digest-php-4.4.0 >>> md5 files ;-) files/php4.3.11-pcre-security.patch >>> md5 files ;-) files/php-4.3.11-gmp.patch >>> md5 files ;-) files/digest-php-4.3.11 >>> md5 files ;-) files/php-4.3.11-flash.patch >>> md5 src_uri ;-) php-4.4.0.tar.bz2 >>> md5 src_uri ;-) php-4.3.6-includepath.diff >>> md5 src_uri ;-) php-pcrelib-new-secpatch.tar.bz2 >>> Unpacking source... * If you have both freetds and mssql in your USE flags, parts of PHP * may not behave correctly, or may give strange warnings. You have * been warned! It's recommended that you pick ONE of them. For sybase * support, chose 'freetds'. For mssql support choose 'mssql'. >>> Unpacking php-4.4.0.tar.bz2 to /var/tmp/portage/php-4.4.0-r1/work * uclibctoolize() is depreciated, please just use libtoolize()! * Running elibtoolize in: php-4.4.0 * Applying portage-1.4.1.patch ... * Applying sed-1.4.3.patch ... * Applying uclibc-conf-1.2.0.patch ... * Applying php4.4.0-imap-symlink.diff ... [ ok ] >>> Unpacking php-pcrelib-new-secpatch.tar.bz2 to /var/tmp/portage/php-4.4.0-r1/ work * Applying php4.4.0-pcre-security.patch ... * Failed Patch: php4.4.0-pcre-security.patch ! * ( /usr/portage/dev-php/php/files/php4.4.0-pcre-security.patch ) * * Include in your bugreport the contents of: * * /var/tmp/portage/php-4.4.0-r1/temp/php4.4.0-pcre-security.patch-17374.out !!! ERROR: dev-php/php-4.4.0-r1 failed. !!! Function epatch, Line 361, Exitcode 0 !!! Failed Patch: php4.4.0-pcre-security.patch! !!! If you need support, post the topmost build error, NOT this status message. Expected Results: Patch gets applied and php update emerged. Actual patch file: # ls -l /usr/portage/dev-php/php/files/php4.4.0-pcre-security.patch -rw-r--r-- 1 root root 6431 18. Sep 22:56 /usr/portage/dev-php/php/files/php4. 4.0-pcre-security.patch # md5sum /usr/portage/dev-php/php/files/php4.4.0-pcre-security.patch a94bbec730cc65c7ffc407938bba42bc /usr/portage/dev-php/php/files/php4.4.0-pcre- security.patch Output of patch command: # cat /var/tmp/portage/php-4.4.0-r1/temp/php4.4.0-pcre-security.patch-17374.out ***** php4.4.0-pcre-security.patch ***** ======================================== PATCH COMMAND: patch -p0 -g0 --no-backup-if-mismatch < /usr/portage/dev-php/ php/files/php4.4.0-pcre-security.patch ======================================== patching file configure Hunk #2 succeeded at 71500 (offset -6 lines). Hunk #3 succeeded at 71524 (offset -6 lines). Hunk #4 succeeded at 71570 (offset -6 lines). Hunk #5 succeeded at 71646 (offset -6 lines). Hunk #6 succeeded at 71689 (offset -6 lines). Hunk #7 succeeded at 71890 (offset -6 lines). patching file configure.in patching file ext/pcre/config.m4 Hunk #1 FAILED at 1. Hunk #3 succeeded at 50 with fuzz 1. 1 out of 3 hunks FAILED -- saving rejects to file ext/pcre/config.m4.rej ======================================== PATCH COMMAND: patch -p1 -g0 --no-backup-if-mismatch < /usr/portage/dev-php/ php/files/php4.4.0-pcre-security.patch ======================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- configure 2005-09-18 02:12:50.000000000 +0200 |+++ configure 2005-09-18 21:00:29.000000000 +0200 -------------------------- No file to patch. Skipping patch. 7 out of 7 hunks ignored missing header for unified diff at line 68 of patch can't find file to patch at input line 68 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- configure.in 2005-09-17 17:44:30.000000000 +0200 |+++ configure.in 2005-09-17 17:45:01.000000000 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 79 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- ext/pcre/config.m4 2005/05/31 12:22:27 1.29.2.7 |+++ ext/pcre/config.m4 2005/08/09 17:41:56 1.29.2.7.2.1 -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored ======================================== PATCH COMMAND: patch -p2 -g0 --no-backup-if-mismatch < /usr/portage/dev-php/ php/files/php4.4.0-pcre-security.patch ======================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- configure 2005-09-18 02:12:50.000000000 +0200 |+++ configure 2005-09-18 21:00:29.000000000 +0200 -------------------------- No file to patch. Skipping patch. 7 out of 7 hunks ignored missing header for unified diff at line 68 of patch can't find file to patch at input line 68 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- configure.in 2005-09-17 17:44:30.000000000 +0200 |+++ configure.in 2005-09-17 17:45:01.000000000 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 79 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- ext/pcre/config.m4 2005/05/31 12:22:27 1.29.2.7 |+++ ext/pcre/config.m4 2005/08/09 17:41:56 1.29.2.7.2.1 -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored ======================================== PATCH COMMAND: patch -p3 -g0 --no-backup-if-mismatch < /usr/portage/dev-php/ php/files/php4.4.0-pcre-security.patch ======================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- configure 2005-09-18 02:12:50.000000000 +0200 |+++ configure 2005-09-18 21:00:29.000000000 +0200 -------------------------- No file to patch. Skipping patch. 7 out of 7 hunks ignored missing header for unified diff at line 68 of patch can't find file to patch at input line 68 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- configure.in 2005-09-17 17:44:30.000000000 +0200 |+++ configure.in 2005-09-17 17:45:01.000000000 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored missing header for unified diff at line 79 of patch can't find file to patch at input line 79 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- ext/pcre/config.m4 2005/05/31 12:22:27 1.29.2.7 |+++ ext/pcre/config.m4 2005/08/09 17:41:56 1.29.2.7.2.1 -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored ======================================== PATCH COMMAND: patch -p4 -g0 --no-backup-if-mismatch < /usr/portage/dev-php/ php/files/php4.4.0-pcre-security.patch ======================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- configure 2005-09-18 02:12:50.000000000 +0200 |+++ configure 2005-09-18 21:00:29.000000000 +0200 -------------------------- No file to patch. Skipping patch. 7 out of 7 hunks ignored missing header for unified diff at line 68 of patch can't find file to patch at input line 68 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- configure.in 2005-09-17 17:44:30.000000000 +0200 |+++ configure.in 2005-09-17 17:45:01.000000000 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored missing header for unified diff at line 79 of patch can't find file to patch at input line 79 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- ext/pcre/config.m4 2005/05/31 12:22:27 1.29.2.7 |+++ ext/pcre/config.m4 2005/08/09 17:41:56 1.29.2.7.2.1 -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored If it helps: # emerge info Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1, 2.6. 12-gentoo-r10 i686) ================================================================= System uname: 2.6.12-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/ share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb / 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=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http: //mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen. de/pub/Mirrors/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/" LC_ALL="de_DE.UTF-8" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aalib acpi alsa apm arts artswrappersuid audiofile avi bash- completion berkdb bitmap-fonts browserplugin bzlib cdparanoia cdr crypt cups curl dbm dbus divx4linux doc dvd dvdr dvdread eds emacs emboss encode esd ethereal exif fam fbcon firefox flac font-server foomaticdb fortran gd gdbm gif gimpprint gpg gphoto2 gpm gstreamer gtk gtk2 hal icq ieee1394 imagemagick imap imlib ipv6 java jikes jpeg junit kde libg++ libwww lirc lm_sensors logrotate logwatch lzw-tiff mad mbox mikmod milter mime mmg mmx mng motif mozilla mozsvg mp3 mpeg mplayer ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis openexr opengl oss pam pcre pda pdflib perl php png ppds python qt quicktime readline real samba scanner sdl sensord slang smime sockets spell sse sse2 ssl svga symlink tcltk tcpd tetex tidy tiff toolbar truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vcd visualization vorbis webdav win32codecs wxwindows xine xml xml2 xmms xosd xscreensaver xv xvid zlib linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LDFLAGS
Created attachment 68777 [details, diff] The failing patch file
Already fixed, emerge sync again.