From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Oct 15 22:40:01 2009 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 AE43C1065692 for ; Thu, 15 Oct 2009 22:40:01 +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 6E8B68FC0C for ; Thu, 15 Oct 2009 22:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9FMe12i075815 for ; Thu, 15 Oct 2009 22:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9FMe1m7075814; Thu, 15 Oct 2009 22:40:01 GMT (envelope-from gnats) Resent-Date: Thu, 15 Oct 2009 22:40:01 GMT Resent-Message-Id: <200910152240.n9FMe1m7075814@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, Pavel Gubin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D18471065697 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/139657: net/asterisk-bristuff fails to install trying to execute bash script X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2009 22:40:01 -0000 >Number: 139657 >Category: ports >Synopsis: net/asterisk-bristuff fails to install trying to execute bash script >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 15 22:40:01 UTC 2009 >Closed-Date: >Last-Modified: >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: >Unformatted: