pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libtool make the library names we create on Darw...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8b79b92e8c12
branches:  trunk
changeset: 462530:8b79b92e8c12
user:      grant <grant%pkgsrc.org@localhost>
date:      Sun Oct 05 08:19:19 2003 +0000

description:
make the library names we create on Darwin be consistent with what
pkgsrc expects and what other platforms use.

note that we can't simply use version_type=sunos, since the Darwin
linker requires libtool to pass -compatibility_version and
-current_version so they are coded into the library header.

this fixes the problem of having libname.x.dylib files which were not
registered in the PLIST, and thus were leftover after package removal.

ok'd by jlam.

diffstat:

 devel/libtool/Makefile.common  |   4 ++--
 devel/libtool/distinfo         |   4 ++--
 devel/libtool/patches/patch-ab |  15 +++++++++++++--
 3 files changed, 17 insertions(+), 6 deletions(-)

diffs (60 lines):

diff -r 991032ca1bb4 -r 8b79b92e8c12 devel/libtool/Makefile.common
--- a/devel/libtool/Makefile.common     Sun Oct 05 08:06:53 2003 +0000
+++ b/devel/libtool/Makefile.common     Sun Oct 05 08:19:19 2003 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.33 2003/09/25 02:09:03 danw Exp $
+# $NetBSD: Makefile.common,v 1.34 2003/10/05 08:19:19 grant Exp $
 #
 
 DISTNAME=      libtool-ml-20010614
 PKGPFX=                ${DISTNAME:C/ml-/1.4./}
-PKGREVISION=   15
+PKGREVISION=   16
 WRKSRC=                ${WRKDIR}/libtool-ml
 CATEGORIES=    devel pkgtools
 MASTER_SITES=  ${MASTER_SITE_LOCAL}
diff -r 991032ca1bb4 -r 8b79b92e8c12 devel/libtool/distinfo
--- a/devel/libtool/distinfo    Sun Oct 05 08:06:53 2003 +0000
+++ b/devel/libtool/distinfo    Sun Oct 05 08:19:19 2003 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.27 2003/09/25 02:41:52 danw Exp $
+$NetBSD: distinfo,v 1.28 2003/10/05 08:19:19 grant Exp $
 
 SHA1 (libtool-ml-20010614.tar.gz) = ff746666737e420592c3017d65bf4c47f1430dac
 Size (libtool-ml-20010614.tar.gz) = 784246 bytes
 SHA1 (patch-aa) = a3b37684e39b34077c3026a72787218942648bdf
-SHA1 (patch-ab) = 82350e1a9b03ecb8a26ebd02692f5cb3bb289fae
+SHA1 (patch-ab) = 76d0762ff80ddeac72a740383797502ab2ee4921
 SHA1 (patch-ac) = 61196acaa12edee0b1209b2ba7c6414453bfa438
 SHA1 (patch-ad) = 6aab76688d0f55648e35adc45a3492ba9c87acfb
 SHA1 (patch-ae) = 03de2a4fc9d828d62c6e6126ecf2dbbfeb1d82ea
diff -r 991032ca1bb4 -r 8b79b92e8c12 devel/libtool/patches/patch-ab
--- a/devel/libtool/patches/patch-ab    Sun Oct 05 08:06:53 2003 +0000
+++ b/devel/libtool/patches/patch-ab    Sun Oct 05 08:19:19 2003 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ab,v 1.28 2003/01/21 22:43:42 grant Exp $
+$NetBSD: patch-ab,v 1.29 2003/10/05 08:19:19 grant Exp $
 
---- ltmain.sh.orig     Thu Jun 14 14:06:50 2001
+--- ltmain.sh.orig     2001-06-14 14:06:50.000000000 +1000
 +++ ltmain.sh
 @@ -211,6 +211,8 @@ do
    --mode) prevopt="--mode" prev=mode ;;
@@ -151,6 +151,17 @@
            tmp_libs="$tmp_libs $deplib"
          done
  
+@@ -2564,8 +2592,8 @@ EOF
+       darwin)
+         # Like Linux, but with the current version available in
+         # verstring for coding it into the library header
+-        major=.`expr $current - $age`
+-        versuffix="$major.$age.$revision"
++        major=".$current"
++        versuffix=".$current.$revision"
+         # Darwin ld doesn't like 0 for these options...
+         minor_current=`expr $current + 1`
+         verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
 @@ -2582,7 +2610,7 @@ EOF
          ;;
  



Home | Main Index | Thread Index | Old Index