From 5426a335d8b3a84cf1f36ac1505454a60a845d0b 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 685d7ddbc..cb7bbc48a 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 7f13c22d2..1deab29e8 100644 --- a/databases/gdbm/distinfo +++ b/databases/gdbm/distinfo @@ -3,3 +3,4 @@ $NetBSD: distinfo,v 1.8 2012/01/08 09:22:52 adam Exp $ SHA1 (gdbm-1.10.tar.gz) = 441201e9145f590ba613f8a1e952455d620e0860 RMD160 (gdbm-1.10.tar.gz) = 32207388952acc2e9123fd1fd1f8880031cfb8d6 Size (gdbm-1.10.tar.gz) = 655599 bytes +SHA1 (patch-configure) = 5924ad4d3f8c04ddb21c0cf4294c9714cc1c2c9f 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*)