Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471990 - media-libs/gegl-0.2.0-r1 fails tests
Summary: media-libs/gegl-0.2.0-r1 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Pipping
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-01 10:08 UTC by Markus Walter
Modified: 2014-10-03 22:17 UTC (History)
4 users (show)

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


Attachments
emerge --info (info.txt,6.23 KB, text/plain)
2013-06-01 10:08 UTC, Markus Walter
Details
build log (media-libs:gegl-0.2.0-r1:20130531-172622.log,692.17 KB, text/plain)
2013-06-01 10:08 UTC, Markus Walter
Details
gegl-0.2.0-r2.ebuild.patch (gegl-0.2.0-r2.ebuild.patch,328 bytes, patch)
2013-09-18 19:01 UTC, David Leverton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walter 2013-06-01 10:08:32 UTC
Created attachment 349832 [details]
emerge --info

On my hardened ~amd64 machine with gcc-4.8.0 I see the following error when running the test suite of gegl.

TEST: /bin/sh... /bin/sh: (pid=5048)
--quiet: invalid option
Usage:	/bin/sh [GNU long option] [option] ...
	/bin/sh [GNU long option] [option] script-file ...
GNU long options:
	--debug
	--debugger
	--dump-po-strings
	--dump-strings
	--help
	--init-file
	--login
	--noediting
	--noprofile
	--norc
	--posix
	--protected
	--rcfile
	--restricted
	--verbose
	--version
Shell options:
	-irsD or -c command or -O shopt_option		(invocation only)
	-abefhkmnptuvxBCHP or -o option
FAIL: /bin/sh
TEST: ../../test-driver... (pid=5050)
../../test-driver: invalid option: '--quiet'
Usage:
  test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
              [--expect-failure={yes|no}] [--color-tests={yes|no}]
              [--enable-hard-errors={yes|no}] [--] TEST-SCRIPT
The '--test-name', '--log-file' and '--trs-file' options are mandatory.
FAIL: ../../test-driver
Comment 1 Markus Walter 2013-06-01 10:08:51 UTC
Created attachment 349834 [details]
build log
Comment 2 Paolo Pedroni 2013-09-14 20:14:15 UTC
The same happens for me with media-libs/gegl-0.2.0-r2.
Comment 3 David Leverton 2013-09-18 19:01:23 UTC
Created attachment 358952 [details, diff]
gegl-0.2.0-r2.ebuild.patch

I've looked into this, and it's because the test/xml directory uses the gtester program from glib to run it's tests, using the automake TESTS_ENVIRONMENT variable - the command-line looks like (simplified):

    gtester ./test-save # etc

However, the current version of automake in Gentoo (1.13.4 on my machine; the gegl tarball was prepared with 1.11.3) apparently wraps the test files in its own driver script, making it look like (again, simplified):

    gtester /bin/sh test-driver [bunch of options] ./test-save

Unfortunately gtester doesn't support this usage, as it assumes each of its arguments is a separate test program, so it fails miserably.

Therefore the simplest fix would be to add WANT_AUTOMAKE=1.11 to the ebuild, as in the attached patch.
Comment 4 Sebastian Pipping gentoo-dev 2013-10-01 21:27:57 UTC
+  01 Oct 2013; Sebastian Pipping <sping@gentoo.org> gegl-0.2.0-r1.ebuild,
+  gegl-0.2.0-r2.ebuild:
+  Fix tests (bug #471990), thanks to David Leverton!
+
Comment 5 David Heidelberg (okias) 2014-02-16 18:58:44 UTC
Isn't there another fix for building with > 1.11 ?

For example, for me it build with 1.14 fine.

This is 1/3 last packages depending on 1.11 (at least on my system).