[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] improve 'autotools-install'

From: Assaf Gordon
Subject: [PATCH] improve 'autotools-install'
Date: Thu, 21 Feb 2013 18:08:19 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4


Trying to use 'scripts/autotools-install' on a problematic system (Mac OS X 
10.6.8, already has few other related bugs), building "pkg-config" fails.

Two patches attached:

1. When "./configure" or "make" fail, use "die()" to print an error, pointing 
the user to the error log file. 
This helps when troubleshooting errors, because the script has "set -e" and 
simply exits on errors.

2. Recent "pkg-config" has a cyclic requirement of "glib", explained in the 
   pkg-config depends on glib.  Note that glib build-depends on pkg-config,
   but you can just set the corresponding environment variables (ZLIB_LIBS,
   ZLIB_CFLAGS are the only needed ones when this is written) to build it.

   If this requirement is too cumbersome, a bundled copy of a recent glib
   stable release is included. Pass --with-internal-glib to configure to
   use this copy.

The second patch adds this "--with-internal-glib" flag when configuring 
pkg-config .

Sadly, autotools-install still doesn't complete, because gettext0.18.1 fails to 
compile with stpncpy() related problem (exactly as solved in coreutils [2]) but 
that's is not a coreutil bug.



Attachment: autotools-install-fix.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]