On Mon, Jun 30, 2008 at 02:03:06PM -0400, Charles Lepple wrote: > On Mon, Jun 30, 2008 at 12:41 PM, Martin Costabel <[EMAIL PROTECTED]> wrote: > > Jonathan Stickel wrote: > >> What is the best way to work with a Fink installed file that is shared > >> and modified by a set of different fink packages? > >> > >> I ran into this problem when I attempted to write separate .info files > >> for each of the of the octave-forge packages (currently a monolithic > >> package in Fink). Each package writes to a single file that tells > >> Octave which packages are installed, typically > >> "/sw/share/octave/octave_packages". If I try to do so with my limited > >> fink knowledge, I run into sandbox or file overwrite errors. > > > > Here are two possibilities: > > > > 1. Use the "Replaces:" field. This allows to overwrite files of other > > packages. > > If octave_packages is a list of installed packages, then the full list > would not be known when a single package is built. > > > 2. Don't install the file into the package via InstallScript, but > > install it directly via PostInstScript. > > Right, I'm thinking you would want to add the package to the list in > the PostInstScript, and remove it in the PreRmScript. > > The important part is that you don't want to ship the > /sw/share/octave/octave_packages file in the .deb.
That's the same approach we use for the global perllocal.pod and info/dir index files. These flat-files are lists of various things installed by many packages. These index files are not "part of" any package (not in a .deb). Each package "foo" that supplies files that should be listed in those index files has a PostInst and PostRm that adjusts the index file for the addition/removal of foo's files. dan -- Daniel Macks [EMAIL PROTECTED] http://www.netspace.org/~dmacks ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Fink-devel mailing list [email protected] http://news.gmane.org/gmane.os.apple.fink.devel
