ports/132009: [PATCH] mail/smfsav: fix after strndup addition/MFC, remove BROKEN tag

Florian Smeets flo at kasimir.com
Mon Feb 23 14:40:13 UTC 2009


>Number:         132009
>Category:       ports
>Synopsis:       [PATCH] mail/smfsav: fix after strndup addition/MFC, remove BROKEN tag
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 23 14:40:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Florian Smeets
>Release:        FreeBSD 7.1-STABLE amd64
>Organization:
>Environment:
System: FreeBSD mail.solomo.de 7.1-STABLE FreeBSD 7.1-STABLE #4: Mon Jan  5 22:33:23 CET
>Description:
this port is marked BROKEN due to the addition/MFC of the strndup function. With this patch it builds again.

Added file(s):
- files/patch-irpmarshall.c

Port maintainer (bart at tapolsky.net.ua) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
try to build port after the addition of strndup
>Fix:

define HAVE_STRNDUP 1 for these cases:

__FreeBSD_version >= 800058 || __FreeBSD_version >= 701101 && __FreeBSD_version < 800000

--- smfsav-1.4.0.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/mail/smfsav.orig/Makefile /usr/ports/mail/smfsav/Makefile
--- /usr/ports/mail/smfsav.orig/Makefile	2009-02-13 10:51:06.000000000 +0100
+++ /usr/ports/mail/smfsav/Makefile	2009-02-22 16:32:23.000000000 +0100
@@ -56,10 +56,4 @@
 	${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 800058 || (${OSVERSION} >= 701101 && ${OSVERSION} < 800000)
-BROKEN=		does not build
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/mail/smfsav.orig/files/patch-irpmarshall.c /usr/ports/mail/smfsav/files/patch-irpmarshall.c
--- /usr/ports/mail/smfsav.orig/files/patch-irpmarshall.c	1970-01-01 01:00:00.000000000 +0100
+++ /usr/ports/mail/smfsav/files/patch-irpmarshall.c	2009-02-23 14:22:58.000000000 +0100
@@ -0,0 +1,16 @@
+--- ../src/lib/irs/irpmarshall.c.orig	2009-02-22 15:17:43.000000000 +0000
++++ ../src/lib/irs/irpmarshall.c	2009-02-22 15:25:53.000000000 +0000
+@@ -89,6 +89,12 @@
+ 
+ #include "port_after.h"
+ 
++#if defined(__FreeBSD__)
++#include <osreldate.h>
++#if __FreeBSD_version >= 800058 || __FreeBSD_version >= 701101 && __FreeBSD_version < 800000
++#define HAVE_STRNDUP 1
++#endif
++#endif
+ 
+ #ifndef HAVE_STRNDUP
+ static char    *strndup(const char *str, size_t len);
+
--- smfsav-1.4.0.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list