View previous topic :: View next topic |
Author |
Message |
fincoop Tux's lil' helper
Joined: 02 Feb 2004 Posts: 143
|
Posted: Sat Apr 09, 2005 5:26 pm Post subject: Applying a patch while Emerge-ing |
|
|
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 |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sat Apr 09, 2005 5:46 pm Post subject: |
|
|
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 |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Sat Apr 09, 2005 5:48 pm Post subject: Re: Applying a patch while Emerge-ing |
|
|
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 |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Sat Apr 09, 2005 5:51 pm Post subject: |
|
|
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 |
|
|
fincoop Tux's lil' helper
Joined: 02 Feb 2004 Posts: 143
|
Posted: Sat Apr 09, 2005 10:33 pm Post subject: |
|
|
Thanks!!
I used Nixnut's method. |
|
Back to top |
|
|
|