First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 136773
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Tuan Van (RETIRED) <langthang@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Neil Bothwick <neil@digimed.co.uk>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
sec-135921.patch-21325.out sec-135921.patch-21325.out report text/plain Neil Bothwick 2006-06-14 06:19 0000 2.84 KB Details
squirrelmail.log squirrelmail.log text/plain Dan Johansson 2006-06-15 13:32 0000 38.50 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 136773 depends on: Show dependency tree
Bug 136773 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-06-14 06:17 0000
Emerging mail-client/squirrelmail-1.4.6-r3 gives

 * Applying sec-135921.patch ...

 * Failed Patch: sec-135921.patch !
 *  ( /usr/portage/mail-client/squirrelmail/files/sec-135921.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/squirrelmail-1.4.6-r3/temp/sec-135921.patch-21325.out


!!! ERROR: mail-client/squirrelmail-1.4.6-r3 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_unpack
  ebuild.sh, line 711:   Called src_unpack
  squirrelmail-1.4.6-r3.ebuild, line 94:   Called epatch
'/usr/portage/mail-client/squirrelmail/files/sec-135921.patch'
  eutils.eclass, line 333:   Called die

!!! Failed Patch: sec-135921.patch!
!!! If you need support, post the topmost build error, and the call stack if
relevant.

------- Comment #1 From Neil Bothwick 2006-06-14 06:19:35 0000 -------
Created an attachment (id=89147) [details]
sec-135921.patch-21325.out report

------- Comment #2 From Tuan Van (RETIRED) 2006-06-14 08:35:41 0000 -------
problem with the $id header in the patch. fixed yesterday. emerge sync and try
again.

------- Comment #3 From Neil Bothwick 2006-06-14 09:47:16 0000 -------
I've just synced and it's the same copy of the patch file, and the same
failure. I'll try again tomorrow.

------- Comment #4 From Tuan Van (RETIRED) 2006-06-14 10:04:44 0000 -------
could be your sync mirror. you cn grab the patch here
<http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/mail-client/squirrelmail/files/sec-135921.patch?rev=1.2>
if you don't want to wait.

------- Comment #5 From Jakub Moc (RETIRED) 2006-06-14 14:38:39 0000 -------
*** Bug 136820 has been marked as a duplicate of this bug. ***

------- Comment #6 From Tuan Van (RETIRED) 2006-06-14 14:55:53 0000 -------
reopen to invetigate.

------- Comment #7 From Greg Watson (linuxkrn) 2006-06-14 14:59:01 0000 -------
I've synced from 4 different mirrors and still get this error.

------- Comment #8 From Tuan Van (RETIRED) 2006-06-14 15:02:32 0000 -------
reassign the bug to me as I am the one commit that patch.
I didn't read sec-135921.patch-21325.out and assumed it was caused by something
else.
Enyone got bite by this bug please post your `emerge --info` along with `emerge
patch squirrelmail -vp` `which patch` `equery k patch`
and please try `patch -p0 -g0 -E --no-backup-if-mismatch <
/usr/portage/mail-client/squirrelmail/files/sec-135921.patch` in the source
directory to see if it work that way.
Thank you.

------- Comment #9 From Dan Johansson 2006-06-15 10:33:39 0000 -------
I have the same problem, so here is the requested info.

# emerge --info
Portage 2.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3,
2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 Pentium II (Deschutes)
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
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/gcc-config: 1.3.13-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="-march=pentium2 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms
strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
MAKEOPTS="-j2"
PKGDIR="/var/pkgdir"
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="x86 apache2 bash-completion bzip2 cli crypt fastcgi hardened hardenedphp
logrotate logwatch minimal no-htdocs readline session ssl urandom userlocales
vhosts elibc_glibc kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

# emerge patch squirrelmail -vp

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-devel/patch-2.5.9  USE="-build -static" 0 kB
[ebuild  NS   ] mail-client/squirrelmail-1.4.6-r3  USE="crypt ldap spell ssl
vhosts -filter -mysql -nls -postgres" 0 kB

# which patch
/usr/bin/patch

# equery k patch
[ Checking sys-devel/patch-2.5.9 ]
 * 13 out of 13 files good

# patch -p0 -g0 -E --no-backup-if-mismatch <
/usr/portage/mail-client/squirrelmail/files/sec-135921.patch
patching file functions/global.php

Regards,
--Dan

------- Comment #10 From Tuan Van (RETIRED) 2006-06-15 11:40:29 0000 -------
(In reply to comment #9)

> 
> # patch -p0 -g0 -E --no-backup-if-mismatch <
> /usr/portage/mail-client/squirrelmail/files/sec-135921.patch
> patching file functions/global.php
> 
> Regards,
> --Dan
> 

Dan,
I (and some others) have the same patch version but don't hit this bug. I am
not sure what is going on here. Please try e few thing if you can.
1. `emerge --debug squirrelmail >& squirrelmail.log` and attach the log here
2. Change /usr/portage/mail-client/squirrelmail/files/sec-135921.patch so the
patch header read:
--- functions/global.php        2006-02-03 14:27:47.000000000 -0800
+++ functions/global.php        2006-06-13 12:28:12.000000000 -0700
then `ebuild /usr/portage/mail-client/squirrelmail/squirrelmail-1.4.6-r3.ebuild
digest unpack` to see if it work.
3. keep the patch file as original. modify the ebuild, change the epatch line
to
patch -p0 <"${FILESDIR}"/sec-135921.patch || die "patch failed"
then report back here. Thank you.

------- Comment #11 From Dan Johansson 2006-06-15 13:31:30 0000 -------
(In reply to comment #10)
> (In reply to comment #9)
> 
> > 
> > # patch -p0 -g0 -E --no-backup-if-mismatch <
> > /usr/portage/mail-client/squirrelmail/files/sec-135921.patch
> > patching file functions/global.php
> > 
> > Regards,
> > --Dan
> > 
> 
> Dan,
> I (and some others) have the same patch version but don't hit this bug. I am
> not sure what is going on here. Please try e few thing if you can.
> 1. `emerge --debug squirrelmail >& squirrelmail.log` and attach the log here
> 2. Change /usr/portage/mail-client/squirrelmail/files/sec-135921.patch so the
> patch header read:
> --- functions/global.php        2006-02-03 14:27:47.000000000 -0800
> +++ functions/global.php        2006-06-13 12:28:12.000000000 -0700
> then `ebuild /usr/portage/mail-client/squirrelmail/squirrelmail-1.4.6-r3.ebuild
> digest unpack` to see if it work.
> 3. keep the patch file as original. modify the ebuild, change the epatch line
> to
> patch -p0 <"${FILESDIR}"/sec-135921.patch || die "patch failed"
> then report back here. Thank you.
> 
1. Attached.
2. Fails:
# ebuild /usr/portage/mail-client/squirrelmail/squirrelmail-1.4.6-r3.ebuild
digest unpack
>>> Creating Manifest for /usr/portage/mail-client/squirrelmail
  digest.assumed                 6
   digest-squirrelmail-1.4.6::compatibility-1.3.tar.gz
   digest-squirrelmail-1.4.6::virus_scan.0.5-1.4.0.tar.gz
   digest-squirrelmail-1.4.6-r2::all_locales-1.4.6-20060221.tar.bz2
   digest-squirrelmail-1.4.6-r2::amavisnewsql-0.8.0-1.4.tar.gz
   digest-squirrelmail-1.4.6-r3::all_locales-1.4.6-20060221.tar.bz2
   digest-squirrelmail-1.4.6-r3::amavisnewsql-0.8.0-1.4.tar.gz
   digest-squirrelmail-1.5.1-r1::all_locales-1.5.1-20060219.tar.bz2
   digest-squirrelmail-1.5.1-r1::amavisnewsql-0.8.0-1.4.tar.gz
   digest-squirrelmail-1.5.1-r1::squirrelmail-1.5.1.tar.bz2
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking squirrelmail-1.4.6.tar.bz2 ;-)
>>> checking retrieveuserdata.0.9-1.4.0.tar.gz ;-)
>>> checking compatibility-2.0.4.tar.gz ;-)
>>> checking secure_login-1.2-1.2.8.tar.gz ;-)
>>> checking show_ssl_link-2.1-1.2.8.tar.gz ;-)
>>> checking admin_add.0.1-1.4.0.tar.gz ;-)
>>> checking gpg.2.0.1-1.4.2.tar.gz ;-)
>>> checking ldapuserdata-0.4.tar.gz ;-)
>>> Unpacking source...
>>> Unpacking squirrelmail-1.4.6.tar.bz2 to /var/tmp/portage/squirrelmail-1.4.6-r3/work
>>> Unpacking compatibility-2.0.4.tar.gz to /var/tmp/portage/squirrelmail-1.4.6-r3/work/squirrelmail-1.4.6/plugins
>>> Unpacking admin_add.0.1-1.4.0.tar.gz to /var/tmp/portage/squirrelmail-1.4.6-r3/work/squirrelmail-1.4.6/plugins
>>> Unpacking retrieveuserdata.0.9-1.4.0.tar.gz to /var/tmp/portage/squirrelmail-1.4.6-r3/work/squirrelmail-1.4.6/plugins
>>> Unpacking gpg.2.0.1-1.4.2.tar.gz to /var/tmp/portage/squirrelmail-1.4.6-r3/work/squirrelmail-1.4.6/plugins
>>> Unpacking ldapuserdata-0.4.tar.gz to /var/tmp/portage/squirrelmail-1.4.6-r3/work/squirrelmail-1.4.6/plugins
 * Applying ldapuserdata-0.4-gentoo.patch ...                                  
                                                    [ ok ]
>>> Unpacking secure_login-1.2-1.2.8.tar.gz to /var/tmp/portage/squirrelmail-1.4.6-r3/work/squirrelmail-1.4.6/plugins
>>> Unpacking show_ssl_link-2.1-1.2.8.tar.gz to /var/tmp/portage/squirrelmail-1.4.6-r3/work/squirrelmail-1.4.6/plugins
 * Applying sec-135921.patch ...

 * Failed Patch: sec-135921.patch !
 *  ( /usr/portage/mail-client/squirrelmail/files/sec-135921.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/squirrelmail-1.4.6-r3/temp/sec-135921.patch-25012.out


!!! ERROR: mail-client/squirrelmail-1.4.6-r3 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_unpack
  ebuild.sh, line 711:   Called src_unpack
  squirrelmail-1.4.6-r3.ebuild, line 94:   Called epatch
'/usr/portage/mail-client/squirrelmail/files/sec-135921.patch'
  eutils.eclass, line 333:   Called die

!!! Failed Patch: sec-135921.patch!
!!! If you need support, post the topmost build error, and the call stack if
relevant.

3. Also Fails:
Calculating dependencies... done!
>>> Emerging (1 of 1) mail-client/squirrelmail-1.4.6-r3 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking squirrelmail-1.4.6.tar.bz2 ;-)
>>> checking retrieveuserdata.0.9-1.4.0.tar.gz ;-)
>>> checking compatibility-2.0.4.tar.gz ;-)
>>> checking secure_login-1.2-1.2.8.tar.gz ;-)
>>> checking show_ssl_link-2.1-1.2.8.tar.gz ;-)
>>> checking admin_add.0.1-1.4.0.tar.gz ;-)
>>> checking gpg.2.0.1-1.4.2.tar.gz ;-)
>>> checking ldapuserdata-0.4.tar.gz ;-)
>>> Unpacking source...
>>> Unpacking squirrelmail-1.4.6.tar.bz2 to /var/tmp/portage/squirrelmail-1.4.6-r3/work
>>> Unpacking compatibility-2.0.4.tar.gz to /var/tmp/portage/squirrelmail-1.4.6-r3/work/squirrelmail-1.4.6/plugins
>>> Unpacking admin_add.0.1-1.4.0.tar.gz to /var/tmp/portage/squirrelmail-1.4.6-r3/work/squirrelmail-1.4.6/plugins
>>> Unpacking retrieveuserdata.0.9-1.4.0.tar.gz to /var/tmp/portage/squirrelmail-1.4.6-r3/work/squirrelmail-1.4.6/plugins
>>> Unpacking gpg.2.0.1-1.4.2.tar.gz to /var/tmp/portage/squirrelmail-1.4.6-r3/work/squirrelmail-1.4.6/plugins
>>> Unpacking ldapuserdata-0.4.tar.gz to /var/tmp/portage/squirrelmail-1.4.6-r3/work/squirrelmail-1.4.6/plugins
 * Applying ldapuserdata-0.4-gentoo.patch ...                                  
                                                    [ ok ]
>>> Unpacking secure_login-1.2-1.2.8.tar.gz to /var/tmp/portage/squirrelmail-1.4.6-r3/work/squirrelmail-1.4.6/plugins
>>> Unpacking show_ssl_link-2.1-1.2.8.tar.gz to /var/tmp/portage/squirrelmail-1.4.6-r3/work/squirrelmail-1.4.6/plugins
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:
--------------------------
|--- functions/global.php       2006-02-03 14:27:47.000000000 -0800
|+++ functions/global.php.new   2006-06-13 12:28:12.000000000 -0700
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
3 out of 3 hunks ignored

!!! ERROR: mail-client/squirrelmail-1.4.6-r3 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_unpack
  ebuild.sh, line 711:   Called src_unpack
  squirrelmail-1.4.6-r3.ebuild, line 95:   Called die

!!! patch failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.

--Dan

------- Comment #12 From Dan Johansson 2006-06-15 13:32:22 0000 -------
Created an attachment (id=89266) [details]
squirrelmail.log

------- Comment #13 From Tuan Van (RETIRED) 2006-06-15 14:32:21 0000 -------
found the bugger. I forgot to `cd "$S"` before apply the patch. for those of
you with USE="-nls" the patch would failed to applied because the current
diretory is not the right one. Fixed in CVS. Should be in our sync mirror
within an hour. Sorry for the inconvenience.

------- Comment #14 From Neil Bothwick 2006-06-15 17:19:32 0000 -------
That's fixed it, thanks.

------- Comment #15 From Dan Johansson 2006-06-16 08:55:24 0000 -------
That fixed it for me too.
Thanks!

First Last Prev Next    No search results available      Search page      Enter new bug