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
>Organization:
Minix3
>Environment:
Minix 192.168.122.210 3.2.0 i686
>Description:
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. 

>How-To-Repeat:

>Fix:
The full patch is over 500KB and is located here:
http://www.tomcort.com/minix/db4.patch

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/pthread.buildlink3.mk"
 
+PLIST_OPSYS?=          ${PKGDIR}/PLIST.${LOWER_OPSYS:C/([.0-9]*)$//}
+.if exists(${PLIST_OPSYS})
+PLIST_SHLIB=           ${PLIST_OPSYS}
+.else
+PLIST_SHLIB=           ${PKGDIR}/PLIST.shlib
+.endif
+PLIST_SRC=             ${PLIST_SHLIB}
+PLIST_SRC+=            ${PKGDIR}/PLIST.common
+
 INSTALLATION_DIRS=     include/db4 lib share/doc/db4
 
 post-install:
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 @@
+lib/libdb4-4.8.la
+lib/libdb4-4.so
+lib/libdb4.so
+lib/libdb4_cxx-4.8.la
+lib/libdb4_cxx-4.so
+lib/libdb4_cxx.so



Home | Main Index | Thread Index | Old Index