Subject: pkg/36994: net/libmms fix for FreeBSD-derivates
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jfranz@bsdprojects.net>
List: pkgsrc-bugs
Date: 09/16/2007 19:45:00
>Number: 36994
>Category: pkg
>Synopsis: net/libmms fix for FreeBSD-derivates
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Sep 16 19:45:00 +0000 2007
>Originator: Johann Franz
>Release: 4.0
>Organization:
>Environment:
NetBSD marvin 4.0_RC1 NetBSD 4.0_RC1 (MARVIN) #7: Sat Sep 15 00:17:22 CEST 2007 johann@marvin:/usr/obj/sys/arch/i386/compile/MARVIN i386
>Description:
Obviously, on all FreeBSD-derivates (at least Darwin too, as seen on pkgsrc-bulk@) appears the error:
/usr/include/malloc.h:1:2: #error "this file includes <malloc.h> which is deprecated, use <stdlib.h> instead"
>How-To-Repeat:
make install
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/libmms/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile 10 Sep 2007 16:17:34 -0000 1.1.1.1
+++ Makefile 15 Sep 2007 08:24:44 -0000
@@ -15,12 +15,12 @@
.include "../../mk/bsd.prefs.mk"
-.if ${OPSYS} == "FreeBSD"
+.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "Darwin" || ${OPSYS} == "DragonFly"
SUBST_CLASSES= includes
SUBST_STAGE.includes= post-patch
SUBST_FILES.includes= src/uri.c
SUBST_SED.includes= -e "s|malloc.h|stdlib.h|"
-SUBST_MESSAGE.includes= Replacing malloc.h with stdlib.h for FreeBSD.
+SUBST_MESSAGE.includes= Replacing malloc.h with stdlib.h.
.endif
PKGCONFIG_OVERRIDE+= pkgconfig/libmms.pc.in