app-admin/sysstat: Work around AC_ARG_ENABLE(debuginfo, ...) bug
authorJeroen Roovers <jer@gentoo.org>
Mon, 11 Nov 2019 20:43:56 +0000 (21:43 +0100)
committerJeroen Roovers <jer@gentoo.org>
Mon, 11 Nov 2019 20:46:44 +0000 (21:46 +0100)
--[dis|en]able-debuginfo=[yes|no] is always interpreted to enable
debuginfo, so pass --enable-debuginfo only when USE=debug and nothing
when USE=-debug.

Package-Manager: Portage-2.3.79, Repoman-2.3.18
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=699884
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
app-admin/sysstat/sysstat-12.0.6-r1.ebuild [moved from app-admin/sysstat/sysstat-12.0.6.ebuild with 97% similarity]
app-admin/sysstat/sysstat-12.2.0-r1.ebuild [moved from app-admin/sysstat/sysstat-12.2.0.ebuild with 97% similarity]
app-admin/sysstat/sysstat-999999.ebuild

similarity index 97%
rename from app-admin/sysstat/sysstat-12.0.6.ebuild
rename to app-admin/sysstat/sysstat-12.0.6-r1.ebuild
index a0e5561580a357b1328a3b62e81354fa9b53eb8b..0566f5270e51ff1369c69581bc980418c7676a87 100644 (file)
@@ -53,9 +53,9 @@ src_configure() {
        sa_lib_dir=/usr/lib/sa \
                conf_dir=/etc \
                econf \
-                       $(use_enable debug debuginfo) \
                        $(use_enable lm-sensors sensors) \
                        $(use_enable nls) \
+                       $(usex debug --enable-debuginfo '') \
                        --enable-copy-only \
                        --enable-documentation \
                        --enable-install-cron \
similarity index 97%
rename from app-admin/sysstat/sysstat-12.2.0.ebuild
rename to app-admin/sysstat/sysstat-12.2.0-r1.ebuild
index 79183431381fb4f4ab7b96a1d167bd562eab4267..cbea517ec677d1b166bf13de9d6da87d7acf59d3 100644 (file)
@@ -53,9 +53,9 @@ src_configure() {
        sa_lib_dir=/usr/lib/sa \
                conf_dir=/etc \
                econf \
-                       $(use_enable debug debuginfo) \
                        $(use_enable lm-sensors sensors) \
                        $(use_enable nls) \
+                       $(usex debug --enable-debuginfo '') \
                        --enable-copy-only \
                        --enable-documentation \
                        --enable-install-cron \
index fcefb54fdf3c834023f71b48c8a6edaaf11c30e9..cb4326bb20544497fed7a547cfead20449b8b5e1 100644 (file)
@@ -53,9 +53,9 @@ src_configure() {
        sa_lib_dir=/usr/lib/sa \
                conf_dir=/etc \
                econf \
-                       $(use_enable debug debuginfo) \
                        $(use_enable lm-sensors sensors) \
                        $(use_enable nls) \
+                       $(usex debug --enable-debuginfo '') \
                        --enable-copy-only \
                        --enable-documentation \
                        --enable-install-cron \