From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jul 7 17:50:01 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D0A3106566C for ; Tue, 7 Jul 2009 17:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E8F7E8FC1E for ; Tue, 7 Jul 2009 17:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n67Ho0sw016990 for ; Tue, 7 Jul 2009 17:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n67Ho0l0016989; Tue, 7 Jul 2009 17:50:00 GMT (envelope-from gnats) Resent-Date: Tue, 7 Jul 2009 17:50:00 GMT Resent-Message-Id: <200907071750.n67Ho0l0016989@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chris Rees Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78D3A1065673 for ; Tue, 7 Jul 2009 17:43:24 +0000 (UTC) (envelope-from chris@amnesiac.bayofrum.net) Received: from amnesiac.bayofrum.net (87-194-206-83.bethere.co.uk [87.194.206.83]) by mx1.freebsd.org (Postfix) with ESMTP id D4D188FC17 for ; Tue, 7 Jul 2009 17:43:22 +0000 (UTC) (envelope-from chris@amnesiac.bayofrum.net) Received: from amnesiac.bayofrum.net (localhost [127.0.0.1]) by amnesiac.bayofrum.net (8.14.3/8.14.3) with ESMTP id n67HhKhi063284 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Tue, 7 Jul 2009 18:43:20 +0100 (BST) (envelope-from chris@amnesiac.bayofrum.net) Received: (from chris@localhost) by amnesiac.bayofrum.net (8.14.3/8.14.3/Submit) id n67HhKMF063283; Tue, 7 Jul 2009 18:43:20 +0100 (BST) (envelope-from chris) Message-Id: <200907071743.n67HhKMF063283@amnesiac.bayofrum.net> Date: Tue, 7 Jul 2009 18:43:20 +0100 (BST) From: Chris Rees To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/136434: Fix broken openradius port and request maintainership X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Chris Rees List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jul 2009 17:50:01 -0000 >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@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@FreeBSD.org +MAINTAINER= utisoft@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: