>> I'm trying to build a package for CCfits, the C++ wrappers for >> cfitsio. >> Validation of the package passes fine, but when I try to build it >> I'm stuck with the following: >> $ fink -m --build-as-nobody rebuild ccfits >> [...] >> Writing control file... >> Validating .deb dir /sw/src/fink.build/root-ccfits-2.0-1... >> Error: Libtool file points to fink install dir. >> Offending file: /sw/lib/libCCfits.la > > Have a look at the text file /sw/lib/libCCfits.la. Either under the > title > # Libraries that this one depends upon. > or under > # Directory that this library needs to be installed in: > > you will see directory names of the form /sw/src/fink.build/root- > ccfits-<etc>/sw/lib > > They should be /sw/lib instead. > > Usually, libtool does this automatically correctly when you run > configure with the default --prefix=%p, and use "make install > DESTDIR=%d" in the InstallScript.
In the .info file I had "--prefix=%i" in there (Copied that from another info file - bad habit, I know ;) ). Changing to "--prefix=%p" and "make install DESTDIR=%d" solved this problem. Thanks. One down, next coming up. Now fink wants the shlib field filled. First it says the info-file is missing the line %p/lib/libCCfits.0.dylib 1.0.0 in the shlibs field. Putting it in, lead to the message bash-3.2$ fink -m --build-as-nobody rebuild ccfits Running in Maintainer Mode Validating package file /sw/fink/dists/local/main/finkinfo/ ccfits.info... Warning: Malformed line in field "shlibs" of "splitoff". (ccfits.info) %p/lib/libCCfits.0.dylib 1.0.0 Failed: Please correct the above problems and try again! Changing that line to %p/lib/libCCfits.0.dylib 1.0.0 %n as seen in other packages or replacing "%n" by "ccfits" did not help, just producing a "Malformed dependency" message. I've read the example under http://www.finkproject.org/doc/packaging/policy.php?phpLang=en#sharedlibs , but I cannot figure out what to put in here... Thanks again for all your help Thomas Here is my info-file so far: Package: ccfits Version: 2.0 Revision: 1 Source: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/CCfits/ CCfits-%v.tar.gz SourceDirectory: CCfits Source-MD5: bb049a22f9ff50ef983633dd270f5dbd BuildDepends: cfitsio (>=3.02) BuildDependsOnly: true Depends: %N-shlibs, cfitsio (>=3.02) CompileScript: << #!/bin/bash -ev ./configure --with-cfitsio=%p \ --prefix=%p make << InstallScript: << make install DESTDIR=%d << DocFiles: CHANGES README.INSTALL License.txt SplitOff: << Package: %N-shlibs Files: lib/libCCfits.0.0.0.dylib lib/libCCfits.0.dylib lib/ libCCfits.dylib Shlibs: << %p/lib/libCCfits.0.dylib 1.0.0 ccfits << Description: Shared libraries for ccfits package DocFiles: CHANGES README.INSTALL License.txt << [...] ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Fink-beginners mailing list [email protected] http://news.gmane.org/gmane.os.apple.fink.beginners
