<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>152846</bug_id>
          
          <creation_ts>2006-10-25 23:27 0000</creation_ts>
          <short_desc>app-crypt/xca:-0.5.1-r1 compilation error</short_desc>
          <delta_ts>2006-10-26 18:34:53 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>tomas.sedlak@centrum.sk</reporter>
          <assigned_to>crypto@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>tomas.sedlak@centrum.sk</who>
            <bug_when>2006-10-25 23:27:56 0000</bug_when>
            <thetext>When building app-crypt/xca-0.5.1-r1 I get this error:
&gt;&gt;&gt; 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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tomas.sedlak@centrum.sk</who>
            <bug_when>2006-10-25 23:29:30 0000</bug_when>
            <thetext>Created an attachment (id=100510)
this patch fixed configure error for me

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>alonbl@gentoo.org</who>
            <bug_when>2006-10-26 12:56:12 0000</bug_when>
            <thetext>I don&apos;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 &quot;${dir}/include${dbn}/$1&quot;; then
          add_include &quot;${dir}/include${dbn}&quot;
          echo Found:  $1 at &quot;${dir}/include${dbn}&quot;

I think it should work...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tomas.sedlak@centrum.sk</who>
            <bug_when>2006-10-26 14:22:27 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; Can you please try to just add quotes to the variables:
&gt;       if test -r &quot;${dir}/include${dbn}/$1&quot;; then
&gt; 
Result:
ERROR: The Berkeley DB header files were not found

It&apos;s because &apos;${dir}/include${dbn}/$1&apos; (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 &apos;db4.3&apos; instead of (wildcarded) &apos;db4.?&apos; 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.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>alonbl@gentoo.org</who>
            <bug_when>2006-10-26 18:34:53 0000</bug_when>
            <thetext>OK.
Thanks!
Fixed in current revision.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>100510</attachid>
            <date>2006-10-25 23:29 0000</date>
            <desc>this patch fixed configure error for me</desc>
            <filename>xca-0.5.1-configure.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGNvbmZpZ3VyZQkyMDA2LTEwLTI2IDA4OjE5OjA4LjAwMDAwMDAwMCArMDIwMAorKysgY29u
ZmlndXJlCTIwMDYtMTAtMjYgMDg6MTg6MjEuMDAwMDAwMDAwICswMjAwCkBAIC02NiwxMyArNjYs
MTYgQEAKIHNlYXJjaF9pbmNsdWRlcygpIHsKICAgZm9yIGRpciBpbiAke0RJUlN9OyAgZG8KICAg
ICBmb3IgZGJuIGluICIiICR7c3ViZGlyc307IGRvCi0gICAgICBpZiB0ZXN0IC1yICR7ZGlyfS9p
bmNsdWRlJHtkYm59LyQxOyB0aGVuCi0gICAgICAgICAgYWRkX2luY2x1ZGUgJHtkaXJ9L2luY2x1
ZGUke2Ribn0KLSAgICAgICAgICBlY2hvIEZvdW5kOiAgJDEgYXQgJHtkaXJ9L2luY2x1ZGUke2Ri
bn0KKyAgICAgIGZvciBpbmNfcGF0aCBpbiBgbHMgLWRyICR7ZGlyfS9pbmNsdWRlJHtkYm59IDI+
IC9kZXYvbnVsbGA7IGRvCisgICAgICAgIGlmIHRlc3QgLXIgIiR7aW5jX3BhdGh9LyQxIjsgdGhl
bgorICAgICAgICAgIGFkZF9pbmNsdWRlICR7aW5jX3BhdGh9CisgICAgICAgICAgZWNobyBGb3Vu
ZDogICQxIGF0ICR7aW5jX3BhdGh9CiAgICAgICAgICAgcmV0dXJuIDAKLSAgICAgIGZpCisgICAg
ICAgIGZpCisgICAgICBkb25lCiAgICAgZG9uZQogICBkb25lCisKICAgcmV0dXJuIDEKIH0KIAo=
</data>        

          </attachment>
    </bug>

</bugzilla>