Subject: pkg/24861: mail/metamail doesn't build on linux
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <froz@icix.org>
List: netbsd-bugs
Date: 03/20/2004 15:27:52
>Number: 24861
>Category: pkg
>Synopsis: mail/metamail doesn't build on linux
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Mar 20 15:28:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Antonio Marques
>Release: N/A
>Organization:
>Environment:
Linux 2.4.23
>Description:
metamail doesn't build on linux due to missing signal SIGEMT and some conflicting declarations.
>How-To-Repeat:
cd /usr/pkgsrc/mail/metamail
bmake
>Fix:
The following should be added to the package's Makefile:
CFLAGS.Linux+= -DSYSV
Applying the following patches will solve the compile errors:
patch-ap:
$NetBSD$
--- metamail/metamail.c.orig 2004-03-20 13:46:18.000000000 +0000
+++ metamail/metamail.c
@@ -310,7 +310,6 @@ char **argv;
signal(SIGIOT, cleanup);
signal(SIGFPE, cleanup);
#ifndef LINUX
- signal(SIGEMT, cleanup);
signal(SIGBUS, cleanup);
#endif
signal(SIGSEGV, cleanup);
patch-aq:
$NetBSD$
--- metamail/mailto.c.orig 2004-03-20 13:46:24.000000000 +0000
+++ metamail/mailto.c
@@ -1448,7 +1448,6 @@ InitSignals() {
signal(SIGIOT, cleanup);
signal(SIGFPE, cleanup);
#ifndef LINUX
- signal(SIGEMT, cleanup);
signal(SIGBUS, cleanup);
#endif
signal(SIGSEGV, cleanup);
patch-ar:
$NetBSD$
--- metamail/putenv.c.orig 2004-03-20 13:46:31.000000000 +0000
+++ metamail/putenv.c
@@ -25,11 +25,13 @@ Cambridge, MA 02139, USA. */
extern int errno;
#endif
+#if !(defined(__linux__))
#if defined(STDC_HEADERS) || defined(USG) || defined(SYSV)
#include <string.h>
#else /* not (STDC_HEADERS or USG) */
#include <strings.h>
#endif /* STDC_HEADERS or USG */
+#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
patch-as:
$NetBSD$
--- config.h.orig 2004-03-20 13:46:55.000000000 +0000
+++ config.h
@@ -107,8 +107,10 @@ WITHOUT ANY EXPRESS OR IMPLIED WARRANTIE
#ifdef SYSV
#if !(defined(__sun__) && defined(__svr4__))
+#if !(defined(__linux__))
#define killpg(a, b) kill(-(a), (b))
#endif
+#endif
#define bcopy(a, b, c) memcpy(b, a, c)
#define bzero(a, b) memset(a, 0, b)
#define bcmp memcmp
patch-at:
$NetBSD$
--- richmail/richtext.c.orig 2004-03-20 13:54:15.000000000 +0000
+++ richmail/richtext.c
@@ -134,7 +134,6 @@ static InitSignals() {
signal(SIGIOT, cleanup);
signal(SIGFPE, cleanup);
#ifndef LINUX
- signal(SIGEMT, cleanup);
signal(SIGBUS, cleanup);
#endif
signal(SIGSEGV, cleanup);
>Release-Note:
>Audit-Trail:
>Unformatted: