ports/136434: Fix broken openradius port and request maintainership

Chris Rees utisoft at gmail.com
Tue Jul 7 17:50:01 UTC 2009


>Number:         136434
>Category:       ports
>Synopsis:       Fix broken openradius port and request maintainership
>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:   Tue Jul 07 17:50:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Chris Rees
>Release:        FreeBSD 7.2-RELEASE i386
>Organization:
bayofrum.net
>Environment:
System: FreeBSD amnesiac.bayofrum.net 7.2-RELEASE FreeBSD 7.2-RELEASE #1: Sun May 3 21:54:38 BST 2009 root at amnesiac.bayofrum.net:/usr/obj/usr/src/sys/AMNESIAC i386

>Description:
	Bug in compilation; FreeBSD now provides memrchr in libc which conflicted with the declaration in misc.c.
>How-To-Repeat:
	cd /usr/ports/net/openradius && make TRYBROKEN=yes
>Fix:

	Patch attached!
	I've renamed the included function to memrchr9, and taken the liberty of changing maintainer to me too...

--- openradius_fix.patch begins here ---
diff -ruN openradius.old/Makefile openradius/Makefile
--- openradius.old/Makefile	2009-03-09 19:29:06.000000000 +0000
+++ openradius/Makefile	2009-07-07 18:33:40.000000000 +0100
@@ -12,7 +12,7 @@
 MASTER_SITES=	http://www.xs4all.nl/~evbergen/openradius/download/ \
 		http://www.mirrors.wiretapped.net/security/authentication/radius/openradius/
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	utisoft at gmail.com
 COMMENT=	A RADIUS server with some actual documentation
 
 LOGFILE?=	/var/log/openradius.log
@@ -38,10 +38,6 @@
 PLIST_SUB+=	LDAP="@comment "
 .endif
 
-.if ${OSVERSION} >= 800034 || (${OSVERSION} >= 700109 && ${OSVERSION} < 800000) || (${OSVERSION} >= 603103 && ${OSVERSION} < 700000)
-BROKEN=		does not compile
-.endif
-
 post-install:
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
diff -ruN openradius.old/files/patch-common-misc.c openradius/files/patch-common-misc.c
--- openradius.old/files/patch-common-misc.c	1970-01-01 01:00:00.000000000 +0100
+++ openradius/files/patch-common-misc.c	2009-07-07 18:21:03.000000000 +0100
@@ -0,0 +1,11 @@
+--- common/misc.c.orig	2009-07-07 18:15:41.000000000 +0100
++++ common/misc.c	2009-07-07 18:17:20.000000000 +0100
+@@ -43,7 +43,7 @@
+  */
+ 
+ 
+-char *memrchr(char *s, int c, ssize_t len)
++char *memrchr9(char *s, int c, ssize_t len)
+ {
+ 	char *ret;
+ 
diff -ruN openradius.old/files/patch-common-misc.h openradius/files/patch-common-misc.h
--- openradius.old/files/patch-common-misc.h	1970-01-01 01:00:00.000000000 +0100
+++ openradius/files/patch-common-misc.h	2009-07-07 18:20:45.000000000 +0100
@@ -0,0 +1,11 @@
+--- common/misc.h.orig	2009-07-07 18:15:47.000000000 +0100
++++ common/misc.h	2009-07-07 18:17:01.000000000 +0100
+@@ -90,7 +90,7 @@
+  * PROTOTYPES
+  */
+ 
+-char *memrchr(char *s, int c, ssize_t len);
++char *memrchr9(char *s, int c, ssize_t len);
+ void hex(char *buf, const char *src, ssize_t len);
+ void hmac_md5(char *out, char *in, META_ORD inl, char *key, META_ORD keyl);
+ void get_random_data(char *p, ssize_t len);
--- openradius_fix.patch ends here ---


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



More information about the freebsd-ports-bugs mailing list