Re: make 4.0: archive rebuild resulted in 73 packages broken (help wanted)

2014-04-30 Thread Guillem Jover
Hi!

On Wed, 2014-04-30 at 16:22:37 +0200, Guillem Jover wrote:
 I think we should first understand why the detection is failing with
 the newer make. I'm taking a look now. Once that's done we might just
 be able to fix (or workaround) one of:
 
   * make
   * dpkg-buildpackage
   * affected packages

It would appear to me that make is the culprit (if the behaviour
change was not intentional, that is).

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


Thanks,
Guillem

___
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make


Re: make 4.0: archive rebuild resulted in 73 packages broken (help wanted)

2014-04-30 Thread Paul Smith
On Wed, 2014-04-30 at 18:19 +0200, Guillem Jover wrote:
 build-stamp:
 echo $@
 
 build-arch: build-stamp

 $ 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 (note the -n is
not relevant: you can leave it out and get the same behavior).  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.



___
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make


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

2014-04-30 Thread Manoj Srivastava
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 746443-forwar...@bugs.debian.org 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/


___
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make