fwup: blanked out MANS to avoid running help2man
PATCH 1/1 fwup: blanked out MANS to avoid running help2man
If you have help2man installed, the build system will try to run help2man on the target fwup binary which should not be expected to work.
--- package/fwup/fwup.mk | 2 ++ 1 file changed, 2 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fwup-blanked-out-MANS-to-avoid-running-help2man.patch
Type: text/x-patch
Size: 395 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160612/26a6b41a/attachment.bin>
PATCH v2 1/1 fwup: blanked out MANS to avoid running help2man
If you have help2man installed, the build system will try to run help2man on the target fwup binary which should not be expected to work.
--- package/fwup/fwup.mk | 2 ++ 1 file changed, 2 insertions(+)
package/fwup/fwup.mk +2 -0
@@ -10,6 +10,8 @@ FWUP_LICENSE = Apache-2.0 FWUP_LICENSE_FILES = LICENSE FWUP_DEPENDENCIES = libconfuse libarchive libsodium FWUP_AUTORECONF = YES +FWUP_MAKE_OPTS = MANS= +FWUP_INSTALL_TARGET_OPTS = MANS= define FWUP_ADD_M4_DIR mkdir -p $(@D)/m4
Signature · 1 line
2.8.4
PATCH v3 1/1 fwup: blanked out MANS to avoid running help2man
If you have help2man installed, the build system will try to run help2man on the target fwup binary which should not be expected to work.
Also, prevented anything but the fwup binary from being installed.
--- package/fwup/fwup.mk | 2 ++ 1 file changed, 2 insertions(+)
package/fwup/fwup.mk +2 -0
@@ -10,6 +10,8 @@ FWUP_LICENSE = Apache-2.0 FWUP_LICENSE_FILES = LICENSE FWUP_DEPENDENCIES = libconfuse libarchive libsodium FWUP_AUTORECONF = YES +FWUP_MAKE_OPTS = MANS= +FWUP_INSTALL_TARGET_OPTS = install-exec DESTDIR=$(TARGET_DIR) define FWUP_ADD_M4_DIR mkdir -p $(@D)/m4
Signature · 1 line
2.8.4
PATCH v3 1/1 fwup: blanked out MANS to avoid running help2man
Hi Jordan,
Quoted 15 lines · Jordan Yelloz
If you have help2man installed, the build system will try to run help2man on the target fwup binary which should not be expected to work.
Also, prevented anything but the fwup binary from being installed.
Signed-off-by Jordan Yelloz <[email protected]>--- package/fwup/fwup.mk | 2 ++ 1 file changed, 2 insertions(+)package/fwup/fwup.mk +0
-0
package/fwup/fwup.mk FWUP_LICENSE = Apache-2.0 · line 13
Quoted 4 lines
package/fwup/fwup.mk +1
-0@@ -10,6 +10,8 @@ FWUP_LICENSE = Apache-2.0 FWUP_LICENSE_FILES = LICENSE FWUP_DEPENDENCIES = libconfuse libarchive libsodium FWUP_AUTORECONF = YES +FWUP_MAKE_OPTS = MANS=
How about the following for disabling 'help2man'?
# help2man doesn't work when cross compiling FWUP_CONF_ENV = ac_cv_path_HELP2MAN=''
This is similar to what's done for the torsmo package, and it seems a little more obvious in purpose.
package/fwup/fwup.mk FWUP_LICENSE = Apache-2.0 · line 14
Quoted 1 line
package/fwup/fwup.mk +1
-0+FWUP_INSTALL_TARGET_OPTS = install-exec DESTDIR=$(TARGET_DIR)
The only other file that should be installed is the bash completions file. That's automatically removed from the target unless you have bash enabled.
Quoted 10 lines
package/fwup/fwup.mk +0
-1define FWUP_ADD_M4_DIR mkdir -p $(@D)/m4 --2.8.4
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH v3 1/1 fwup: blanked out MANS to avoid running help2man
Quoted 10 lines · Frank Hunleth
Hi Jordan,
How about the following for disabling 'help2man'?
# help2man doesn't work when cross compiling FWUP_CONF_ENV = ac_cv_path_HELP2MAN=''This is similar to what's done for the torsmo package, and it seems a little more obvious in purpose.
Good point, I will post a new patch with this change instead.
Quoted 6 lines
Quoted 1 line
+FWUP_INSTALL_TARGET_OPTS = install-exec DESTDIR=$(TARGET_DIR)
The only other file that should be installed is the bash completions file. That's automatically removed from the target unless you have bash enabled.
This was actually necessary with my inferior patch because help2man was still needed to produce the man page which was part of the `install' target but with your approach it's no longer needed.
--
Jordan
PATCH v4 1/1 fwup: blanked out HELP2MAN_PATH autoconf value
In reply to Jordan YellozIf you have help2man installed, the build system will try to run help2man on the target fwup binary which should not be expected to work.
--- package/fwup/fwup.mk | 1 + 1 file changed, 1 insertion(+)
package/fwup/fwup.mk +1 -0
@@ -10,6 +10,7 @@ FWUP_LICENSE = Apache-2.0 FWUP_LICENSE_FILES = LICENSE FWUP_DEPENDENCIES = libconfuse libarchive libsodium FWUP_AUTORECONF = YES +FWUP_CONF_ENV = ac_cv_path_HELP2MAN= define FWUP_ADD_M4_DIR mkdir -p $(@D)/m4
Signature · 1 line
2.8.4
PATCH v4 1/1 fwup: blanked out HELP2MAN_PATH autoconf value
Quoted 13 lines · Jordan Yelloz
If you have help2man installed, the build system will try to run help2man on the target fwup binary which should not be expected to work.
Signed-off-by Jordan Yelloz <[email protected]>--- package/fwup/fwup.mk | 1 + 1 file changed, 1 insertion(+)package/fwup/fwup.mk +0
-0
package/fwup/fwup.mk FWUP_LICENSE = Apache-2.0 · line 13
Quoted 4 lines
package/fwup/fwup.mk +1
-0@@ -10,6 +10,7 @@ FWUP_LICENSE = Apache-2.0 FWUP_LICENSE_FILES = LICENSE FWUP_DEPENDENCIES = libconfuse libarchive libsodium FWUP_AUTORECONF = YES +FWUP_CONF_ENV = ac_cv_path_HELP2MAN=
This change fixes the issue with help2man being installed on the host for me.
Quoted 10 lines
package/fwup/fwup.mk +0
-1define FWUP_ADD_M4_DIR mkdir -p $(@D)/m4 --2.8.4
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH v2 1/1 iptables: exported AR=$(TARGET_AR) to make
In reply to Jordan YellozThis ensures the correct AR is used for some of the iptables build process. This is the same fix as
<https://bugs.gentoo.org/show_bug.cgi?id=444282>
--- package/iptables/iptables.mk | 1 + 1 file changed, 1 insertion(+)
package/iptables/iptables.mk +1 -0
@@ -17,6 +17,7 @@ IPTABLES_CONF_OPTS = --libexecdir=/usr/lib --with-kernel=$(STAGING_DIR)/usr \ $(if $(BR2_STATIC_LIBS),,--disable-static) # For 0002-iptables-add-xtables-config-parser.h-to-BUILT_SOURCES.patch IPTABLES_AUTORECONF = YES +IPTABLES_MAKE_ENV = AR=$(TARGET_AR) # For connlabel match ifeq ($(BR2_PACKAGE_LIBNETFILTER_CONNTRACK),y)
Signature · 1 line
2.8.4
PATCH v2 1/1 iptables: exported AR=$(TARGET_AR) to make
Hello,
Quoted 14 lines · Jordan Yelloz
This ensures the correct AR is used for some of the iptables build process. This is the same fix as
<https://bugs.gentoo.org/show_bug.cgi?id=444282>Signed-off-by Jordan Yelloz <[email protected]>--- package/iptables/iptables.mk | 1 + 1 file changed, 1 insertion(+)package/iptables/iptables.mk +0
-0
package/iptables/iptables.mk IPTABLES_CONF_OPTS = --libexecdir=/usr/lib --with-kernel=$(STAGING_DIR)/usr \ · line 20
Quoted 4 lines
package/iptables/iptables.mk +1
-0@@ -17,6 +17,7 @@ IPTABLES_CONF_OPTS = --libexecdir=/usr/lib --with-kernel=$(STAGING_DIR)/usr \ $(if $(BR2_STATIC_LIBS),,--disable-static) # For 0002-iptables-add-xtables-config-parser.h-to-BUILT_SOURCES.patch IPTABLES_AUTORECONF = YES +IPTABLES_MAKE_ENV = AR=$(TARGET_AR)
Instead of this fix, I've backported the patch you have submitted upstream and which has been merged. See:
https://git.buildroot.org/buildroot/commit/?id=bcfe05a7e9ce49bcc447fd956f52da0032f534e6
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com