bug-make
[Top][All Lists]
Advanced

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

[bug #52912] minor bug in GNU make's own Makefile under .ONESHELL


From: David Boyce
Subject: [bug #52912] minor bug in GNU make's own Makefile under .ONESHELL
Date: Tue, 16 Jan 2018 09:12:08 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?52912>

                 Summary: minor bug in GNU make's own Makefile under .ONESHELL
                 Project: make
            Submitted by: boyski
            Submitted on: Tue 16 Jan 2018 02:12:06 PM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.2.1
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

This is a very minor bug but easily fixed (patch inline). A recipe in
Makefile.in has two consecutive lines starting with @ which the manual says is
incompatible with .ONESHELL unless the shell is recognized as
POSIX-compatible. Therefore, when overriding both i.e.:

# make --eval=.ONESHELL: SHELL=<myshell>

The error "@test: command not found" is emitted.

--- Makefile.in 2016-06-10 16:03:22.000000000 -0700
+++ ../../make-4.2.1/Makefile.in        2018-01-15 21:35:02.827437149 -0800
@@ -570,8 +570,8 @@
 $(am__aclocal_m4_deps):

 config.h: stamp-h1
-       @test -f $@ || rm -f stamp-h1
-       @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
+       @test -f $@ || rm -f stamp-h1 && \
+       test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1

 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
        @rm -f stamp-h1




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52912>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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