pkgsrc-Bugs archive

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

pkg/45087: databases/db4 support systems without shared libraries

>Number:         45087
>Category:       pkg
>Synopsis:       databases/db4 support systems without shared libraries
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 20 18:00:01 +0000 2011
>Originator:     Thomas Cort
>Release:        N/A
Minix 3.2.0 i686
The db4 PLIST includes a few shared libraries. Since minix
doesn't support shared libraries at the moment, they aren't
built. Since they aren't built and they appear in the PLIST,
bmake install fails.
The patch below is modelled after some code in 
security/openssl/Makefile. If an operating system specific
PLIST exists, then it is included in PLIST_SRC, else
${PKGDIR}/PLIST.shlib is included. In both cases PLIST.common
is included. 


The full patch is over 500KB and is located here:

In addition to the changes below, the patch
renames PLIST to PLIST.common and removes 6 lines
from PLIST.common (those lines were moved to PLIST.shlib).

diff --git a/databases/db4/Makefile b/databases/db4/Makefile
index 7eab0ca..dc41d28 100644
--- a/databases/db4/Makefile
+++ b/databases/db4/Makefile
@@ -43,6 +43,15 @@ CONFIGURE_ENV+=              LIBSO_LIBS=${LIBSO_LIBS:Q}
 PTHREAD_OPTS+=         native
 .include "../../mk/"
+PLIST_OPSYS?=          ${PKGDIR}/PLIST.${LOWER_OPSYS:C/([.0-9]*)$//}
+.if exists(${PLIST_OPSYS})
+PLIST_SHLIB=           ${PKGDIR}/PLIST.shlib
+PLIST_SRC=             ${PLIST_SHLIB}
+PLIST_SRC+=            ${PKGDIR}/PLIST.common
 INSTALLATION_DIRS=     include/db4 lib share/doc/db4
diff --git a/databases/db4/PLIST.minix b/databases/db4/PLIST.minix
new file mode 100644
index 0000000..f79c3e5
--- /dev/null
+++ b/databases/db4/PLIST.minix
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+@comment Minix doesn't support shared libraries
diff --git a/databases/db4/PLIST.shlib b/databases/db4/PLIST.shlib
new file mode 100644
index 0000000..950719b
--- /dev/null
+++ b/databases/db4/PLIST.shlib
@@ -0,0 +1,6 @@

Home | Main Index | Thread Index | Old Index