hey alexander, dave, and list,

thanks for your quick responses.

> Yes, but that is not compliant with _our_ packaging standards.  You have
> to have a -shlibs splitoff if this is a library that can be built
> against by other packages, or you can mark the library as private if the
> library is only used here and there aren't any header files to allow
> other packages to build against it.
...
> Peter,
>
> Let me refer you to a section of the Fink Packaging Manual  
> http://www.finkproject.org/doc/packaging/policy.php?phpLang=en#sharedlibs  
> which explains how shared libraries are packaged in fink.  Basically,  
> you need to use fink's Splitoff mechanism to divide your package into a  
> few others.
>
>   -- Dave

ok, now that i know what to focus on more, it's easier to study. i read  
through the relevant part there and things make more sense, but it's still  
a lot of info to sort through. i was sure there were things in the .info  
file that didn't conform to fink standards, so i figured just doing and  
then ironing would be more productive.

> The fact that it runs is immaterial, since unversioned dylibs are
> usually symbolic links that are only needed at build time.
>
> How about posting the results of "dpkg -L libdmtx"?  That way we can see
> what's in the package and how you might want to think about carving it
> up into splitoffs, if needed.

oh, but the fact that it runs is miraculous to me! but i hear you, the  
error had nothing to do with it's running or not. here's the output of  
that command:

> $ dpkg -L libdmtx
> /.
> /sw
> /sw/bin
> /sw/bin/dmtxquery
> /sw/bin/dmtxread
> /sw/bin/dmtxwrite
> /sw/include
> /sw/include/dmtx.h
> /sw/lib
> /sw/lib/libdmtx.0.dylib
> /sw/lib/libdmtx.a
> /sw/lib/libdmtx.la
> /sw/lib/pkgconfig
> /sw/lib/pkgconfig/libdmtx.pc
> /sw/share
> /sw/share/man
> /sw/share/man/man1
> /sw/share/man/man1/dmtxquery.1
> /sw/share/man/man1/dmtxread.1
> /sw/share/man/man1/dmtxwrite.1
> /sw/share/man/man3
> /sw/share/man/man3/libdmtx.3
> /sw/lib/libdmtx.dylib

so that structure and the guidlines laid out in the packaging policy make  
me think this package would fit the foo/foo-shlibs/foo-bin template, since  
it's a library mainly, and the binaries are an optional install in the  
upstream package. so then, is libdmtx.pc meant to be part of  
libdmtx-shlibs or libdmtx?

>> And why are you marking it as BuildDependsOnly: true?  That's normally
>> reserved for header packages.
>>
>
> He probably did that to get rid of a validator warning, since he does  
> have header files in his package.
>
>   -- Dave

yes, that's why. but it will end up staying, after split-offs, right?

>> and libpng seems to be a virtual package...
> The only virtual packages are the pkgconfig-related ones, which are not
> relevant here as far as I know.  Give it an explicit dependency on
> libpng3 or libpng14.

ya, that's me just staying up too late and reading lists too fast. hehe.

so i've reworked the .info file a bit. i'm not sure if the explicit  
versions for some of the dependencies are necessary, or if they all  
actually need them, or what. separating the binaries makes sense, since  
they have an extra dependency that the rest of the package doesn't need.  
the build dependencies i got from this:  
http://libdmtx.wikidot.com/libdmtx-on-mac-os-x . anyway, here's version  
2-now what do i need to fix?:


> Package: libdmtx
> Version: 0.7.2
> Revision: 1
> ###
> Source: mirror:sourceforge:%n/%n-%v.tar.gz
> Maintainer: John Doe <j...@example.com>
> HomePage: http://www.libdmtx.org
> License: LGPL
> Description: Data Matrix 2D barcode software
> Source-MD5: e23705cd9bd40b9d7cf1e7c750c67ca5
> ###
> BuildDependsOnly:true
> BuildDepends: <<
>   fink (>= 0.24.12),
>   autoconf,
>   automake (>=1.11.1),
>   libtool (>=2.2.8),
>   pkgconfig
> <<
> Depends: <<
>   libdmtx-shlibs (= %v-%r),
>   libdmtx-bin,
>   libpng3,
>   libtiff
> <<
> DocFiles: COPYING.LESSER
> ###
> PatchFile: %n.patch
> PatchFile-MD5: ca3c0bdb5b846b3a9f05ab31adc47a0c
> ###
> SplitOff: <<
>   Package: libdmtx-shlibs
>   Files: lib/libdmtx.0.dylib
>   DocFiles: COPYING.LESSER
> <<
> SplitOff2: <<
>   Package: libdmtx-bin
>   Depends: <<
>     libdmtx-shlibs,
>     imagemagick
>   <<
>   Files: <<
>     bin/dmtxquery
>     bin/dmtxread
>     bin/dmtxwrite
>   <<
>   DocFiles: COPYING.LESSER
> <<
> ###
> CompileScript: <<
> ./configure %c
> make
> <<
> InstallScript: <<
> #! /bin/sh -ev
> make install prefix=%i
> <<
> Shlibs: <<
>   %p/lib/libdmtx.0.dylib 1.0.0 %n (>= 0.7.2-1) 32
> <<

-peterwong
.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to