From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Oct 9 15:40:10 2011 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 F06C8106566B for ; Sun, 9 Oct 2011 15:40:09 +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 CD03B8FC15 for ; Sun, 9 Oct 2011 15:40:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p99Fe98w087995 for ; Sun, 9 Oct 2011 15:40:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p99Fe9Kw087991; Sun, 9 Oct 2011 15:40:09 GMT (envelope-from gnats) Resent-Date: Sun, 9 Oct 2011 15:40:09 GMT Resent-Message-Id: <201110091540.p99Fe9Kw087991@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, Jilles Tjoelker Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF82B106564A for ; Sun, 9 Oct 2011 15:38:45 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay02.stack.nl [IPv6:2001:610:1108:5010::104]) by mx1.freebsd.org (Postfix) with ESMTP id 6D4D48FC08 for ; Sun, 9 Oct 2011 15:38:45 +0000 (UTC) Received: from toad.stack.nl (toad.stack.nl [IPv6:2001:610:1108:5010::135]) by mx1.stack.nl (Postfix) with ESMTP id 689F23592F9 for ; Sun, 9 Oct 2011 17:38:44 +0200 (CEST) Received: by toad.stack.nl (Postfix, from userid 1677) id 546F53F468; Sun, 9 Oct 2011 17:38:44 +0200 (CEST) Message-Id: <20111009153844.546F53F468@toad.stack.nl> Date: Sun, 9 Oct 2011 17:38:44 +0200 (CEST) From: Jilles Tjoelker To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/161431: lang/perl5.12: fix build on 10.0-CURRENT X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jilles Tjoelker List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2011 15:40:10 -0000 >Number: 161431 >Category: ports >Synopsis: lang/perl5.12: fix build on 10.0-CURRENT >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 09 15:40:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Jilles Tjoelker >Release: FreeBSD 10.0-CURRENT i386 >Organization: The FreeBSD Project >Environment: FreeBSD 10.0-CURRENT without version number hacks but with working libtool (in my case, by having a /usr/share/mk/bsd.port.mk with a workaround $FreeBSD: head/share/mk/bsd.port.mk 226124 2011-10-08 00:01:17Z stas $ but there are other ways to accomplish this) >Description: lang/perl5.12 does not build on 10.0-CURRENT. Because of wrong version checks, it runs nm on /lib/libc.so.7 which does not work, then tries ar and bld which do not work either. In FreeBSD 1.x (no shared libraries), the nm command worked, and also in a.out versions with shared libraries. For newer versions, hints/freebsd.sh tries to disable running nm. >How-To-Repeat: Try to build lang/perl5.12 on the given environment. >Fix: Fix the version checks in hints/freebsd.sh. I created a separate patch file patch-freebsd.sh-freebsd10 because I expect this to go upstream fairly soon. This patch also fixes the build of lang/perl5.10 and lang/perl5.14. --- patch-freebsd.sh-freebsd10 begins here --- --- hints/freebsd.sh.orig2 2011-10-09 13:30:37.000000000 +0000 +++ hints/freebsd.sh 2011-10-09 14:12:48.000000000 +0000 @@ -116,7 +116,8 @@ case "$osvers" in 0.*|1.0*) ;; -1*|2*) cccdlflags='-DPIC -fpic' +1.*|2.*) + cccdlflags='-DPIC -fpic' lddlflags="-Bshareable $lddlflags" ;; @@ -139,7 +140,7 @@ esac case "$osvers" in -0*|1*|2*|3*) ;; +0.*|1.*|2.*|3.*) ;; *) ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H" @@ -196,7 +197,7 @@ $define|true|[yY]*) lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'|sed -n '$p'` case "$osvers" in - 0*|1*|2.0*|2.1*) cat <&4 + 0.*|1.*|2.0*|2.1*) cat <&4 I did not know that FreeBSD $osvers supports POSIX threads. Feel free to tell perlbug@perl.org otherwise. --- patch-freebsd.sh-freebsd10 ends here --- >Release-Note: >Audit-Trail: >Unformatted: