<?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>35700</bug_id>
          
          <creation_ts>2003-12-12 22:51 0000</creation_ts>
          <short_desc>aide-0.9 fails to configure with USE=-crypt</short_desc>
          <delta_ts>2003-12-14 04:56:15 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>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>eric_97@pobox.com</reporter>
          <assigned_to>mholzer@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>eric_97@pobox.com</who>
            <bug_when>2003-12-12 22:51:22 0000</bug_when>
            <thetext>If I try to emerge aide-0.9 with USE=-crypt, the &quot;configure&quot; dies, complaining that it can&apos;t find libgcrypt.

Indeed, the system doesn&apos;t have libgcrypt installed; but because of the USE flag, the configure script shouldn&apos;t look for libgcrypt in the first place.

The bug is in the configure script, which treats --without-gcrypt identically to --with-gcrypt.  The ebuild already has a workaround for a similar problem with USE=-postgres.  Attached is a patch that applies the same workaround to the &quot;crypt&quot; USE flag.

Reproducible: Always
Steps to Reproduce:
1. USE=-crypt emerge aide
2.
3.

Actual Results:  
[much output deleted]
checking for regexec... yes
checking for regcomp... yes
checking for gcrypt.h... no
You don&apos;t have libgcrypt properly installed.
Install it if you need one.
 
!!! ERROR: app-admin/aide-0.9 failed.


Expected Results:  
Not check for libgcrypt at all.

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20-gentoo-r9)
=================================================================
System uname: 2.4.20-gentoo-r9 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs sandbox ccache buildpkg keeptemp keepwork&quot;
GENTOO_MIRRORS=&quot;http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 oss apm avi crypt cups encode foomaticdb gif gtk2 jpeg kde libg++
libwww mad mikmod motif mpeg ncurses nls pdflib png quicktime spell truetype
xml2 xmms xv zlib gdbm berkdb slang readline arts svga java ruby mysql postgres
X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gnome gtk qt opengl
mozilla acl curl dga doc dvd freetype fs gd imap innodb javascript ldap mbox
samba sasl snmp -cdr&quot;


But note that the &quot;crypt&quot; setting was overridden on the emerge command line with
USE=-crypt.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eric_97@pobox.com</who>
            <bug_when>2003-12-12 22:52:50 0000</bug_when>
            <thetext>Created an attachment (id=22122)
Patch for aide-0.9.ebuild
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eric_97@pobox.com</who>
            <bug_when>2003-12-12 22:54:50 0000</bug_when>
            <thetext>Woops, I should have said, &quot;Reproducible: if libgcrypt is NOT present on the system&quot;.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2003-12-14 04:56:15 0000</bug_when>
            <thetext>in cvs

thx</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>22122</attachid>
            <date>2003-12-12 22:52 0000</date>
            <desc>Patch for aide-0.9.ebuild</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGFpZGUtMC45LmVidWlsZAkyMDAzLTExLTE0IDE2OjM4OjA2LjAwMDAwMDAwMCAtMDUwMAor
KysgL3Vzci9sb2NhbC9wb3J0YWdlL2FwcC1hZG1pbi9haWRlL2FpZGUtMC45LmVidWlsZAkyMDAz
LTExLTIxIDAwOjQwOjE3LjAwMDAwMDAwMCAtMDUwMApAQCAtMzIsMTIgKzMyLDEyIEBACiAJIyBw
YXNzaW5nIC0td2l0aG91dC1wc3FsIG9yIC0td2l0aC1wc3FsIGNhdXNlcyBwb3N0Z3JlcyB0byBi
ZSBlbmFibGVkIC4uLgogCSMgaXQncyBhIGJyb2tlbiBjb25maWd1cmUuaW4gZmlsZSAuLi4gc28g
bGV0cyBqdXN0IHdvcmsgYXJvdW5kIGl0CiAJbG9jYWwgbXljb25mPSIiCi0JdXNlIHBvc3RncmVz
ICYmIG15Y29uZj0iLS13aXRoLXBzcWwiCisJdXNlIHBvc3RncmVzICYmIG15Y29uZj0iJG15Y29u
ZiAtLXdpdGgtcHNxbCIKKwl1c2UgY3J5cHQgICAgJiYgbXljb25mPSIkbXljb25mIC0td2l0aC1n
Y3J5cHQiCiAKIAllY29uZiBcCiAJCWB1c2Vfd2l0aCB6bGliYCBcCiAJCWB1c2Vfd2l0aCBubHMg
bG9jYWxlYCBcCi0JCWB1c2Vfd2l0aCBjcnlwdCBnY3J5cHRgIFwKIAkJLS13aXRoLW1oYXNoIFwK
IAkJLS1zeXNjb25mZGlyPS9ldGMvYWlkZSBcCiAJCS0td2l0aC1leHRyYS1saWI9L3Vzci9saWIg
XAo=
</data>        

          </attachment>
    </bug>

</bugzilla>