bug-make
[Top][All Lists]
Advanced

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

[bug #42249] error GNU make 4.0 in handling -q -- exits with 2 if someth


From: Manoj Srivastava
Subject: [bug #42249] error GNU make 4.0 in handling -q -- exits with 2 if something needs to be updated
Date: Wed, 30 Apr 2014 17:52:36 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20140319 Firefox/24.0 Iceweasel/24.4.0

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

                 Summary: error GNU make 4.0 in handling -q -- exits with 2 if
something needs to be updated
                 Project: make
            Submitted by: srivasta
            Submitted on: Wed 30 Apr 2014 12:52:35 PM CDT
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.0
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

[Please retain the CC to address@hidden so that updates to
this report are also recorded in the Debian BTS]

Here's the minimal makefile needed to reproduce it, and a transcript:

,--- detect.mk ---
build-stamp:
        echo $@

build-arch: build-stamp
`---

$ make --version | head -n1
GNU Make 3.81
$ make -f detect.mk -qn build-arch; echo $?
1

$ make --version | head -n1
GNU Make 4.0
$ make -f detect.mk -qn build-arch; echo $?
2

This is definitely a bug in GNU make 4.0 in handling -q.  The docs are clear
on what the exit codes should be, and with -q make should exit with 1 if
something needs to be updated and no error was detected.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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