From nobody@FreeBSD.ORG  Wed Jul  5 05:22:47 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id B8C2B37BDE8; Wed,  5 Jul 2000 05:22:47 -0700 (PDT)
Message-Id: <20000705122247.B8C2B37BDE8@hub.freebsd.org>
Date: Wed,  5 Jul 2000 05:22:47 -0700 (PDT)
From: oota@LSi.nec.co.jp
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: bsd.port.mk and autoconf are conflict
X-Send-Pr-Version: www-1.0

>Number:         19711
>Category:       ports
>Synopsis:       bsd.port.mk and autoconf are conflict
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    dwcjr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 05 05:30:01 PDT 2000
>Closed-Date:    Sun Jun 24 19:45:39 PDT 2001
>Last-Modified:  Sun Jun 24 19:45:52 PDT 2001
>Originator:     HIROSHI OOTA
>Release:        4.0-RELEASE
>Organization:
NEC Corporation
>Environment:
FreeBSD xxx 4.0-RELEASE FreeBSD 4.0-RELEASE #0: Sat Apr  8 02:49:15 JST 2000 xxx  i386

>Description:
$FreeBSD: ports/Mk/bsd.port.mk,v 1.340 2000/06/16 21:52:40 asami Exp $
Autoconf version 2.13

At the configuration phase in ports building, bsd.port.mk invokes the configuration script with environment variable INSTALL='/usr/bin/install -c'.
If the sources has subdirectory and subdirectory's install command is 
substituted by INSTALL, the configure script will not work properly.

>How-To-Repeat:
1 Extract the following shar.
2 Execute autoconf in topdir and dir1.
3 Execute `./configure' in topdir.
  dir1/Makefile is correct.
4 Execute 'INSTALL="/usr/bin/install -c" ./configure`
  dir1/Makefile is incorrect.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       Makefile.in
#       configure.in
#       dir1
#       dummy
#       install.sh
#       dir1/Makefile.in
#       dir1/configure.in
#       dir1/dummy
#
echo x - Makefile.in
sed 's/^X//' >Makefile.in << 'END-of-Makefile.in'
XINSTALL=@INSTALL@
END-of-Makefile.in
echo x - configure.in
sed 's/^X//' >configure.in << 'END-of-configure.in'
XAC_INIT(dummy)
XAC_PROG_INSTALL
XAC_CONFIG_SUBDIRS(dir1)
XAC_OUTPUT(Makefile)
END-of-configure.in
echo c - dir1
mkdir -p dir1 > /dev/null 2>&1
echo x - dummy
sed 's/^X//' >dummy << 'END-of-dummy'
END-of-dummy
echo x - install.sh
sed 's/^X//' >install.sh << 'END-of-install.sh'
END-of-install.sh
echo x - dir1/Makefile.in
sed 's/^X//' >dir1/Makefile.in << 'END-of-dir1/Makefile.in'
XINSTALL=@INSTALL@
END-of-dir1/Makefile.in
echo x - dir1/configure.in
sed 's/^X//' >dir1/configure.in << 'END-of-dir1/configure.in'
XAC_INIT(dummy)
XAC_PROG_INSTALL
XAC_OUTPUT(Makefile)
END-of-dir1/configure.in
echo x - dir1/dummy
sed 's/^X//' >dir1/dummy << 'END-of-dir1/dummy'
END-of-dir1/dummy
exit

>Fix:



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->asami 
Responsible-Changed-By: steve 
Responsible-Changed-When: Thu Jul 6 18:56:28 PDT 2000 
Responsible-Changed-Why:  
Hopefully Satoshi will have some words of wisdom on how to correct this 
problem. 

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

From: Jeremy Lea <reg@FreeBSD.ORG>
To: oota@LSi.nec.co.jp
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: ports/19711: bsd.port.mk and autoconf are conflict
Date: Thu, 6 Jul 2000 19:12:21 -0700

 Hi,
 
 On Wed, Jul 05, 2000 at 05:22:47AM -0700, oota@LSi.nec.co.jp wrote:
 > At the configuration phase in ports building, bsd.port.mk invokes the configuration script with environment variable INSTALL='/usr/bin/install -c'.
 > If the sources has subdirectory and subdirectory's install command is 
 > substituted by INSTALL, the configure script will not work properly.
 > 
 > >How-To-Repeat:
 > 1 Extract the following shar.
 > 2 Execute autoconf in topdir and dir1.
 > 3 Execute `./configure' in topdir.
 >   dir1/Makefile is correct.
 > 4 Execute 'INSTALL="/usr/bin/install -c" ./configure`
 >   dir1/Makefile is incorrect.
 
 This is a bug in autoconf.  I reported it to the autoconf maintainer's
 nearly two years ago, but got no response.  autoconf uses the
 ac_given_INSTALL varible before it is initailised.
 
 The attached patch fixes it, but you have to patch configure in every
 port which has this problem (see devel/ORBit).  Applying the patch as
 devel/autoconf/patches/patch-ag does not help ports which use
 GNU_CONFIGURE but not USE_AUTOCONF.
 
 Regards,
  -Jeremy
 
 -- 
 FreeBSD - Because the best things in life are free...
                                            http://www.freebsd.org/
 
 --- acgeneral.m4.orig	Tue Mar  2 16:26:01 1999
 +++ acgeneral.m4	Tue Mar  2 16:26:43 1999
 @@ -2584,11 +2584,11 @@
          ac_sub_cache_file="$ac_dots$cache_file" ;;
        esac
  ifdef([AC_PROVIDE_AC_PROG_INSTALL],
 -      [  case "$ac_given_INSTALL" in
 +      [  case "$INSTALL" in
  changequote(, )dnl
 -        [/$]*) INSTALL="$ac_given_INSTALL" ;;
 +        [/$]*) ;;
  changequote([, ])dnl
 -        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 +        *) INSTALL="$ac_dots$INSTALL" ;;
          esac
  ])dnl
  
 
Responsible-Changed-From-To: asami->portmgr 
Responsible-Changed-By: will 
Responsible-Changed-When: Wed Apr 4 01:21:50 PDT 2001 
Responsible-Changed-Why:  
Over to new maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19711 
State-Changed-From-To: open->feedback 
State-Changed-By: dwcjr 
State-Changed-When: Mon Jun 18 20:39:07 PDT 2001 
State-Changed-Why:  



Responsible-Changed-From-To: portmgr->dwcjr 
Responsible-Changed-By: dwcjr 
Responsible-Changed-When: Mon Jun 18 20:39:07 PDT 2001 
Responsible-Changed-Why:  
Its an autoconf problem not ports system, I'll handle this one. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19711 

From: "David W. Chapman Jr." <dwcjr@inethouston.net>
To: freebsd-gnats-submit@FreeBSD.org, oota@LSi.nec.co.jp,
	ports@freebsd.org
Cc:  
Subject: Re: ports/19711: bsd.port.mk and autoconf are conflict
Date: Mon, 18 Jun 2001 22:39:10 -0500

     Is this still a bug with autoconf?
 
State-Changed-From-To: feedback->closed 
State-Changed-By: dwcjr 
State-Changed-When: Sun Jun 24 19:45:39 PDT 2001 
State-Changed-Why:  
Timed out. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19711 
>Unformatted:
