Date: Thu, 28 Oct 2004 12:15:02 +0200 (CEST) From: Jean-Yves Lefort <jylefort@brutele.be> To: FreeBSD-gnats-submit@FreeBSD.org Cc: tobez@FreeBSD.org Subject: ports/73233: Update port: lang/perl5.8 (fix threads support) Message-ID: <20041028101502.4BD7E22E09@jsite.lefort.net> Resent-Message-ID: <200410281020.i9SAKOTD037014@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 73233 >Category: ports >Synopsis: Update port: lang/perl5.8 (fix threads support) >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Oct 28 10:20:24 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Jean-Yves Lefort >Release: FreeBSD 5.3-BETA6 i386 >Organization: >Environment: System: FreeBSD jsite.lefort.net 5.3-BETA6 FreeBSD 5.3-BETA6 #0: Tue Oct 26 11:26:46 CEST 2004 jylefort@jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386 >Description: Uses PTHREAD_CFLAGS and PTHREADS_LIBS when WITH_THREADS is used, as suggested by marcus. This fixes various problems with both non-threaded and threaded Perl programs. >How-To-Repeat: >Fix: diff -ruN /usr/ports/lang/perl5.8/Makefile perl5.8/Makefile --- /usr/ports/lang/perl5.8/Makefile Fri Jul 30 12:36:09 2004 +++ perl5.8/Makefile Thu Oct 28 11:55:43 2004 @@ -7,6 +7,7 @@ PORTNAME= perl PORTVERSION= ${PERL_VER} +PORTREVISION= 1 CATEGORIES= lang devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \ ${MASTER_SITE_LOCAL:S/$/:local/} \ @@ -26,6 +27,10 @@ USE_BZIP2= yes HAS_CONFIGURE= yes CONFIGURE_SCRIPT=Configure + +CCFLAGS= -DAPPLLIB_EXP=\"${BSDPAN_DEST}\" +LIBS= -lm + CONFIGURE_ARGS= -sde -Dprefix=${PREFIX} \ -Darchlib=${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} \ -Dprivlib=${PREFIX}/lib/perl5/${PERL_VER} \ @@ -37,7 +42,7 @@ -Dsiteman1dir=${PREFIX}/man/man1 \ -Ui_malloc -Ui_iconv -Uinstallusrbinperl \ -Dcc="${CC}" -Doptimize="${CFLAGS}" -Duseshrplib \ - -Dccflags=-DAPPLLIB_EXP=\"${BSDPAN_DEST}\" + -Dccflags="${CCFLAGS}" -Dlibs="${LIBS}" INCLUDEDIR= /usr/include @@ -70,6 +75,8 @@ .if defined(WITH_THREADS) CONFIGURE_ARGS+= -Dusethreads=y +CCFLAGS+= ${PTHREAD_CFLAGS} +LIBS+= ${PTHREAD_LIBS} PKGNAMESUFFIX= -threaded # it seems perl malloc has problems with threaded perl on FreeBSD .undef WITH_PERL_MALLOC >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041028101502.4BD7E22E09>