bugmake - Bugs: bug #42249, error GNU make 4.0 in handling -q...

 
 

bug #42249: error GNU make 4.0 in handling -q -- exits with 2 if something needs to be updated

Submitter:  Manoj Srivastava <srivasta>
Submitted:  Wed 30 Apr 2014 05:52:35 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  4.0 Operating System:  POSIX-Based
Fixed Release:  4.1 Triage Status:  Medium Effort
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 02 May 2014 05:49:24 PM UTC, comment #2: 

The fix seems to work for the package build that were broken with make 4.0, and so I think this report may be closed when that fix is released.

Manoj Srivastava <srivasta>
Thu 01 May 2014 01:57:00 PM UTC, comment #1: 

Pushed a fix for this: we were not properly propagating the status code up when prerequisites were not built due to -q.

Paul D. Smith <psmith>
Group administrator
Wed 30 Apr 2014 05:52:35 PM UTC, original submission:  

[Please retain the CC to -email is unavailable- 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.

Manoj Srivastava <srivasta>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by srivasta (Submitted the item)
  • -email is unavailable- added by srivasta (Link to the bug in the Debian BTS)
  • -email is unavailable- added by srivasta (Link to the bug in the Debian BTS)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-05-01 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.1
        Triage StatusNone Medium Effort
    2014-04-30 srivasta Carbon-Copy- Added -email is unavailable-
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code