From 6847ec2488e5a6f187c5ede9ade16801b09df4b1 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Thu, 17 Apr 2014 15:01:07 +0200 Subject: [PATCH] databases/gdbm --- databases/gdbm/Makefile.common | 6 +++ databases/gdbm/distinfo | 1 + databases/gdbm/patches/patch-configure | 59 ++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 databases/gdbm/patches/patch-configure diff --git a/databases/gdbm/Makefile.common b/databases/gdbm/Makefile.common index 0a64aec89..3f350ef82 100644 --- a/databases/gdbm/Makefile.common +++ b/databases/gdbm/Makefile.common @@ -17,3 +17,9 @@ PATCHDIR= ${.CURDIR}/../../databases/gdbm/patches USE_LIBTOOL= yes GNU_CONFIGURE= yes + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "NetBSD" && ${OS_VARIANT} == "Minix" +CONFIGURE_ENV+= ac_cv_func_mmap_fixed_mapped=no +.endif diff --git a/databases/gdbm/distinfo b/databases/gdbm/distinfo index 426858c08..441b33172 100644 --- a/databases/gdbm/distinfo +++ b/databases/gdbm/distinfo @@ -3,6 +3,7 @@ $NetBSD: distinfo,v 1.9 2014/05/23 20:49:15 wiz Exp $ SHA1 (gdbm-1.11.tar.gz) = ce433d0f192c21d41089458ca5c8294efe9806b4 RMD160 (gdbm-1.11.tar.gz) = f3d38a31ed509fdbfe52674e55585c2e570938c5 Size (gdbm-1.11.tar.gz) = 811662 bytes +SHA1 (patch-configure) = 5924ad4d3f8c04ddb21c0cf4294c9714cc1c2c9f SHA1 (patch-src_gdbmtool.c) = 3f96f09d42dc4942b55da698d4853a3f175e6a44 SHA1 (patch-src_gdbmtool.h) = 0301c08bbf66a3c4249bf32666f04a355803247b SHA1 (patch-tests_create00.at) = 2ce3d6ebac588b25699a6f38b298d4fb63965714 diff --git a/databases/gdbm/patches/patch-configure b/databases/gdbm/patches/patch-configure new file mode 100644 index 000000000..e27955693 --- /dev/null +++ b/databases/gdbm/patches/patch-configure @@ -0,0 +1,59 @@ +$NetBSD$ + +--- configure.orig Sun Nov 13 09:41:39 2011 ++++ configure +@@ -4874,7 +4874,7 @@ else + lt_cv_sys_max_cmd_len=8192; + ;; + +- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) ++ minix* | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` +@@ -5282,7 +5282,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +-netbsd*) ++minix* | netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else +@@ -8498,7 +8498,7 @@ _LT_EOF + fi + ;; + +- netbsd*) ++ minix* | netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= +@@ -9137,7 +9137,7 @@ rm -f core conftest.err conftest.$ac_objext conftest_i + link_all_deplibs=yes + ;; + +- netbsd*) ++ minix* | netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else +@@ -10131,6 +10131,18 @@ fi + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' ++ ;; ++ ++minix*) ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='Minix ld.elf_so' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes + ;; + + netbsd*)