Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134826 - mail-filter/qmail-scanner-2.01 patch failed
Summary: mail-filter/qmail-scanner-2.01 patch failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Qmail Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 135012 135047 135769 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-29 14:22 UTC by Mehmet Kemal EROL
Modified: 2006-06-06 07:36 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
q-s-2.01st-20060423.patch.gz-12611.out (q-s-2.01st-20060423.patch.gz-12611.out,17.46 KB, text/plain)
2006-05-29 14:25 UTC, Mehmet Kemal EROL
Details
the offending patch in question (q-s-2.01st-20060423.patch.gz-15584.out,17.42 KB, patch)
2006-05-31 17:38 UTC, joe cave
Details | Diff
modified 20060423 patch for gentoo ebuild (q-s-2.01st-20060423a.patch.gz,95.49 KB, application/octet-stream)
2006-06-02 07:20 UTC, Steffen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mehmet Kemal EROL 2006-05-29 14:22:41 UTC
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
Comment 1 Mehmet Kemal EROL 2006-05-29 14:25:22 UTC
Created attachment 87826 [details]
q-s-2.01st-20060423.patch.gz-12611.out

The relevant `patch.out' log...
Comment 2 Rumen Yotov 2006-05-29 22:52:21 UTC
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
Comment 3 Rumen Yotov 2006-05-29 22:59:54 UTC
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
Comment 4 Rumen Yotov 2006-05-29 23:11:31 UTC
Hi,
Applying the patch manually (ebuild unpack + patch) fails.
Rumen
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-05-30 09:21:17 UTC
 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. 
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-05-31 02:49:14 UTC
Uh, I've closed wrong bug, sorry about this.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-05-31 02:49:29 UTC
*** Bug 135012 has been marked as a duplicate of this bug. ***
Comment 8 Marco Lopes 2006-05-31 04:45:32 UTC
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!
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-05-31 08:11:04 UTC
*** Bug 135047 has been marked as a duplicate of this bug. ***
Comment 10 joe cave 2006-05-31 17:38:42 UTC
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
Comment 11 joe cave 2006-05-31 17:40:05 UTC
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 12 joe cave 2006-05-31 17:42:17 UTC
Comment on attachment 88057 [details, diff]
the offending patch in question

Sorry, posted patch out of order. Goes with my post below.
Comment 13 Steffen 2006-06-02 07:20:04 UTC
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.
Comment 14 Ben 2006-06-04 13:30:28 UTC
(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.
Comment 15 Jory A. Pratt 2006-06-04 13:49:30 UTC
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.
Comment 16 Lim Swee Tat (RETIRED) gentoo-dev 2006-06-04 16:49:15 UTC
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. :)
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2006-06-06 07:36:10 UTC
*** Bug 135769 has been marked as a duplicate of this bug. ***