When I tried to merge `qmail-scanner-2.01' it failed, like: >>> Unpacking source... >>> Unpacking qmail-scanner-2.01.tgz to /var/tmp/portage/qmail-scanner-2.01/work >>> Unpacking q-s-2.01st-20060423.patch.gz to /var/tmp/portage/qmail-scanner-2.01/work * Applying q-s-2.01st-20060423.patch.gz ... * A dry-run of patch command succeeded, but actually * applying the patch failed! * Failed Patch: q-s-2.01st-20060423.patch.gz ! * ( /var/tmp/portage/qmail-scanner-2.01/temp/12611.patch ) * * Include in your bugreport the contents of: * * /var/tmp/portage/qmail-scanner-2.01/temp/q-s-2.01st-20060423.patch.gz-12611.out !!! ERROR: mail-filter/qmail-scanner-2.01 failed. Call stack: ebuild.sh, line 1531: Called dyn_unpack ebuild.sh, line 703: Called src_unpack qmail-scanner-2.01.ebuild, line 48: Called epatch '/var/tmp/portage/qmail-scanner-2.01/distdir/q-s-2.01st-20060423.patch.gz' eutils.eclass, line 339: Called die !!! Failed Patch: q-s-2.01st-20060423.patch.gz! !!! If you need support, post the topmost build error, and the call stack if relevant. --- My `emerge --info' says: Portage 2.1_rc3-r1 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16-gentoo-r8 x86_64) ================================================================= System uname: 2.6.16-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.0 ccache version 2.4 [enabled] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r1 dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/env.d/60prelink /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical --ask --deep --verbose" FEATURES="autoconfig candy ccache confcache digest distlocks fixpackages metadata-transfer sandbox sfperms strict stricter userfetch userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1 -Wl,-z,now -Wl,--sort-common" LINGUAS="tr" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --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="amd64 X alsa avi bitmap-fonts cli crypt cups dri eds emboss encode foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 imlib isdnlog jpeg kde lzw lzw-tiff mp3 mpeg ncurses nls nptl opengl pcre pdflib perl pic png posix pppd python qt quicktime readline reflection sdl session spell spl ssl tcpd tiff truetype-fonts type1-fonts usb xorg xpm xv zlib elibc_glibc input_devices_dmc input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse kernel_linux linguas_tr userland_GNU video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_v4l video_cards_vesa video_cards_vga" Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 87826 [details] q-s-2.01st-20060423.patch.gz-12611.out The relevant `patch.out' log...
Hi, Can confirm that too. Assume it's due to a missing patch-file. Checked in ebuild and files dir - no such patch file. But to make sure will re-sync portage-tree again. Commenting the epatch line doesn't work, so the patch is required. PS:wget http://toribio.apollinare.org/qmail-scanner/download/q-s-2.01st-20060423.patch.gz Thanks.Rumen
Hi again, Just made an error - the patch-file is there, but it's in DISTDIR not FILESDIR. The patches are identical, so some error with patch/patching itself. Rumen
Hi, Applying the patch manually (ebuild unpack + patch) fails. Rumen
29 May 2006; Lim Swee Tat <st_lim@gentoo.org> +qmail-scanner-2.01.ebuild: Version bump to 2.01 Closing. There are separate bugs about broken patch and broken digest, sorry about this.
Uh, I've closed wrong bug, sorry about this.
*** Bug 135012 has been marked as a duplicate of this bug. ***
I get the same error on a computer with a x86 class processor (Intel(R) Pentium(R) D CPU 3.00GHz) so I'm thinking this is not an AMD64 only error!
*** Bug 135047 has been marked as a duplicate of this bug. ***
Created attachment 88057 [details, diff] the offending patch in question as requested: * Include in your bugreport the contents of: * * /var/tmp/portage/qmail-scanner-2.01/temp/q-s-2.01st-20060423.patch.gz-24996.out
My error is different, but it's in regards to the same patch so posting here. emerge of qmail-scanner returns: >>> Unpacking q-s-2.01st-20060423.patch.gz to /var/tmp/portage/qmail-scanner-2.01/work * Applying q-s-2.01st-20060423.patch.gz ... * A dry-run of patch command succeeded, but actually * applying the patch failed! * Failed Patch: q-s-2.01st-20060423.patch.gz ! * ( /var/tmp/portage/qmail-scanner-2.01/temp/15584.patch ) * * Include in your bugreport the contents of: * * /var/tmp/portage/qmail-scanner-2.01/temp/q-s-2.01st-20060423.patch.gz-15584.out !!! ERROR: mail-filter/qmail-scanner-2.01 failed. !!! Function epatch, Line 339, Exitcode 0 !!! Failed Patch: q-s-2.01st-20060423.patch.gz! Here's my emerge --info: Portage 2.0.54-r2 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r3, 2.6.14-hardened-r7 i686) ================================================================= System uname: 2.6.14-hardened-r7 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.14 dev-lang/python: 2.4.2 dev-python/pycrypto: [Not Present] dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=pentium3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-Os -march=pentium3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage//packages/x86/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 berkdb bzip2 crypt curl dlloader expat gd gif gmp hardened idn jpeg mhash mysql ncurses nls pam pcre perl php pic png postgres python qmail readline sqlite ssl tcpd udev userlocales x86 xml xml2 zlib userland_GNU kernel_linux elibc_glibc" Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY
Comment on attachment 88057 [details, diff] the offending patch in question Sorry, posted patch out of order. Goes with my post below.
Created attachment 88186 [details] modified 20060423 patch for gentoo ebuild copy patch into /usr/portage/distfiles, change ebuild in overlay to utilize the patch, rebuild manifest and reemerge. emerge qmail-scanner now works. The attached patchfile is just a lame fixup to workaround different patch versions, no "legitimate" version change.
(In reply to comment #13) > copy patch into /usr/portage/distfiles, change ebuild in overlay to utilize the > patch, rebuild manifest and reemerge. emerge qmail-scanner now works. > The attached patchfile is just a lame fixup to workaround different patch > versions, no "legitimate" version change. Can we either push qmail-scanner-2.01 back to ~ or actually apply the fix to the ebuild please? For now, I'm going to just mask it locally.
I have emailed st_lim about the problem and will let him address it. This should have never been marked stable during the revision bump. If no action is taken in the next few days i will make the changes myself.
Hi, Been busy. The problem has been fixed. qmail-scanner ships with an index.php which is a symlink to README.html. the patch attempts to remove this file. To fix the problem, remove the link, and copy README.html to index.php. My fault for bumping without checking the arch. The arch should have been unstable. :)
*** Bug 135769 has been marked as a duplicate of this bug. ***