From nobody@FreeBSD.org  Thu Oct 15 22:31:43 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D18471065697
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Oct 2009 22:31:43 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id C044A8FC26
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Oct 2009 22:31:43 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n9FMVgPn015655
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Oct 2009 22:31:42 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n9FMVgL5015654;
	Thu, 15 Oct 2009 22:31:42 GMT
	(envelope-from nobody)
Message-Id: <200910152231.n9FMVgL5015654@www.freebsd.org>
Date: Thu, 15 Oct 2009 22:31:42 GMT
From: Pavel Gubin <pg@2lazy.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: net/asterisk-bristuff fails to install trying to execute bash script
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         139657
>Category:       ports
>Synopsis:       net/asterisk-bristuff fails to install trying to execute bash script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    fjoe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 15 22:40:01 UTC 2009
>Closed-Date:    Sun Oct 18 14:55:17 UTC 2009
>Last-Modified:  Sun Oct 18 15:00:10 UTC 2009
>Originator:     Pavel Gubin
>Release:        6.4
>Organization:
Lazy
>Environment:
FreeBSD srv.local 6.4-RELEASE-p6 FreeBSD 6.4-RELEASE-p6 #1: Mon Sep 28 02:15:02 TSD 2009     pg@srv.2lazy.ru:/usr/obj/usr/src/sys/Srv  i386
>Description:
net/asterisk-bristuff port fails to install properly without shells/bash installed, because Makefile trying to generate and install pkg-config spec file with bash script build_tools/mkpkgconfig (in asterisk's source directory).
>How-To-Repeat:
1) Ensure no bash can be found in your PATH
2) cd /usr/ports/net/asterisk-bristuff; make install
>Fix:
Seems that build_tools/mkpkgconfig script not only uses bashisms, but also implicitly uses perl, and Makefile tries to install pkgconfig spec file intto /usr/lib/pkgconfig instead of /usr/local/libdata/pkgconfig.

Seems that this spec file is not very useful anyway, so simplest way is to comment out its generation and installation.



Patch attached with submission follows:

--- nocodecnego-patch-Makefile.orig	2009-09-17 02:33:37.000000000 +0700
+++ nocodecnego-patch-Makefile	2009-10-16 04:35:24.000000000 +0700
@@ -39,7 +39,12 @@
    ASTCFLAGS+=$(shell if test $(BSDVERSION) -lt 500016 ; then echo "-D_THREAD_SAFE"; fi)
    AST_LIBS+=$(shell if test  $(BSDVERSION) -lt 502102 ; then echo "-lc_r"; else echo "-pthread"; fi)
  endif
-@@ -408,15 +410,15 @@
+@@ -404,19 +406,19 @@
+ 	rm -f build_tools/menuselect-deps
+ 
+ datafiles: _all
+-	if [ x`$(ID) -un` = xroot ]; then CFLAGS="$(ASTCFLAGS)" bash build_tools/mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi
++#	if [ x`$(ID) -un` = xroot ]; then CFLAGS="$(ASTCFLAGS)" bash build_tools/mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi
  # Should static HTTP be installed during make samples or even with its own target ala
  # webvoicemail?  There are portions here that *could* be customized but might also be
  # improved a lot.  I'll put it here for now.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->fjoe 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Oct 15 22:40:11 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=139657 
State-Changed-From-To: open->closed 
State-Changed-By: fjoe 
State-Changed-When: Sun Oct 18 14:54:52 UTC 2009 
State-Changed-Why:  
Fix committed, thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/139657: commit references a PR
Date: Sun, 18 Oct 2009 14:54:55 +0000 (UTC)

 fjoe        2009-10-18 14:54:41 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net/asterisk-bristuff Makefile 
   Added files:
     net/asterisk-bristuff/files patch-Makefile 
   Log:
   Do not install asterisk.pc:
   - generation script depends on bash and "sed -r" or perl
   
   PR:             139657
   Submitted by:   Pavel Gubin
   
   Revision  Changes    Path
   1.76      +1 -1      ports/net/asterisk-bristuff/Makefile
   1.19      +11 -0     ports/net/asterisk-bristuff/files/patch-Makefile (new)
 _______________________________________________
 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:
