Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48536 - While doing emerge -u world, kdelibs-3.2.2 fails to merge (complains about patch).
Summary: While doing emerge -u world, kdelibs-3.2.2 fails to merge (complains about pa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 48549 48570 48648 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-20 23:28 UTC by shimi
Modified: 2004-04-22 05:12 UTC (History)
8 users (show)

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


Attachments
kdelibs-3.2.2-su.cpp.diff (kdelibs-3.2.2-su.cpp.diff,383 bytes, patch)
2004-04-21 00:55 UTC, Christoph Brill (egore) (RESIGNED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description shimi 2004-04-20 23:28:02 UTC
root@matrix portage # emerge -u world
Calculating world dependencies ...done!
>>> emerge (1 of 30) kde-base/kdelibs-3.2.2 to /
>>> md5 src_uri ;-) kdelibs-3.2.2.tar.bz2
>>> Unpacking source...
>>> Unpacking kdelibs-3.2.2.tar.bz2 to /var/tmp/portage/kdelibs-3.2.2/work
RUNNING FROM extra_functions.sh
 * Applying kdelibs-3.2.2-su.cpp.diff...

 * Failed Patch: kdelibs-3.2.2-su.cpp.diff!
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/kdelibs-3.2.2/temp/kdelibs-3.2.2-su.cpp.diff-19416.out

!!! ERROR: kde-base/kdelibs-3.2.2 failed.
!!! Function epatch, Line 360, Exitcode 0
!!! Failed Patch: kdelibs-3.2.2-su.cpp.diff!

root@matrix portage # cat /var/tmp/portage/kdelibs-3.2.2/temp/kdelibs-3.2.2-su.cpp.diff-19416.out
***** kdelibs-3.2.2-su.cpp.diff *****

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

PATCH COMMAND:  patch  -p0 < /usr/portage/kde-base/kdelibs/files/kdelibs-3.2.2-su.cpp.diff

=====================================
patching file kdesu/su.cpp
Hunk #1 FAILED at 1.
1 out of 2 hunks FAILED -- saving rejects to file kdesu/su.cpp.rej
=====================================

PATCH COMMAND:  patch  -p1 < /usr/portage/kde-base/kdelibs/files/kdelibs-3.2.2-su.cpp.diff

=====================================
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:
--------------------------
|--- kdesu/su.cpp       2004/03/26 23:26:45     1.32.2.2
|+++ kdesu/su.cpp       2004/04/13 13:32:27     1.32.2.3
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
=====================================

PATCH COMMAND:  patch  -p2 < /usr/portage/kde-base/kdelibs/files/kdelibs-3.2.2-su.cpp.diff

=====================================
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:
--------------------------
|--- kdesu/su.cpp       2004/03/26 23:26:45     1.32.2.2
|+++ kdesu/su.cpp       2004/04/13 13:32:27     1.32.2.3
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
=====================================

PATCH COMMAND:  patch  -p3 < /usr/portage/kde-base/kdelibs/files/kdelibs-3.2.2-su.cpp.diff

=====================================
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:
--------------------------
|--- kdesu/su.cpp       2004/03/26 23:26:45     1.32.2.2
|+++ kdesu/su.cpp       2004/04/13 13:32:27     1.32.2.3
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
=====================================

PATCH COMMAND:  patch  -p4 < /usr/portage/kde-base/kdelibs/files/kdelibs-3.2.2-su.cpp.diff

=====================================
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:
--------------------------
|--- kdesu/su.cpp       2004/03/26 23:26:45     1.32.2.2
|+++ kdesu/su.cpp       2004/04/13 13:32:27     1.32.2.3
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored


Reproducible: Always
Steps to Reproduce:
1. emerge sync
2. emerge -u world
Actual Results:  
emerge failed

Expected Results:  
emerge should have succeeded, something is probably wrong with the ebuild.

root@matrix portage # emerge info
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
2.6.5-gentoo)
=================================================================
System uname: 2.6.5-gentoo i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.6
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/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="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb cdr crypt cups encode esd foomaticdb gdbm
gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libusb libwww mad mikmod motif
mpeg mysql ncurses nls oggvorbis opengl pam pdflib perl png ppds python qt
quicktime readline scanner sdl slang spell ssl svga tcpd tetex truetype usb x86
xml2 xmms xv zlib"
Comment 1 Manas T. 2004-04-21 00:36:41 UTC
I have the same problem with compiling kdelibs-3.2.2

#emerge info
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.5)
=================================================================
System uname: 2.6.5 i686 AMD Athlon(tm)
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -fforce-addr -fomit-frame-pointer -funroll-loops -funroll-all-loops -fprefetch-loop-arrays -maccumulate-outgoing-args -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O3 -fforce-addr -fomit-frame-pointer -funroll-loops -funroll-all-loops -fprefetch-loop-arrays -maccumulate-outgoing-args -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://81.88.192.4/pub/gentoo/portage http://mirror.gentoo.ru/pub/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow acpi alsa arts avi berkdb crypt cups dga fbcon gd gdbm gif gpm imap java jpeg kde ldap lesstif maildir mmx mpeg ncurses nls nptl oggvorbis opengl pam png qt quicktime readline samba slang snmp spell sse ssl svga tiff truetype unicode x86 xml xml2 xmms zlib"
Comment 2 Christoph Brill (egore) (RESIGNED) 2004-04-21 00:55:01 UTC
Created attachment 29735 [details, diff]
kdelibs-3.2.2-su.cpp.diff

I removed the first part of the patch since its not needed to get it running. I
think that caleb only did a small mistake in the comment-header. He trys to
replace a line which isn't there.

The second part works fine.
Comment 3 Manas T. 2004-04-21 01:09:58 UTC
The patch works for me too.
Thanks eGore.
Comment 4 shimi 2004-04-21 01:39:12 UTC
Where, in the filesystem, should I place the patch submitted here, and, do I need to take any special actions for the emerge to "know" it is there?

I am asking, because to the best of my knowledge, every time emerge re-runs it re-opens the tarballs into the destination working dir (a behavior I am still trying to understand :))
Comment 5 Manas T. 2004-04-21 01:44:10 UTC
Place the patch right here: /usr/portage/kde-base/kdelibs/files/
Re-emerge kdelibs.
Comment 6 shimi 2004-04-21 01:55:46 UTC
OK, it passed the unpacking stage, and continued with running configure. Hope the rest will be fine...

Shouldn't this file change be propegated into the CVS tree?
Comment 7 Christoph Brill (egore) (RESIGNED) 2004-04-21 03:01:41 UTC
i guess not. but caleb will fix his patch and submit this one into portage.

if you mean the kde-cvs-tree i would say: yes. But i think it is already there.
Comment 8 shimi 2004-04-21 03:39:28 UTC
I assumed the portage tree runs on CVS (it wouldn't be smart if it wouldn't), so I meant this CVS. 

Unless, again, the bug is in the source that came from KDE.

Anyhow, I think this should be dealt, as no one can emerge -u world now if they're using ~x86... (to the best of my understanding.)
Comment 9 Caleb Tennis (RETIRED) gentoo-dev 2004-04-21 05:43:16 UTC
now fixed - I wonder why it worked okay on my machine at home?
Comment 10 Bryan Stine (RETIRED) gentoo-dev 2004-04-21 05:53:01 UTC
*** Bug 48549 has been marked as a duplicate of this bug. ***
Comment 11 Caleb Tennis (RETIRED) gentoo-dev 2004-04-21 11:30:51 UTC
*** Bug 48575 has been marked as a duplicate of this bug. ***
Comment 12 Caleb Tennis (RETIRED) gentoo-dev 2004-04-21 11:31:34 UTC
*** Bug 48570 has been marked as a duplicate of this bug. ***
Comment 13 Caleb Tennis (RETIRED) gentoo-dev 2004-04-22 05:12:53 UTC
*** Bug 48648 has been marked as a duplicate of this bug. ***