Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498250 - dev-libs/libmemcached automagically links against dev-libs/cyrus-sasl
Summary: dev-libs/libmemcached automagically links against dev-libs/cyrus-sasl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-01-16 14:04 UTC by Dmitry A. Bakshaev
Modified: 2014-02-09 05:19 UTC (History)
1 user (show)

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


Attachments
fix sasl linking (libmemcached-use_enable-sasl.patch,487 bytes, patch)
2014-01-16 14:04 UTC, Dmitry A. Bakshaev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry A. Bakshaev 2014-01-16 14:04:07 UTC
Reproducible: Always

Steps to Reproduce:
1. emerge cyrus-sasl
2. USE=-sasl emerge dev-libs/libmemcached
3. ldd /usr/bin/memcapable|grep sasl
Actual Results:
        libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00007fd5e112f000)

Expected Results:  
sasl must be linked only if needed.
Comment 1 Dmitry A. Bakshaev 2014-01-16 14:04:48 UTC
Created attachment 367950 [details, diff]
fix sasl linking
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-01-27 06:54:18 UTC
which version?

Latest in tree has it (1.0.17).

perhaps a stablereq is in order.

robbat2: why so many memcache stuff languishing in the tree?
Comment 3 Dmitry A. Bakshaev 2014-01-27 17:34:47 UTC
grep sasl libmemcached-0.50.ebuild libmemcached-1.0.11.ebuild libmemcached-1.0.14.ebuild libmemcached-1.0.17.ebuild

libmemcached-0.50.ebuild:IUSE="debug doc hsieh +libevent sasl static-libs tcmalloc"
libmemcached-0.50.ebuild:               sasl? ( virtual/gsasl )"
libmemcached-0.50.ebuild:               $(use_with sasl libsasl-prefix) \
libmemcached-0.50.ebuild:               $(use_with sasl libsasl2-prefix) \
libmemcached-1.0.11.ebuild:IUSE="debug doc hsieh +libevent sasl static-libs tcmalloc"
libmemcached-1.0.11.ebuild:             sasl? ( virtual/gsasl )"
libmemcached-1.0.11.ebuild:             $(use_with sasl libsasl-prefix) \
libmemcached-1.0.11.ebuild:             $(use_with sasl libsasl2-prefix) \
libmemcached-1.0.14.ebuild:     dev-libs/cyrus-sasl
libmemcached-1.0.17.ebuild:     dev-libs/cyrus-sasl
libmemcached-1.0.17.ebuild:             $(use_enable sasl sasl) \

0.50 & 1.00.11 has "sasl"-useflag, conditional DEPEND=virtual/gsasl, but no "use_enable sasl" :(
1.0.14 has no "sasl"-useflag, unconditional DEPEND=cyrus-sasl, no "use_enable sasl" :(
1.0.17 has no "sasl"-useflag, unconditional DEPEND=cyrus-sasl and "use_enable sasl" :(
Comment 4 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-01-28 01:02:31 UTC
what about libmemcached-1.0.17-r2.ebuild ?
Comment 5 Dmitry A. Bakshaev 2014-01-29 11:59:39 UTC
libmemcached-1.0.17-r2 has unconditional DEPEND=cyrus-sasl.

-       dev-libs/cyrus-sasl
+       sasl? ( dev-libs/cyrus-sasl )
Comment 6 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-02-09 05:19:09 UTC
ok, fixed in r3, thanks :D