Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518708 - dev-libs/apr-util needs --with-crypto passed to configure with USE=openssl or USE=nss
Summary: dev-libs/apr-util needs --with-crypto passed to configure with USE=openssl or...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-01 03:45 UTC by maurerpe
Modified: 2014-08-01 04:47 UTC (History)
0 users

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


Attachments
ebuild that resolves issue (apr-util-1.5.3-r1.ebuild,3.41 KB, text/plain)
2014-08-01 03:49 UTC, maurerpe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maurerpe 2014-08-01 03:45:34 UTC
The configure script in dev-libs/apr-util-1.5.3-r1 will ignore --with-openssl and --with-nss when called without --with-crypto.

Reproducible: Always

Steps to Reproduce:
USE="openssl -nss" ebuild dev-libs/apr-util/apr-util-1.5.3-r1.ebuild clean compile
grep 'ssl\|crypto' /var/tmp/portage/dev-libs/apr-util-1.5.3-r1/temp/build.log

USE="nss -openssl" ebuild dev-libs/apr-util/apr-util-1.5.3-r1.ebuild clean compile
grep 'nss\|ssl3' /var/tmp/portage/dev-libs/apr-util-1.5.3-r1/temp/build.log

USE="nss openssl" ebuild dev-libs/apr-util/apr-util-1.5.3-r1.ebuild clean compile
grep 'ssl\|crypto\|nss' /var/tmp/portage/dev-libs/apr-util-1.5.3-r1/temp/build.log

Actual Results:  
grep shows nss and openssl where not looked for by configure and not used in the actual build.  There are only a handfull of occurances and they turn out to be at the very begining of the build.  It can clearly be seen that both --with-openssl and --with-nss are passed to configure.

Expected Results:  
grep produces large numbers of occurnces including indication of linking, such as -lssl -lcrypto (for openssl) and -lssl3 (for nss)

This can be fixed with a straight forward ebuild fix.  I will attach the full ebuild.  Here is a diff:

/apr-util/apr-util-1.5.3-r1.ebuild apr-util-1.5.3-r1.ebuild 
--- /usr/portage/dev-libs/apr-util/apr-util-1.5.3-r1.ebuild	2014-05-17 10:01:11.000000000 -0400
+++ apr-util-1.5.3-r1.ebuild	2014-07-31 23:20:56.162254986 -0400
@@ -66,6 +66,12 @@
 		myconf+=( --without-berkeley-db )
 	fi
 
+	if use openssl; then
+		myconf+=( --with-crypto )
+	elif use nss; then
+		myconf+=( --with-crypto )
+	fi
+
 	econf \
 		--datadir="${EPREFIX}"/usr/share/apr-util-1 \
 		--with-apr="${SYSROOT}${EPREFIX}"/usr \


Portage 2.2.10 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.15.2-gentoo x86_64)
=================================================================
System uname: Linux-3.15.2-gentoo-x86_64-Intel-R-_Core-TM-_i5-4570_CPU_@_3.20GHz-with-gentoo-2.2
KiB Mem:     7829196 total,    637632 free
KiB Swap:    8388604 total,   3760868 free
Timestamp of tree: Thu, 10 Jul 2014 03:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.7, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo quarks_gentoo_hardened_overlay vaca mate-overlay maurerpe marathon_reprap compiz libressl
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -mtune=native -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -mtune=native -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=athlon64 -mtune=native -msse3 -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-march=athlon64 -mtune=native -msse3 -O2 -pipe"
GENTOO_MIRRORS="ftp://mirrors.rit.edu/gentoo ftp://lug.mtu.edu/gentoo http://gentoo.mirrors.pair.com/ http://mirror.leaseweb.com/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/quarks /var/lib/layman/vaca /var/lib/layman/mate /usr/local/overlay/maurerpe /usr/local/overlay/reprap /usr/local/overlay/compiz /home/maurerpe/src/libressl"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 apm apng avx2 avx256 bash-completion berkdb bidi branding bzip2 cairo cdda cdio cdr chroot cleartype cli colordiff consolekit corefonts cpudetection cracklib crypt css cups cxx dbus dri dts dv dvd dvdr dvi emacs emboss emerald encode exif fam ffmpeg fftw firefox flac fma fma3 foomaticdb fortran gd gdbm gif gimp glitz gmp gnuplot gpm gstreamer gtk gtkhtml gtkspell guile gzip iconv icu id3tag imagemagick ipv6 jpeg jpeg2k lame lapack lcms libnotify lm_sensors lucene mad maildir matroska mbox mdb midi mime mmx mmxext mng modules mp3 mp4 mpeg mplayer multilib musicbrainz ncurses networking nls nodrm nptl nsplugin nvidia ogg openexr opengl openmp openssl pam pango pcre pdf plotutils png policykit posix postscript ppds pulseaudio qt3support quicktime raw readline real regex rtc sbcl scanner sdl secure-delete session sftp sharedmem slideshow smp sockets sox sparse spell sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 sse4_2 ssh ssl ssse3 startup-notification svg syslog system-sqlite systemd t1lib theora threads threadsafe tiff timidity toolkit-scroll-bars truetype udev udisks unicode usb vaapi vorbis vpx wav webm webp wma wmf wxwidgets wxwindows x264 x265 xcb xcomposite xine xml xmp xpm xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2 canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport" LINGUAS="en_US en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="vesa vga intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 maurerpe 2014-08-01 03:49:09 UTC
Created attachment 381980 [details]
ebuild that resolves issue

This ebuild passes --with-crypto to configure when either USE=openssl or USE=nss is set.

(This doesn't match the diff exactly: I added the bug number)
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-08-01 04:47:47 UTC
+*apr-util-1.5.3-r2 (01 Aug 2014)
+
+  01 Aug 2014; Lars Wendler <polynomial-c@gentoo.org>
+  -apr-util-1.5.3-r1.ebuild, +apr-util-1.5.3-r2.ebuild:
+  Fixed compilation with nss/openssl USE flag (bug #518708). Committed straight
+  to stable.
+