Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] How to test/use patches
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Fri Jan 23, 2015 8:16 am    Post subject: [SOLVED] How to test/use patches Reply with quote

Bug_537356 https://bugs.gentoo.org/show_bug.cgi?id=537356#c2 wrote:
Daniel Campbell 2015-01-22 20:31:59 UTC

Created attachment 394656 [details, diff]
Fixes --enable/disable-systray issue in USE="toolbar"

This patch cleans up the ebuild to be in line with 1.3.6's recent fbgm bugfix (bug 536370) and prevents the systray from being enabled when USE="-toolbar".

I have tested the ebuild patch (and the user's use-case) personally and confirmed it works. I'll be opening a bug for fixing this in 1.3.6 and 9999, too."

How could a user easily apply and test or use such patches?


Last edited by charles17 on Tue May 05, 2015 5:57 am; edited 4 times in total
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Fri Jan 23, 2015 8:32 am    Post subject: Reply with quote

http://wiki.gentoo.org/wiki//etc/portage/patches
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Mon May 04, 2015 4:08 pm    Post subject: Reply with quote

franzf wrote:
http://wiki.gentoo.org/wiki//etc/portage/patches

Just tried it, but something goes wrong here. What I did is
But getting the error as in http://pastebin.com/raw.php?i=LVGgTtYE

So what's wrong here?
Back to top
View user's profile Send private message
heiwa
n00b
n00b


Joined: 24 Oct 2012
Posts: 70

PostPosted: Mon May 04, 2015 5:18 pm    Post subject: Reply with quote

The advice from comment 1 applies to applying patches to the software,
but the patches attached to the bug are against the ebuild.

The simplest variant is to apply the patch with

patch /usr/portage/x11-wm/fluxbox/fluxbox-1.3.7.ebuild < $downloaded-file

directly to the portage tree. It will be reverted the next time you sync
the tree, though.

A cleaner possibility is to add fluxbox to your local overlay (or first
create one if you don't have already) and to apply the patch there.
(See `man patch')


In any case you also need to run `ebuild fluxbox-1.3.7.ebuild manifest'
so that emerge won't complain.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Tue May 05, 2015 5:57 am    Post subject: Reply with quote

heiwa wrote:
The advice from comment 1 applies to applying patches to the software,
but the patches attached to the bug are against the ebuild.
Thanks for the explanation - it's getting clear now.
The ebuild cannot be patched by something called within the ebuild itself :-(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum