On Monday, February 25, 2002, at 11:20 , David R. Morrison wrote: > Packages containing both binary files and libraries > > When an upstream package contains both binary files and libraries, some > care must be exercised in constructing fink packages. In some cases, > the only binary files will be things like <code>foo-config</code> which > are presumably only used at build time and never at run time. In these > cases, the binaries can go with the header files in the <code>foo</code> > package.
I would recommend that the foo package not be foo3. I think that since we can only have one foo headers package installed at a time, it would be a lot easier for conflicts and replaces to have just foo. > In other cases, the binary files will be needed by other packages at > runtime, and they must be split off into a separate fink package with > a name something like <code>foo-bin</code>. The <code>foo-bin</code> > package should depend on the <code>foo-shlibs</code> package, and > maintainers of other packages should be encouraged to use > <codeblock> > Depends: foo-bin > BuildDepends: foo > </codeblock> > which will take care of foo-shlibs implicitly. > > Upgrading presents a problem in this situation, however, since users > won't > be prompted to install <code>foo-bin</code>. To work around this, until > all other package maintainers have revised their packages as above, > your <code>foo</code> package can say > <codeblock> > Depends: foo-shlibs (= exact.version), foo-bin Here I disagree, since foo3-shlibs and foo4-shlibs represent an incompatable api change, any programs should be the same version as the libraries, therefore foo-bin should: Depends: foo-shlibs (== %v). Also, just like plain old foo header packages, foo-bin should not have the version in the packagename (Many of them will probably have the same files in them). > </codeblock> > This will force the installation of foo-bin on most users' systems, > until > such time as the other package maintainers have upgraded their packages > which depend on <code>foo</code>. It would be better to BuildDepends, that way the binaries get built with the header files, but they are removable afterwards. > _______________________________________________ > Fink-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/fink-devel JMHO, Kyle Moffett _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel