Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481124 - net-misc/streamtuner-0.99.99-r5 doesn't compile with current gnome2.eclass
Summary: net-misc/streamtuner-0.99.99-r5 doesn't compile with current gnome2.eclass
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gnome2.eclass
  Show dependency tree
 
Reported: 2013-08-15 07:16 UTC by Joe Breuer
Modified: 2013-09-27 22:18 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Breuer 2013-08-15 07:16:36 UTC
During a @preserved-rebuild, net-misc/streamtuner-0.99.99-r5 wouldn't compile due to its ./configure aborting on the unknown '--enable-compile-warnings=minimum' option.

streamtuner *does* support '--enable-compile-warnings', which causes gnome2.eclass to add this option to its ./configure call; but (the package being quite old and apparently not being autoreconf'd) it does *not* support the 'minimum' level.

A simple workaround/fix is to add a supported variant of the configure option explicitly:

  src_configure() {
    gnome2_src_configure --enable-compile-warnings=no
  }


Alternatively, see #339189 for a successor of streamtuner.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2013-08-15 12:31:56 UTC
seems like the...

if grep -q "enable-compile-warnings"...

in gnome2.eclass is not sufficient check, should propably be something like...

if grep -q "enable-compile-warnings.*minimal"...

assigning to gnome@ for eclass fixing
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-08-15 13:27:28 UTC
Probably we should only be passing --enable-compile-warnings=minimum to packages that use the GNOME_COMPILE_WARNINGS macro in their configure.{ac,in}; in other cases, it's not obvious that this flag is safe and sane to set.
Comment 3 Pacho Ramos gentoo-dev 2013-08-15 19:46:49 UTC
I would keep eclass as is because it also helps to catch packages not using the macro (or a equivalent, last time I checked, there were some tarballs not yet migrated to the macro but using a 100% equivalent one).

That way, in this case we would simply need to append the proper --enable-compile-warnings to get the similar behavior (of not appending -Werror stuff usually by still providing -Wall and co)

If we wouldn't had the eclass as-is, I think that this package could have still uncared for more years (I mean -> using the defaults whatever they are)
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-08-25 16:30:22 UTC
We should probably use the macros for checks like this whenever there is one. 
It is far more reliable _and_ we can check macro version if needed from the 
embedded .m4 file.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2013-08-25 16:52:27 UTC
(In reply to Pacho Ramos from comment #3)
> If we wouldn't had the eclass as-is, I think that this package could have
> still uncared for more years (I mean -> using the defaults whatever they are)

sounds good to me, streamtuner's ebuild and build-sys has been fine for years :)
Comment 6 Pacho Ramos gentoo-dev 2013-08-26 07:43:22 UTC
OK, rethinking that, looks better to make the check more reliable
Comment 7 Pacho Ramos gentoo-dev 2013-08-27 08:58:59 UTC
(In reply to Alexandre Rostovtsev from comment #2)
> Probably we should only be passing --enable-compile-warnings=minimum to
> packages that use the GNOME_COMPILE_WARNINGS macro in their
> configure.{ac,in}; in other cases, it's not obvious that this flag is safe
> and sane to set.

Can anybody look at this? It should be similar as current one we use for maintainer mode:
        # Pass --disable-maintainer-mode when needed
        if grep -q "^[[:space:]]*AM_MAINTAINER_MODE(\[enable\])" \
                "${ECONF_SOURCE:-.}"/configure.*; then
                G2CONF="--disable-maintainer-mode ${G2CONF}"
        fi
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2013-08-27 13:45:24 UTC
(In reply to Pacho Ramos from comment #7)
> (In reply to Alexandre Rostovtsev from comment #2)
> > Probably we should only be passing --enable-compile-warnings=minimum to
> > packages that use the GNOME_COMPILE_WARNINGS macro in their
> > configure.{ac,in}; in other cases, it's not obvious that this flag is safe
> > and sane to set.
> 
> Can anybody look at this? It should be similar as current one we use for
> maintainer mode:
>         # Pass --disable-maintainer-mode when needed
>         if grep -q "^[[:space:]]*AM_MAINTAINER_MODE(\[enable\])" \
>                 "${ECONF_SOURCE:-.}"/configure.*; then
>                 G2CONF="--disable-maintainer-mode ${G2CONF}"
>         fi

And when AC_CONFIG_AUX_DIR is set, and ${ECONF_SOURCE} contains only the final ./configure script and some custom directory, like build/ has all the autotools file like configure.ac
That's not uncommon at all

So I think you should stick to parsing configure
Comment 9 Pacho Ramos gentoo-dev 2013-08-27 17:11:00 UTC
The problem is that, with that way, we keep appending *minimum* always even if it will end up setting other flags because it's not using the macro, but I agree that it's probably the safest we can do :/
Comment 10 Pacho Ramos gentoo-dev 2013-09-27 22:18:48 UTC
+  27 Sep 2013; Pacho Ramos <pacho@gentoo.org> streamtuner-0.99.99-r5.ebuild:
+  Pass proper option to compile-warnings to enable warnings but not errors
+  (#481124), fix desktop entry
+