First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 228585
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 218888
Assigned To: Luca Barbato <lu_zero@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Guido Winkelmann <guido-genbugs@unknownsite.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
bochs-2.3.7-gcc43.patch-29300.out Patch failure log file text/plain phceac@yahoo.com 2008-07-18 22:31 0000 2.75 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 228585 depends on: Show dependency tree
Bug 228585 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: 2008-06-20 16:27 0000
Emerging app-emulation/bochs-2.3.7 fails when trying to apply patch
bochs-2.3.7-gcc43.patch

Reproducible: Always

Steps to Reproduce:
1. emerge -uv app-emulation/bochs

Actual Results:  
>>> Emerging (1 of 1) app-emulation/bochs-2.3.7 to /
 * bochs-2.3.7.tar.gz RMD160 SHA1 SHA256 size ;-) ...                          
                                                         [ ok ]
 * dlxlinux4.tar.gz RMD160 SHA1 SHA256 size ;-) ...                            
                                                         [ ok ]
 * checking ebuild checksums ;-) ...                                           
                                                         [ ok ]
 * checking auxfile checksums ;-) ...                                          
                                                         [ ok ]
 * checking miscfile checksums ;-) ...                                         
                                                         [ ok ]
 * checking bochs-2.3.7.tar.gz ;-) ...                                         
                                                         [ ok ]
 * checking dlxlinux4.tar.gz ;-) ...                                           
                                                         [ ok ]
>>> Unpacking source...
>>> Unpacking bochs-2.3.7.tar.gz to /var/tmp/portage/app-emulation/bochs-2.3.7/work
 * Applying bochs-2.3.7-typos.patch ...                                        
                                                         [ ok ]
 * Applying bochs-2.3.7-gcc43.patch ...

 * Failed Patch: bochs-2.3.7-gcc43.patch !
 *  ( /usr/portage/app-emulation/bochs/files/bochs-2.3.7-gcc43.patch )
 *
 * Include in your bugreport the contents of:
 *
 *  
/var/tmp/portage/app-emulation/bochs-2.3.7/temp/bochs-2.3.7-gcc43.patch-30849.out

 *
 * ERROR: app-emulation/bochs-2.3.7 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 2656:  Called epatch 'src_unpack'
 *             environment, line 1591:  Called die
 * The specific snippet of code:
 *                   die "Failed Patch: ${patchname}!";
 *  The die message:
 *   Failed Patch: bochs-2.3.7-gcc43.patch!
 *
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/tmp/portage/app-emulation/bochs-2.3.7/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/app-emulation/bochs-2.3.7/temp/environment'.
 *

 * Messages for package app-emulation/bochs-2.3.7:

 * Failed Patch: bochs-2.3.7-gcc43.patch !
 *  ( /usr/portage/app-emulation/bochs/files/bochs-2.3.7-gcc43.patch )
 *
 * Include in your bugreport the contents of:
 *
 *  
/var/tmp/portage/app-emulation/bochs-2.3.7/temp/bochs-2.3.7-gcc43.patch-30849.out
 *
 * ERROR: app-emulation/bochs-2.3.7 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 2656:  Called epatch 'src_unpack'
 *             environment, line 1591:  Called die
 * The specific snippet of code:
 *                   die "Failed Patch: ${patchname}!";
 *  The die message:
 *   Failed Patch: bochs-2.3.7-gcc43.patch!
 *
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/tmp/portage/app-emulation/bochs-2.3.7/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/app-emulation/bochs-2.3.7/temp/environment'.
 *

Expected Results:  
bochs should be patched, compiled and installed

Contents of
/var/tmp/portage/app-emulation/bochs-2.3.7/temp/bochs-2.3.7-gcc43.patch-30849.out:
======
***** bochs-2.3.7-gcc43.patch *****

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

PATCH COMMAND:   patch -p0 -g0 -E --no-backup-if-mismatch <
/usr/portage/app-emulation/bochs/files/bochs-2.3.7-gcc43.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:
--------------------------
|--- symbols.cc 2008/03/30 14:32:14     1.11
|+++ symbols.cc 2008/06/16 17:09:52     1.12
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
===================================

PATCH COMMAND:   patch -p1 -g0 -E --no-backup-if-mismatch <
/usr/portage/app-emulation/bochs/files/bochs-2.3.7-gcc43.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:
--------------------------
|--- symbols.cc 2008/03/30 14:32:14     1.11
|+++ symbols.cc 2008/06/16 17:09:52     1.12
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
===================================

PATCH COMMAND:   patch -p2 -g0 -E --no-backup-if-mismatch <
/usr/portage/app-emulation/bochs/files/bochs-2.3.7-gcc43.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:
--------------------------
|--- symbols.cc 2008/03/30 14:32:14     1.11
|+++ symbols.cc 2008/06/16 17:09:52     1.12
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
===================================

PATCH COMMAND:   patch -p3 -g0 -E --no-backup-if-mismatch <
/usr/portage/app-emulation/bochs/files/bochs-2.3.7-gcc43.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:
--------------------------
|--- symbols.cc 2008/03/30 14:32:14     1.11
|+++ symbols.cc 2008/06/16 17:09:52     1.12
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
===================================

PATCH COMMAND:   patch -p4 -g0 -E --no-backup-if-mismatch <
/usr/portage/app-emulation/bochs/files/bochs-2.3.7-gcc43.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:
--------------------------
|--- symbols.cc 2008/03/30 14:32:14     1.11
|+++ symbols.cc 2008/06/16 17:09:52     1.12
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
======

# emerge --info
Portage 2.1.4.4 (default-linux/sparc/sparc64/2007.0, gcc-4.1.2, glibc-2.6.1-r0,
2.6.23-gentoo-r8 sparc64)
=================================================================
System uname: 2.6.23-gentoo-r8 sparc64 sun4u
Timestamp of tree: Fri, 20 Jun 2008 15:30:03 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="sparc"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=ultrasparc -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans
userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://gentoo.mirror.solnet.ch http://gentoo.tiscali.nl/"
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aiglx alsa apache2 audiofile bzip2 cddb cli cracklib crypt ctype
cups doc dri encode fam flac fortran ftp gd gdbm gif gpm gstreamer gtk iconv
imlib ipv6 isdnlog jpeg jpeg2k kde mad midi mp3 mudflap musepack nls nptl
nptlonly ogg opengl openmp pcre pdf png postgres ppds pppd qt3 readline
reflection sdl session sparc speex spell spl ssl svg theora tiff unicode vorbis
x264 xcomposite xinerama xorg xv xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym
copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat
linear meter 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 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 auth_digest" ELIBC="glibc"
INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de"
USERLAND="GNU" VIDEO_CARDS="sunffb fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS,
PORTDIR_OVERLAY

------- Comment #1 From phceac@yahoo.com 2008-06-26 11:40:15 0000 -------
bochs-2.3.7-gcc43.patch seems to be missing the path to symbols.cc 

Can be made to build by changing the patchfile, so that it reads:

--- bx_debug/symbols.cc 2008/03/30 14:32:14     1.11
+++ bx_debug/symbols.cc 2008/06/16 17:09:52     1.12
@@ -95,6 +95,9 @@
.........

------- Comment #2 From Mark Karpeles 2008-06-28 06:41:47 0000 -------
Indeed, in bug #218888 the patch was taken from cvs, but it was obviously done
from the wrong directory (eg. path is missing).

------- Comment #3 From Evan Teran 2008-07-08 00:03:19 0000 -------
Is this really easy adjustment going to make it into portage? It seems like a
no brainier to me.

(In reply to comment #2)
> Indeed, in bug #218888 the patch was taken from cvs, but it was obviously done
> from the wrong directory (eg. path is missing).
> 

------- Comment #4 From Luca Barbato 2008-07-09 07:47:11 0000 -------
Hm why it unpacks with the patch as is in my system?

------- Comment #5 From phceac@yahoo.com 2008-07-18 22:30:58 0000 -------
(In reply to comment #4)
> Hm why it unpacks with the patch as is in my system?
> 
Weird. The patch definitely doesn't work here.
Patch failure log attached. 

------- Comment #6 From phceac@yahoo.com 2008-07-18 22:31:46 0000 -------
Created an attachment (id=160774) [details]
Patch failure log file

------- Comment #7 From Mark Karpeles 2008-07-30 19:15:51 0000 -------
> Hm why it unpacks with the patch as is in my system?

I don't know why it works for you, I didn't write the ebuild. What I'm sure of
is that it doesn't work on all my 4 ~arch gentoo systems.

Could you have a look at this? The problem is quite obvious when being looked
at, and should have been fixed long ago now. Having to edit the patch file then
re-generate digest with ebuild on each system I work is something I shouldn't
have to do.

------- Comment #8 From Christian Faulhammer 2008-11-04 18:31:13 0000 -------
This has been handled meanwhile

*** This bug has been marked as a duplicate of bug 218888 ***

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