Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 514952 - dev-libs/libmemcached-1.0.18 - configure misinterprets --disable-debug
Summary: dev-libs/libmemcached-1.0.18 - configure misinterprets --disable-debug
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL: https://bugs.launchpad.net/libmemcach...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-24 18:41 UTC by Dmitry Faleychik
Modified: 2014-12-09 02:01 UTC (History)
2 users (show)

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


Attachments
libmemcached-1.0.18-fix_debug_flag.patch (libmemcached-1.0.18-fix_debug_flag.patch,1.42 KB, patch)
2014-11-19 20:38 UTC, Matthew Schultz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Faleychik 2014-06-24 18:41:44 UTC
libmemcached-1.0.18.ebuild converts use flags to configure parameters like this:
econf \
  $(use_enable debug debug) \
...

which converts to
./configure --enable-debug/--disable-debug ...

libmemcached compiles with debug in both cases. The only way to disable debug is not to pass --enable/--disable parameter, because it is disabled by deafult.

File ./configure (line 16066):
if test "${enable_debug:+set}" = set; then :
  enableval=$enable_debug; ax_enable_debug=yes
...
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-24 18:55:13 UTC
That's a well-known problem with AC_ARG_ENABLE. It's nothing the ebuild is to blame for (but could work around).
Comment 2 Dmitry Faleychik 2014-06-24 19:28:15 UTC
(In reply to Jeroen Roovers from comment #1)
> That's a well-known problem with AC_ARG_ENABLE. It's nothing the ebuild is
> to blame for (but could work around).

The big problem is, that when I compile libmemcached and include it to my project, I get TONS of debug logs in my php-fpm.log, which are turned on (as I investigated) at compile time and can't be turned on/off otherwise. These logs make php-fpm unreadable and waste much space on disk. So, I believe, in this case it is a serious bug.

I think it's the same with the other use flags, so libmemcached everytime compiles with all options enabled without letting a user to know about it.
Comment 3 Dmitry Faleychik 2014-06-24 19:29:31 UTC
>make php-fpm unreadable
make php-fpm.log
Comment 4 Matthew Schultz 2014-11-19 20:38:12 UTC
Created attachment 389794 [details, diff]
libmemcached-1.0.18-fix_debug_flag.patch

This patch will make configure obey the debug flag.  Since I don't feel like navigating upstream's repo (why don't they use github??), someone else can push my patch upstream.
Comment 5 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-12-09 02:01:04 UTC
fixed in 1.0.18-r1 and reported upstream