Bug 152846 - app-crypt/xca:-0.5.1-r1 compilation error
|
Bug#:
152846
|
Product: Gentoo Linux
|
Version: 2006.1
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P3
|
|
Resolution: FIXED
|
Assigned To: crypto@gentoo.org
|
Reported By: tomas.sedlak@centrum.sk
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: app-crypt/xca:-0.5.1-r1 compilation error
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2006-10-25 23:27 0000
|
When building app-crypt/xca-0.5.1-r1 I get this error:
>>> Compiling source in /var/tmp/portage/xca-0.5.1-r1/work/xca-0.5.1 ...
./configure: line 69: test: /usr/include/db4.2/db_cxx.h: binary operator
expected
./configure: line 69: test: /usr/X11R6/include/db4.2/db_cxx.h: binary operator
expected
I don't understand why you had this message...
It happens when you have test -r with more than one argument.
Can you please try to just add quotes to the variables:
if test -r "${dir}/include${dbn}/$1"; then
add_include "${dir}/include${dbn}"
echo Found: $1 at "${dir}/include${dbn}"
I think it should work...
(In reply to comment #2)
> Can you please try to just add quotes to the variables:
> if test -r "${dir}/include${dbn}/$1"; then
>
Result:
ERROR: The Berkeley DB header files were not found
It's because '${dir}/include${dbn}/$1' (without quotes) will expand to multiple
arguments. I have both db4.2 and db4.3 header files installed. When using
quotes then argument will be one of:
/usr/qt/3/include/db_cxx.h
/usr/qt/3/include/db4.?/db_cxx.h
/usr/include/db_cxx.h
/usr/include/db4.?/db_cxx.h
/usr/X11R6/include/db_cxx.h
/usr/X11R6/include/db4.?/db_cxx.h
/usr/local/include/db_cxx.h
/usr/local/include/db4.?/db_cxx.h
It will work only when using 'db4.3' instead of (wildcarded) 'db4.?' as
function argument. My patch will search through directories in reverse order
because I want to compile xca with db4.3 instead of db4.2.
OK.
Thanks!
Fixed in current revision.