Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 226231 - gnome-base/librsvg: builds tests with FEATURES=-test
Summary: gnome-base/librsvg: builds tests with FEATURES=-test
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks: test-n-example-build
  Show dependency tree
 
Reported: 2008-06-13 11:13 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-04-18 13:39 UTC (History)
1 user (show)

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


Attachments
Change noinst_* targets into check_* targets in librsvg-2.26.0 sources (librsvg-2.26.0-do-not-build-tests-if-not-asked.patch,759 bytes, patch)
2010-03-27 19:14 UTC, Didier Barvaux
Details | Diff
Update gnome-base/librsvg-2.26.0 ebuild to patch sources (librsvg-2.26.0.ebuild.patch,847 bytes, patch)
2010-03-27 19:16 UTC, Didier Barvaux
Details | Diff
Add --enable-tools/--disable-tools options to avoid building miscellaneous tools (librsvg-2.26.0-add-disable-tools-option.patch,2.41 KB, patch)
2010-04-17 23:41 UTC, Didier Barvaux
Details | Diff
Update gnome-base/librsvg-2.26.0 ebuild too apply the new patch (librsvg-2.26.0.ebuild.patch,1014 bytes, patch)
2010-04-17 23:44 UTC, Didier Barvaux
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-06-13 11:13:27 UTC
The package seems to be building tests during "make all" phase even though I don't have FEATURES=test enabled. For details see my blog: http://blog.flameeyes.eu/articles/2008/06/11/please-dont-build-your-examples-by-default .

It would be nice if the tests were disabled by default and only built with FEATURES=test. You can find an example patch usually suitable for upstream on the blog above.

Thanks,
Diego
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-11-30 11:08:19 UTC
changing severity for easier searching.
Comment 2 Didier Barvaux 2010-03-27 19:13:25 UTC
I created a patch that change the noinst_* targets in several Makefile.am files in check_* targets. This way, several programs and one library are not built if make check is not run.

I'm  going to attach the patch for librsvg-2.26.0 sources and the patch for the gnome-base/librsvg-2.26.0 ebuild.
Comment 3 Didier Barvaux 2010-03-27 19:14:57 UTC
Created attachment 225477 [details, diff]
Change noinst_* targets into check_* targets in librsvg-2.26.0 sources
Comment 4 Didier Barvaux 2010-03-27 19:16:56 UTC
Created attachment 225479 [details, diff]
Update gnome-base/librsvg-2.26.0 ebuild to patch sources
Comment 5 Didier Barvaux 2010-03-27 19:48:51 UTC
I proposed the enhancement upstream, see https://bugzilla.gnome.org/show_bug.cgi?id=614123.
Comment 6 Pacho Ramos gentoo-dev 2010-03-28 09:52:35 UTC
Thanks, but upstream would probably prefer a patch against current master or 2.30 instead

Anyway, thanks a lot for looking into this :-)
Comment 7 Didier Barvaux 2010-03-28 11:54:27 UTC
(In reply to comment #6)
> Thanks, but upstream would probably prefer a patch against current master or
> 2.30 instead
> 
> Anyway, thanks a lot for looking into this :-)
> 

The patch was created against master in git repository (git://git.gnome.org/librsvg) and it applies cleanly on 2.26.0, so it should be OK for both Gentoo and upstream :)
Comment 8 Pacho Ramos gentoo-dev 2010-03-28 19:37:24 UTC
Great to know
Comment 9 Didier Barvaux 2010-04-17 23:07:58 UTC
Upstream bug was solved. My first patch (that used check_* targets) was rejected, but a new one (that uses an --enable-tools) was accepted and committed.

The accepted patch is there: http://git.gnome.org/browse/librsvg/commit/?id=4e7f090d1b2e2bb7c6a47d6f45edc8adb335e9a3

I'm going to update the patches attached to this bug in consequence.
Comment 10 Didier Barvaux 2010-04-17 23:41:28 UTC
Created attachment 228227 [details, diff]
Add --enable-tools/--disable-tools options to avoid building miscellaneous tools
Comment 11 Didier Barvaux 2010-04-17 23:44:42 UTC
Created attachment 228229 [details, diff]
Update gnome-base/librsvg-2.26.0 ebuild too apply the new patch
Comment 12 Pacho Ramos gentoo-dev 2010-04-18 10:10:37 UTC
+  18 Apr 2010; Pacho Ramos <pacho@gentoo.org> librsvg-2.26.2.ebuild,
+  +files/librsvg-2.26.2-choosable-tools.patch, metadata.xml:
+  Build misc tools only when desired (bug #226231). Thanks a lot to Didier
+  Barvaux for his work on this.
Comment 13 Didier Barvaux 2010-04-18 12:19:16 UTC
(In reply to comment #12)
> +  18 Apr 2010; Pacho Ramos <pacho@gentoo.org> librsvg-2.26.2.ebuild,
> +  +files/librsvg-2.26.2-choosable-tools.patch, metadata.xml:
> +  Build misc tools only when desired (bug #226231). Thanks a lot to Didier
> +  Barvaux for his work on this.
> 

Thanks Pacho.

I tried the updated =gnome-base/librsvg-2.26.2 ebuild but it fails to build. The failure is probably not related to the new patch because it fails with or without USE=tools. I opened bug #315953 to track the issue. In the meanwhile, I can not confirm if your change for bug #226231 works or not.
Comment 14 Pacho Ramos gentoo-dev 2010-04-18 12:47:44 UTC
It's probably because you need to update to gtk-doc-am-1.13 , but we will continue on bug 315953 for that issue ;-)

Best regards
Comment 15 Didier Barvaux 2010-04-18 13:39:48 UTC
(In reply to comment #14)
> It's probably because you need to update to gtk-doc-am-1.13 , but we will
> continue on bug 315953 for that issue ;-)
> 
> Best regards
> 

Yes, your advice solved the problem. I installed the =gnome-base/librsvg-2.26.2 ebuild. I confirm that the change for disabling tools works. This bug may be closed.