Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Applying a patch while Emerge-ing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
fincoop
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 143

PostPosted: Sat Apr 09, 2005 5:26 pm    Post subject: Applying a patch while Emerge-ing Reply with quote

I emerge'd Gallery, awesome s/w.

On Sourceforge there is a source patch to enable multiple instances, but I'm not sure how to get Portage to pick it up.

Is a manual compile my only option here?
Thx.

PATCH:

Code:

--- init.php.aap        2004-09-21 20:18:38.000000000 +1000
+++ init.php    2004-09-21 20:22:26.000000000 +1000
@@ -127,7 +127,12 @@
        include(dirname(__FILE__) . "/platform/fs_unix.php");
 }

-if (fs_file_exists(dirname(__FILE__) . "/config.php")) {
+if (isset($_SERVER[GALLERY_CONFDIR]) && !empty($_SERVER[GALLERY_CONFDIR]) && fs_file_exists($_SERVER[GALLERY_CONFDIR] . "/config.p$
+
+       include($_SERVER[GALLERY_CONFDIR] . "/config.php");
+       set_time_limit($gallery->app->timeLimit);
+
+} elseif (fs_file_exists(dirname(__FILE__) . "/config.php")) {
        include(dirname(__FILE__) . "/config.php");

        /* Here we set a default execution time limit for the entire Gallery script

Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Apr 09, 2005 5:46 pm    Post subject: Reply with quote

use the ebuild tool:
ebuild /usr/portage/app-cat/packagename/packagename-1.0-r2.ebuild unpack
after that the sources are fetched and unpacked in /var/tmp/portage/packagename/work/packagename-1.0-r2/
then you can patch the sources.
after that do
ebuild /usr/portage/app-cat/packagename/packagename-1.0-r2.ebuild merge

substitute the paths in the example above with the real paths to the ebuild and the work directory
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Sat Apr 09, 2005 5:48 pm    Post subject: Re: Applying a patch while Emerge-ing Reply with quote

fincoop wrote:
Is a manual compile my only option here?

Nope. Either change the ebuild file or do `ebuild /path/to/ebuild unpack`, apply patch manually, and then `ebuild /path/to/ebuild compile install qmerge`. And of course `man ebuild` for details ;-).
_________________
cd /local/pub && more beer > /dev/mouth

Česká dokumentace
Back to top
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Sat Apr 09, 2005 5:51 pm    Post subject: Reply with quote

nixnut wrote:
ebuild /usr/portage/app-cat/packagename/packagename-1.0-r2.ebuild merge

Yep, that shloud do the job, too. You were faster, nixnut :-)
_________________
cd /local/pub && more beer > /dev/mouth

Česká dokumentace
Back to top
View user's profile Send private message
fincoop
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 143

PostPosted: Sat Apr 09, 2005 10:33 pm    Post subject: Reply with quote

Thanks!!

I used Nixnut's method.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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