Bug 60192 - fontconfig is not compatible with automake 1.13
Summary: fontconfig is not compatible with automake 1.13
Status: RESOLVED FIXED
Alias: None
Product: fontconfig
Classification: Unclassified
Component: conf (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: fontconfig-bugs
QA Contact: Behdad Esfahbod
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-02 16:06 UTC by Quentin "Sardem FF7" Glidic
Modified: 2013-02-06 10:58 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Fix tests with automake 1.13 (1.08 KB, text/plain)
2013-02-02 16:06 UTC, Quentin "Sardem FF7" Glidic
Details
Fix tests with automake 1.13 (2.00 KB, patch)
2013-02-05 08:55 UTC, Quentin "Sardem FF7" Glidic
Details | Splinter Review
Fix tests (including doc) with automake 1.13 (1.97 KB, patch)
2013-02-05 11:17 UTC, Quentin "Sardem FF7" Glidic
Details | Splinter Review
Fix tests (including doc) with automake 1.13 (1.97 KB, patch)
2013-02-05 11:21 UTC, Quentin "Sardem FF7" Glidic
Details | Splinter Review
Fix tests (including doc) with automake 1.13 (2.46 KB, patch)
2013-02-05 20:00 UTC, Quentin "Sardem FF7" Glidic
Details | Splinter Review

Description Quentin "Sardem FF7" Glidic 2013-02-02 16:06:07 UTC
Created attachment 74094 [details]
Fix tests with automake 1.13

Fontconfig tests use TESTS_ENVIRONMENT the wrong way. Since automake 1.13 it
makes tests fail with the introduction of the test-driver script.

Attached a patch to fix the issue.
Comment 1 Akira TAGOH 2013-02-04 11:36:43 UTC
Thanks for the patch. committed into master.
Comment 2 Behdad Esfahbod 2013-02-04 19:16:31 UTC
But when were these things added to automake?
Comment 3 Behdad Esfahbod 2013-02-04 19:22:21 UTC
Ok, I see these are supposed to already be supported in 1.11.3 at least.

I like to take this opportunity to say that 1.13 simply broke backward compatibility.  This is from the manual of 1.11.3:

"   The variable `TESTS_ENVIRONMENT' can be used to set environment
variables for the test run; the environment variable `srcdir' is set in
the rule.  If all your test programs are scripts, you can also set
`TESTS_ENVIRONMENT' to an invocation of the shell (e.g.  `$(SHELL) -x'
can be useful for debugging the tests), or any other interpreter.  For
instance, the following setup may be used to run tests with Perl:

     TESTS_ENVIRONMENT = $(PERL) -Mstrict -w
     TESTS = foo.pl bar.pl baz.pl
"

Do we know which version were the new facilities introduced in?  In many of my modules I don't want to upgrade from 1.11.1 requirement.
Comment 4 Behdad Esfahbod 2013-02-04 22:19:32 UTC
This caused bug 60283.
Comment 5 Akira TAGOH 2013-02-05 02:33:29 UTC
This incompatible stuff seems appears after 1.13. as you pointed out, it doesn't work with even 1.12.2. let's revert this change and hopefully this will be settled down in automake upstream.
Comment 6 Behdad Esfahbod 2013-02-05 03:33:12 UTC
Ok, then we need to communicate this upstream.
Comment 7 Quentin "Sardem FF7" Glidic 2013-02-05 08:55:17 UTC
Created attachment 74223 [details] [review]
Fix tests with automake 1.13

This change *is* compatible with automake 1.11.1

TESTS_ENVIRONMENT is deprecated in the current usage since automake 1.12

I forgot to use parallel-tests, which is needed for LOG_COMPILER to be used.
Here is a new patch (which replaces the old one) to make it work with automake 1.11 and 1.12
Comment 8 Akira TAGOH 2013-02-05 09:04:00 UTC
Please update doc/Makefile.am too.
Comment 9 Quentin "Sardem FF7" Glidic 2013-02-05 11:17:33 UTC
Created attachment 74236 [details] [review]
Fix tests (including doc) with automake 1.13
Comment 10 Quentin "Sardem FF7" Glidic 2013-02-05 11:21:12 UTC
Created attachment 74237 [details] [review]
Fix tests (including doc) with automake 1.13

Fix typo in the commit message
Comment 11 Behdad Esfahbod 2013-02-05 16:44:30 UTC
New patch doesn't include the original changes.
Comment 12 Quentin "Sardem FF7" Glidic 2013-02-05 20:00:13 UTC
Created attachment 74254 [details] [review]
Fix tests (including doc) with automake 1.13

Sorry, complete patch attached.
Comment 13 Akira TAGOH 2013-02-06 10:58:26 UTC
That looks good to me and works fine with automake 1.12.2. committed.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.