bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10026: [PATCH] texinfo: work around Solaris 10 xpg4 shell bug in ins


From: Stefano Lattarini
Subject: bug#10026: [PATCH] texinfo: work around Solaris 10 xpg4 shell bug in install rules (was: Re: bug#10026: branch-11.1 testsuite on Solaris 10 [3] (XPG4 sh, Sun Studio compilers, autoconf 2.62) [almost OK])
Date: Sat, 19 Nov 2011 21:18:23 +0100
User-agent: KMail/1.13.7 (Linux/2.6.30-2-686; KDE/4.6.5; i686; ; )

On Saturday 12 November 2011, Stefano Lattarini wrote:
> SETUP:
>   Solaris 10, "rich /usr/local" (e.g., contains `expr' from GNU coreutils
>   6.9 and gawk 3.1.5), VPATH build, perl 5.10.0, autoconf 2.62, testsuite
>   run with GNU make 3.82, test scripts run by /usr/xpg4/bin/sh,
>   $CONFIG_SHELL set to /usr/xpg4/bin/sh as well, compilers are from Sun
>   Studio 5.9 (2010/08/11) and libtool 2.4.2.
> 
> RESULTS:
>   [SNIP]
>   The test texinfo21.test fails, and I don't know why :-(  Will have to
>   take a better look.
> 
The failure of this test wasn't spurious: it was due to a bug of the
Solaris 10 xpg4 shell; see:

 <http://lists.gnu.org/archive/html/bug-autoconf/2011-11/msg00005.html>

The attached patch should fix it.  I will push in a couple of days if
there is no objection.

Regards,
  Stefano
From 9ff773643fe4ec4cdb71f5f53c68b3c6f57daca0 Mon Sep 17 00:00:00 2001
Message-Id: <address@hidden>
From: Stefano Lattarini <address@hidden>
Date: Sat, 19 Nov 2011 19:53:57 +0100
Subject: [PATCH] texinfo: work around Solaris 10 xpg4 shell bug in install rules

* lib/am/texinfos.am (install-html-am): Use an extra variable
indirection to work around a bug in Solaris 10 /usr/xpg4/bin/sh.
Bug revealed by a failure of `txinfo21.test'.  See also:
<http://lists.gnu.org/archive/html/bug-autoconf/2011-11/msg00005.html>
<http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10026#23>
---
 ChangeLog          |    9 +++++++++
 lib/am/texinfos.am |   14 ++++++++++----
 2 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1e624a8..d8635ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-11-19  Stefano Lattarini  <address@hidden>
+
+       texinfo: work around Solaris 10 xpg4 shell bug in install rules
+       * lib/am/texinfos.am (install-html-am): Use an extra variable
+       indirection to work around a bug in Solaris 10 /usr/xpg4/bin/sh.
+       Bug revealed by a failure of `txinfo21.test'.  See also:
+       <http://lists.gnu.org/archive/html/bug-autoconf/2011-11/msg00005.html>
+       <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10026#23>
+
 2011-11-13  Stefano Lattarini  <address@hidden>
 
        tests: fix spurious failure with older install-info
diff --git a/lib/am/texinfos.am b/lib/am/texinfos.am
index 80712cf..5314dec 100644
--- a/lib/am/texinfos.am
+++ b/lib/am/texinfos.am
@@ -161,13 +161,19 @@ install-html-am: $(HTMLS)
        for p in $$list; do \
          if test -f "$$p" || test -d "$$p"; then d=; else d="$(srcdir)/"; fi; \
          $(am__strip_dir) \
-         if test -d "$$d$$p"; then \
+## This indirection is required to work around a bug of the Solaris 10
+## shell /usr/xpg4/bin/sh.  The description of the bug can be found at
+## <http://lists.gnu.org/archive/html/bug-autoconf/2011-11/msg00005.html>
+## and the report of the original failure can be found at automake
+## bug#10026 <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10026#23>
+         d2=$$d$$p; \
+         if test -d "$$d2"; then \
            echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)/$$f'"; \
            $(MKDIR_P) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
-           echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
-           $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f" || exit $$?; \
+           echo " $(INSTALL_DATA) '$$d2'/* '$(DESTDIR)$(htmldir)/$$f'"; \
+           $(INSTALL_DATA) "$$d2"/* "$(DESTDIR)$(htmldir)/$$f" || exit $$?; \
          else \
-           list2="$$list2 $$d$$p"; \
+           list2="$$list2 $$d2"; \
          fi; \
        done; \
        test -z "$$list2" || { echo "$$list2" | $(am__base_list) | \
-- 
1.7.2.3


reply via email to

[Prev in Thread] Current Thread [Next in Thread]