-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 6/24/10 10:05 AM, peterwong wrote:
> hello fink-devel,
> 
> i've successfully put together a package for libdmtx-0.7.2, but since this  
> is the first fink package i'm attempting to contribute, i'm sure there are  
> some problems with it. however, it did install, and it is working (for me,  
> anyhow). the .info and the .patch file are pretty small, so i'll just post  
> them here:
> 
> libdmtx.info:
>> Package: libdmtx
>> Version: 0.7.2
>> Revision: 1
>> ###
>> Source: mirror:sourceforge:%n/%n-%v.tar.gz
>> Maintainer: John Doe <[email protected]>
>> HomePage: http://www.libdmtx.org
>> License: LGPL
>> Description: Data Matrix 2D barcode software
>> Source-MD5: e23705cd9bd40b9d7cf1e7c750c67ca5
>> ###
>> BuildDependsOnly:true
>> BuildDepends: fink (>= 0.24.12)
>> ###
>> PatchFile: %n.patch
>> PatchFile-MD5: ca3c0bdb5b846b3a9f05ab31adc47a0c
>> ###
>> 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)
>>      %p/lib/libdmtx.dylib 1.0.0 %n (>= 0.7.2-1)
>> <<
> 
> libdmtx.patch:
>> --- libdmtx-0.7.2.orig/util/common/dmtxutil.c        2010-06-24  
>> 04:10:57.000000000 -0700
>> +++ libdmtx-0.7.2/util/common/dmtxutil.c     2010-06-24 04:17:36.000000000  
>> -0700
>> @@ -5,6 +5,7 @@
>>  #include <ctype.h>
>>  #include <errno.h>
>>  #include <assert.h>
>> +#include <sys/time.h>
>>  #include "../../dmtx.h"
>>  #include "dmtxutil.h"
>>
> 
> the patch file i made based on what they'd done with the same package for  
> macports. there was one line added there, and i didn't try to build or run  
> the software without the patch. fink was also upset about libdmtx.dylib  
> being 'less specifically versioned':
> 
>> Error: Files with names less specifically versioned than ones in public  
>> Shlibs entries do not belong in this package
>>      Offending file: /sw/lib/libdmtx.dylib
> 
> and didn't really like the way i dealt with it in the Shlibs: field:
> 
>> Error: File name '/sw/lib/libdmtx.dylib' specified in Shlibs does not  
>> match install_name '/sw/lib/libdmtx.0.dylib'
>> Package looks good!
> 
> but it built and ran this way.

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.

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.


And why are you marking it as BuildDependsOnly: true?  That's normally
reserved for header packages.

> 
> also, the macports portfile lists dependencies on libpng and libtiff, and  
> the source itself states that two tools that compile by default from the  
> package (dmtxread and dmtxwrite) have a dependency on IMAGEMAGICK. i  
> already had all these installed, and libpng seems to be a virtual  
> package... 

?


$ fink list -t libpng
Information about 10490 packages read in 1 seconds.
        libpng-shlibs   1.0.12-7        PNG image format handling library (old 
version)
        libpng14        1.4.2-1 PNG image format handling library
 i      libpng14-shlibs 1.4.2-1 Shared libraries for libpng14 package
 i      libpng3 1:1.2.43-3      PNG image format handling library
 i      libpng3-shlibs  1:1.2.43-3      Shared libraries for libpng3 package
 i      system-pkgconfig-libpng 1.2.43-1        [virtual pkgconfig package
representing libpng]
 i      system-pkgconfig-libpng12       1.2.43-1        [virtual pkgconfig 
package
representing libpng12]

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.

i'm not sure how to best deal with the Depends: field as far as
> how specific to make the version numbers, etc.. any suggestions here?

Start by actually listing the dependencies and the matching BuildDepends.

> 
> in case anyone needs to know, i'm running:
> 
>> $ uname -a
>> Darwin mpop.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26  
>> 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386
>>
>> $ fink --version
>> Package manager version: 0.29.11
>> Distribution version: selfupdate-rsync Tue Jun  8 03:16:00 2010, 10.6,  
>> i386
>>
>> $ xcodebuild -version
>> Xcode 3.2.2
>> Component versions: DevToolsCore-1648.0; DevToolsSupport-1631.0
>> BuildVersion: 10M2148
> 
> and lastly, check out what this cool package does (this is the above  
> libdmtx.info file encoded into a 2d datamatrix barcode):
> http://asl.hapahaus.com/test/libdmtx_fink.png
> 
> thanks!
> 
> -peterwong
> .
> 


- -- 
Alexander Hansen
Fink User Liaison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAkwjafMACgkQB8UpO3rKjQ+91gCfZXQUvZURceNRLbGJeKrFs+lO
b/AAmKcY/lzeUfzeDwVnmBlcZPLfcIk=
=8Zl6
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
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
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to