Bug 174576

Summary: make index in ports fails with perl not found error
Product: Ports & Packages Reporter: Carsten Dumke <carsten>
Component: Individual Port(s)Assignee: Bryan Drewery <bdrewery>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Carsten Dumke 2012-12-19 14:50:00 UTC
The base installation does not install perl which is needed for ports "make index"

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin

SHELL=/bin/csh

A "find / -name perl" did not find a perl-environment on the system.

Fix: 

manually install perl from the ports-collection
How-To-Repeat: After a clean installation with cdrom disk 1 (amd64) and all packages selected I login as root and do the following steps:

1. cd /usr/ports
2. make index (with following output)
root@thorin:/usr/ports # make index
Generating INDEX-9 - please wait..perl: not found
"Makefile", line 31: warning: "perl -V:archname" returned non-zero status
perl: not found
 Done.
Comment 1 Bryan Drewery freebsd_committer freebsd_triage 2012-12-19 18:36:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bdrewery

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-01-02 13:32:28 UTC
Author: wxs
Date: Wed Jan  2 13:32:21 2013
New Revision: 309816
URL: http://svnweb.freebsd.org/changeset/ports/309816

Log:
  Fix index build when perl is not there yet.
  
  PR:		ports/174576
  Submitted by:	bdrewery@

Modified:
  head/net/silc-client/Makefile

Modified: head/net/silc-client/Makefile
==============================================================================
--- head/net/silc-client/Makefile	Wed Jan  2 13:25:05 2013	(r309815)
+++ head/net/silc-client/Makefile	Wed Jan  2 13:32:21 2013	(r309816)
@@ -97,7 +97,7 @@ CONFIGURE_ARGS+=	--without-iconv
 
 .if ${PORT_OPTIONS:MPERL}
 USE_PERL5=		yes
-PERL_ARCHNAME!=		perl -V:archname
+PERL_ARCHNAME!=		perl -V:archname 2>/dev/null || true
 PLIST_SUB+=		WITH_PERL="" PERL_ARCHNAME="${PERL_ARCHNAME:S/archname='//:S/';//}"
 CONFIGURE_ARGS+=	--with-perl-lib=${PREFIX}/lib/${PORTNAME}/perl
 .else
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Bryan Drewery freebsd_committer freebsd_triage 2013-03-10 23:39:16 UTC
State Changed
From-To: open->closed

Both cases of "perl -V:archname" have been fixed (science/mcstas and 
net/silc-client)
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-03-14 00:52:17 UTC
Author: bdrewery
Date: Thu Mar 14 00:52:09 2013
New Revision: 314124
URL: http://svnweb.freebsd.org/changeset/ports/314124

Log:
  - Fix warning when building in a jail
    perl: not found
    "Makefile", line 28: warning: "perl -V:archname" returned non-zero status
  
  PR:		ports/174576
  Approved by:	maintainer timeout (>2 months via email)

Modified:
  head/science/mcstas/Makefile

Modified: head/science/mcstas/Makefile
==============================================================================
--- head/science/mcstas/Makefile	Thu Mar 14 00:38:19 2013	(r314123)
+++ head/science/mcstas/Makefile	Thu Mar 14 00:52:09 2013	(r314124)
@@ -1,7 +1,4 @@
-# New ports collection makefile for:	mcstas
-# Date created:			Apr 26, 2004
-# Whom:				Joerg Pulz <Joerg.Pulz@frm2.tum.de>
-#
+# Created by: Joerg Pulz <Joerg.Pulz@frm2.tum.de>
 # $FreeBSD$
 
 PORTNAME=	mcstas
@@ -28,7 +25,7 @@ USE_GMAKE=	yes
 NO_MTREE=	yes
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
-PERL_ARCHNAME!=	perl -V:archname
+PERL_ARCHNAME!=	perl -V:archname 2>/dev/null || :
 
 PLIST_SUB+=	PERL_PORT=perl5 PERL_ARCHNAME=${PERL_ARCHNAME:S/archname='//:S/';//}
 
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"