Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/nut: workaround parallel build issue
@ 2017-12-23 15:29 Yann E. MORIN
  2017-12-26 18:56 ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Yann E. MORIN @ 2017-12-23 15:29 UTC (permalink / raw)
  To: buildroot

The conditions are not trivial to reproduce, but it can happen that the
headers are not fully regenerated by the time they are included.

Since they already are present and current in the archive, just patch
out their generation from the Makefile.

Fixes:
    http://autobuild.buildroot.org/results/523/5231ff39a0839ec5e1962662004214d4b0773068/
    http://autobuild.buildroot.org/results/5a7/5a75d44c028e77b58f0fd9ab794952f2b477dd84/

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 .../nut/0003-tools-do-not-regenerate-headers.patch | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 package/nut/0003-tools-do-not-regenerate-headers.patch

diff --git a/package/nut/0003-tools-do-not-regenerate-headers.patch b/package/nut/0003-tools-do-not-regenerate-headers.patch
new file mode 100644
index 0000000000..4045c5668d
--- /dev/null
+++ b/package/nut/0003-tools-do-not-regenerate-headers.patch
@@ -0,0 +1,39 @@
+From f14e783b3575ccd3db5ca61fddec3ff5a033d530 Mon Sep 17 00:00:00 2001
+From: "Yann E. MORIN" <yann.morin.1998@free.fr>
+Date: Sat, 23 Dec 2017 16:21:27 +0100
+Subject: [PATCH] tools: do not regenerate headers
+
+This is definitely not parallel-safe, and as the commetns explain,
+fixing is not trivial. Since the headers are alreasy correct in the
+archive, we just do not regenerate them.
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+
+---
+Upstream status: not upstreamable.
+---
+ tools/Makefile.am | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/tools/Makefile.am b/tools/Makefile.am
+index 1ba28201..7c144649 100644
+--- a/tools/Makefile.am
++++ b/tools/Makefile.am
+@@ -14,13 +14,11 @@
+ # Anyway, for the time being, we force build in ./ before nut-scanner,
+ # to have nutscan-{usb,snmp}.h built before going into the nut-scanner
+ # sub-directory
+-SUBDIRS = . nut-scanner
++SUBDIRS = nut-scanner
+ 
+ EXTRA_DIST = nut-usbinfo.pl nut-recorder.sh nut-ddl-dump.sh \
+   gitlog2changelog.py nut-snmpinfo.py driver-list-format.sh
+ 
+-all: nut-scanner-deps 
+-
+ # XXX these rules are all bogus!  They cause un-named target files to
+ # always be rebuilt!  None of that is ever the right way to use make,
+ # and especially not Automake.  Explicit filenames and their exact
+-- 
+2.11.0
+
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-28 22:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-23 15:29 [Buildroot] [PATCH] package/nut: workaround parallel build issue Yann E. MORIN
2017-12-26 18:56 ` Peter Korsgaard
2017-12-28 13:24   ` Yann E. MORIN
2017-12-28 22:11     ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox