Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 467996 - gnome2.eclass: Unrecognized configure options --disable-schemas-compile and --disable-schemas-compile -> set QA_CONFIGURE_OPTIONS for appended flags
Summary: gnome2.eclass: Unrecognized configure options --disable-schemas-compile and -...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (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-04-30 12:15 UTC by Evgeny Bobkin
Modified: 2015-05-11 14:19 UTC (History)
1 user (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 Evgeny Bobkin 2013-04-30 12:15:16 UTC
the compilation gnome-extra/gnome-documents-3.8.1 of always leads to a QA notice:

>>> Messages generated by process 25024 on 2013-04-26 16:49:00 CEST for package gnome-extra/gnome-documents-3.8.1:

QA: install
QA Notice: Unrecognized configure options:

        --disable-schemas-compile
        --disable-schemas-compile

This is caused by the cheap grep conditions found in /usr/portage/eclass/gnome2.eclass, which succeeded:

    # Pass --disable-schemas-install when possible
    if grep -q "disable-schemas-install" ${ECONF_SOURCE:-.}/configure; then
        G2CONF="--disable-schemas-install ${G2CONF}"
    fi

    # Pass --disable-schemas-compile when possible
    if grep -q "disable-schemas-compile" ${ECONF_SOURCE:-.}/configure; then
        G2CONF="--disable-schemas-compile ${G2CONF}"
    fi

GLIB_GSETTINGS cl in configure.ac is responsible for the generation of this options, which is present.
This happens because configure file may contain "--disable-schemas-compile" in the option message string despite the fact that this options are not present at all!!!

in that case, one may have to rerun aclocal to pull together macros from various sources, which is not what everybody wants, so the other solution would be to grep additionally for something else, like "enable_schemas_compile"

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2013-05-01 09:21:47 UTC
No, this is caused because it runs a second configure that doesn't honor the option (while main one does):
configure: Configuring sources in egg-list-box
configure: running /bin/sh ./configure '--prefix=/usr'  '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--libdir=/usr/lib64' '--disable-silent-rules' '--disable-dependency-tracking' '--disable-schemas-compile' '--disable-maintainer-mode' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-O2 -pipe -march=native' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu' 'PKG_CONFIG_PATH=/usr/lib64/pkgconfig' 'CXXFLAGS=-O2 -pipe -march=native' --cache-file=/dev/null --srcdir=.
configure: WARNING: unrecognized options: --disable-schemas-compile

This is a common problem that affects to a lot of other packages running multiple configure scripts

I would use  QA_CONFIGURE_OPTIONS options to prevent the warning in ebuild :/
Comment 2 Pacho Ramos gentoo-dev 2013-05-01 09:24:00 UTC
Like done in:
https://bugs.gentoo.org/show_bug.cgi?id=401733
https://bugs.gentoo.org/show_bug.cgi?id=446662

Maybe could be set via eclass
Comment 3 Evgeny Bobkin 2013-05-02 06:19:13 UTC
I do not quite understand what do you mean by two configure scripts? even if there are two the doubled appearance of the same QA message can be explained)) I looked for configure script after extracting the tarball, opened it and grepped for "disable-schemas-compile". The problem was that I have found the match in the option string message, but the option itself was not present, so the condition in the eclass failed!
Comment 4 Pacho Ramos gentoo-dev 2013-05-02 07:51:02 UTC
$ ./configure --disable-schemas-compile
checking whether make supports nested variables... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
[...] -> The option is recognized here
configure: creating ./config.status
config.status: creating Makefile
config.status: creating egg-list-box-uninstalled.pc
config.status: creating egg-flow-box-uninstalled.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --disable-schemas-compile
configure: Done configuring in egg-list-box
checking for DOCUMENTS... yes
checking for MINER... yes
[...] -> But not here, that is when egg-list-box is configured
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-12-23 09:50:12 UTC
Imho, it is not the job of the eclass to account for sub-configure errors. You would have them anyway if you set the option in the ebuild directly and it is just an error of the maintainer to not set QA_CONFIGURE_OPTIONS when testing the ebuild.
Comment 6 Pacho Ramos gentoo-dev 2013-12-23 09:53:38 UTC
Well, the idea of doing it at eclass level is to ensure that people won't be warned for this switchers as they are passed by the eclass when the main configure has them :/
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-12-23 19:27:27 UTC
But this is handling a corner case that the maintainer of the package should have seen. It is a maintenance error and I do not agree to hide that.

Imho the problem is larger than that, portage should automatically disable this warning for package that have a subconfigure but I guess it's not easy to do for portage.
Comment 8 Pacho Ramos gentoo-dev 2015-05-11 14:19:33 UTC
(In reply to Gilles Dartiguelongue from comment #7)
> But this is handling a corner case that the maintainer of the package should
> have seen. It is a maintenance error and I do not agree to hide that.
> 
> Imho the problem is larger than that, portage should automatically disable
> this warning for package that have a subconfigure but I guess it's not easy
> to do for portage.

Closing then