Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35700 - aide-0.9 fails to configure with USE=-crypt
Summary: aide-0.9 fails to configure with USE=-crypt
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-12 22:51 UTC by Eric Siegerman
Modified: 2003-12-14 04:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for aide-0.9.ebuild (patch,629 bytes, patch)
2003-12-12 22:52 UTC, Eric Siegerman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Siegerman 2003-12-12 22:51:22 UTC
If I try to emerge aide-0.9 with USE=-crypt, the "configure" dies, complaining that it can't find libgcrypt.

Indeed, the system doesn't have libgcrypt installed; but because of the USE flag, the configure script shouldn'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 "crypt" 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'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="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs sandbox ccache buildpkg keeptemp keepwork"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="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"


But note that the "crypt" setting was overridden on the emerge command line with
USE=-crypt.
Comment 1 Eric Siegerman 2003-12-12 22:52:50 UTC
Created attachment 22122 [details, diff]
Patch for aide-0.9.ebuild
Comment 2 Eric Siegerman 2003-12-12 22:54:50 UTC
Woops, I should have said, "Reproducible: if libgcrypt is NOT present on the system".
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-12-14 04:56:15 UTC
in cvs

thx