Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Dec 2005 20:26:12 +0800 (CST)
From:      Yen-Ming Lee <leeym@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        demon@FreeBSD.org
Subject:   ports/90543: [PATCH] net/p5-Net-Z3950-SimpleServer: unbreak under old perl
Message-ID:  <20051217122612.D6C22B29CEB@utopia.leeym.com>
Resent-Message-ID: <200512171230.jBHCU3P0046765@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         90543
>Category:       ports
>Synopsis:       [PATCH] net/p5-Net-Z3950-SimpleServer: unbreak under old perl
>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:   Sat Dec 17 12:30:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
FreeBSD Taiwan
>Environment:
System: FreeBSD utopia.leeym.com 6.0-STABLE FreeBSD 6.0-STABLE #0: Thu Nov 17 09:15:19 CST 2005
>Description:
- unbreak this port under old perl
- use MASTER_SITE_PERL_CPAN instead
  (note: the distfile was rerolled, but the content are kept intact)

- compiled and tested under perl 5.00503, perl 5.6.2, and perl 5.8.7

Port maintainer (demon@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:

http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.4.2005092302/p5-Net-Z3950-SimpleServer-0.08.log

>Fix:

--- p5-Net-Z3950-SimpleServer-0.08.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net/p5-Net-Z3950-SimpleServer/Makefile,v
retrieving revision 1.7
diff -u -u -r1.7 Makefile
--- Makefile	10 Apr 2005 21:59:01 -0000	1.7
+++ Makefile	17 Dec 2005 12:16:39 -0000
@@ -8,7 +8,8 @@
 PORTNAME=	Net-Z3950-SimpleServer
 PORTVERSION=	0.08
 CATEGORIES=	net perl5
-MASTER_SITES=	http://ftp.indexdata.dk/pub/simpleserver/
+MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR=	Net
 PKGNAMEPREFIX=	p5-
 
 MAINTAINER=	demon@FreeBSD.org
@@ -24,7 +25,10 @@
 .include <bsd.port.pre.mk>
 
 .if ${OSVERSION} < 500000
-BROKEN=		"Does not compile on FreeBSD 4.x"
+post-patch:
+	${REINPLACE_CMD} -e 's/PERL_GET_CONTEXT/(PL_curinterp)/g' ${WRKSRC}/SimpleServer.xs
+	${REINPLACE_CMD} -e 's/PERL_SET_CONTEXT/(PL_curinterp)=/g' ${WRKSRC}/SimpleServer.xs
+	${REINPLACE_CMD} -e '/LIBS/s/=>.*/=> "$$libs -lc_r",/' ${WRKSRC}/Makefile.PL
 .endif
 
 .include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/net/p5-Net-Z3950-SimpleServer/distinfo,v
retrieving revision 1.4
diff -u -u -r1.4 distinfo
--- distinfo	14 Oct 2004 11:14:39 -0000	1.4
+++ distinfo	17 Dec 2005 12:16:39 -0000
@@ -1,2 +1,3 @@
-MD5 (Net-Z3950-SimpleServer-0.08.tar.gz) = 4a22a5f806f8a7719c6bb4514e7b0d03
-SIZE (Net-Z3950-SimpleServer-0.08.tar.gz) = 24667
+MD5 (Net-Z3950-SimpleServer-0.08.tar.gz) = 56e768945d4f7150f6cab1b1958a137e
+SHA256 (Net-Z3950-SimpleServer-0.08.tar.gz) = 2bffc8cb59db4c52c8efb3609b55090eea87c33039097c6685dcf1a214070232
+SIZE (Net-Z3950-SimpleServer-0.08.tar.gz) = 24552
--- p5-Net-Z3950-SimpleServer-0.08.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051217122612.D6C22B29CEB>