Subject: Re: AUTOMAKE_OVERRIDE=YES by default?
To: Johnny Lam <>
From: Nick Hudson <>
List: tech-pkg
Date: 12/10/2001 17:50:11
Content-Type: text/plain;
Content-Transfer-Encoding: 8bit

On Sunday 02 December 2001 7:51 pm, Johnny Lam wrote:
> I am thinking of making AUTOMAKE_OVERRIDE default to "YES" in
> This triggers the target that touches all of the existing and
> files so that the GNU auto* tools won't be invoked during a
> "make build".  I think this is the correct behaviour for pkgsrc because
> when packages do need autoconf/automake, they call them on their own as
> part of a pre-configure target.  Can anyone see any problem with this, or
> does anyone know of a package they maintain that relies on "make build" to
> call the GNU auto* tools?

I not so sure this is the right thing to do (or maybe I don't understand). 
For example this is causing problems in the KDE pkgs which come with patches 
to both and created from a known to work version of 
automake. touch(1)'ing the and (yes, KDE has 
extended auto{make,conf}) breaks the build for kdelibs.

Why would you ever want to touch these files as they are used to create 
configure, etc?

I still believe that patches to,{,.in} *and* the 
generated versions from working versions of auto{conf,make} should be 
commited to pkgsrc. Perhaps an AUTOMAKE_OVERIDE that touches all's, a AUTOCONF_OVERRIDE that touches configure, and an 
AUTOHEADER_OVERRIDE that touches should be created to make sure 
the timestamps are correct.

Final thing is that some pkgs are going to come with autoconf 2.52 generated 
configures (including KDE) which our current pkgsrc autoconf (2.32) just will 
not handle. The same may be true of automake 1.5/1.4p5. Another reason to 
commit generated configures, etc... 


Content-Type: text/plain;
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="make.log"

=3D=3D=3D> Building for kdelibs-2.2.2
cd . && gmake -f admin/Makefile.common
gmake[1]: Entering directory `/home/nick/work/prog/kde2-work/pkgsrc/x11/k=
gmake[1]: Leaving directory `/home/nick/work/prog/kde2-work/pkgsrc/x11/kd=
cd . && aclocal
cd . && automake --foreign --include-deps ./Makefile
cd . && perl admin/am_edit
cd . && autoconf warning: AC_TRY_RUN called without default to allow cros=
s compiling warning: AC_TRY_RUN called without default to allow cro=
ss compiling warning: AC_TRY_RUN called without default to allow cr=
oss compiling
/bin/sh ./config.status --recheck
running /bin/sh ./configure  --with-ssl-dir=3D/home/nick/work/prog/kde2-w=
ork/pkgsrc/x11/kdelibs2/work/.buildlink --datadir=3D/usr/X11R6/share/kde =
buildlink/qt2 --with-extra-includes=3D/home/nick/work/prog/kde2-work/pkgs=
rc/x11/kdelibs2/work/.buildlink/include:/usr/pkg/share/x11-links/include =
--disable-rpath --x-includes=3D/usr/pkg/share/x11-links/include --x-libra=
ries=3D/usr/pkg/share/x11-links/lib --host=3Di386--netbsd --prefix=3D/usr=
/X11R6 LDFLAGS=3D-L/home/nick/work/prog/kde2-work/pkgsrc/x11/kdelibs2/wor=
k/.buildlink/lib  -L/home/nick/work/prog/kde2-work/pkgsrc/x11/kdelibs2/wo=
rk/.buildlink/qt2/lib -Wl,-R/usr/X11R6/qt2/lib -L/usr/pkg/share/x11-links=
/lib -Wl,-R/usr/X11R6/lib -Wl,-R/usr/pkg/lib CFLAGS=3D-I/home/nick/work/p=
rog/kde2-work/pkgsrc/x11/kdelibs2/work/.buildlink/include -O2 -I/usr/pkg/=
share/x11-links/include CPPFLAGS=3D-I/home/nick/work/prog/kde2-work/pkgsr=
c/x11/kdelibs2/work/.buildlink/include  -I/usr/pkg/share/x11-links/includ=
e CXX=3Dc++ host_alias=3Di386--netbsd CC=3Dcc CXXFLAGS=3D-I/home/nick/wor=
k/prog/kde2-work/pkgsrc/x11/kdelibs2/work/.buildlink/include -I/home/nick=
/work/prog/kde2-work/pkgsrc/x11/kdelibs2/work/.buildlink/include -O2 -I/u=
sr/pkg/share/x11-links/include --enable-ltdl-convenience  --no-create --n=
configure: warning: LDFLAGS=3D-L/home/nick/work/prog/kde2-work/pkgsrc/x11=
/kdelibs2/work/.buildlink/lib  -L/home/nick/work/prog/kde2-work/pkgsrc/x1=
1/kdelibs2/work/.buildlink/qt2/lib -Wl,-R/usr/X11R6/qt2/lib -L/usr/pkg/sh=
are/x11-links/lib -Wl,-R/usr/X11R6/lib -Wl,-R/usr/pkg/lib: invalid host t=
configure: warning: CFLAGS=3D-I/home/nick/work/prog/kde2-work/pkgsrc/x11/=
kdelibs2/work/.buildlink/include -O2 -I/usr/pkg/share/x11-links/include: =
invalid host type
configure: error: can only configure for one host and one target at a tim=
gmake: *** [config.status] Error 1
*** Error code 2

*** Error code 1