Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 222225 - [FEATURES="test"] sys-devel/automake:{1.7,1.8,1.9} fails with subst.test
Summary: [FEATURES="test"] sys-devel/automake:{1.7,1.8,1.9} fails with subst.test
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard: Patch waiting review
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-15 07:47 UTC by Xake
Modified: 2009-03-21 11:45 UTC (History)
1 user (show)

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


Attachments
Patch for automake-1.7,1.8 and 1.9 to pass the subst.test (automake-test-subst.patch,766 bytes, patch)
2008-10-30 21:40 UTC, Xake
Details | Diff
Patch that allows autmake 1.7, 1.8 and 1.9 pass subst.test (automake-test-subst.patch,1.29 KB, patch)
2009-02-09 09:58 UTC, Xake
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xake 2008-05-15 07:47:46 UTC
Running subst.test from automake-1.10 in the testcase for 1.7 does work, and the comment in the commit (from automakes own git, the comment does also exists in subst.test distributed with automake-1.10) tells me that this seems to be the proper fix:

diff --git a/tests/subst.test b/tests/subst.test

index 33e925d..a72af85 100755 (executable)

--- a/tests/subst.test
+++ b/tests/subst.test
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 1996, 2001, 2002  Free Software Foundation, Inc.
+# Copyright (C) 1996, 2001, 2002, 2007  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -24,8 +24,14 @@
 . ./defs || exit 1
 
 cat >> configure.in << 'END'
-AC_SUBST($1)
-AC_SUBST([$]$1)  dnl this is the actual invocation that was used
+dnl This test used to have the following lines, which cannot have
+dnl worked sensibly with Autoconf for years, however:
+dnl AC_SUBST($1)
+dnl AC_SUBST([$]$1)  dnl this is the actual invocation that was used
+dnl
+AC_DEFUN([FOO],
+[AC_SUBST([$1])])
+FOO([BAR])
 END
 
 : > Makefile.am
Comment 1 Xake 2008-05-15 10:34:09 UTC
Seems like automake-1.9.6-r2 fails for the same reason.
Comment 2 Lourdes Jones 2008-08-25 16:55:46 UTC
Confirm problem with automake 1.7.6 and 1.9.6-r2. The patch allows successful compilation with both. Thank you!

It amazes me that it hasn't been committed in the 3 months since this was reported.
Comment 3 Xake 2008-10-26 10:05:55 UTC
Read this comment (the lines starting with dnl in this file [1]) and you will see how to fix this (short answear: rip the test file from >automake-0.10):

From file:
This test used to have the following lines, which cannot have
worked sensibly with Autoconf for years


[1] http://git.savannah.gnu.org/gitweb/?p=automake.git;a=blob;f=tests/subst.test;h=1dde9b81c1287f4fd93182d775f783248948286b;hb=HEAD
Comment 4 Xake 2008-10-30 21:40:13 UTC
Created attachment 170353 [details, diff]
Patch for automake-1.7,1.8 and 1.9 to pass the subst.test
Comment 5 SpanKY gentoo-dev 2009-02-08 19:04:34 UTC
if you're going to take a patch from an upstream git repo, dont scrub the metadata from it

http://dev.gentoo.org/~vapier/clean-patches
Comment 6 Xake 2009-02-09 09:58:16 UTC
Created attachment 181424 [details, diff]
Patch that allows autmake 1.7, 1.8 and 1.9 pass subst.test

Thanks for the information, and a nice guide.
 
Does this look better?
The actual commit also contains a diff against THANKS and ChangeLog, that I scrubbed to without problem have this patch apply against all the three versions of automake. However the same information is in the header/metadata upstream gitweb gave me and I have left that untuched and just added a short why and which gentoo bug comment.