Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384181 - net-libs/webkit-gtk-1.4.3-r300: webkit-gtk-1.4.3-underlinking.patch is applied successfully by sys-devel/patch-2.5.9 even when it was already applied
Summary: net-libs/webkit-gtk-1.4.3-r300: webkit-gtk-1.4.3-underlinking.patch is applie...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 387471
Blocks:
  Show dependency tree
 
Reported: 2011-09-23 10:59 UTC by godmachine (Lance Poore)
Modified: 2011-12-03 02:08 UTC (History)
7 users (show)

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


Attachments
Log of the failed patch (webkit-gtk-1.4.3-underlinking.patch.out,5.93 KB, text/plain)
2011-09-23 10:59 UTC, godmachine (Lance Poore)
Details
build.log (build.log,1.50 KB, text/plain)
2011-09-23 18:28 UTC, Albert W. Hopkins
Details
emerge --info (emerge --info.txt,2.64 KB, text/plain)
2011-09-23 18:30 UTC, Albert W. Hopkins
Details
build.log (build.log,1.83 KB, text/plain)
2011-09-23 20:00 UTC, S.Holzbach
Details
emerge --info (emerge.info,6.08 KB, text/plain)
2011-09-23 20:01 UTC, S.Holzbach
Details
build.log (build.log,2.21 KB, text/plain)
2011-09-24 09:05 UTC, Giuseppe Vitillaro
Details
emerge --info (emerge.info,5.00 KB, text/plain)
2011-09-24 09:07 UTC, Giuseppe Vitillaro
Details
webkit-gtk-1.4.3-underlinking.patch.out (webkit-gtk-1.4.3-underlinking.patch.out,5.93 KB, text/plain)
2011-09-24 09:10 UTC, Giuseppe Vitillaro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description godmachine (Lance Poore) 2011-09-23 10:59:09 UTC
Created attachment 287487 [details]
Log of the failed patch

>>> Preparing source in /var/tmp/portage/net-libs/webkit-gtk-1.4.3-r300/work/webkit-1.4.3 ...
 * Applying webkit-gtk-1.4.3-underlinking.patch ...

 * A dry-run of patch command succeeded, but actually
 * applying the patch failed!

 * Failed Patch: webkit-gtk-1.4.3-underlinking.patch !
 *  ( /usr/portage/net-libs/webkit-gtk/files/webkit-gtk-1.4.3-underlinking.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/net-libs/webkit-gtk-1.4.3-r300/temp/webkit-gtk-1.4.3-underlinking.patch.out

 * ERROR: net-libs/webkit-gtk-1.4.3-r300 failed (prepare phase):
 *   Failed Patch: webkit-gtk-1.4.3-underlinking.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   91:  Called src_prepare
 *   environment, line 3197:  Called epatch '/usr/portage/net-libs/webkit-gtk/files/webkit-gtk-1.4.3-underlinking.patch'
 *   environment, line 1861:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";

-----------------------------------------------------------------------------------------------------------------------------------------

Attached is the patch.out file  mentioned in the emerge output
Comment 1 Guy 2011-09-23 13:22:55 UTC
You may not need webkit-gtk-1.4.3-r300 any longer.

Try doing:

emerge -p --depclean webkit-gtk-1.4.3-r300

and check if it's selected for removal.
Comment 2 godmachine (Lance Poore) 2011-09-23 13:36:09 UTC
(In reply to comment #1)
Wouldn't it be webkit-gtk-1.4.2-r300  since the 1.4.3 package isn't even installed due to the error when trying to emerge?  

In that case  these packages depend on the r300 slot: 

 * These packages depend on net-libs/webkit-gtk-1.4.2-r300:
dev-python/pywebkitgtk-1.1.8 (>=net-libs/webkit-gtk-1.1.15:2)
gnome-extra/gnome-web-photo-0.10.2 (>=net-libs/webkit-gtk-1.1.23:2)
media-gfx/gimp-2.7.3 (webkit ? net-libs/webkit-gtk:2)
media-sound/rhythmbox-0.13.3 (webkit ? >=net-libs/webkit-gtk-1.1.7:2)
media-video/handbrake-0.9.5_p4210 (gtk ? net-libs/webkit-gtk)
www-client/xxxterm-1.518 (net-libs/webkit-gtk)

The package is slotted, I have two slots installed:  (2) 1.4.3-r200     (3) 1.4.2-r300 

The package in slot (3) is marked for upgrade but the upgrade is what fails to build..  The upgrade being 1.4.3-r300.

If I was going to try to eliminate a slot with depclean, shouldn't it be the older one in slot (2) which is r200?   I don't think removing the package in slot 3 is going to keep things fixed, this isn't in my world, so something has definitely pulled it in by the slot..
Comment 3 Hilco 2011-09-23 16:52:12 UTC
Confirmed.

Removing webkit-gtk-1.4.2-r300 does indeed do the trick. It also allows me to remove a few other packages. :-)

Of course, that workaround doesn't fix webkit-gtk-1.4.3-r300...
Comment 4 Pacho Ramos gentoo-dev 2011-09-23 16:54:39 UTC
I cannot reproduce this at all, please attach full build.log and provide "emerge --info" output
Comment 5 Albert W. Hopkins 2011-09-23 18:28:15 UTC
Created attachment 287541 [details]
build.log
Comment 6 Albert W. Hopkins 2011-09-23 18:30:54 UTC
Created attachment 287543 [details]
emerge --info
Comment 7 S.Holzbach 2011-09-23 19:59:19 UTC
Same problem here ~AMD86.
I will attach the build.log and emerge --info
Comment 8 S.Holzbach 2011-09-23 20:00:09 UTC
Created attachment 287551 [details]
build.log
Comment 9 S.Holzbach 2011-09-23 20:01:24 UTC
Created attachment 287553 [details]
emerge --info
Comment 10 Giuseppe Vitillaro 2011-09-24 09:05:33 UTC
Created attachment 287593 [details]
build.log
Comment 11 Giuseppe Vitillaro 2011-09-24 09:07:24 UTC
Created attachment 287595 [details]
emerge --info

Same problem here. My build.log and "emerge --info" attached. Hope it helps to debug the problem.
Comment 12 Giuseppe Vitillaro 2011-09-24 09:10:08 UTC
Created attachment 287597 [details]
webkit-gtk-1.4.3-underlinking.patch.out

Maybe the output of the patch command may help too. It is quoted in the build.log.
Comment 13 Markos Chandras (RETIRED) gentoo-dev 2011-09-24 10:54:39 UTC
Not even a compile test before committing ebuilds in portage. Nice
Comment 14 Pacho Ramos gentoo-dev 2011-09-24 11:25:01 UTC
(In reply to comment #13)
> Not even a compile test before committing ebuilds in portage. Nice

That is not true, it compiles fine for me and I compiled it before committing (as I ALWAYS do)
Comment 15 Pacho Ramos gentoo-dev 2011-09-24 11:30:10 UTC
What I don't understand yet is why it works for me, maybe we have different patch versions? I have sys-devel/patch-2.5.9
Comment 16 Giuseppe Vitillaro 2011-09-24 11:32:29 UTC
(In reply to comment #15)
> What I don't understand yet is why it works for me, maybe we have different
> patch versions? I have sys-devel/patch-2.5.9

Good guess.

I've 2.6.1 installed:

 Installed versions:  2.6.1(13:13:39 05/31/11)(-static -test)
Comment 17 Derk W te Bokkel 2011-09-24 11:41:33 UTC
I can confirm reverting to patch-2.5.9 works when  patch-2.6.1 does not.
Comment 18 godmachine (Lance Poore) 2011-09-24 11:51:47 UTC
(In reply to comment #17)
Interesting, as we might have uncovered a bug with sys-devel/patch that could possibly be  the true culprit of this issue .
Comment 19 Derk W te Bokkel 2011-09-24 11:58:33 UTC
    Odd thing is I'd been using patch 2.6.1 since december  2010 but recently
    recompiled (august 24)  fyi
Comment 20 Derk W te Bokkel 2011-09-24 12:11:14 UTC
okay recompile comment is irrelevant as my chroot copy was compiled in december with no rebuild since also fails
Comment 21 Andreas Proteus 2011-09-24 12:35:04 UTC
The patch fails with =sys-devel/patch-2.5.9-r1 and =sys-devel/patch-2.6.1
and it succeds with =sys-devel/patch-2.5.9
Comment 22 Derk W te Bokkel 2011-09-24 12:45:13 UTC
actually the problem is that upstream has already applied the patch to the sources .. checking the tarball .. revealled this  ... thus patch fails .. solution drop patch for this version ..
Comment 23 Albert W. Hopkins 2011-09-24 12:47:28 UTC
I'm not sure if it's a bad version of patch, but looking at the output and the patch itself:

It tries to add "$(XRENDER_CFLAGS) \" around line 5111 in Source/WebCore/GNUmakefile.am.. presumably where the `libWebCore_la_CPPFLAGS` Makefile variable is defined.  1) that definition actually ends at line 5087 and `EXTRA_DIST` is being defined on 5111 and 2) "$(XRENDER_CFLAGS) \" is already in the definition of `libWebCore_la_CPPFLAGS` in that file.

So it seems to me that particular (part of the) patch is not needed.
Comment 24 Albert W. Hopkins 2011-09-24 12:51:43 UTC
Looks like my previous post was a bit too late.
Comment 25 Derk W te Bokkel 2011-09-24 13:43:14 UTC
note: webkit-gtk-1.4.3-r200 lacks the 1.4.3-underlinking patch and thus compiles fine with patch-2.6.1  (as it never sees the patch)
Comment 26 Derk W te Bokkel 2011-09-24 13:52:23 UTC
original patch was with bug ..371751  using gold linker ..
Comment 27 Pacho Ramos gentoo-dev 2011-09-24 13:55:29 UTC
+  24 Sep 2011; Pacho Ramos <pacho@gentoo.org> webkit-gtk-1.4.3-r300.ebuild,
+  -files/webkit-gtk-1.4.3-underlinking.patch:
+  underlinking patch is not needed as it was already applied by upstream, bug
+  #384181 by Lance Poore, Hilco, Albert W. Hopkins, S.Holzbach and maby others.
+


You are true, it is not needed as upstream already included it.

But I am really surprised with sys-devel/patch-2.5.9 exiting with status 0 even when patch cannot be applied and, even worse, it behaving differently than newer versions. We should probably stabilize latest patch version as it fixes this problem and also, after cleaning older versions, we no longer would have patch versions behaving differently
Comment 28 godmachine (Lance Poore) 2011-09-24 14:02:44 UTC
(In reply to comment #27)
Are you saying the ebuild has been corrected upstream to omit the patch?  If not have any of you tried the ebuild in a local overlay and removing the epatch for  webkit-gtk-1.4.3-underlinking.patch? Seems the patch isn't needed with this source version of webkit, and also seems it is true that Patch needs to be stabalized to prevent these types of failures or possibly worse ones.
Comment 29 Derk W te Bokkel 2011-09-24 14:05:03 UTC
yes compiled fine
Comment 30 Pacho Ramos gentoo-dev 2011-09-24 14:06:06 UTC
(In reply to comment #28)
> (In reply to comment #27)
> Are you saying the ebuild has been corrected upstream to omit the patch?  If
> not have any of you tried the ebuild in a local overlay and removing the epatch
> for  webkit-gtk-1.4.3-underlinking.patch? Seems the patch isn't needed with
> this source version of webkit, and also seems it is true that Patch needs to be
> stabalized to prevent these types of failures or possibly worse ones.

Yes, it no longer applies that patch as, as confirmed some time ago, all its changes are already applied in upstream sources
Comment 31 godmachine (Lance Poore) 2011-09-24 14:18:12 UTC
(In reply to comment #30)
I don't think the ebuild has been fixed in upstream  yet, I will have to change this status back to Confirmed instead of Resolved fix, as it still fails with same error for me, and just sync'd portage before testing..
Comment 32 Derk W te Bokkel 2011-09-24 14:28:19 UTC
patience .. the tree and mirrors take a while to update ... :)
Comment 33 godmachine (Lance Poore) 2011-09-24 14:31:55 UTC
(In reply to comment #32)
> patience .. the tree and mirrors take a while to update ... :)

I just assumed that they had been updated since you had mentioned previously in your comment:  "confirmed some time ago". So  I was taking your word on it :)  It's all good though, I edited the ebuild in a local overlay to omit the patch, and tested it, all goes well. So as soon as I see the ebuild updated in portage I will mark it fixed again.  Thanks everyone for helping get this resolved
Comment 34 Pacho Ramos gentoo-dev 2011-09-24 14:34:05 UTC
Please don't mark this as fixed until patch maintainers comment here about differences between patch behavior depending on versions (and stable one exiting ok even not really applying the patch)
Comment 35 godmachine (Lance Poore) 2011-09-24 14:43:48 UTC
(In reply to comment #34)
> Please don't mark this as fixed until patch maintainers comment here about
> differences between patch behavior depending on versions (and stable one
> exiting ok even not really applying the patch)

OK I won't change it then, but shouldn't the sys-devel/patch issue be filed under a separate bug instead of this one?  This one shouldn't still be open because of an issue that exists with another package (sys-devel/patch) should it?   I'd just think that if this ebuild has been fixed to compile on either version of patch (even the one that doesn't work properly), that it should be marked fixed and then an issue with patch exiting with 0 status even when it fails to patch should be filed under a new bug regarding sys-devel/patch in particular.  But that's just  my opinion. I will let a maintainer change the status of this as they seem to be fit.
Comment 36 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-09-24 17:02:55 UTC
(In reply to comment #34)
> Please don't mark this as fixed until patch maintainers comment here about
> differences between patch behavior depending on versions (and stable one
> exiting ok even not really applying the patch)

bug 146660, arch and ~arch sys-devel/patch versions are different and have been for years.
Comment 37 Pacho Ramos gentoo-dev 2011-09-24 17:48:30 UTC
(In reply to comment #36)
> (In reply to comment #34)
> > Please don't mark this as fixed until patch maintainers comment here about
> > differences between patch behavior depending on versions (and stable one
> > exiting ok even not really applying the patch)
> 
> bug 146660, arch and ~arch sys-devel/patch versions are different and have been
> for years.

CLosing then as fixed, but, can you (or vapier) explain me the reasons to not stabilize latest 2.6.1 version? I don't know where to find IRC logs referred in https://bugs.gentoo.org/show_bug.cgi?id=146660#c5

Thanks
Comment 38 SpanKY gentoo-dev 2011-09-26 03:17:17 UTC
that was specific to 2.5.9-r1.  some fixes have gone into upstream post 2.6.1 and i wish they'd release a 2.6.2, but maybe 2.6.1 itself is fine.
Comment 39 Pacho Ramos gentoo-dev 2011-09-26 11:25:45 UTC
Then, if the tree is building and applying all patches fine with sys-devel/patch-2.6.1, I would try to stabilize that version... but feel free to ask for it when you feel it's ready :)