From swell.k@gmail.com  Wed Jun 30 07:11:37 2010
Return-Path: <swell.k@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3F287106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 30 Jun 2010 07:11:37 +0000 (UTC)
	(envelope-from swell.k@gmail.com)
Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54])
	by mx1.freebsd.org (Postfix) with ESMTP id E6ECC8FC0A
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 30 Jun 2010 07:11:36 +0000 (UTC)
Received: by vws13 with SMTP id 13so808430vws.13
        for <FreeBSD-gnats-submit@freebsd.org>; Wed, 30 Jun 2010 00:11:29 -0700 (PDT)
Received: by 10.220.127.73 with SMTP id f9mr4535198vcs.118.1277881889288;
        Wed, 30 Jun 2010 00:11:29 -0700 (PDT)
Received: from localhost (anonymizer3.torservers.net [173.244.197.211])
        by mx.google.com with ESMTPS id y7sm21884543vcx.22.2010.06.30.00.11.27
        (version=SSLv3 cipher=RC4-MD5);
        Wed, 30 Jun 2010 00:11:28 -0700 (PDT)
Message-Id: <86iq513sh1.fsf@gmail.com>
Date: Wed, 30 Jun 2010 11:11:22 +0400
From: Anonymous <swell.k@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: lang/perl5.10: fails to build when uname contains `=' char

>Number:         148255
>Category:       ports
>Synopsis:       [patch] lang/perl5.10: fails to build when uname contains `=' char
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pgollucci
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 30 07:20:06 UTC 2010
>Closed-Date:    Fri Dec 10 23:03:17 UTC 2010
>Last-Modified:  Sat Dec 11 17:50:11 UTC 2010
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
$ uname -a
FreeBSD raphael.local 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r209581=f9b9ab9-dirty: Tue Jun 29 00:46:39 UTC 2010     holo@raphael.local:/a/objdir/a/dirty_build/sys/PHOENIX  amd64

LOCALBASE=/usr/pkg
>Description:
As of r197433 $SYSDIR/conf/newvers.sh may genarate uname that contains `=' (equal sign).

The error is similar to
  http://bugs.gentoo.org/show_bug.cgi?id=203458#c11
>How-To-Repeat:
$ make
...
cc -o libperl.so.1001 -L/usr/pkg/lib -fstack-protector op.o perl.o   gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o   DynaLoader.o -lm -lcrypt -lutil -lc
/usr/pkg/bin/ld: /usr/lib/crt1.o: in function _start:/a/dirty_build/lib/csu/amd64/crt1.c:93: error: undefined reference to 'main'
collect2: ld returned 1 exit status
*** Error code 1

$ fgrep myuname $(make -V WRKSRC)/config.sh
myuname='f9b9ab9-dirty: tue jun 29 00:46:39 utc 2010 holo@raphael.local:aobjdiradirty_buildsysphoenix amd64 '
>Fix:
Workaround:

--- uname begins here ---
#! /bin/sh
# uname(1) wrapper, put in PATH before /usr/bin

PATH=/usr/bin

uname "$@" |
sed 's/=[^:]*//'
--- uname ends here ---
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->skv 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Jun 30 07:20:17 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148255 

From: Anonymous <swell.k@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/148255: lang/perl5.10: fails to build when uname contains `=' char
Date: Sat, 17 Jul 2010 01:01:32 +0400

 It affects lang/perl5.8 and lang/perl5.12, too.

From: Anonymous <swell.k@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/148255: lang/perl5.10: fails to build when uname contains `=' char
Date: Tue, 03 Aug 2010 19:42:19 +0400

 I forgot that uname(1) behavior can be altered via environment.
 The following workaround is less intrusive than above wrapper script.
 
 --- a.diff begins here ---
 Index: lang/perl5.12/Makefile
 ===================================================================
 RCS file: /a/.cvsup/ports/lang/perl5.12/Makefile,v
 retrieving revision 1.122
 diff -u -p -r1.122 Makefile
 --- lang/perl5.12/Makefile	23 Jul 2010 17:41:03 -0000	1.122
 +++ lang/perl5.12/Makefile	3 Aug 2010 15:35:59 -0000
 @@ -59,7 +59,7 @@ CONFIGURE_ARGS=	-sde -Dprefix=${PREFIX} 
  LOCALE_CLEANUP=	LANG="" LC_ALL="" LC_COLLATE="" LC_CTYPE="" \
  		LC_MESSAGES="" LC_MONETARY="" LC_NUMERIC="" \
  		LC_TIME=""
 -CONFIGURE_ENV+=	${LOCALE_CLEANUP}
 +CONFIGURE_ENV+=	${LOCALE_CLEANUP} UNAME_v="$$(uname -v | sed 's/=[^:]*//')"
  MAKE_ENV+=	${LOCALE_CLEANUP}
  
  .include "Makefile.man"
 --- a.diff ends here ---

From: Anonymous <swell.k@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/148255: [patch] lang/perl5.10: fails to build when uname contains `=' char
Date: Wed, 11 Aug 2010 16:04:59 +0400

 More simple version that works with misc/149510.
 
 --- a.diff begins here ---
 Index: lang/perl5.12/Makefile
 ===================================================================
 RCS file: /a/.cvsup/ports/lang/perl5.12/Makefile,v
 retrieving revision 1.122
 diff -u -p -r1.122 Makefile
 --- lang/perl5.12/Makefile	23 Jul 2010 17:41:03 -0000	1.122
 +++ lang/perl5.12/Makefile	11 Aug 2010 11:58:47 -0000
 @@ -59,7 +59,7 @@ CONFIGURE_ARGS=	-sde -Dprefix=${PREFIX} 
  LOCALE_CLEANUP=	LANG="" LC_ALL="" LC_COLLATE="" LC_CTYPE="" \
  		LC_MESSAGES="" LC_MONETARY="" LC_NUMERIC="" \
  		LC_TIME=""
 -CONFIGURE_ENV+=	${LOCALE_CLEANUP}
 +CONFIGURE_ENV+=	${LOCALE_CLEANUP} UNAME_v="$$(uname -v | sed 'y/=/ /')"
  MAKE_ENV+=	${LOCALE_CLEANUP}
  
  .include "Makefile.man"
 --- a.diff ends here ---
Responsible-Changed-From-To: skv->pgollucci 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Fri Dec 10 03:25:19 UTC 2010 
Responsible-Changed-Why:  
committer&maintainer timeout (skv ; 121 days) / last commit: 5 days ago 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148255 
State-Changed-From-To: open->closed 
State-Changed-By: pgollucci 
State-Changed-When: Fri Dec 10 23:03:16 UTC 2010 
State-Changed-Why:  
Committed, Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148255 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/148255: commit references a PR
Date: Fri, 10 Dec 2010 23:03:16 +0000 (UTC)

 pgollucci    2010-12-10 23:03:12 UTC
 
   FreeBSD ports repository
 
   Modified files:
     lang/perl5.10        Makefile 
   Log:
   - Support = in hostnames compatiable with misc/149510.
   
   PR:             ports/148255
   Submitted by:   Anonymous <swell.k@gmail.com>
   Approved by:    maintainer timeout (skv ; 121 days)
   
   Revision  Changes    Path
   1.125     +1 -1      ports/lang/perl5.10/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/148255: commit references a PR
Date: Sat, 11 Dec 2010 17:46:19 +0000 (UTC)

 pgollucci    2010-12-11 17:46:13 UTC
 
   FreeBSD ports repository
 
   Modified files:
     lang/perl5.8         Makefile 
     lang/perl5.12        Makefile 
   Log:
   - Support = in hostnames compatiable with misc/149510.
     duplicate fix in other perl ports
   
   PR:             ports/148255
   Submitted by:   Anonymous <swell.k@gmail.com>
   Approved by:    maintainer timeout (skv ; 121 days)
   
   Revision  Changes    Path
   1.129     +1 -1      ports/lang/perl5.12/Makefile
   1.115     +1 -1      ports/lang/perl5.8/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
