pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc Enable sonames under DragonFly, FreeBSD and NetBSD. T...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b865afd38389
branches:  trunk
changeset: 495708:b865afd38389
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Sat Jun 18 14:32:38 2005 +0000

description:
Enable sonames under DragonFly, FreeBSD and NetBSD.  The default build
infrastructure only uses them under Linux and OpenBSD (eww, hardcoded
logic based on OS names).

Aside making installations more consistent across systems, this lets
Boost work correctly on the systems where sonames were previously used.
Otherwise, they are unable to find the correct libraries at runtime and
we get PLIST errors (more files installed than expected).  The problem
exposes itself when building software that needs Boost (e.g. monotone).

This also means that we can't rename the installed libraries any more as
we were doing until now, because programs linked against them will be
looking for their respective sonames.  Therefore, keep the default names
produced by a --layout=system build.

Bump PKGREVISION of boost, boost-libs and boost-python to 1.

diffstat:

 devel/boost-libs/Makefile        |   4 ++-
 devel/boost-libs/PLIST           |  47 +++++++++++++++++++++++----------------
 devel/boost-libs/buildlink3.mk   |   4 +-
 devel/boost-python/Makefile      |   4 ++-
 devel/boost-python/PLIST         |   7 +++--
 meta-pkgs/boost/Makefile         |   8 ++++--
 meta-pkgs/boost/Makefile.common  |  12 +--------
 meta-pkgs/boost/distinfo         |   3 +-
 meta-pkgs/boost/patches/patch-ad |  22 ++++++++++++++++++
 9 files changed, 71 insertions(+), 40 deletions(-)

diffs (207 lines):

diff -r a1c734dc441a -r b865afd38389 devel/boost-libs/Makefile
--- a/devel/boost-libs/Makefile Sat Jun 18 12:39:52 2005 +0000
+++ b/devel/boost-libs/Makefile Sat Jun 18 14:32:38 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2005/02/26 22:48:35 jmmv Exp $
+# $NetBSD: Makefile,v 1.2 2005/06/18 14:32:38 jmmv Exp $
 #
 
 BOOST_PACKAGE=         libs
@@ -6,6 +6,8 @@
 BOOST_CONFIG=          installed
 BOOST_INSTALL_LIBS=    yes
 
+PKGREVISION=           1
+
 .include "../../meta-pkgs/boost/Makefile.common"
 
 BJAM_ARGS+=            --without-python
diff -r a1c734dc441a -r b865afd38389 devel/boost-libs/PLIST
--- a/devel/boost-libs/PLIST    Sat Jun 18 12:39:52 2005 +0000
+++ b/devel/boost-libs/PLIST    Sat Jun 18 14:32:38 2005 +0000
@@ -1,19 +1,28 @@
-@comment $NetBSD: PLIST,v 1.1 2005/02/26 22:48:35 jmmv Exp $
-lib/libboost_date_time.a
-lib/libboost_date_time.so
-lib/libboost_filesystem.a
-lib/libboost_filesystem.so
-lib/libboost_prg_exec_monitor.a
-lib/libboost_prg_exec_monitor.so
-lib/libboost_program_options.a
-lib/libboost_program_options.so
-lib/libboost_regex.a
-lib/libboost_regex.so
-lib/libboost_signals.a
-lib/libboost_signals.so
-lib/libboost_test_exec_monitor.a
-lib/libboost_test_exec_monitor.so
-lib/libboost_thread.a
-lib/libboost_thread.so
-lib/libboost_unit_test_framework.a
-lib/libboost_unit_test_framework.so
+@comment $NetBSD: PLIST,v 1.2 2005/06/18 14:32:38 jmmv Exp $
+lib/libboost_date_time-mt.a
+lib/libboost_date_time-mt.so
+lib/libboost_date_time-mt.so.${PKGVERSION}
+lib/libboost_filesystem-mt.a
+lib/libboost_filesystem-mt.so
+lib/libboost_filesystem-mt.so.${PKGVERSION}
+lib/libboost_prg_exec_monitor-mt.a
+lib/libboost_prg_exec_monitor-mt.so
+lib/libboost_prg_exec_monitor-mt.so.${PKGVERSION}
+lib/libboost_program_options-mt.a
+lib/libboost_program_options-mt.so
+lib/libboost_program_options-mt.so.${PKGVERSION}
+lib/libboost_regex-mt.a
+lib/libboost_regex-mt.so
+lib/libboost_regex-mt.so.${PKGVERSION}
+lib/libboost_signals-mt.a
+lib/libboost_signals-mt.so
+lib/libboost_signals-mt.so.${PKGVERSION}
+lib/libboost_test_exec_monitor-mt.a
+lib/libboost_test_exec_monitor-mt.so
+lib/libboost_test_exec_monitor-mt.so.${PKGVERSION}
+lib/libboost_thread-mt-s.a
+lib/libboost_thread-mt.so
+lib/libboost_thread-mt.so.${PKGVERSION}
+lib/libboost_unit_test_framework-mt.a
+lib/libboost_unit_test_framework-mt.so
+lib/libboost_unit_test_framework-mt.so.${PKGVERSION}
diff -r a1c734dc441a -r b865afd38389 devel/boost-libs/buildlink3.mk
--- a/devel/boost-libs/buildlink3.mk    Sat Jun 18 12:39:52 2005 +0000
+++ b/devel/boost-libs/buildlink3.mk    Sat Jun 18 14:32:38 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.2 2005/02/28 01:44:17 tv Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2005/06/18 14:32:38 jmmv Exp $
 
 BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
 BOOST_LIBS_BUILDLINK3_MK:=     ${BOOST_LIBS_BUILDLINK3_MK}+
@@ -12,7 +12,7 @@
 
 .if !empty(BOOST_LIBS_BUILDLINK3_MK:M+)
 # Use a dependency pattern that guarantees the proper ABI.
-BUILDLINK_DEPENDS.boost-libs+=         boost-libs-1.32.*
+BUILDLINK_DEPENDS.boost-libs+=         boost-libs-1.32.*nb*
 BUILDLINK_PKGSRCDIR.boost-libs?=       ../../devel/boost-libs
 .endif # BOOST_LIBS_BUILDLINK3_MK
 
diff -r a1c734dc441a -r b865afd38389 devel/boost-python/Makefile
--- a/devel/boost-python/Makefile       Sat Jun 18 12:39:52 2005 +0000
+++ b/devel/boost-python/Makefile       Sat Jun 18 14:32:38 2005 +0000
@@ -1,10 +1,12 @@
-# $NetBSD: Makefile,v 1.3 2005/02/26 22:48:35 jmmv Exp $
+# $NetBSD: Makefile,v 1.4 2005/06/18 14:32:39 jmmv Exp $
 #
 
 BOOST_PACKAGE=         python
 BOOST_COMMENT=         (Boost.Python binary library)
 BOOST_CONFIG=          installed
 
+PKGREVISION=           1
+
 .include "../../meta-pkgs/boost/Makefile.common"
 
 BJAM_ARGS+=            --with-python
diff -r a1c734dc441a -r b865afd38389 devel/boost-python/PLIST
--- a/devel/boost-python/PLIST  Sat Jun 18 12:39:52 2005 +0000
+++ b/devel/boost-python/PLIST  Sat Jun 18 14:32:38 2005 +0000
@@ -1,3 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2005/02/26 22:48:35 jmmv Exp $
-lib/libboost_python.a
-lib/libboost_python.so
+@comment $NetBSD: PLIST,v 1.3 2005/06/18 14:32:39 jmmv Exp $
+lib/libboost_python-mt.a
+lib/libboost_python-mt.so
+lib/libboost_python-mt.so.${PKGVERSION}
diff -r a1c734dc441a -r b865afd38389 meta-pkgs/boost/Makefile
--- a/meta-pkgs/boost/Makefile  Sat Jun 18 12:39:52 2005 +0000
+++ b/meta-pkgs/boost/Makefile  Sat Jun 18 14:32:38 2005 +0000
@@ -1,9 +1,11 @@
-# $NetBSD: Makefile,v 1.2 2005/04/11 21:46:32 tv Exp $
+# $NetBSD: Makefile,v 1.3 2005/06/18 14:32:38 jmmv Exp $
 #
 
 BOOST_PACKAGE= meta-pkg
 BOOST_COMMENT= (meta package)
 
+PKGREVISION=   1
+
 .include "Makefile.common"
 
 CATEGORIES+=   meta-pkgs
@@ -17,8 +19,8 @@
 DEPENDS+=      boost-build>=${BOOST_VERSION}:../../devel/boost-build
 DEPENDS+=      boost-docs>=${BOOST_VERSION}:../../devel/boost-docs
 DEPENDS+=      boost-headers>=${BOOST_VERSION}:../../devel/boost-headers
-DEPENDS+=      boost-libs>=${BOOST_VERSION}:../../devel/boost-libs
-DEPENDS+=      boost-python>=${BOOST_VERSION}:../../devel/boost-python
+DEPENDS+=      boost-libs>=${BOOST_VERSION}nb1:../../devel/boost-libs
+DEPENDS+=      boost-python>=${BOOST_VERSION}nb1:../../devel/boost-python
 
 EXTRACT_ONLY=  # empty
 NO_CHECKSUM=   yes
diff -r a1c734dc441a -r b865afd38389 meta-pkgs/boost/Makefile.common
--- a/meta-pkgs/boost/Makefile.common   Sat Jun 18 12:39:52 2005 +0000
+++ b/meta-pkgs/boost/Makefile.common   Sat Jun 18 14:32:38 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.3 2005/04/11 21:46:32 tv Exp $
+# $NetBSD: Makefile.common,v 1.4 2005/06/18 14:32:38 jmmv Exp $
 #
 
 BOOST_PACKAGE?=                undefined
@@ -55,14 +55,6 @@
 .endif
 
 boost-install-libs:
-       @cd ${WRKSRC}/stage/lib && \
-           for f in *; do \
-               ${ECHO} ${INSTALL_LIB} $$f \
-                   ${PREFIX}/lib/`${ECHO} $$f | \
-                       ${SED} 's|-.*\\.|${BOOST_LIB_SUFFIX}.|'`; \
-               ${INSTALL_LIB} $$f \
-                   ${PREFIX}/lib/`${ECHO} $$f | \
-                       ${SED} 's|-.*\\.|${BOOST_LIB_SUFFIX}.|'`; \
-           done
+       cd ${WRKSRC}/stage/lib && ${PAX} -rwpe libboost* ${PREFIX}/lib
 
 .endif # ${BOOST_PACKAGE} == "meta-pkg"
diff -r a1c734dc441a -r b865afd38389 meta-pkgs/boost/distinfo
--- a/meta-pkgs/boost/distinfo  Sat Jun 18 12:39:52 2005 +0000
+++ b/meta-pkgs/boost/distinfo  Sat Jun 18 14:32:38 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2005/06/14 16:57:49 jmmv Exp $
+$NetBSD: distinfo,v 1.3 2005/06/18 14:32:38 jmmv Exp $
 
 SHA1 (boost_1_32_0.tar.bz2) = bb193b381d8e1c8321ee7d77f01c88837edc3e56
 RMD160 (boost_1_32_0.tar.bz2) = 9a51660e01d5047b08a753a7fa38028d8aa171ec
@@ -6,3 +6,4 @@
 SHA1 (patch-aa) = 6f0b64da37de35b2b3d2eb5884608bd8f9a906fd
 SHA1 (patch-ab) = 197c51ac67d74923d02f8a9746b5d2e0f7b84736
 SHA1 (patch-ac) = 3d44a1a368b614d86aff57406363fba57e33a0ba
+SHA1 (patch-ad) = eebc1b418bafe22f5adad741820e05e2291b45a2
diff -r a1c734dc441a -r b865afd38389 meta-pkgs/boost/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/meta-pkgs/boost/patches/patch-ad  Sat Jun 18 14:32:38 2005 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ad,v 1.1 2005/06/18 14:32:38 jmmv Exp $
+
+--- tools/build/v1/gcc-tools.jam.orig  2004-10-19 17:12:58.000000000 +0200
++++ tools/build/v1/gcc-tools.jam
+@@ -384,7 +384,7 @@ rule Link-action
+         LNOPT on $(<) = "" ;
+     }
+     # do we use sonames or not?
+-    if $(DLLVERSION) && $(TARGET_TYPE) in $(SHARED_TYPES) && ( $(OS) = LINUX || $(OS) = OPENBSD ) && ! $(NO_GNU_LN)
++    if $(DLLVERSION) && $(TARGET_TYPE) in $(SHARED_TYPES) && ( $(OS) = DRAGONFLY || $(OS) = FREEBSD || $(OS) = LINUX || $(OS) = NETBSD || $(OS) = OPENBSD ) && ! $(NO_GNU_LN)
+     {
+         OUTTAG on $(<) = ".$(DLLVERSION)" ;
+         SOTAG on $(<) = ".$(DLLVERSION)" ;
+@@ -433,7 +433,7 @@ rule Link-action
+ 
+     gcc-Link-action $(<) : $(>) ;
+ 
+-    if $(DLLVERSION) && $(TARGET_TYPE) in $(SHARED_TYPES) && ( $(OS) = LINUX || $(OS) = OPENBSD ) && ! $(NO_GNU_LN)
++    if $(DLLVERSION) && $(TARGET_TYPE) in $(SHARED_TYPES) && ( $(OS) = DRAGONFLY || $(OS) = FREEBSD || $(OS) = LINUX || $(OS) = NETBSD || $(OS) = OPENBSD ) && ! $(NO_GNU_LN)
+     {
+         return "$(<[1]).$(DLLVERSION)" ;
+     }



Home | Main Index | Thread Index | Old Index