pkgsrc-WIP-changes archive

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

mailutils: fix building on Solaris.



Module Name:	pkgsrc-wip
Committed By:	Paolo Vincenzo Olivo <vins%NetBSD.org@localhost>
Pushed By:	vms
Date:		Wed Dec 14 21:42:34 2022 +0100
Changeset:	ef08109f046d7b92d3bd5fd746b25d270f3225d8

Modified Files:
	mailutils/Makefile
	mailutils/distinfo
	mailutils/options.mk
Added Files:
	mailutils/patches/patch-mh_mh__init.c

Log Message:
mailutils: fix building on Solaris.

+ Minor changes (prefer gdbm on Linux or weherever builti-in, elsewhere
  rely on Berkeley DB if NDBM isn't available either).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ef08109f046d7b92d3bd5fd746b25d270f3225d8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 mailutils/Makefile                    |  1 +
 mailutils/distinfo                    |  1 +
 mailutils/options.mk                  |  4 +++-
 mailutils/patches/patch-mh_mh__init.c | 16 ++++++++++++++++
 4 files changed, 21 insertions(+), 1 deletion(-)

diffs:
diff --git a/mailutils/Makefile b/mailutils/Makefile
index 55bcd5ad5f..956a3d13c0 100644
--- a/mailutils/Makefile
+++ b/mailutils/Makefile
@@ -55,6 +55,7 @@ INSTALLATION_DIRS+=	${DOCDIR}
 post-install:
 #set-gid files should not be writable by anyone
 	${RUN}${CHMOD} -w ${DESTDIR}${PREFIX}/bin/dotlock
+	${RUN}${CHMOD} -w ${DESTDIR}${PREFIX}/sbin/mda
 	${INSTALL_DATA} ${PKG_DOCS:S|^|${WRKSRC}/|} 		\
 		${DESTDIR}${PREFIX}/${DOCDIR}
 
diff --git a/mailutils/distinfo b/mailutils/distinfo
index c9ecb2b690..875a68985d 100644
--- a/mailutils/distinfo
+++ b/mailutils/distinfo
@@ -5,3 +5,4 @@ SHA512 (mailutils-3.15.tar.gz) = 418d9a657caf583ae1b9060a9ea8dcb1bf88965af3cc6d1
 Size (mailutils-3.15.tar.gz) = 7453542 bytes
 SHA1 (patch-frm_frm.h) = 8ed8ae4b64b3b6b30d0572d06b35165b2e1d7e3e
 SHA1 (patch-lib_tcpwrap.c) = a0133dd8726ca08f5c194c583a638bb318f08a76
+SHA1 (patch-mh_mh__init.c) = 3ffa0200cf579e45f76a6c66f8d7192f88c51806
diff --git a/mailutils/options.mk b/mailutils/options.mk
index 864a4bff4d..8729b96330 100644
--- a/mailutils/options.mk
+++ b/mailutils/options.mk
@@ -11,8 +11,10 @@ PKG_SUGGESTED_OPTIONS=	gnutls gsasl gssapi
 
 .if exists(/usr/include/ndbm.h) && (${OPSYS:M*BSD} != "" || ${OPSYS} == "Darwin" || ${OPSYS} == "DragonFly")
 PKG_SUGGESTED_OPTIONS+=	ndbm
-.else
+.elif exists(/usr/include/gdbm.h) || ${OPSYS} == "Linux"
 PKG_SUGGESTED_OPTIONS+=	gdbm
+.else
+PKG_SUGGESTED_OPTIONS+=	bdb
 .endif
 
 PLIST_VARS+=		emacs guile nls python
diff --git a/mailutils/patches/patch-mh_mh__init.c b/mailutils/patches/patch-mh_mh__init.c
new file mode 100644
index 0000000000..5c6f724d4d
--- /dev/null
+++ b/mailutils/patches/patch-mh_mh__init.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Define TIOCGWINSZ ioctl on SunOS.
+
+--- mh/mh_init.c.orig	2022-02-12 15:20:43.000000000 +0000
++++ mh/mh_init.c
+@@ -29,6 +29,9 @@
+ #include <fcntl.h>
+ #include <fnmatch.h>
+ #include <sys/ioctl.h>
++#ifdef __sun
++#include <sys/ttold.h>
++#endif
+ 
+ void
+ mh_init (void)


Home | Main Index | Thread Index | Old Index