pkgsrc-Bugs archive

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

Re: pkg/57360: apr-util 1.6.3 fails to build with apr-1.7.3nb1



> Ok, so can you please check if /usr/pkg/bin/apr-1-config is a working
> script?
> 
> Does e.g.
> 
> /usr/pkg/bin/apr-1-config --libs
# /usr/pkg/bin/apr-1-config --libs
/usr/pkg/bin/apr-1-config: bad substitution

If I change the first line from #!/bin/sh to #!/usr/pkg/bin/bash, it works.
# /usr/pkg/bin/apr-1-config2 --libs
 -luuid -lsendfile -lrt -lsocket  -lpthread

So, the shell seems not to work with the sh of Solaris 10.



> 2023/04/18 15:45、Thomas Klausner <wiz%NetBSD.org@localhost>のメール:
> 
> The following reply was made to PR pkg/57360; it has been noted by GNATS.
> 
> From: Thomas Klausner <wiz%NetBSD.org@localhost>
> To: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
> Cc: 
> Subject: Re: pkg/57360: apr-util 1.6.3 fails to build with apr-1.7.3nb1
> Date: Tue, 18 Apr 2023 08:39:08 +0200
> 
> On Tue, Apr 18, 2023 at 09:52:31AM +0900, Hiroshi Hakoyama wrote:
>>> Please check the config.log file for details what fails in your environment.
>> 
>> Here is the config.log.
>> 
>> /usr/pkgsrc/devel/apr-util/work/apr-util-1.6.3/config.log
> ...
>>  $ ./configure --with-apr=/usr/pkg/bin/apr-1-config --with-expat=/usr/pkg --without-gdbm --without-odbc --without-sqlite2 --with-dbm=sdbm --without-pgsql --without-sqlite3 --without-crypto --with-libiconv-prefix=/usr/pkg --prefix=/usr/pkg --build=sparc-sun-solaris2.10 --host=sparc-sun-solaris2.10 --mandir=/usr/pkg/man --enable-option-checking=yes
> ...
>> configure:4612: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.
> 
> Ok, so can you please check if /usr/pkg/bin/apr-1-config is a working
> script?
> 
> Does e.g.
> 
> /usr/pkg/bin/apr-1-config --libs
> 
> return something useful? For me it returns:
> 
> # apr-1-config  --libs
>  -lrt -lcrypt  -lpthread
> 
> 
> If I read the code correctly (from configure), it uses --help to check
> if the script works.
> 
> Excerpt from apr-util's configure script:
> 
> # Check whether --with-apr was given.
> if test ${with_apr+y}
> then :
>   withval=$with_apr;
>     if test "$withval" = "no" || test "$withval" = "yes"; then
>       as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
>     fi
> 
>     for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
>     do
>       for lookdir in "$withval/bin" "$withval"
>       do
>         if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
>           apr_config="$lookdir/$apr_temp_apr_config_file"
> 
>           apr_found="yes"
>           break 2
>         fi
>       done
>     done
> 
>     if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
>       apr_config="$withval"
>       apr_found="yes"
>     fi
> 
>             if test "$apr_found" != "yes"; then
>       as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
>     fi
> 
> 
>  Thomas
> 



Home | Main Index | Thread Index | Old Index