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

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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    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 746443-forwarded@bugs.debian.org
        Carbon-Copy- => Added srivasta@debian.org

    Back to the top


    Powered by Savane 3.5