Skip to contentSkip to conversation

package/lightning: fix install of lightning.h

PATCH New Fabrice Fontaine 2 participants 2 messages Oct 10, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/lightning: fix install of lightning.h

Fixes:
- http://autobuild.buildroot.org/results/05ebc75598627d2a08e08e194f51cb8464f97b95

---
 ...e.am-don-t-install-lightning.h-twice.patch | 38 +++++++++++++++++++
 package/lightning/lightning.mk                |  2 +
 2 files changed, 40 insertions(+)
 create mode 100644 package/lightning/0001-include-Makefile.am-don-t-install-lightning.h-twice.patch
package/lightning/0001-include-Makefile.am-don-t-install-lightning.h-twice.patch new file +38 -0
new file mode 100644
index 0000000000..fb5299c25f
@@ -0,0 +1,38 @@
+From 604c931bc673c507254a84c0f423c9ec8ce6e3a1 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <[email protected]>
+Date: Thu, 10 Oct 2019 20:36:46 +0200
+Subject: [PATCH] include/Makefile.am: don't install lightning.h twice
+
+Commit 17164ed32d8f3530153b9cad67a4399c65f24512 added lightning.h to
+nodist_include_HEADERS without removing it from include_HEADERS
+
+This raises the following error on one of the buildroot autobuilders:
+/usr/bin/install -c -m 644 lightning.h '/home/test/autobuild/run/instance-3/output-1/target/usr/include'
+/usr/bin/install -c -m 644 lightning.h '/home/test/autobuild/run/instance-3/output-1/target/usr/include'
+/usr/bin/install: cannot create regular file `/home/test/autobuild/run/instance-3/output-1/target/usr/include/lightning.h': File exists
+
+Fix this by removing lightning.h from include_HEADERS
+
+Fixes:
+ - http://autobuild.buildroot.org/results/05ebc75598627d2a08e08e194f51cb8464f97b95
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+---
+ include/Makefile.am | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/include/Makefile.am b/include/Makefile.am
+index e754dd3..8f91594 100644
+--- a/include/Makefile.am
++++ b/include/Makefile.am
+@@ -14,7 +14,6 @@
+ # License for more details.
+ #
+ 
+-include_HEADERS = lightning.h
+ SUBDIRS =		\
+ 	lightning
+ 
+-- 
+2.23.0
+
package/lightning/lightning.mk +2 -0
index fd6bbcac89..3bd17bef56 100644
@@ -9,6 +9,8 @@ LIGHTNING_SITE = $(BR2_GNU_MIRROR)/lightning
 LIGHTNING_LICENSE = LGPL-3.0+
 LIGHTNING_LICENSE_FILES = COPYING.LESSER
 LIGHTNING_INSTALL_STAGING = YES
+# We're patching include/Makefile.am
+LIGHTNING_AUTORECONF = YES
 
 ifeq ($(BR2_PACKAGE_LIGHTNING_DISASSEMBLER),y)
 LIGHTNING_DEPENDENCIES += binutils zlib
Signature · 1 line
2.23.0
#1 lore raw

PATCH 1/1 package/lightning: fix install of lightning.h

Quoted 9 lines · On Thu, 10 Oct 2019 20:50:45 +0200 Fabrice Fontaine…

Fixes:
- http://autobuild.buildroot.org/results/05ebc75598627d2a08e08e194f51cb8464f97b95

---
 ...e.am-don-t-install-lightning.h-twice.patch | 38 +++++++++++++++++++
 package/lightning/lightning.mk                |  2 +
 2 files changed, 40 insertions(+)
 create mode 100644 package/lightning/0001-include-Makefile.am-don-t-install-lightning.h-twice.patch

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com