|
From: Alexander K. H. <ha...@ld...> - 2004-11-29 15:58:29
|
On Nov 29, 2004, at 10:52 AM, Rich Johnson wrote: > > On Monday, November 29, 2004, at 09:13 AM, Alexander K. Hansen wrote: > >> >> On Nov 29, 2004, at 8:54 AM, Rich Johnson wrote: >> >>> Hi folks-- >>> >>> How do I modify and install a fink package so that subsequent >>> update-all doesn't overwrite the modifications? >>> >>> If you must know, I want to change: >>> #ifndef MAC_OS_X_VERSION_10_3 >>> to >>> #if !defined( MAC_OS_X_VERSION_10_3 ) || ( MAC_OS_X_VERSION_10_3 > >>> MAC_OS_X_MAX_VERSION_ALLOWED ) >>> >>> to enable compilation. >> >> 0) Make sure your Trees: line in fink.conf ends with "local/main" >> 1) Don't make your modifications in the main fink trees but instead >> copy the files over to your local tree. If local/main is at the end >> of the Trees: line, then packages there get precedence over those in >> the main trees. >> 2) This, of course, doesn't protect the packages if a newer revision >> comes out. You can make the revision larger if you so desire. >> > That did the trick. It took me a while before I realized that my > change should go into the finkinfo/<section>/<package>.patch" file > rather than in the source tree. > > I'd vote for adding this to the FAQ. > > Thanks again, > -rich Can do (even though it doesn't come up too frequently). -- Alexander Hansen Fink Documentarian [Day Job] Levitated Dipole Experiment http://www.psfc.mit.edu/LDX |