Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2002 02:00:48 +0200 (CEST)
From:      Christian Weisgerber <naddy@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/39492: devel/autoconf picks up non-standard shell
Message-ID:  <200206190000.g5J00mnB005307@kemoauc.mips.inka.de>

next in thread | raw e-mail | index | archive | help

>Number:         39492
>Category:       ports
>Synopsis:       devel/autoconf picks up non-standard shell
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 18 17:40:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Christian Weisgerber
>Release:        FreeBSD 5.0-CURRENT alpha
>Organization:
>Environment:
System: FreeBSD kemoauc.mips.inka.de 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Mon Jun 10 07:53:21 CEST 2002 naddy@kemoauc.mips.inka.de:/usr/obj/usr/src/sys/KEMOAUC alpha

>Description:

The configure script of the devel/autoconf port prefers a variety
of third-party shells (e.g. bash) over /bin/sh to run itself.  The
same shell as used for configuration is inserted into the #! path
of the generated "autoconf" script.

In other words, if bash is available on a system when the devel/autoconf
port is built, the installed autoconf script will look like this:

#! /usr/local/bin/bash
# -*- shell-script -*-
# autoconf -- create `configure' using m4 macros
[...]

In order to remove this hidden dependency and make the build
deterministic, I suggest to force CONFIG_SHELL=/bin/sh.

>How-To-Repeat:

>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/autoconf/Makefile,v
retrieving revision 1.30
diff -u -r1.30 Makefile
--- Makefile	14 Mar 2002 13:29:00 -0000	1.30
+++ Makefile	22 Apr 2002 16:02:37 -0000
@@ -19,7 +19,8 @@
 USE_BZIP2=	yes
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	M4=${LOCALBASE}/bin/gm4
+CONFIGURE_ENV=	CONFIG_SHELL=/bin/sh \
+		M4=${LOCALBASE}/bin/gm4
 CONFIGURE_ARGS=	--without-lispdir
 
 GENERIC_TOOLS=	config.guess	\
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206190000.g5J00mnB005307>