NetBSD Problem Report #28609

From www@netbsd.org  Sat Dec 11 18:03:05 2004
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 48409251F87; Sat, 11 Dec 2004 18:03:05 +0000 (UTC)
Message-Id: <20041211180305.48409251F87@narn.netbsd.org>
Date: Sat, 11 Dec 2004 18:03:05 +0000 (UTC)
From: georg.schwarz@freenet.de
Reply-To: georg.schwarz@freenet.de
To: gnats-bugs@netbsd.org
Subject: mail/distribute assumes existence of _PATH_SENDMAIL, strsep(), install
X-Send-Pr-Version: www-1.0

>Number:         28609
>Category:       pkg
>Synopsis:       mail/distribute assumes existence of _PATH_SENDMAIL, strsep(), install
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 11 18:06:00 +0000 2004
>Last-Modified:  Sat Nov 17 13:36:05 +0000 2007
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
- mail/distribute's setup assumes strsep() exists on the respective system.
- patch-ab assumes _PATH_SENDMAIL is defined.
- Makefile assumes that install is BSD-compatible.
>How-To-Repeat:

>Fix:
- the following patch to Makefile works for IRIX 5 (maybe other OSes also need it), but admittingly the use of DEFAULTCONFIG here is somewhat a hack; maybe passing CFLAGS would be nicer.

--- Makefile.orig       2004-12-11 18:06:37.000000000 +0100
+++ Makefile    2004-12-11 18:18:18.000000000 +0100
@@ -40,6 +40,11 @@
                INSTALL="${INSTALL}" \
                INSTALL_MAN="${INSTALL_MAN}"

+.include "../../mk/bsd.prefs.mk"
+.if !empty(LOWER_OPSYS:Mirix5*)
+MAKE_FLAGS+=   "DEFAULTCONFIG=-DSTRSEP_MISSING"
+.endif
+
 pre-build:
        ${TOUCH} ${WRKSRC}/logging.h ${WRKSRC}/strsep.c

moreover, it is necessary to patch strutil.c to add #include <string.h> in order for strlen() to be known.

- remove patch-ab (why is it there?)
- comment out the INSTALL= line in Makefile.
Maybe in addition it is necessary to change INSTALL="${INSTALL}" into INSTALL="${INSTALL} -c" in the toplevel Makefile.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->itojun
Responsible-Changed-By: recht@netbsd.org
Responsible-Changed-When: Sun, 12 Dec 2004 17:51:52 +0000
Responsible-Changed-Why:
over to maintainer


Responsible-Changed-From-To: itojun->pkg-manager
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Sat, 17 Nov 2007 13:36:05 +0000
Responsible-Changed-Why:
Back to role account.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.