bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] bootstrap: work with pkg-config


From: Justin Clift
Subject: Re: [PATCH] bootstrap: work with pkg-config
Date: Wed, 06 Oct 2010 02:06:30 +1100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Thunderbird/3.1.4

On 10/06/2010 01:22 AM, Eric Blake wrote:
On 10/05/2010 08:13 AM, Eric Blake wrote:
@@ -351,7 +351,7 @@ check_versions() {
app=libtoolize
fi
# Honor $APP variables ($TAR, $AUTOCONF, etc.)
- appvar=`echo $app | tr '[a-z]' '[A-Z]'`
+ appvar=`echo $app | tr '-a-z' '_A-Z'`

Actually, 'tr -- -a-z _A-Z' is not universally supported, and leading
dash caused a failure; so after better testing, I'm actually pushing:

tr 'a-z-' 'A-Z_'

That doesn't seem to work so great. :/

For example on 64-bit OSX here, after grabbing the updated .gnulib
then removing gettext (without adding "pkg-config" to the buildreq line
in bootstap.conf), running autogen.sh gives:

***************************************
$ ./autogen.sh
Can't exec "autopoint": No such file or directory at /usr/bin/../share/autoconf/Autom4te/FileUtils.pm line 290.
autoreconf: failed to run autopoint: No such file or directory
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --prefix=/opt/libvirt --no-create --no-recursion
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-apple-darwin10.4.0
checking host system type... x86_64-apple-darwin10.4.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
< I hit control-C about here, after seeing the above error >
***************************************

Adding gettext back in, but then adding "pkg-config" to the
buildreq line in bootstrap.conf gives:

***************************************

$ ./autogen.sh
running bootstrap...
Error: 'CONFIG-pkg-config' not found

Program    Min_version
----------------------
autoconf   2.59
automake   1.9.6
autopoint  -
gettext    -
git        1.5.5
gzip       -
libtool    -
perl       5.5
pkg-config -
tar        -
----------------------
Failed to bootstrap gnulib, please investigate.
$ which pkg-config
/usr/local/bin/pkg-config
$ git status
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#       modified:   .gnulib
#       modified:   bootstrap.conf
#
$

***************************************

I'd suspect that the updated .gnulib wasn't being used,
however I'm blowing away the gnulib/ directory in libvirt
first (rm -rf gnulib), then manually running bootstrap to force the
update so I can _see_ it copy stuff from .gnulib. ;>

Any ideas?



reply via email to

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