[tlbuild] some configure scripts are called without taking into account $CONFIG_SHELL

Vladimir Volovich vvv at vsu.ru
Tue May 15 14:31:44 CEST 2012


Hi Peter,

"PB" == Peter Breitenlohner writes:

> one more place needs to be changed:
>
> --- libs/freetype2/freetype-2.4.9/builds/unix/detect.mk.orig
> +++ libs/freetype2/freetype-2.4.9/builds/unix/detect.mk
> @@ -80,9 +80,9 @@
>   ifdef must_configure
>     ifneq ($(have_Makefile),)
>       # we are building FT2 not in the src tree
> -	      $(TOP_DIR)/builds/unix/configure $(value CFG)
> +	      $(SHELL) $(TOP_DIR)/builds/unix/configure $(value CFG)
>     else
> -	      cd builds/unix; ./configure $(value CFG)
> +	      cd builds/unix; $(SHELL) ./configure $(value CFG)
>     endif
>   endif

 PB> can you please check if that same patch is required for a
 PB> standalone build of freetype-2.4.9.  If so we should report the
 PB> problem to Werner Lemberg.

I'll check this after the TL build (which takes time, also because of
the build problems).

Actually, in the above patch, I need to use $(CONFIG_SHELL) instead of
$(SHELL), otherwise I still get an error:

Making all in freetype2
gmake[3]: Entering directory `/usr/local/vvv/src/source/Work/libs/freetype2'
rm -rf ft-build
../../../libs/freetype2/../../build-aux/install-sh -c -d ft-build
cd ft-build && \
          CC='xlc' CONFIG_SITE=/dev/null CONFIG_SHELL='/bin/bash' \
          /bin/bash /usr/local/vvv/src/source/Work/libs/freetype2/../../../libs/freetype2/freetype-2.4.9/configure \
             --disable-shared \
            --with-old-mac-fonts \
            --without-bzip2 \
            --without-zlib \
            --prefix=/usr/local/vvv/src/source/Work/libs/freetype2/ft-install \
            --libdir=/usr/local/vvv/src/source/Work/libs/freetype2 \
            --includedir=/usr/local/vvv/src/source/Work/libs/freetype2
Copying `modules.cfg'
Generating `Makefile'
gmake[4]: Entering directory `/usr/local/vvv/src/source/Work/libs/freetype2/ft-build'

FreeType build system -- automatic system detection

The following settings are used:

  platform                    unix
  compiler                    xlc
  configuration directory     /usr/local/vvv/src/source/libs/freetype2/freetype-2.4.9/builds/unix
  configuration rules         /usr/local/vvv/src/source/libs/freetype2/freetype-2.4.9/builds/unix/unix.mk

If this does not correspond to your system or settings please remove the file
`config.mk' from this directory then read the INSTALL file for help.

Otherwise, simply type `gmake' again to build the library,
or `gmake refdoc' to build the API reference (the latter needs python).

Generating modules list in /usr/local/vvv/src/source/Work/libs/freetype2/ft-build/ftmodule.h...
* module: truetype  (Windows/Mac font files with extension *.ttf or *.ttc)
* module: type1     (Postscript font files with extension *.pfa or *.pfb)
* module: cff       (OpenType fonts with extension *.otf)
* module: cid       (Postscript CID-keyed fonts, no known extension)
* module: pfr       (PFR/TrueDoc font files with extension *.pfr)
* module: type42    (Type 42 font files with no known extension)
* module: winfnt    (Windows bitmap fonts with extension *.fnt or *.fon)
* module: pcf       (pcf bitmap fonts)
* module: bdf       (bdf bitmap fonts)
* module: sfnt      (helper module for TrueType & OpenType formats)
* module: autofit   (automatic hinting module)
* module: pshinter  (Postscript hinter module)
* module: raster    (monochrome bitmap renderer)
* module: smooth    (anti-aliased bitmap renderer)
* module: smooth    (anti-aliased bitmap renderer for LCDs)
* module: smooth    (anti-aliased bitmap renderer for vertical LCDs)
* module: psaux     (Postscript Type 1 & Type 2 helper module)
* module: psnames   (Postscript & Unicode Glyph name handling)
done.
/bin/sh /usr/local/vvv/src/source/libs/freetype2/freetype-2.4.9/builds/unix/configure  '--disable-shared' '--with-old-mac-fonts' '--without-bzip2' '--without-zlib' '--prefix=/usr/local/vvv/src/source/Work/libs/freetype2/ft-install' '--libdir=/usr/local/vvv/src/source/Work/libs/freetype2' '--includedir=/usr/local/vvv/src/source/Work/libs/freetype2'
checking build system type... powerpc-ibm-aix4.3.3.0
checking host system type... powerpc-ibm-aix4.3.3.0
checking for gcc... xlc
checking whether the C compiler works... yes
[...]
./config.status: print: command not found
./config.status: print: command not found
./config.status: print: command not found
./config.status: print: command not found

and then the build fails at a later point when running libtool. and it
works when using the above patch (with CONFIG_SHELL, rather than SHELL).

Best wishes,
v.


More information about the tlbuild mailing list