busybox: invert dependencies
PATCH 1/50 package/busybox: backport upstream patch to fix install-noclobber
In reply to Yann E. MORINCurrently, we shoehorn the noclobber option with a sed call, but upstream has applied a set of 4 patches that adds support to do an install without clobbering.
Backport those patches, and use the new install rule.
Note that the 3rd and 6th patches do not seem like they would be usefull to backport, but a user may well have a custom config that enables shell wrappers, or installs no wrapper (to install then at runtime), so it still makes sense to backport them (especially since the 3rd was part of the noclobber series upstream, and the 6th, a fix of it).
--- ...tall-respect-noclobber-for-script-wrapper.patch | 62 +++++++++++++++++++++ ...stall-accept-more-than-one-install-option.patch | 63 +++++++++++++++++++++ ...m-add-rule-to-install-without-cloberring-.patch | 29 ++++++++++ ...lets-install-don-t-try-to-install-nothing.patch | 65 ++++++++++++++++++++++ package/busybox/busybox.mk | 8 +-- 5 files changed, 220 insertions(+), 7 deletions(-) create mode 100644 package/busybox/0003-applets-install-respect-noclobber-for-script-wrapper.patch create mode 100644 package/busybox/0004-applets-install-accept-more-than-one-install-option.patch create mode 100644 package/busybox/0005-build-system-add-rule-to-install-without-cloberring-.patch create mode 100644 package/busybox/0006-applets-install-don-t-try-to-install-nothing.patch
package/busybox/0003-applets-install-respect-noclobber-for-script-wrapper.patch new file +62 -0
@@ -0,0 +1,62 @@ +From 84be5ce0d814780918771727e494fe4a2eb46636 Mon Sep 17 00:00:00 2001 +From: "Yann E. MORIN" <[email protected]> +Date: Thu, 28 Dec 2017 23:49:47 +0100 +Subject: [PATCH] applets/install: respect noclobber for script wrappers too + +Simplify the handling of --noclobber so that it applies to all types of +installation types, even to script wrappers. + +Signed-off-by: Yann E. MORIN <[email protected]> +Signed-off-by: Denys Vlasenko <[email protected]> +--- + applets/install.sh | 20 ++++++++------------ + 1 file changed, 8 insertions(+), 12 deletions(-) + +diff --git a/applets/install.sh b/applets/install.sh +index f6c097e57..4b70df96e 100755 +--- a/applets/install.sh ++++ b/applets/install.sh +@@ -77,6 +77,10 @@ install -m 755 busybox "$prefix/bin/busybox" || exit 1 + for i in $h; do + appdir=`dirname "$i"` + app=`basename "$i"` ++ if [ "$noclobber" = "1" ] && [ -e "$prefix/$i" ]; then ++ echo " $prefix/$i already exists" ++ continue ++ fi + mkdir -p "$prefix/$appdir" || exit 1 + if [ "$scriptwrapper" = "y" ]; then + if [ "$swrapall" != "y" ] && [ "$i" = "/bin/sh" ]; then +@@ -90,12 +94,8 @@ for i in $h; do + elif [ "$binaries" = "y" ]; then + # Copy the binary over rather + if [ -e $sharedlib_dir/$app ]; then +- if [ "$noclobber" = "0" ] || [ ! -e "$prefix/$i" ]; then +- echo " Copying $sharedlib_dir/$app to $prefix/$i" +- cp -pPR $sharedlib_dir/$app $prefix/$i || exit 1 +- else +- echo " $prefix/$i already exists" +- fi ++ echo " Copying $sharedlib_dir/$app to $prefix/$i" ++ cp -pPR $sharedlib_dir/$app $prefix/$i || exit 1 + else + echo "Error: Could not find $sharedlib_dir/$app" + exit 1 +@@ -123,12 +123,8 @@ for i in $h; do + ;; + esac + fi +- if [ "$noclobber" = "0" ] || [ ! -e "$prefix/$i" ]; then +- echo " $prefix/$i -> $bb_path" +- ln $linkopts "$bb_path" "$prefix/$i" || exit 1 +- else +- echo " $prefix/$i already exists" +- fi ++ echo " $prefix/$i -> $bb_path" ++ ln $linkopts "$bb_path" "$prefix/$i" || exit 1 + fi + done + +-- +2.14.1 +
package/busybox/0004-applets-install-accept-more-than-one-install-option.patch new file +63 -0
63 lines not on this page · raw message
package/busybox/0005-build-system-add-rule-to-install-without-cloberring-.patch new file +29 -0
@@ -0,0 +1,29 @@ +From a47375de8c7b0f4dcb95097c8119ea47b6e2636c Mon Sep 17 00:00:00 2001 +From: "Yann E. MORIN" <[email protected]> +Date: Thu, 28 Dec 2017 23:49:49 +0100 +Subject: [PATCH] build system: add rule to install without cloberring + existing utilities + +Signed-off-by: Yann E. MORIN <[email protected]> +Signed-off-by: Denys Vlasenko <[email protected]> +--- + Makefile.custom | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/Makefile.custom b/Makefile.custom +index 891c9ced7..28d0ef7bc 100644 +--- a/Makefile.custom ++++ b/Makefile.custom +@@ -46,6 +46,9 @@ ifeq ($(strip $(CONFIG_FEATURE_SUID)),y) + @echo + endif + ++install-noclobber: INSTALL_OPTS+=--noclobber ++install-noclobber: install ++ + uninstall: busybox.links + rm -f $(CONFIG_PREFIX)/bin/busybox + for i in `cat busybox.links` ; do rm -f $(CONFIG_PREFIX)$$i; done +-- +2.14.1 +
package/busybox/0006-applets-install-don-t-try-to-install-nothing.patch new file +65 -0
65 lines not on this page · raw message
package/busybox/busybox.mk +1 -7
@@ -253,12 +253,6 @@ define BUSYBOX_INSTALL_ADD_TO_SHELLS endef BUSYBOX_TARGET_FINALIZE_HOOKS += BUSYBOX_INSTALL_ADD_TO_SHELLS -# Enable "noclobber" in install.sh, to prevent BusyBox from overwriting any -# full-blown versions of apps installed by other packages with sym/hard links. -define BUSYBOX_NOCLOBBER_INSTALL - $(SED) 's/^noclobber="0"$$/noclobber="1"/' $(@D)/applets/install.sh -endef - define BUSYBOX_KCONFIG_FIXUP_CMDS $(BUSYBOX_SET_MMU) $(BUSYBOX_PREFER_STATIC)
@@ -280,7 +274,7 @@ define BUSYBOX_BUILD_CMDS endef define BUSYBOX_INSTALL_TARGET_CMDS - $(BUSYBOX_MAKE_ENV) $(MAKE) $(BUSYBOX_MAKE_OPTS) -C $(@D) install + $(BUSYBOX_MAKE_ENV) $(MAKE) $(BUSYBOX_MAKE_OPTS) -C $(@D) install-noclobber $(BUSYBOX_INSTALL_INITTAB) $(BUSYBOX_INSTALL_UDHCPC_SCRIPT) $(BUSYBOX_INSTALL_MDEV_CONF)
Signature · 1 line
2.14.1
PATCH 2/50 package/busybox: invert dependency with whois
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 4 ++++ package/whois/whois.mk | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-)
package/busybox/busybox.mk +4 -0
@@ -20,6 +20,10 @@ BUSYBOX_CFLAGS = \ BUSYBOX_LDFLAGS = \ $(TARGET_LDFLAGS) +# Packages that provide commands that may also be busybox applets: +BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_WHOIS),whois) + # Link against libtirpc if available so that we can leverage its RPC # support for NFS mounting with BusyBox ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
package/whois/whois.mk +1 -2
@@ -7,8 +7,7 @@ WHOIS_VERSION = 5.3.1 WHOIS_SITE = http://snapshot.debian.org/archive/debian/20180522T155750Z/pool/main/w/whois WHOIS_SOURCE = whois_$(WHOIS_VERSION).tar.xz -# take precedence over busybox implementation -WHOIS_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox) $(TARGET_NLS_DEPENDENCIES) +WHOIS_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) WHOIS_MAKE_ENV = $(TARGET_MAKE_ENV) WHOIS_MAKE_OPTS = CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \ LIBS="$(WHOIS_EXTRA_LIBS)"
Signature · 1 line
2.14.1
PATCH 3/50 package/busybox: invert dependency with wget
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/wget/wget.mk | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_WGET),wget) \ $(if $(BR2_PACKAGE_WHOIS),whois) # Link against libtirpc if available so that we can leverage its RPC
package/wget/wget.mk +0 -5
@@ -11,11 +11,6 @@ WGET_DEPENDENCIES = host-pkgconf WGET_LICENSE = GPL-3.0+ WGET_LICENSE_FILES = COPYING -# Prefer full-blown wget over busybox -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -WGET_DEPENDENCIES += busybox -endif - ifeq ($(BR2_PACKAGE_GNUTLS),y) WGET_CONF_OPTS += --with-ssl=gnutls WGET_DEPENDENCIES += gnutls
Signature · 1 line
2.14.1
PATCH 4/50 package/busybox: invert dependency with vim
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/vim/vim.mk | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_VIM),vim) \ $(if $(BR2_PACKAGE_WGET),wget) \ $(if $(BR2_PACKAGE_WHOIS),whois)
package/vim/vim.mk +1 -4
@@ -6,10 +6,7 @@ VIM_VERSION = v8.0.0329 VIM_SITE = $(call github,vim,vim,$(VIM_VERSION)) -# Win over busybox vi since vim is more feature-rich -VIM_DEPENDENCIES = \ - ncurses $(TARGET_NLS_DEPENDENCIES) \ - $(if $(BR2_PACKAGE_BUSYBOX),busybox) +VIM_DEPENDENCIES = ncurses $(TARGET_NLS_DEPENDENCIES) VIM_SUBDIR = src VIM_CONF_ENV = \ vim_cv_toupper_broken=no \
Signature · 1 line
2.14.1
PATCH 5/50 package/busybox: invert dependency with util-linux
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/util-linux/util-linux.mk | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_UTIL_LINUX),util-linux) \ $(if $(BR2_PACKAGE_VIM),vim) \ $(if $(BR2_PACKAGE_WGET),wget) \ $(if $(BR2_PACKAGE_WHOIS),whois)
package/util-linux/util-linux.mk +0 -6
@@ -31,12 +31,6 @@ HOST_UTIL_LINUX_DEPENDENCIES = host-pkgconf # We also don't want the host-python dependency HOST_UTIL_LINUX_CONF_OPTS = --without-python -# If both util-linux and busybox are selected, make certain util-linux -# wins the fight over who gets to have their utils actually installed -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -UTIL_LINUX_DEPENDENCIES += busybox -endif - # Prevent the installation from attempting to move shared libraries from # ${usrlib_execdir} (/usr/lib) to ${libdir} (/lib), since both paths are # the same when merged usr is in use.
Signature · 1 line
2.14.1
PATCH 6/50 package/busybox: invert dependency with usbutils
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/usbutils/usbutils.mk | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_USBUTILS),usbutils) \ $(if $(BR2_PACKAGE_UTIL_LINUX),util-linux) \ $(if $(BR2_PACKAGE_VIM),vim) \ $(if $(BR2_PACKAGE_WGET),wget) \
package/usbutils/usbutils.mk +0 -5
@@ -11,11 +11,6 @@ USBUTILS_DEPENDENCIES = host-pkgconf libusb udev USBUTILS_LICENSE = GPL-2.0+ (utils) GPL-2.0 or GPL-3.0 (lsusb.py) USBUTILS_LICENSE_FILES = LICENSES/GPL-2.0.txt LICENSES/GPL-3.0.txt -# Build after busybox since it's got a lightweight lsusb -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -USBUTILS_DEPENDENCIES += busybox -endif - # Nice lsusb.py script only if there's python 3.x ifeq ($(BR2_PACKAGE_PYTHON3),) define USBUTILS_REMOVE_PYTHON
Signature · 1 line
2.14.1
PATCH 7/50 package/busybox: invert dependency with unzip
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/unzip/unzip.mk | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_UNZIP),unzip) \ $(if $(BR2_PACKAGE_USBUTILS),usbutils) \ $(if $(BR2_PACKAGE_UTIL_LINUX),util-linux) \ $(if $(BR2_PACKAGE_VIM),vim) \
package/unzip/unzip.mk +0 -2
@@ -7,8 +7,6 @@ UNZIP_VERSION = 60 UNZIP_SOURCE = unzip$(UNZIP_VERSION).tgz UNZIP_SITE = ftp://ftp.info-zip.org/pub/infozip/src -# take precedence over busybox implementation -UNZIP_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox) UNZIP_LICENSE = Info-ZIP UNZIP_LICENSE_FILES = LICENSE
Signature · 1 line
2.14.1
PATCH 8/50 package/busybox: invert dependency with traceroute
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/traceroute/traceroute.mk | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_TRACEROUTE),traceroute) \ $(if $(BR2_PACKAGE_UNZIP),unzip) \ $(if $(BR2_PACKAGE_USBUTILS),usbutils) \ $(if $(BR2_PACKAGE_UTIL_LINUX),util-linux) \
package/traceroute/traceroute.mk +0 -5
@@ -10,11 +10,6 @@ TRACEROUTE_SITE = http://downloads.sourceforge.net/traceroute/traceroute/tracero TRACEROUTE_LICENSE = GPL-2.0+, LGPL-2.1+ TRACEROUTE_LICENSE_FILES = COPYING COPYING.LIB -# Prefer full-featured traceroute over busybox's version -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -TRACEROUTE_DEPENDENCIES += busybox -endif - define TRACEROUTE_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" -C $(@D)
Signature · 1 line
2.14.1
PATCH 9/50 package/busybox: invert dependency with tftpd
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/tftpd/tftpd.mk | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_TFTPD),tftpd) \ $(if $(BR2_PACKAGE_TRACEROUTE),traceroute) \ $(if $(BR2_PACKAGE_UNZIP),unzip) \ $(if $(BR2_PACKAGE_USBUTILS),usbutils) \
package/tftpd/tftpd.mk +0 -5
@@ -9,11 +9,6 @@ TFTPD_SOURCE = tftp-hpa-$(TFTPD_VERSION).tar.xz TFTPD_SITE = $(BR2_KERNEL_MIRROR)/software/network/tftp/tftp-hpa TFTPD_CONF_OPTS = --without-tcpwrappers -# Override BusyBox implementations if BusyBox is enabled. -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -TFTPD_DEPENDENCIES += busybox -endif - define TFTPD_INSTALL_TARGET_CMDS $(INSTALL) -D $(@D)/tftp/tftp $(TARGET_DIR)/usr/bin/tftp $(INSTALL) -D $(@D)/tftpd/tftpd $(TARGET_DIR)/usr/sbin/tftpd
Signature · 1 line
2.14.1
PATCH 10/50 package/busybox: invert dependency with tar
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/tar/tar.mk | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_TAR),tar) \ $(if $(BR2_PACKAGE_TFTPD),tftpd) \ $(if $(BR2_PACKAGE_TRACEROUTE),traceroute) \ $(if $(BR2_PACKAGE_UNZIP),unzip) \
package/tar/tar.mk +1 -6
@@ -8,16 +8,11 @@ TAR_VERSION = 1.29 TAR_SOURCE = tar-$(TAR_VERSION).tar.xz TAR_SITE = $(BR2_GNU_MIRROR)/tar # busybox installs in /bin, so we need tar to install as well in /bin -# so that it overrides the Busybox symlinks. +# so that it we don't end up with two different tar TAR_CONF_OPTS = --exec-prefix=/ TAR_LICENSE = GPL-3.0+ TAR_LICENSE_FILES = COPYING -# Prefer full-blown tar over buybox's version -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -TAR_DEPENDENCIES += busybox -endif - ifeq ($(BR2_PACKAGE_ACL),y) TAR_DEPENDENCIES += acl TAR_CONF_OPTS += --with-posix-acls
Signature · 1 line
2.14.1
PATCH 11/50 package/busybox: invert dependency with sysvinit
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/sysvinit/sysvinit.mk | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_SYSVINIT),sysvinit) \ $(if $(BR2_PACKAGE_TAR),tar) \ $(if $(BR2_PACKAGE_TFTPD),tftpd) \ $(if $(BR2_PACKAGE_TRACEROUTE),traceroute) \
package/sysvinit/sysvinit.mk +0 -5
@@ -13,11 +13,6 @@ SYSVINIT_LICENSE_FILES = COPYING SYSVINIT_MAKE_OPTS = SYSROOT=$(STAGING_DIR) -# Override BusyBox implementations if BusyBox is enabled. -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -SYSVINIT_DEPENDENCIES = busybox -endif - ifeq ($(BR2_PACKAGE_LIBSELINUX),y) SYSVINIT_DEPENDENCIES += libselinux SYSVINIT_MAKE_OPTS += WITH_SELINUX="yes"
Signature · 1 line
2.14.1
PATCH 12/50 package/busybox: invert dependency with systemd
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/systemd/systemd.mk | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_SYSTEMD),systemd) \ $(if $(BR2_PACKAGE_SYSVINIT),sysvinit) \ $(if $(BR2_PACKAGE_TAR),tar) \ $(if $(BR2_PACKAGE_TFTPD),tftpd) \
package/systemd/systemd.mk +0 -6
@@ -18,12 +18,6 @@ SYSTEMD_DEPENDENCIES = \ SYSTEMD_PROVIDES = udev -# Make sure that systemd will always be built after busybox so that we have -# a consistent init setup between two builds -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -SYSTEMD_DEPENDENCIES += busybox -endif - SYSTEMD_CONF_OPTS += \ -Drootlibdir='/usr/lib' \ -Dblkid=true \
Signature · 1 line
2.14.1
PATCH 13/50 package/busybox: invert dependency with syslog-ng
In reply to Yann E. MORINIn so doing, we must now ensure that busybox does not overwrite the startup script already installed by syslog-ng.
--- package/busybox/busybox.mk | 6 +++++- package/syslog-ng/syslog-ng.mk | 5 ----- 2 files changed, 5 insertions(+), 6 deletions(-)
package/busybox/busybox.mk +5 -1
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_SYSLOG_NG),syslog-ng) \ $(if $(BR2_PACKAGE_SYSTEMD),systemd) \ $(if $(BR2_PACKAGE_SYSVINIT),sysvinit) \ $(if $(BR2_PACKAGE_TAR),tar) \
@@ -208,8 +209,11 @@ define BUSYBOX_INSTALL_INDIVIDUAL_BINARIES endef endif +# Only install our own if no other package already did. define BUSYBOX_INSTALL_LOGGING_SCRIPT - if grep -q CONFIG_SYSLOGD=y $(@D)/.config; then \ + if grep -q CONFIG_SYSLOGD=y $(@D)/.config && \ + [ ! -e $(TARGET_DIR)/etc/init.d/S01logging ]; \ + then \ $(INSTALL) -m 0755 -D package/busybox/S01logging \ $(TARGET_DIR)/etc/init.d/S01logging; \ fi
package/syslog-ng/syslog-ng.mk +0 -5
@@ -17,11 +17,6 @@ SYSLOG_NG_CONF_ENV = LIBS=-lrt SYSLOG_NG_CONF_OPTS = --disable-manpages --localstatedir=/var/run \ --disable-java --disable-java-modules --disable-mongodb -# We override busybox's S01logging init script -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -SYSLOG_NG_DEPENDENCIES += busybox -endif - ifeq ($(BR2_PACKAGE_GEOIP),y) SYSLOG_NG_DEPENDENCIES += geoip SYSLOG_NG_CONF_OPTS += --enable-geoip
Signature · 1 line
2.14.1
PATCH 14/50 package/busybox: invert dependency with sysklogd
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/sysklogd/sysklogd.mk | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_SYSKLOGD),sysklogd) \ $(if $(BR2_PACKAGE_SYSLOG_NG),syslog-ng) \ $(if $(BR2_PACKAGE_SYSTEMD),systemd) \ $(if $(BR2_PACKAGE_SYSVINIT),sysvinit) \
package/sysklogd/sysklogd.mk +0 -5
@@ -9,11 +9,6 @@ SYSKLOGD_SITE = http://www.infodrom.org/projects/sysklogd/download SYSKLOGD_LICENSE = GPL-2.0+ SYSKLOGD_LICENSE_FILES = COPYING -# Override BusyBox implementations if BusyBox is enabled. -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -SYSKLOGD_DEPENDENCIES = busybox -endif - # Override SKFLAGS which is used as CFLAGS. define SYSKLOGD_BUILD_CMDS $(MAKE) $(TARGET_CONFIGURE_OPTS) SKFLAGS="$(TARGET_CFLAGS) -DSYSV" \
Signature · 1 line
2.14.1
PATCH 15/50 package/busybox: invert dependency with start-stop-daemon
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/start-stop-daemon/start-stop-daemon.mk | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_START_STOP_DAEMON),start-stop-daemon) \ $(if $(BR2_PACKAGE_SYSKLOGD),sysklogd) \ $(if $(BR2_PACKAGE_SYSLOG_NG),syslog-ng) \ $(if $(BR2_PACKAGE_SYSTEMD),systemd) \
package/start-stop-daemon/start-stop-daemon.mk +1 -2
@@ -19,8 +19,7 @@ START_STOP_DAEMON_CONF_ENV = \ dpkg_cv_va_copy=yes \ dpkg_cv_c99_snprintf=yes \ DPKG_DEVEL_MODE=1 -START_STOP_DAEMON_DEPENDENCIES = host-pkgconf \ - $(if $(BR2_PACKAGE_BUSYBOX),busybox) +START_STOP_DAEMON_DEPENDENCIES = host-pkgconf # Patching m4/dpkg-arch.m4 START_STOP_DAEMON_AUTORECONF = YES START_STOP_DAEMON_LICENSE = GPL-2.0+
Signature · 1 line
2.14.1
PATCH 16/50 package/busybox: invert dependency with rsyslogd
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/rsyslog/rsyslog.mk | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_RSYSLOGD),rsyslogd) \ $(if $(BR2_PACKAGE_START_STOP_DAEMON),start-stop-daemon) \ $(if $(BR2_PACKAGE_SYSKLOGD),sysklogd) \ $(if $(BR2_PACKAGE_SYSLOG_NG),syslog-ng) \
package/rsyslog/rsyslog.mk +0 -5
@@ -17,11 +17,6 @@ RSYSLOG_PLUGINS = imdiag imfile impstats imptcp \ RSYSLOG_CONF_OPTS = --disable-generate-man-pages \ $(foreach x,$(call qstrip,$(RSYSLOG_PLUGINS)),--enable-$(x)) -# Build after BusyBox -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -RSYSLOG_DEPENDENCIES += busybox -endif - ifeq ($(BR2_PACKAGE_GNUTLS),y) RSYSLOG_DEPENDENCIES += gnutls RSYSLOG_CONF_OPTS += --enable-gnutls
Signature · 1 line
2.14.1
PATCH 17/50 package/busybox: invert dependency with psmisc
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/psmisc/psmisc.mk | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_PSMISC),psmisc) \ $(if $(BR2_PACKAGE_RSYSLOGD),rsyslogd) \ $(if $(BR2_PACKAGE_START_STOP_DAEMON),start-stop-daemon) \ $(if $(BR2_PACKAGE_SYSKLOGD),sysklogd) \
package/psmisc/psmisc.mk +0 -5
@@ -23,9 +23,4 @@ ifeq ($(BR2_TOOLCHAIN_HAS_SSP),) PSMISC_CONF_OPTS = --disable-harden-flags endif -# build after busybox, we prefer fat versions while we're at it -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -PSMISC_DEPENDENCIES += busybox -endif - $(eval $(autotools-package))
Signature · 1 line
2.14.1
PATCH 18/50 package/busybox: invert dependency with procps-ng
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/procps-ng/procps-ng.mk | 10 ++-------- 2 files changed, 3 insertions(+), 8 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_PROCPS_NG),procps-ng) \ $(if $(BR2_PACKAGE_PSMISC),psmisc) \ $(if $(BR2_PACKAGE_RSYSLOGD),rsyslogd) \ $(if $(BR2_PACKAGE_START_STOP_DAEMON),start-stop-daemon) \
package/procps-ng/procps-ng.mk +2 -8
@@ -13,12 +13,6 @@ PROCPS_NG_INSTALL_STAGING = YES PROCPS_NG_DEPENDENCIES = ncurses host-pkgconf $(TARGET_NLS_DEPENDENCIES) PROCPS_NG_CONF_OPTS = LIBS=$(TARGET_NLS_LIBS) -# If both procps-ng and busybox are selected, make certain procps-ng -# wins the fight over who gets to have their utils actually installed. -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -PROCPS_NG_DEPENDENCIES += busybox -endif - ifeq ($(BR2_PACKAGE_SYSTEMD),y) PROCPS_NG_DEPENDENCIES += systemd PROCPS_NG_CONF_OPTS += --with-systemd
@@ -26,8 +20,8 @@ else PROCPS_NG_CONF_OPTS += --without-systemd endif -# Make sure binaries get installed in /bin, so that they overwrite -# their busybox counterparts. +# Make sure binaries get installed in /bin, as busybox does, so that we +# don't end up with two versions. # Make sure libprocps.pc is installed in STAGING_DIR/usr/lib/pkgconfig/ # otherwise it's installed in STAGING_DIR/lib/pkgconfig/ breaking # pkg-config --libs libprocps.
Signature · 1 line
2.14.1
PATCH 19/50 package/busybox: invert dependency with pciutils
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/pciutils/pciutils.mk | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_PCIUTILS),pciutils) \ $(if $(BR2_PACKAGE_PROCPS_NG),procps-ng) \ $(if $(BR2_PACKAGE_PSMISC),psmisc) \ $(if $(BR2_PACKAGE_RSYSLOGD),rsyslogd) \
package/pciutils/pciutils.mk +0 -5
@@ -46,11 +46,6 @@ else PCIUTILS_MAKE_OPTS += SHARED=yes endif -# Build after busybox since it's got a lightweight lspci -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -PCIUTILS_DEPENDENCIES += busybox -endif - define PCIUTILS_CONFIGURE_CMDS $(SED) 's/wget --no-timestamping/wget/' $(PCIUTILS_DIR)/update-pciids.sh $(SED) 's/uname -s/echo Linux/' \
Signature · 1 line
2.14.1
PATCH 20/50 package/busybox: invert dependency with ntp
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/ntp/ntp.mk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_NTP),ntp) \ $(if $(BR2_PACKAGE_PCIUTILS),pciutils) \ $(if $(BR2_PACKAGE_PROCPS_NG),procps-ng) \ $(if $(BR2_PACKAGE_PSMISC),psmisc) \
package/ntp/ntp.mk +1 -1
@@ -7,7 +7,7 @@ NTP_VERSION_MAJOR = 4.2 NTP_VERSION = $(NTP_VERSION_MAJOR).8p11 NTP_SITE = https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-$(NTP_VERSION_MAJOR) -NTP_DEPENDENCIES = host-pkgconf libevent $(if $(BR2_PACKAGE_BUSYBOX),busybox) +NTP_DEPENDENCIES = host-pkgconf libevent NTP_LICENSE = NTP NTP_LICENSE_FILES = COPYRIGHT NTP_CONF_ENV = ac_cv_lib_md5_MD5Init=no
Signature · 1 line
2.14.1
PATCH 21/50 package/busybox: invert dependency with nnamp
In reply to Yann E. MORINWe only need that dependency whan nmap's ncat is enabled.
For consistency, we add a dependency on nmap, not a suboption of it, to have a dependency list in busybox that is only about packages, and directly associates the upper-case package variable to the lower-case package name, e.g. NMAP <-> nmap.
--- package/busybox/busybox.mk | 1 + package/nmap/nmap.mk | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_NMAP),nmap) \ $(if $(BR2_PACKAGE_NTP),ntp) \ $(if $(BR2_PACKAGE_PCIUTILS),pciutils) \ $(if $(BR2_PACKAGE_PROCPS_NG),procps-ng) \
package/nmap/nmap.mk +0 -6
@@ -76,12 +76,6 @@ else NMAP_CONF_OPTS += --without-nping endif -# If we are going to install ncat, ensure Busybox gets built/installed -# before, so that this package overrides Busybox nc. -ifeq ($(BR2_PACKAGE_NMAP_NCAT)$(BR2_PACKAGE_BUSYBOX),yy) -NMAP_DEPENDENCIES += busybox -endif - # Add a symlink to "nc" if none of the competing netcats is selected ifeq ($(BR2_PACKAGE_NMAP_NCAT):$(BR2_PACKAGE_NETCAT)$(BR2_PACKAGE_NETCAT_OPENBSD),y:) define NMAP_INSTALL_NCAT_SYMLINK
Signature · 1 line
2.14.1
PATCH 22/50 package/busybox: invert dependency with netcat-openbsd
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/netcat-openbsd/netcat-openbsd.mk | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_NETCAT_OPENSBSD),netcat-openbsd) \ $(if $(BR2_PACKAGE_NMAP),nmap) \ $(if $(BR2_PACKAGE_NTP),ntp) \ $(if $(BR2_PACKAGE_PCIUTILS),pciutils) \
package/netcat-openbsd/netcat-openbsd.mk +0 -6
@@ -10,12 +10,6 @@ NETCAT_OPENBSD_LICENSE = BSD-3-Clause NETCAT_OPENBSD_LICENSE_FILES = debian/copyright NETCAT_OPENBSD_DEPENDENCIES = host-pkgconf libbsd -# Ensure Busybox gets built/installed before, so that this package -# overrides Busybox nc. -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -NETCAT_OPENBSD_DEPENDENCIES += busybox -endif - define NETCAT_OPENBSD_APPLY_DEBIAN_PATCHES if [ -d $(@D)/debian/patches ]; then \ $(APPLY_PATCHES) $(@D) $(@D)/debian/patches *.dpatch; \
Signature · 1 line
2.14.1
PATCH 23/50 package/busybox: invert dependency with netcat
In reply to Yann E. MORINSince netcat would be installed before busybox, we don't need to remove a pre-installed 'nc' anymore.
If another netcat implementation (e.g. netcat-openbsd) is also enabled, there is no way to tell which would win in the end, especially when we add TLPB, in which case that will be forbidden.
So, we don't need to remove anything anymore.
--- package/busybox/busybox.mk | 1 + package/netcat/netcat.mk | 13 ------------- 2 files changed, 1 insertion(+), 13 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_NETCAT),netcat) \ $(if $(BR2_PACKAGE_NETCAT_OPENSBSD),netcat-openbsd) \ $(if $(BR2_PACKAGE_NMAP),nmap) \ $(if $(BR2_PACKAGE_NTP),ntp) \
package/netcat/netcat.mk +0 -13
@@ -9,17 +9,4 @@ NETCAT_SITE = http://downloads.sourceforge.net/project/netcat/netcat/$(NETCAT_VE NETCAT_LICENSE = GPL-2.0+ NETCAT_LICENSE_FILES = COPYING -# Ensure Busybox gets built/installed before, so that this package -# overrides Busybox nc. -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -NETCAT_DEPENDENCIES += busybox -endif - -# Netcat doesn't overwrite a pre-existing 'nc' (e.g. from busybox) so -# force-remove it. -define NETCAT_RMOVE_NC_LINK - rm -f $(TARGET_DIR)/usr/bin/nc -endef -NETCAT_PRE_INSTALL_TARGET_HOOKS += NETCAT_RMOVE_NC_LINK - $(eval $(autotools-package))
Signature · 1 line
2.14.1
PATCH 24/50 package/busybox: invert dependency with net-tools
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/net-tools/net-tools.mk | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_NET_TOOLS),net-tools) \ $(if $(BR2_PACKAGE_NETCAT),netcat) \ $(if $(BR2_PACKAGE_NETCAT_OPENSBSD),netcat-openbsd) \ $(if $(BR2_PACKAGE_NMAP),nmap) \
package/net-tools/net-tools.mk +2 -6
@@ -10,11 +10,6 @@ NET_TOOLS_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) NET_TOOLS_LICENSE = GPL-2.0+ NET_TOOLS_LICENSE_FILES = COPYING -# Install after busybox for the full-blown versions -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -NET_TOOLS_DEPENDENCIES += busybox -endif - define NET_TOOLS_CONFIGURE_CMDS (cd $(@D); yes "" | ./configure.sh config.in ) endef
@@ -40,7 +35,8 @@ define NET_TOOLS_BUILD_CMDS endef # install renames conflicting binaries, update does not -# ifconfig & route reside in /sbin for busybox +# ifconfig & route reside in /sbin for busybox, so ennsure we don't end +# up with two versions of those. define NET_TOOLS_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) update mv -f $(TARGET_DIR)/bin/ifconfig $(TARGET_DIR)/sbin/ifconfig
Signature · 1 line
2.14.1
PATCH 25/50 package/busybox: invert dependency with mtd
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/mtd/mtd.mk | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_MTD),mtd) \ $(if $(BR2_PACKAGE_NET_TOOLS),net-tools) \ $(if $(BR2_PACKAGE_NETCAT),netcat) \ $(if $(BR2_PACKAGE_NETCAT_OPENSBSD),netcat-openbsd) \
package/mtd/mtd.mk +0 -4
@@ -31,10 +31,6 @@ else MTD_CONF_OPTS += --disable-tests --disable-install-tests endif -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -MTD_DEPENDENCIES += busybox -endif - # If extended attributes are required, the acl package must # also be enabled which will also include the attr package. ifeq ($(BR2_PACKAGE_ACL),y)
Signature · 1 line
2.14.1
PATCH 26/50 package/busybox: invert dependency with lsof
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/lsof/lsof.mk | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_LSOF),lsof) \ $(if $(BR2_PACKAGE_MTD),mtd) \ $(if $(BR2_PACKAGE_NET_TOOLS),net-tools) \ $(if $(BR2_PACKAGE_NETCAT),netcat) \
package/lsof/lsof.mk +0 -3
@@ -13,9 +13,6 @@ LSOF_LICENSE = lsof license # It is also defined in 00README, but that contains a lot of other cruft. LSOF_LICENSE_FILES = dialects/linux/dproto.h -# Make certain full-blown lsof gets built after the busybox version (1.20+) -LSOF_DEPENDENCIES += $(if $(BR2_PACKAGE_BUSYBOX),busybox) - ifeq ($(BR2_USE_WCHAR),) define LSOF_CONFIGURE_WCHAR_FIXUPS $(SED) 's,^#define[[:space:]]*HASWIDECHAR.*,#undef HASWIDECHAR,' \
Signature · 1 line
2.14.1
PATCH 27/50 package/busybox: invert dependency with less
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/less/less.mk | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_LESS),less) \ $(if $(BR2_PACKAGE_LSOF),lsof) \ $(if $(BR2_PACKAGE_MTD),mtd) \ $(if $(BR2_PACKAGE_NET_TOOLS),net-tools) \
package/less/less.mk +1 -2
@@ -8,8 +8,7 @@ LESS_VERSION = 487 LESS_SITE = $(BR2_GNU_MIRROR)/less LESS_LICENSE = GPL-3.0+ LESS_LICENSE_FILES = COPYING -# Build after busybox, full-blown is better -LESS_DEPENDENCIES = ncurses $(if $(BR2_PACKAGE_BUSYBOX),busybox) +LESS_DEPENDENCIES = ncurses define LESS_INSTALL_TARGET_CMDS $(INSTALL) -m 0755 $(@D)/less $(TARGET_DIR)/usr/bin/less
Signature · 1 line
2.14.1
PATCH 28/50 package/busybox: invert dependency with kmod
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/kmod/kmod.mk | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_KMOD),kmod) \ $(if $(BR2_PACKAGE_LESS),less) \ $(if $(BR2_PACKAGE_LSOF),lsof) \ $(if $(BR2_PACKAGE_MTD),mtd) \
package/kmod/kmod.mk +0 -3
@@ -49,9 +49,6 @@ ifeq ($(BR2_PACKAGE_KMOD_TOOLS),y) KMOD_LICENSE := $(KMOD_LICENSE), GPL-2.0+ (tools) KMOD_LICENSE_FILES += COPYING -# take precedence over busybox implementation -KMOD_DEPENDENCIES += $(if $(BR2_PACKAGE_BUSYBOX),busybox) - # /sbin is really /usr/sbin with merged /usr, so adjust relative symlink ifeq ($(BR2_ROOTFS_MERGED_USR),y) KMOD_BIN_PATH = ../bin/kmod
Signature · 1 line
2.14.1
PATCH 29/50 package/busybox: invert dependency with iputils
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/iputils/iputils.mk | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_IPUTILS),iputils) \ $(if $(BR2_PACKAGE_KMOD),kmod) \ $(if $(BR2_PACKAGE_LESS),less) \ $(if $(BR2_PACKAGE_LSOF),lsof) \
package/iputils/iputils.mk +0 -6
@@ -17,12 +17,6 @@ IPUTILS_LICENSE = GPL-2.0+, BSD-3-Clause, BSD-4-Clause # Only includes a license file for BSD IPUTILS_LICENSE_FILES = ninfod/COPYING -# Build after busybox so target ends up with this package's full -# versions of the applications instead of busybox applets. -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -IPUTILS_DEPENDENCIES += busybox -endif - IPUTILS_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) USE_SYSFS=no USE_IDN=no\ CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
Signature · 1 line
2.14.1
PATCH 30/50 package/busybox: invert dependency with iproute2
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/iproute2/iproute2.mk | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_IPROUTE2),iproute2) \ $(if $(BR2_PACKAGE_IPUTILS),iputils) \ $(if $(BR2_PACKAGE_KMOD),kmod) \ $(if $(BR2_PACKAGE_LESS),less) \
package/iproute2/iproute2.mk +0 -6
@@ -12,12 +12,6 @@ IPROUTE2_DEPENDENCIES = host-bison host-flex host-pkgconf \ IPROUTE2_LICENSE = GPL-2.0+ IPROUTE2_LICENSE_FILES = COPYING -# If both iproute2 and busybox are selected, make certain we win -# the fight over who gets to have their utils actually installed. -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -IPROUTE2_DEPENDENCIES += busybox -endif - ifeq ($(BR2_PACKAGE_ELFUTILS),y) IPROUTE2_DEPENDENCIES += elfutils endif
Signature · 1 line
2.14.1
PATCH 31/50 package/busybox: invert dependency with ifupdown
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/ifupdown/ifupdown.mk | 1 - 2 files changed, 1 insertion(+), 1 deletion(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_IFUPDOWN),ifupdown) \ $(if $(BR2_PACKAGE_IPROUTE2),iproute2) \ $(if $(BR2_PACKAGE_IPUTILS),iputils) \ $(if $(BR2_PACKAGE_KMOD),kmod) \
package/ifupdown/ifupdown.mk +0 -1
@@ -7,7 +7,6 @@ IFUPDOWN_VERSION = 0.8.16 IFUPDOWN_SOURCE = ifupdown_$(IFUPDOWN_VERSION).tar.xz IFUPDOWN_SITE = http://snapshot.debian.org/archive/debian/20160922T165503Z/pool/main/i/ifupdown -IFUPDOWN_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox) IFUPDOWN_LICENSE = GPL-2.0+ IFUPDOWN_LICENSE_FILES = COPYING
Signature · 1 line
2.14.1
PATCH 32/50 package/busybox: invert dependency with ifplugd
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/ifplugd/ifplugd.mk | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_IFPLUGD),ifplugd) \ $(if $(BR2_PACKAGE_IFUPDOWN),ifupdown) \ $(if $(BR2_PACKAGE_IPROUTE2),iproute2) \ $(if $(BR2_PACKAGE_IPUTILS),iputils) \
package/ifplugd/ifplugd.mk +0 -5
@@ -15,11 +15,6 @@ IFPLUGD_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-exec IFPLUGD_CONF_OPTS = --disable-lynx --with-initdir=/etc/init.d/ IFPLUGD_DEPENDENCIES = libdaemon -# Prefer big ifplugd -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -IFPLUGD_DEPENDENCIES += busybox -endif - define IFPLUGD_INSTALL_FIXUP $(INSTALL) -D -m 0644 $(@D)/conf/ifplugd.conf $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \ $(SED) 's^\(ARGS=.*\)w^\1^' $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \
Signature · 1 line
2.14.1
PATCH 33/50 package/busybox: invert dependency with ifenslave
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/ifenslave/ifenslave.mk | 1 - 2 files changed, 1 insertion(+), 1 deletion(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_IFENSLAVE),ifenslave) \ $(if $(BR2_PACKAGE_IFPLUGD),ifplugd) \ $(if $(BR2_PACKAGE_IFUPDOWN),ifupdown) \ $(if $(BR2_PACKAGE_IPROUTE2),iproute2) \
package/ifenslave/ifenslave.mk +0 -1
@@ -9,7 +9,6 @@ IFENSLAVE_SOURCE = ifenslave_$(IFENSLAVE_VERSION).tar.xz IFENSLAVE_SITE = http://snapshot.debian.org/archive/debian/20170102T091407Z/pool/main/i/ifenslave IFENSLAVE_LICENSE = GPL-3.0+ IFENSLAVE_LICENSE_FILES = debian/copyright -IFENSLAVE_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox) # shell script, so nothing to build
Signature · 1 line
2.14.1
PATCH 34/50 package/busybox: invert dependency with i2c-tools
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/i2c-tools/i2c-tools.mk | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_I2C_TOOLS),i2c-tools) \ $(if $(BR2_PACKAGE_IFENSLAVE),ifenslave) \ $(if $(BR2_PACKAGE_IFPLUGD),ifplugd) \ $(if $(BR2_PACKAGE_IFUPDOWN),ifupdown) \
package/i2c-tools/i2c-tools.mk +0 -4
@@ -19,10 +19,6 @@ ifeq ($(BR2_PACKAGE_PYTHON3),y) I2C_TOOLS_DEPENDENCIES += python3 endif -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -I2C_TOOLS_DEPENDENCIES += busybox -endif - ifeq ($(BR2_STATIC_LIBS),y) I2C_TOOLS_MAKE_OPTS += BUILD_DYNAMIC_LIB=0 USE_STATIC_LIB=1 endif
Signature · 1 line
2.14.1
PATCH 35/50 package/busybox: invert dependency with gzip
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/gzip/gzip.mk | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_GZIP),gzip) \ $(if $(BR2_PACKAGE_I2C_TOOLS),i2c-tools) \ $(if $(BR2_PACKAGE_IFENSLAVE),ifenslave) \ $(if $(BR2_PACKAGE_IFPLUGD),ifplugd) \
package/gzip/gzip.mk +0 -2
@@ -9,8 +9,6 @@ GZIP_SOURCE = gzip-$(GZIP_VERSION).tar.xz GZIP_SITE = $(BR2_GNU_MIRROR)/gzip # Some other tools expect it to be in /bin GZIP_CONF_OPTS = --exec-prefix=/ -# Prefer full gzip over potentially lightweight/slower from busybox -GZIP_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox) GZIP_LICENSE = GPL-3.0+ GZIP_LICENSE_FILES = COPYING GZIP_CONF_ENV += gl_cv_func_fflush_stdin=yes
Signature · 1 line
2.14.1
PATCH 36/50 package/busybox: invert dependency with grep
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/grep/grep.mk | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_GREP),grep) \ $(if $(BR2_PACKAGE_GZIP),gzip) \ $(if $(BR2_PACKAGE_I2C_TOOLS),i2c-tools) \ $(if $(BR2_PACKAGE_IFENSLAVE),ifenslave) \
package/grep/grep.mk +0 -5
@@ -25,9 +25,4 @@ else GREP_CONF_OPTS += --disable-perl-regexp endif -# Full grep preferred over busybox grep -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -GREP_DEPENDENCIES += busybox -endif - $(eval $(autotools-package))
Signature · 1 line
2.14.1
PATCH 37/50 package/busybox: invert dependency with gawk
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/gawk/gawk.mk | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_GAWK),gawk) \ $(if $(BR2_PACKAGE_GREP),grep) \ $(if $(BR2_PACKAGE_GZIP),gzip) \ $(if $(BR2_PACKAGE_I2C_TOOLS),i2c-tools) \
package/gawk/gawk.mk +0 -5
@@ -11,11 +11,6 @@ GAWK_DEPENDENCIES = host-gawk GAWK_LICENSE = GPL-3.0+ GAWK_LICENSE_FILES = COPYING -# Prefer full-blown gawk over busybox awk -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -GAWK_DEPENDENCIES += busybox -endif - ifeq ($(BR2_PACKAGE_LIBSIGSEGV),y) GAWK_DEPENDENCIES += libsigsegv endif
Signature · 1 line
2.14.1
PATCH 38/50 package/busybox: invert dependency with fbset
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/fbset/fbset.mk | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_FBSET),fbset) \ $(if $(BR2_PACKAGE_GAWK),gawk) \ $(if $(BR2_PACKAGE_GREP),grep) \ $(if $(BR2_PACKAGE_GZIP),gzip) \
package/fbset/fbset.mk +0 -5
@@ -9,11 +9,6 @@ FBSET_SITE = http://users.telenet.be/geertu/Linux/fbdev FBSET_DEPENDENCIES = host-bison host-flex FBSET_LICENSE = GPL-2.0 -# Make sure full fbset wins over busybox fbset -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -FBSET_DEPENDENCIES += busybox -endif - define FBSET_BUILD_CMDS $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) endef
Signature · 1 line
2.14.1
PATCH 39/50 package/busybox: invert dependency with e2fsprogs
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/e2fsprogs/e2fsprogs.mk | 10 ++-------- 2 files changed, 3 insertions(+), 8 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_E2FSPROGS),e2fsprogs) \ $(if $(BR2_PACKAGE_FBSET),fbset) \ $(if $(BR2_PACKAGE_GAWK),gawk) \ $(if $(BR2_PACKAGE_GREP),grep) \
package/e2fsprogs/e2fsprogs.mk +2 -8
@@ -17,12 +17,6 @@ E2FSPROGS_INSTALL_STAGING = YES E2FSPROGS_DEPENDENCIES = host-pkgconf util-linux HOST_E2FSPROGS_DEPENDENCIES = host-pkgconf host-util-linux -# If both e2fsprogs and busybox are selected, make certain e2fsprogs -# wins the fight over who gets to have their utils actually installed -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -E2FSPROGS_DEPENDENCIES += busybox -endif - # e4defrag doesn't build on older systems like RHEL5.x, and we don't # need it on the host anyway. # Disable fuse2fs as well to avoid carrying over deps, and it's unused
@@ -35,8 +29,8 @@ HOST_E2FSPROGS_CONF_OPTS = \ --enable-symlink-install \ --disable-testio-debug -# Set the binary directories to "/bin" and "/sbin" to override programs -# installed by busybox. +# Set the binary directories to "/bin" and "/sbin", as busybox does, +# so that we do not end up with two versions of e2fs tools. E2FSPROGS_CONF_OPTS = \ --bindir=/bin \ --sbindir=/sbin \
Signature · 1 line
2.14.1
PATCH 40/50 package/busybox: invert dependency with dos2unix
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/dos2unix/dos2unix.mk | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_DOS2UNIX),dos2unix) \ $(if $(BR2_PACKAGE_E2FSPROGS),e2fsprogs) \ $(if $(BR2_PACKAGE_FBSET),fbset) \ $(if $(BR2_PACKAGE_GAWK),gawk) \
package/dos2unix/dos2unix.mk +1 -3
@@ -8,9 +8,7 @@ DOS2UNIX_VERSION = 7.4.0 DOS2UNIX_SITE = http://waterlan.home.xs4all.nl/dos2unix DOS2UNIX_LICENSE = BSD-2-Clause DOS2UNIX_LICENSE_FILES = COPYING.txt -DOS2UNIX_DEPENDENCIES = \ - $(if $(BR2_PACKAGE_BUSYBOX),busybox) \ - $(TARGET_NLS_DEPENDENCIES) +DOS2UNIX_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) ifeq ($(BR2_SYSTEM_ENABLE_NLS),y) DOS2UNIX_MAKE_OPTS += ENABLE_NLS=1
Signature · 1 line
2.14.1
PATCH 41/50 package/busybox: invert dependency with diffutils
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/diffutils/diffutils.mk | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_DIFFUTILS),diffutils) \ $(if $(BR2_PACKAGE_DOS2UNIX),dos2unix) \ $(if $(BR2_PACKAGE_E2FSPROGS),e2fsprogs) \ $(if $(BR2_PACKAGE_FBSET),fbset) \
package/diffutils/diffutils.mk +0 -4
@@ -17,8 +17,4 @@ ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y) DIFFUTILS_CONF_ENV += gl_cv_func_getopt_gnu=yes endif -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -DIFFUTILS_DEPENDENCIES += busybox -endif - $(eval $(autotools-package))
Signature · 1 line
2.14.1
PATCH 42/50 package/busybox: invert dependency with debianutils
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/debianutils/debianutils.mk | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_DEBIANUTILS),debianutils) \ $(if $(BR2_PACKAGE_DIFFUTILS),diffutils) \ $(if $(BR2_PACKAGE_DOS2UNIX),dos2unix) \ $(if $(BR2_PACKAGE_E2FSPROGS),e2fsprogs) \
package/debianutils/debianutils.mk +0 -2
@@ -8,8 +8,6 @@ DEBIANUTILS_VERSION = 4.8.1 DEBIANUTILS_SOURCE = debianutils_$(DEBIANUTILS_VERSION).tar.xz DEBIANUTILS_SITE = http://snapshot.debian.org/archive/debian/20161118T033019Z/pool/main/d/debianutils DEBIANUTILS_CONF_OPTS = --exec-prefix=/ -# Make sure we override the busybox tools, such as which -DEBIANUTILS_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox) DEBIANUTILS_LICENSE = GPL-2.0+, SMAIL (savelog) DEBIANUTILS_LICENSE_FILES = debian/copyright
Signature · 1 line
2.14.1
PATCH 43/50 package/busybox: invert dependency with dcron
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/dcron/dcron.mk | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_DCRON),dcron) \ $(if $(BR2_PACKAGE_DEBIANUTILS),debianutils) \ $(if $(BR2_PACKAGE_DIFFUTILS),diffutils) \ $(if $(BR2_PACKAGE_DOS2UNIX),dos2unix) \
package/dcron/dcron.mk +0 -5
@@ -9,11 +9,6 @@ DCRON_SITE = http://www.jimpryor.net/linux/releases # The source code does not specify the version of the GPL that is used. DCRON_LICENSE = GPL -# Overwrite cron-related Busybox commands if available -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -DCRON_DEPENDENCIES = busybox -endif - define DCRON_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) endef
Signature · 1 line
2.14.1
PATCH 44/50 package/busybox: invert dependency with cpio
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/cpio/cpio.mk | 1 - 2 files changed, 1 insertion(+), 1 deletion(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_CPIO),cpio) \ $(if $(BR2_PACKAGE_DCRON),dcron) \ $(if $(BR2_PACKAGE_DEBIANUTILS),debianutils) \ $(if $(BR2_PACKAGE_DIFFUTILS),diffutils) \
package/cpio/cpio.mk +0 -1
@@ -7,7 +7,6 @@ CPIO_VERSION = 2.12 CPIO_SITE = $(BR2_GNU_MIRROR)/cpio CPIO_CONF_OPTS = --bindir=/bin -CPIO_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox) CPIO_LICENSE = GPL-3.0+ CPIO_LICENSE_FILES = COPYING
Signature · 1 line
2.14.1
PATCH 45/50 package/busybox: invert dependency with coreutils
In reply to Yann E. MORIN--- package/busybox/busybox.mk | 1 + package/coreutils/coreutils.mk | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_COREUTILS),coreutils) \ $(if $(BR2_PACKAGE_CPIO),cpio) \ $(if $(BR2_PACKAGE_DCRON),dcron) \ $(if $(BR2_PACKAGE_DEBIANUTILS),debianutils) \
package/coreutils/coreutils.mk +0 -6
@@ -59,12 +59,6 @@ COREUTILS_BIN_PROGS = cat chgrp chmod chown cp date dd df dir echo false \ kill link ln ls mkdir mknod mktemp mv nice printenv pwd rm rmdir \ vdir sleep stty sync touch true uname join -# If both coreutils and busybox are selected, make certain coreutils -# wins the fight over who gets to have their utils actually installed. -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -COREUTILS_DEPENDENCIES = busybox -endif - ifeq ($(BR2_PACKAGE_ACL),y) COREUTILS_DEPENDENCIES += acl else
Signature · 1 line
2.14.1
PATCH 46/50 package/busybox: invert dependency with binutils
In reply to Yann E. MORIN--- package/binutils/binutils.mk | 5 ----- package/busybox/busybox.mk | 1 + 2 files changed, 1 insertion(+), 5 deletions(-)
package/binutils/binutils.mk +0 -5
@@ -72,11 +72,6 @@ ifeq ($(BR2_ARM_CPU_ARMV7M)$(BR2_OPTIMIZE_S),yy) BINUTILS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O2" endif -# Install binutils after busybox to prefer full-blown utilities -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -BINUTILS_DEPENDENCIES += busybox -endif - ifeq ($(BR2_PACKAGE_ZLIB),y) BINUTILS_DEPENDENCIES += zlib endif
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_BINUTILS),binutils) \ $(if $(BR2_PACKAGE_COREUTILS),coreutils) \ $(if $(BR2_PACKAGE_CPIO),cpio) \ $(if $(BR2_PACKAGE_DCRON),dcron) \
Signature · 1 line
2.14.1
cover busybox: invert dependencies
Hello All!
Currently, the issue that busybox may install the same executables as those from other packages, is handled in all those packages. This is not very practical.
Furthermore, this means that those packages all overwrite the busybox-installed applets, which means that this triggers the no-two-packages-touch-the-same-file rule. So far, this is only a warning, but when we eventually go with TLPB, we'll have to enforce that rule.
But busybox can be told to be smart, and not replace existing files during installation. This is in fact what we do with a hook, which uses 'sed' to force the 'noclobber' install. But now, Busybox upstream has proper support for doing a noclobber install without artifice. So we backport those required patches, and get rid of our existing hook.
All other commits are just trivial dependency exchange order between a package and busybox, except for syslog-ng, for which we must take care that busybox does not overwrite the init script.
Eventually, we also add a new dependency onto the 'attr' package, to solve a potential conflict with the setfattr applet.
Inverting a single dependency could introduce a dependency loop, which would be resolved by a latter inversion. For example, we could have that initial situation:
B ---> A ---> busybox
\_________/With the first inversion, we'd get to now have a dependency loop:
B ---> A ---> busybox ---> B
Then with the second inversion, we'd resolve that loop:
busybox ---> B ---> A
\_________/Detecting and avoiding those loops is not trivial, because they may imply multiple intermediate packages between B and A. So, the series does not attempt to prevent those loops, as they are entirely resolved by the end of the series anyway.
Regards,
Yann E. MORIN.
The following changes since commit 9086de8e15d98abda64850c52b66756646e0c2f4
qt5charts: fix license information (2018-07-02 23:02:42 +0200)
are available in the git repository at:
git://git.buildroot.org/~ymorin/git/buildroot.git
for you to fetch changes up to d5b2e0eebf27fe994337e2c966f8ecf63849f3e1
support/scripts: don't draw most of busybox' dependencies (2018-07-02 23:07:03 +0200)
----------------------------------------------------------------
Yann E. MORIN (50):
package/busybox: backport upstream patch to fix install-noclobber package/busybox: invert dependency with whois package/busybox: invert dependency with wget package/busybox: invert dependency with vim package/busybox: invert dependency with util-linux package/busybox: invert dependency with usbutils package/busybox: invert dependency with unzip package/busybox: invert dependency with traceroute package/busybox: invert dependency with tftpd package/busybox: invert dependency with tar package/busybox: invert dependency with sysvinit package/busybox: invert dependency with systemd package/busybox: invert dependency with syslog-ng package/busybox: invert dependency with sysklogd package/busybox: invert dependency with start-stop-daemon package/busybox: invert dependency with rsyslogd package/busybox: invert dependency with psmisc package/busybox: invert dependency with procps-ng package/busybox: invert dependency with pciutils package/busybox: invert dependency with ntp package/busybox: invert dependency with nnamp package/busybox: invert dependency with netcat-openbsd package/busybox: invert dependency with netcat package/busybox: invert dependency with net-tools package/busybox: invert dependency with mtd package/busybox: invert dependency with lsof package/busybox: invert dependency with less package/busybox: invert dependency with kmod package/busybox: invert dependency with iputils package/busybox: invert dependency with iproute2 package/busybox: invert dependency with ifupdown package/busybox: invert dependency with ifplugd package/busybox: invert dependency with ifenslave package/busybox: invert dependency with i2c-tools package/busybox: invert dependency with gzip package/busybox: invert dependency with grep package/busybox: invert dependency with gawk package/busybox: invert dependency with fbset package/busybox: invert dependency with e2fsprogs package/busybox: invert dependency with dos2unix package/busybox: invert dependency with diffutils package/busybox: invert dependency with debianutils package/busybox: invert dependency with dcron package/busybox: invert dependency with cpio package/busybox: invert dependency with coreutils package/busybox: invert dependency with binutils package/busybox: invert dependency with bc package/busybox: invert dependency with bash package/busybox: add dependency on attr support/scripts: don't draw most of busybox' dependencies
package/bash/bash.mk | 4 +- package/bc/bc.mk | 5 -- package/binutils/binutils.mk | 5 -- ...tall-respect-noclobber-for-script-wrapper.patch | 62 +++++++++++++++++++++ ...stall-accept-more-than-one-install-option.patch | 63 +++++++++++++++++++++ ...m-add-rule-to-install-without-cloberring-.patch | 29 ++++++++++ ...lets-install-don-t-try-to-install-nothing.patch | 65 ++++++++++++++++++++++ package/busybox/busybox.mk | 64 ++++++++++++++++++--- package/coreutils/coreutils.mk | 6 -- package/cpio/cpio.mk | 1 - package/dcron/dcron.mk | 5 -- package/debianutils/debianutils.mk | 2 - package/diffutils/diffutils.mk | 4 -- package/dos2unix/dos2unix.mk | 4 +- package/e2fsprogs/e2fsprogs.mk | 10 +--- package/fbset/fbset.mk | 5 -- package/gawk/gawk.mk | 5 -- package/grep/grep.mk | 5 -- package/gzip/gzip.mk | 2 - package/i2c-tools/i2c-tools.mk | 4 -- package/ifenslave/ifenslave.mk | 1 - package/ifplugd/ifplugd.mk | 5 -- package/ifupdown/ifupdown.mk | 1 - package/iproute2/iproute2.mk | 6 -- package/iputils/iputils.mk | 6 -- package/kmod/kmod.mk | 3 - package/less/less.mk | 3 +- package/lsof/lsof.mk | 3 - package/mtd/mtd.mk | 4 -- package/net-tools/net-tools.mk | 8 +-- package/netcat-openbsd/netcat-openbsd.mk | 6 -- package/netcat/netcat.mk | 13 ----- package/nmap/nmap.mk | 6 -- package/ntp/ntp.mk | 2 +- package/pciutils/pciutils.mk | 5 -- package/procps-ng/procps-ng.mk | 10 +--- package/psmisc/psmisc.mk | 5 -- package/rsyslog/rsyslog.mk | 5 -- package/start-stop-daemon/start-stop-daemon.mk | 3 +- package/sysklogd/sysklogd.mk | 5 -- package/syslog-ng/syslog-ng.mk | 5 -- package/systemd/systemd.mk | 6 -- package/sysvinit/sysvinit.mk | 5 -- package/tar/tar.mk | 7 +-- package/tftpd/tftpd.mk | 5 -- package/traceroute/traceroute.mk | 5 -- package/unzip/unzip.mk | 2 - package/usbutils/usbutils.mk | 5 -- package/util-linux/util-linux.mk | 6 -- package/vim/vim.mk | 5 +- package/wget/wget.mk | 5 -- package/whois/whois.mk | 3 +- support/scripts/graph-depends | 10 ++++ 53 files changed, 299 insertions(+), 220 deletions(-) create mode 100644 package/busybox/0003-applets-install-respect-noclobber-for-script-wrapper.patch create mode 100644 package/busybox/0004-applets-install-accept-more-than-one-install-option.patch create mode 100644 package/busybox/0005-build-system-add-rule-to-install-without-cloberring-.patch create mode 100644 package/busybox/0006-applets-install-don-t-try-to-install-nothing.patch
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 47/50 package/busybox: invert dependency with bc
--- package/bc/bc.mk | 5 ----- package/busybox/busybox.mk | 1 + 2 files changed, 1 insertion(+), 5 deletions(-)
package/bc/bc.mk +0 -5
@@ -11,9 +11,4 @@ BC_DEPENDENCIES = host-flex BC_LICENSE = GPL-2.0+, LGPL-2.1+ BC_LICENSE_FILES = COPYING COPYING.LIB -# Build after busybox so target ends up with bc's "dc" version -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -BC_DEPENDENCIES += busybox -endif - $(eval $(autotools-package))
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_BC),bc) \ $(if $(BR2_PACKAGE_BINUTILS),binutils) \ $(if $(BR2_PACKAGE_COREUTILS),coreutils) \ $(if $(BR2_PACKAGE_CPIO),cpio) \
Signature · 1 line
2.14.1
PATCH 48/50 package/busybox: invert dependency with bash
In reply to Yann E. MORIN--- package/bash/bash.mk | 4 +--- package/busybox/busybox.mk | 1 + 2 files changed, 2 insertions(+), 3 deletions(-)
package/bash/bash.mk +1 -3
@@ -6,9 +6,7 @@ BASH_VERSION = 4.4.18 BASH_SITE = $(BR2_GNU_MIRROR)/bash -# Build after since bash is better than busybox shells -BASH_DEPENDENCIES = ncurses readline host-bison \ - $(if $(BR2_PACKAGE_BUSYBOX),busybox) +BASH_DEPENDENCIES = ncurses readline host-bison BASH_CONF_OPTS = --with-installed-readline --without-bash-malloc BASH_LICENSE = GPL-3.0+ BASH_LICENSE_FILES = COPYING
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_BASH),bash) \ $(if $(BR2_PACKAGE_BC),bc) \ $(if $(BR2_PACKAGE_BINUTILS),binutils) \ $(if $(BR2_PACKAGE_COREUTILS),coreutils) \
Signature · 1 line
2.14.1
PATCH 49/50 package/busybox: add dependency on attr
In reply to Yann E. MORINattr and busybox may each install setfattr, so attr must be installed before busybox.
--- package/busybox/busybox.mk | 1 + 1 file changed, 1 insertion(+)
package/busybox/busybox.mk +1 -0
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_ATTR),attr) \ $(if $(BR2_PACKAGE_BASH),bash) \ $(if $(BR2_PACKAGE_BC),bc) \ $(if $(BR2_PACKAGE_BINUTILS),binutils) \
Signature · 1 line
2.14.1
PATCH 50/50 support/scripts: don't draw most of busybox' dependencies
In reply to Yann E. MORINSince most dependencies of busybox' are there to guarantee that busybox' does not install applets that are already provided by other packages, they are not really functional dependencies, and mostly clutter the dependency graph.
Only the dependencies on libraries are interested, so that is all we keep.
Even though that function is only called with pkg set to 'busybox', we still pass it as an argument, for symetry with the other functions that removes the dependencies of a package.
--- support/scripts/graph-depends | 10 ++++++++++ 1 file changed, 10 insertions(+)
support/scripts/graph-depends +10 -0
@@ -181,6 +181,14 @@ def remove_mandatory_deps(pkg, deps): return [p for p in deps[pkg] if p not in ['toolchain', 'skeleton']] +# This function removes all dependencies of busybox, except its +# dependencies on libraries (of which linux-pam) and host-pkgconf. +def remove_busybox_deps(pkg, deps): + busybox_dep_whitelist = ['linux-pam', 'host-pkgconf'] + return [p for p in deps[pkg] + if p.startswith('lib') or p in busybox_dep_whitelist] + + # This function will check that there is no loop in the dependency chain # As a side effect, it builds up the dependency cache. def check_circular_deps(deps):
@@ -211,6 +219,8 @@ def check_circular_deps(deps): # This functions trims down the dependency list of all packages. # It applies in sequence all the dependency-elimination methods. def remove_extra_deps(deps, transitive): + if 'busybox' in list(deps.keys()): + deps['busybox'] = remove_busybox_deps('busybox', deps) for pkg in list(deps.keys()): if not pkg == 'all': deps[pkg] = remove_mandatory_deps(pkg, deps)
Signature · 1 line
2.14.1
PATCH 1/50 package/busybox: backport upstream patch to fix install-noclobber
In reply to Yann E. MORINYann,
Quoted 6 lines · Yann E. MORIN
Currently, we shoehorn the noclobber option with a sed call, but upstream has applied a set of 4 patches that adds support to do an install without clobbering.
Backport those patches, and use the new install rule.
Quoted 7 lines
Note that the 3rd and 6th patches do not seem like they would be usefull to backport, but a user may well have a custom config that enables shell wrappers, or installs no wrapper (to install then at runtime), so it still makes sense to backport them (especially since the 3rd was part of the noclobber series upstream, and the 6th, a fix of it).
Signed-off-by "Yann E. MORIN" <[email protected]>
PATCH 50/50 support/scripts: don't draw most of busybox' dependencies
In reply to Yann E. MORINYann,
Quoted 5 lines · Yann E. MORIN
Since most dependencies of busybox' are there to guarantee that busybox' does not install applets that are already provided by other packages, they are not really functional dependencies, and mostly clutter the dependency graph.
Quoted 8 lines
Only the dependencies on libraries are interested, so that is all we keep.
Even though that function is only called with pkg set to 'busybox', we still pass it as an argument, for symetry with the other functions that removes the dependencies of a package.
Signed-off-by "Yann E. MORIN" <[email protected]>
PATCH 1/50 package/busybox: backport upstream patch to fix install-noclobber
In reply to Yann E. MORINHi Yann,
Quoted 5 lines · Yann E. MORIN
Currently, we shoehorn the noclobber option with a sed call, but upstream has applied a set of 4 patches that adds support to do an install without clobbering.
Backport those patches, and use the new install rule.
Busybox 1.29.0 is out now. You can bump instead of backport.
baruch
Quoted 7 lines
Note that the 3rd and 6th patches do not seem like they would be usefull to backport, but a user may well have a custom config that enables shell wrappers, or installs no wrapper (to install then at runtime), so it still makes sense to backport them (especially since the 3rd was part of the noclobber series upstream, and the 6th, a fix of it).
Signed-off-by "Yann E. MORIN" <[email protected]>
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -PATCH 10/50 package/busybox: invert dependency with tar
In reply to Yann E. MORINHi Yann,
Quoted 23 lines · Yann E. MORIN
Signed-off-by Yann E. MORIN <[email protected]>--- package/busybox/busybox.mk | 1 + package/tar/tar.mk | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-)package/busybox/busybox.mk +1
-0@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_TAR),tar) \ $(if $(BR2_PACKAGE_TFTPD),tftpd) \ $(if $(BR2_PACKAGE_TRACEROUTE),traceroute) \ $(if $(BR2_PACKAGE_UNZIP),unzip) \package/tar/tar.mk +0
-0
package/tar/tar.mk TAR_VERSION = 1.29 · line 11
Quoted 5 lines
package/tar/tar.mk +1
-1@@ -8,16 +8,11 @@ TAR_VERSION = 1.29 TAR_SOURCE = tar-$(TAR_VERSION).tar.xz TAR_SITE = $(BR2_GNU_MIRROR)/tar # busybox installs in /bin, so we need tar to install as well in /bin -# so that it overrides the Busybox symlinks. +# so that it we don't end up with two different tar
Redundant 'it'.
baruch
Quoted 12 lines
package/tar/tar.mk +0
-5TAR_CONF_OPTS = --exec-prefix=/ TAR_LICENSE = GPL-3.0+ TAR_LICENSE_FILES = COPYING -# Prefer full-blown tar over buybox's version -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -TAR_DEPENDENCIES += busybox -endif - ifeq ($(BR2_PACKAGE_ACL),y) TAR_DEPENDENCIES += acl TAR_CONF_OPTS += --with-posix-acls
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -PATCH 24/50 package/busybox: invert dependency with net-tools
In reply to Yann E. MORINHi Yann,
Quoted 35 lines · Yann E. MORIN
Signed-off-by Yann E. MORIN <[email protected]>--- package/busybox/busybox.mk | 1 + package/net-tools/net-tools.mk | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-)package/busybox/busybox.mk +1
-0@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_NET_TOOLS),net-tools) \ $(if $(BR2_PACKAGE_NETCAT),netcat) \ $(if $(BR2_PACKAGE_NETCAT_OPENSBSD),netcat-openbsd) \ $(if $(BR2_PACKAGE_NMAP),nmap) \package/net-tools/net-tools.mk +0
-5@@ -10,11 +10,6 @@ NET_TOOLS_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) NET_TOOLS_LICENSE = GPL-2.0+ NET_TOOLS_LICENSE_FILES = COPYING -# Install after busybox for the full-blown versions -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -NET_TOOLS_DEPENDENCIES += busybox -endif - define NET_TOOLS_CONFIGURE_CMDS (cd $(@D); yes "" | ./configure.sh config.in ) endef
package/net-tools/net-tools.mk define NET_TOOLS_BUILD_CMDS · line 38
Quoted 5 lines
package/net-tools/net-tools.mk +1
-1@@ -40,7 +35,8 @@ define NET_TOOLS_BUILD_CMDS endef # install renames conflicting binaries, update does not -# ifconfig & route reside in /sbin for busybox +# ifconfig & route reside in /sbin for busybox, so ennsure we don't end
s/ennsure/ensure/
package/net-tools/net-tools.mk define NET_TOOLS_BUILD_CMDS · line 42
Quoted 4 lines
package/net-tools/net-tools.mk +1
-0+# up with two versions of those. define NET_TOOLS_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) update mv -f $(TARGET_DIR)/bin/ifconfig $(TARGET_DIR)/sbin/ifconfig
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -PATCH 5/50 package/busybox: invert dependency with util-linux
In reply to Yann E. MORINQuoted 40 lines
From: "Yann Morin" <[email protected]>
To: "buildroot" <[email protected]>
Cc: "Yann Morin" <[email protected]>
Sent: Monday, July 2, 2018 6:11:39 PM
Subject: [Buildroot] [PATCH 05/50] package/busybox: invert dependency with util-linuxSigned-off-by Yann E. MORIN <[email protected]>---
package/busybox/busybox.mk| 1 +package/util-linux/util-linux.mk| 6 ------2 files changed, 1 insertion(+), 6 deletions(-)package/busybox/busybox.mk +1
-0@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_UTIL_LINUX),util-linux) \ $(if $(BR2_PACKAGE_VIM),vim) \ $(if $(BR2_PACKAGE_WGET),wget) \ $(if $(BR2_PACKAGE_WHOIS),whois)package/util-linux/util-linux.mk +0
-0@@ -31,12 +31,6 @@ HOST_UTIL_LINUX_DEPENDENCIES = host-pkgconf # We also don't want the host-python dependency
HOST_UTIL_LINUX_CONF_OPTS= --without-pythonpackage/util-linux/util-linux.mk +0
-6-# If both util-linux and busybox are selected, make certain util-linux -# wins the fight over who gets to have their utils actually installed -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -UTIL_LINUX_DEPENDENCIES += busybox -endif -# Prevent the installation from attempting to move shared libraries from # ${usrlib_execdir} (
/usr/lib) to ${libdir} (/lib), since both paths are
Quoted 3 lines
# the same when merged usr is in use. -- 2.14.1
Signature · 3 lines
Carlos Santos (Casantos) - DATACOM, P&D ?Marched towards the enemy, spear upright, armed with the certainty that only the ignorant can have.? ? Epitaph of a volunteer
PATCH 11/50 package/busybox: invert dependency with sysvinit
In reply to Yann E. MORINQuoted 38 lines
From: "Yann Morin" <[email protected]>
To: "buildroot" <[email protected]>
Cc: "Yann Morin" <[email protected]>
Sent: Monday, July 2, 2018 6:11:45 PM
Subject: [Buildroot] [PATCH 11/50] package/busybox: invert dependency with sysvinitSigned-off-by Yann E. MORIN <[email protected]>---
package/busybox/busybox.mk| 1 +package/sysvinit/sysvinit.mk| 5 -----2 files changed, 1 insertion(+), 5 deletions(-)package/busybox/busybox.mk +1
-0@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_SYSVINIT),sysvinit) \ $(if $(BR2_PACKAGE_TAR),tar) \ $(if $(BR2_PACKAGE_TFTPD),tftpd) \ $(if $(BR2_PACKAGE_TRACEROUTE),traceroute) \package/sysvinit/sysvinit.mk +0
-5@@ -13,11 +13,6 @@ SYSVINIT_LICENSE_FILES = COPYING SYSVINIT_MAKE_OPTS = SYSROOT=$(STAGING_DIR) -# Override BusyBox implementations if BusyBox is enabled. -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -SYSVINIT_DEPENDENCIES = busybox -endif - ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
Quoted 4 lines
SYSVINIT_DEPENDENCIES+= libselinuxSYSVINIT_MAKE_OPTS+= WITH_SELINUX="yes" --
2.14.1
Signature · 3 lines
Carlos Santos (Casantos) - DATACOM, P&D ?Marched towards the enemy, spear upright, armed with the certainty that only the ignorant can have.? ? Epitaph of a volunteer
PATCH 50/50 support/scripts: don't draw most of busybox' dependencies
In reply to Yann E. MORINQuoted 28 lines
From: "Yann Morin" <[email protected]>
To: "buildroot" <[email protected]>
Cc: "Yann Morin" <[email protected]>
Sent: Monday, July 2, 2018 6:12:24 PM
Subject: [Buildroot] [PATCH 50/50] support/scripts: don't draw most of busybox' dependenciesSince most dependencies of busybox' are there to guarantee that busybox' does not install applets that are already provided by other packages, they are not really functional dependencies, and mostly clutter the dependency graph.
Only the dependencies on libraries are interested, so that is all we keep.
Even though that function is only called with pkg set to 'busybox', we still pass it as an argument, for symetry with the other functions that removes the dependencies of a package.
Signed-off-by "Yann E. MORIN" <[email protected]>---
support/scripts/graph-depends | 10 ++++++++++1 file changed, 10 insertions(+)support/scripts/graph-depends +0
-0
support/scripts/graph-depends def remove_mandatory_deps(pkg, deps): · line 185
Quoted 5 lines
support/scripts/graph-depends +2
-0@@ -181,6 +181,14 @@ def remove_mandatory_deps(pkg, deps): return [p for p in deps[pkg] if p not in ['toolchain', 'skeleton']] +# This function removes all dependencies of busybox, except its +# dependencies on libraries (of which linux-pam) and host-pkgconf.
^^^^^^^^^^^^^^^^^^
missing text?[...]
Signature · 3 lines
Carlos Santos (Casantos) - DATACOM, P&D ?Marched towards the enemy, spear upright, armed with the certainty that only the ignorant can have.? ? Epitaph of a volunteer
PATCH 21/50 package/busybox: invert dependency with nnamp
In reply to Yann E. MORINQuoted 5 lines
From: "Yann Morin" <[email protected]>
To: "buildroot" <[email protected]>
Cc: "Yann Morin" <[email protected]>
Sent: Monday, July 2, 2018 6:11:55 PM
Subject: [Buildroot] [PATCH 21/50] package/busybox: invert dependency with nnamp
nnamp -> nmap
Quoted 39 lines
We only need that dependency whan nmap's ncat is enabled.
For consistency, we add a dependency on nmap, not a suboption of it, to have a dependency list in busybox that is only about packages, and directly associates the upper-case package variable to the lower-case package name, e.g. NMAP <-> nmap.
Signed-off-by Yann E. MORIN <[email protected]>---
package/busybox/busybox.mk| 1 +package/nmap/nmap.mk| 6 ------2 files changed, 1 insertion(+), 6 deletions(-)package/busybox/busybox.mk +1
-0@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_NMAP),nmap) \ $(if $(BR2_PACKAGE_NTP),ntp) \ $(if $(BR2_PACKAGE_PCIUTILS),pciutils) \ $(if $(BR2_PACKAGE_PROCPS_NG),procps-ng) \package/nmap/nmap.mk +0
-0@@ -76,12 +76,6 @@ else
NMAP_CONF_OPTS+= --without-nping
endifpackage/nmap/nmap.mk +0
-6-# If we are going to install ncat, ensure Busybox gets built/installed -# before, so that this package overrides Busybox nc. -ifeq ($(BR2_PACKAGE_NMAP_NCAT)$(BR2_PACKAGE_BUSYBOX),yy) -NMAP_DEPENDENCIES += busybox -endif -
Quoted 6 lines
# Add a symlink to "nc" if none of the competing netcats is selected ifeq ($(BR2_PACKAGE_NMAP_NCAT):$(BR2_PACKAGE_NETCAT)$(BR2_PACKAGE_NETCAT_OPENBSD),y:) define
NMAP_INSTALL_NCAT_SYMLINK
--
2.14.1
Signature · 3 lines
Carlos Santos (Casantos) - DATACOM, P&D ?Marched towards the enemy, spear upright, armed with the certainty that only the ignorant can have.? ? Epitaph of a volunteer
PATCH 15/50 package/busybox: invert dependency with start-stop-daemon
In reply to Yann E. MORINQuoted 37 lines
From: "Yann Morin" <[email protected]>
To: "buildroot" <[email protected]>
Cc: "Yann Morin" <[email protected]>
Sent: Monday, July 2, 2018 6:11:49 PM
Subject: [Buildroot] [PATCH 15/50] package/busybox: invert dependency with start-stop-daemonSigned-off-by Yann E. MORIN <[email protected]>---
package/busybox/busybox.mk| 1 +package/start-stop-daemon/start-stop-daemon.mk| 3 +--2 files changed, 2 insertions(+), 2 deletions(-)package/busybox/busybox.mk +1
-0@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_START_STOP_DAEMON),start-stop-daemon) \ $(if $(BR2_PACKAGE_SYSKLOGD),sysklogd) \ $(if $(BR2_PACKAGE_SYSLOG_NG),syslog-ng) \ $(if $(BR2_PACKAGE_SYSTEMD),systemd) \package/start-stop-daemon/start-stop-daemon.mk +1
-2@@ -19,8 +19,7 @@ START_STOP_DAEMON_CONF_ENV = \ dpkg_cv_va_copy=yes \ dpkg_cv_c99_snprintf=yes \ DPKG_DEVEL_MODE=1 -START_STOP_DAEMON_DEPENDENCIES = host-pkgconf \ - $(if $(BR2_PACKAGE_BUSYBOX),busybox) +START_STOP_DAEMON_DEPENDENCIES = host-pkgconf # Patching m4/dpkg-arch.m4
Quoted 4 lines
START_STOP_DAEMON_AUTORECONF= YESSTART_STOP_DAEMON_LICENSE= GPL-2.0+
--
2.14.1
Signature · 3 lines
Carlos Santos (Casantos) - DATACOM, P&D ?Marched towards the enemy, spear upright, armed with the certainty that only the ignorant can have.? ? Epitaph of a volunteer
PATCH 1/50 package/busybox: backport upstream patch to fix install-noclobber
In reply to Baruch SiachBaruch, All,
On 2018-07-03 08:25 +0300, Baruch Siach spake thusly:
Quoted 8 lines · Yann E. MORIN
Quoted 5 lines
Currently, we shoehorn the noclobber option with a sed call, but upstream has applied a set of 4 patches that adds support to do an install without clobbering.
Backport those patches, and use the new install rule.
Busybox 1.29.0 is out now. You can bump instead of backport.
OK, so it has been ~3 months I have been sitting ion this series waiting for upstream to cut out a release. Seeing they were not, I decided to refresh the series and send it.
And now, they reelases a new version right before I sent the series. Dang... Muahaha! :-)
Thanks for the review, I'll update the series starting with a bump.
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 50/50 support/scripts: don't draw most of busybox' dependencies
In reply to Carlos SantosCarlos, All,
On 2018-07-03 08:20 -0300, Carlos Santos spake thusly:
Quoted 31 lines
Quoted 31 lines
From: "Yann Morin" <[email protected]>
To: "buildroot" <[email protected]>
Cc: "Yann Morin" <[email protected]>
Sent: Monday, July 2, 2018 6:12:24 PM
Subject: [Buildroot] [PATCH 50/50] support/scripts: don't draw most of busybox' dependenciesSince most dependencies of busybox' are there to guarantee that busybox' does not install applets that are already provided by other packages, they are not really functional dependencies, and mostly clutter the dependency graph.
Only the dependencies on libraries are interested, so that is all we keep.
Even though that function is only called with pkg set to 'busybox', we still pass it as an argument, for symetry with the other functions that removes the dependencies of a package.
Signed-off-by "Yann E. MORIN" <[email protected]>---
support/scripts/graph-depends | 10 ++++++++++1 file changed, 10 insertions(+)support/scripts/graph-depends +0
-0@@ -181,6 +181,14 @@ def remove_mandatory_deps(pkg, deps): return [p for p in deps[pkg] if p not in ['toolchain', 'skeleton']]
Quoted 4 lines
support/scripts/graph-depends def remove_mandatory_deps(pkg, deps): · line 185
Quoted 2 lines
support/scripts/graph-depends +2
-0+# This function removes all dependencies of busybox, except its +# dependencies on libraries (of which linux-pam) and host-pkgconf.^^^^^^^^^^^^^^^^^^ missing text?
No: linux-pam is a library too, But it belongs to the "libraries" ensemble, so I really meant to write what I wrote. :-)
It only gets a special mention because it does not start with 'lib'.
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 50/50 support/scripts: don't draw most of busybox' dependencies
Quoted 46 lines
From: "Yann Morin" <[email protected]>
To: "DATACOM" <[email protected]>
Cc: "buildroot" <[email protected]>
Sent: Tuesday, July 3, 2018 8:41:57 AM
Subject: Re: [Buildroot] [PATCH 50/50] support/scripts: don't draw most of busybox' dependenciesCarlos, All,
On 2018-07-03 08:20 -0300, Carlos Santos spake thusly:
Quoted 32 lines
Quoted 32 lines
From: "Yann Morin" <[email protected]>
To: "buildroot" <[email protected]>
Cc: "Yann Morin" <[email protected]>
Sent: Monday, July 2, 2018 6:12:24 PM
Subject: [Buildroot] [PATCH 50/50] support/scripts: don't draw most of busybox' dependenciesSince most dependencies of busybox' are there to guarantee that busybox' does not install applets that are already provided by other packages, they are not really functional dependencies, and mostly clutter the dependency graph.
Only the dependencies on libraries are interested, so that is all we keep.
Even though that function is only called with pkg set to 'busybox', we still pass it as an argument, for symetry with the other functions that removes the dependencies of a package.
Signed-off-by "Yann E. MORIN" <[email protected]>---
support/scripts/graph-depends | 10 ++++++++++1 file changed, 10 insertions(+)support/scripts/graph-depends +0
-0@@ -181,6 +181,14 @@ def remove_mandatory_deps(pkg, deps): return [p for p in deps[pkg] if p not in ['toolchain', 'skeleton']]Quoted 4 lines
support/scripts/graph-depends def remove_mandatory_deps(pkg, deps): · line 185
Quoted 2 lines
support/scripts/graph-depends +2
-0+# This function removes all dependencies of busybox, except its +# dependencies on libraries (of which linux-pam) and host-pkgconf.^^^^^^^^^^^^^^^^^^ missing text?
Quoted 4 lines
No: linux-pam is a library too, But it belongs to the "libraries" ensemble, so I really meant to write what I wrote. :-)
It only gets a special mention because it does not start with 'lib'.
Ok, but the text looks a bit strange to me. What about something like "dependencies on libraries (e.g. libpam, from linux-pam) ..."?
Signature · 3 lines
Carlos Santos (Casantos) - DATACOM, P&D ?Marched towards the enemy, spear upright, armed with the certainty that only the ignorant can have.? ? Epitaph of a volunteer
cover busybox: invert dependencies
In reply to Yann E. MORINQuoted 5 lines · Yann E. MORIN
Hello All!
Currently, the issue that busybox may install the same executables as those from other packages, is handled in all those packages. This is not very practical.
The reverse is also not very practical...
Quoted 5 lines
Furthermore, this means that those packages all overwrite the busybox-installed applets, which means that this triggers the no-two-packages-touch-the-same-file rule. So far, this is only a warning, but when we eventually go with TLPB, we'll have to enforce that rule.
Although we've already discussed this a couple of times in BR meetings, we
never found a solution that is really satisfactory.
However, I have a new idea now...
IIUC, with PPS, there is no real problem with two packages touching the same
file, as long as the dependency is explicitly tracked in Buildroot, right? Because when it is explicitly tracked, the file created by package A will always be present in package B's PPS when package B is built, so it's perfectly reproducible.
For the case of two packages *writing* the same file (without looking at the
previous contents, i.e. not appending or anything like that), the constraint is even lighter: there doesn't really need to be an explicit dependency, we just have to make sure that when the rsync is done, the order is predictable. That's just a matter of sorting. But also, we want it not just to be predictable, but also in the "correct" order, e.g. if busybox is a dependency, it should be rsync'd before another package that creates the same executable. The rsync will then overwrite it (because the rsyncs are not done in parallel).
For that particular ordering, I think there could be a simpler solution than
enumerating all those dependencies in busybox.mk. We could give each package a priority, and use that priority to order the rsync's. The default priority would be e.g. 5, and busybox would get e.g. 3. That way, we only need BUSYBOX_PRIORITY = 3 in busybox.mk, and everything is solved.
Obviously, it would make the infra more complicated :-)
We would then also need to change the "two packages touching same file" check
to be error out only if they have the same priority.
For the other packages that install the same file (e.g ntp <> openntpd, the
different nmaps, ...), we can then use the same simple resolution rather than explicitly encoding the dependency. We would still need to choose the priority (which is a bit arbitrary), we would still need to detect the conflict, and we would still need to verify that this conflict really is of the "overwrite" type and not the "append" type. So it's not a silver bullet, but it might make maintenance a little bit simpler.
What do you think?
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
cover busybox: invert dependencies
Arnout, all,
On 2018-07-04 00:56 +0200, Arnout Vandecappelle spake thusly:
Quoted 8 lines · Yann E. MORIN
Quoted 5 lines
Hello All!
Currently, the issue that busybox may install the same executables as those from other packages, is handled in all those packages. This is not very practical.
The reverse is also not very practical...
The reverse means that the dependencies are sprinkled in all those packages, while now they are all nicely gathered in a single location. At least, I believe this is a maintenance improvment; not an enormous gain, but still.
Quoted 8 lines
Quoted 5 lines
Furthermore, this means that those packages all overwrite the busybox-installed applets, which means that this triggers the no-two-packages-touch-the-same-file rule. So far, this is only a warning, but when we eventually go with TLPB, we'll have to enforce that rule.
Although we've already discussed this a couple of times in BR meetings, we
never found a solution that is really satisfactory.
I'm not sure what you mean by "satisfactory". If speakign about busybox, I think this solution is technically better than the alternative, current situation, at least becasue we know that busybox will enforce a noclobber install (heck, this was already the case with our hook), while we can not easily audit all packages to be sure they properly install their executalbes.
For example, the attr package we current have will forcibly overwrite any destination file without unlinking it, thus effectively replacing /usr/bin/setfattr withits own code, and if that fiel happens to be a hardlink or a symlink to busybox, we lose busybox. See
https://bugs.busybox.net/show_bug.cgi?id=10986
So, I think it is better to rely on a single package we know behaves correctly.
Quoted 7 lines
However, I have a new idea now...
IIUC, with PPS, there is no real problem with two packages touching the same
file, as long as the dependency is explicitly tracked in Buildroot, right? Because when it is explicitly tracked, the file created by package A will always be present in package B's PPS when package B is built, so it's perfectly reproducible.
Yes.
Quoted 8 lines
For the case of two packages *writing* the same file (without looking at the
previous contents, i.e. not appending or anything like that), the constraint is even lighter: there doesn't really need to be an explicit dependency, we just have to make sure that when the rsync is done, the order is predictable. That's just a matter of sorting. But also, we want it not just to be predictable, but also in the "correct" order, e.g. if busybox is a dependency, it should be rsync'd before another package that creates the same executable. The rsync will then overwrite it (because the rsyncs are not done in parallel).
Should be, yes.
Quoted 5 lines
For that particular ordering, I think there could be a simpler solution than
enumerating all those dependencies in busybox.mk. We could give each package a priority, and use that priority to order the rsync's. The default priority would be e.g. 5, and busybox would get e.g. 3. That way, we only needBUSYBOX_PRIORITY= 3 in busybox.mk, and everything is solved.
Please, no, do not introduce a notion of 'priority'. That is ugly, and it does not work in the long term, because it is hard to maintain. One pain point of priorities is detecting how a change in A's priority will play against the priorities of all other A-related packages, especially since there will no longer be a mean to find those relations (as the FOO_DEPENDENCIES would get dropped in all A-related packages).
If I go even further, we have ntp and openntp and busybox that can provide an ntp implementation, so we'd have to have non-conflicting priorities for all those three. And then (just an example) what about apache, lighttpd, nginx, and busybox, which may all install an httpd executable?
So we'd have to also find a priority for that set, and now that new priority for busybox may come conflicting with the priority we found for the ntp implementations...
Then factor in all other busybox-related packages that will in turn need a priority.
So, this is a pain...
So, priorities are just re-inventing a kind of dependencies, except it is not a build dependency, but an install dependency... Let's call a cat a cat. We may introduce a FOO_INSTALL_DEPENDENCIES variable, where foo would list the packages that must be installed before it, but which may be built in any order witho itself.
But this is still an explicit list, and this does not get us much further than what we already have...
Quoted 1 line
Obviously, it would make the infra more complicated :-)
Yes, and the gain is so minimal, without even considering the risk of incorrectness, that I don't believe this is a good idea...
Quoted 11 lines
We would then also need to change the "two packages touching same file" check
to be error out only if they have the same priority.For the other packages that install the same file (e.g ntp <> openntpd, the
different nmaps, ...), we can then use the same simple resolution rather than explicitly encoding the dependency. We would still need to choose the priority (which is a bit arbitrary), we would still need to detect the conflict, and we would still need to verify that this conflict really is of the "overwrite" type and not the "append" type. So it's not a silver bullet, but it might make maintenance a little bit simpler.
Quoted 1 line
What do you think?
Besides the arguments I explained above, I'm afraid my gut-feeling is really bad about that... :-/
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
cover busybox: invert dependencies
Quoted 10 lines · Yann E. MORIN
Arnout, all,
On 2018-07-04 00:56 +0200, Arnout Vandecappelle spake thusly:
Quoted 7 lines · Yann E. MORIN
Quoted 5 lines
Hello All!
Currently, the issue that busybox may install the same executables as those from other packages, is handled in all those packages. This is not very practical.
Quoted 6 lines
Quoted 1 line
The reverse is also not very practical...
The reverse means that the dependencies are sprinkled in all those packages, while now they are all nicely gathered in a single location. At least, I believe this is a maintenance improvment; not an enormous gain, but still.
It certainly is!
Quoted 9 lines
Quoted 8 lines
Quoted 5 lines
Furthermore, this means that those packages all overwrite the busybox-installed applets, which means that this triggers the no-two-packages-touch-the-same-file rule. So far, this is only a warning, but when we eventually go with TLPB, we'll have to enforce that rule.
Although we've already discussed this a couple of times in BR meetings, we
never found a solution that is really satisfactory.
Quoted 6 lines
I'm not sure what you mean by "satisfactory". If speakign about busybox, I think this solution is technically better than the alternative, current situation, at least becasue we know that busybox will enforce a noclobber install (heck, this was already the case with our hook), while we can not easily audit all packages to be sure they properly install their executalbes.
Well, normally the proper way to install is to overwrite what was previously there.
So the solution is not entirely satisfactory because it only really applies to
busybox. Which means that for other packages, we either have to perform manual install commands to prevent overwriting, or we have to revert the dependency (i.e., for busybox, the first package wins, while for other packages, the last package wins...).
Also note that in the latter case, we should allow two packages to touch the
same file, at least as long as there is a dependency between them. Indeed, if there is a dependency, then the build result is reproducible, so there is no need to disallow it. Checking for that will get hairy though...
Quoted 5 lines
For example, the attr package we current have will forcibly overwrite any destination file without unlinking it, thus effectively replacing
/usr/bin/setfattrwithits own code, and if that fiel happens to be a hardlink or a symlink to busybox, we lose busybox. Seehttps://bugs.busybox.net/show_bug.cgi?id=10986
*That* is really a bug in the attr package. If it would use install, like the
rest of the world does, it wouldn't have this problem.
Quoted 10 lines
So, I think it is better to rely on a single package we know behaves correctly.
Quoted 7 lines
However, I have a new idea now...
IIUC, with PPS, there is no real problem with two packages touching the same
file, as long as the dependency is explicitly tracked in Buildroot, right? Because when it is explicitly tracked, the file created by package A will always be present in package B's PPS when package B is built, so it's perfectly reproducible.
Huh weird, I thought this was a new idea I had tonight, but apparently I
already thought of it yesterday :-)
Quoted 20 lines
Yes.
Quoted 8 lines
For the case of two packages *writing* the same file (without looking at the
previous contents, i.e. not appending or anything like that), the constraint is even lighter: there doesn't really need to be an explicit dependency, we just have to make sure that when the rsync is done, the order is predictable. That's just a matter of sorting. But also, we want it not just to be predictable, but also in the "correct" order, e.g. if busybox is a dependency, it should be rsync'd before another package that creates the same executable. The rsync will then overwrite it (because the rsyncs are not done in parallel).Should be, yes.
Quoted 5 lines
For that particular ordering, I think there could be a simpler solution than
enumerating all those dependencies in busybox.mk. We could give each package a priority, and use that priority to order the rsync's. The default priority would be e.g. 5, and busybox would get e.g. 3. That way, we only needBUSYBOX_PRIORITY= 3 in busybox.mk, and everything is solved.
Quoted 6 lines
Please, no, do not introduce a notion of 'priority'. That is ugly, and it does not work in the long term, because it is hard to maintain. One pain point of priorities is detecting how a change in A's priority will play against the priorities of all other A-related packages, especially since there will no longer be a mean to find those relations (as the
FOO_DEPENDENCIESwould get dropped in all A-related packages).
Hm, good point.
Quoted 21 lines
If I go even further, we have ntp and openntp and busybox that can provide an ntp implementation, so we'd have to have non-conflicting priorities for all those three. And then (just an example) what about apache, lighttpd, nginx, and busybox, which may all install an httpd executable?
So we'd have to also find a priority for that set, and now that new priority for busybox may come conflicting with the priority we found for the ntp implementations...
Then factor in all other busybox-related packages that will in turn need a priority.
So, this is a pain...
So, priorities are just re-inventing a kind of dependencies, except it is not a build dependency, but an install dependency... Let's call a cat a cat. We may introduce a
FOO_INSTALL_DEPENDENCIESvariable, where foo would list the packages that must be installed before it, but which may be built in any order witho itself.
Quoted 7 lines
But this is still an explicit list, and this does not get us much further than what we already have...
Quoted 1 line
Obviously, it would make the infra more complicated :-)
Yes, and the gain is so minimal, without even considering the risk of incorrectness, that I don't believe this is a good idea...
OK. Just thought I'd shoot the idea.
Regards,
Arnout
Quoted 20 lines
Quoted 12 lines
We would then also need to change the "two packages touching same file" check
to be error out only if they have the same priority.For the other packages that install the same file (e.g ntp <> openntpd, the
different nmaps, ...), we can then use the same simple resolution rather than explicitly encoding the dependency. We would still need to choose the priority (which is a bit arbitrary), we would still need to detect the conflict, and we would still need to verify that this conflict really is of the "overwrite" type and not the "append" type. So it's not a silver bullet, but it might make maintenance a little bit simpler.Quoted 1 line
What do you think?
Besides the arguments I explained above, I'm afraid my gut-feeling is really bad about that... :-/
Regards,
Yann E. MORIN.
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 16/50 package/busybox: invert dependency with rsyslogd
In reply to Yann E. MORINQuoted 5 lines
From: "Yann Morin" <[email protected]>
To: "buildroot" <[email protected]>
Cc: "Yann Morin" <[email protected]>
Sent: Monday, July 2, 2018 6:11:50 PM
Subject: [Buildroot] [PATCH 16/50] package/busybox: invert dependency with rsyslogd
Should be "rsyslog", not "rsyslogd", in the commit title.
Quoted 36 lines
Signed-off-by Yann E. MORIN <[email protected]>---
package/busybox/busybox.mk| 1 +package/rsyslog/rsyslog.mk| 5 -----2 files changed, 1 insertion(+), 5 deletions(-)package/busybox/busybox.mk +1
-0@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_RSYSLOGD),rsyslogd) \ $(if $(BR2_PACKAGE_START_STOP_DAEMON),start-stop-daemon) \ $(if $(BR2_PACKAGE_SYSKLOGD),sysklogd) \ $(if $(BR2_PACKAGE_SYSLOG_NG),syslog-ng) \package/rsyslog/rsyslog.mk +0
-5@@ -17,11 +17,6 @@ RSYSLOG_PLUGINS = imdiag imfile impstats imptcp \ RSYSLOG_CONF_OPTS = --disable-generate-man-pages \ $(foreach x,$(call qstrip,$(RSYSLOG_PLUGINS)),--enable-$(x)) -# Build after BusyBox -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -RSYSLOG_DEPENDENCIES += busybox -endif - ifeq ($(BR2_PACKAGE_GNUTLS),y)
RSYSLOG_DEPENDENCIES+= gnutlsRSYSLOG_CONF_OPTS+= --enable-gnutls --
2.14.1
Signature · 1 line
Carlos Santos (Casantos) - DATACOM, P&D
cover busybox: invert dependencies
In reply to Arnout VandecappelleArnout, All,
On 2018-07-06 00:54 +0200, Arnout Vandecappelle spake thusly:
Quoted 11 lines · Yann E. MORIN
Quoted 10 lines
Arnout, all,
On 2018-07-04 00:56 +0200, Arnout Vandecappelle spake thusly:
Quoted 7 lines · Yann E. MORIN
Quoted 5 lines
Hello All!
Currently, the issue that busybox may install the same executables as those from other packages, is handled in all those packages. This is not very practical.
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
The reverse is also not very practical...
The reverse means that the dependencies are sprinkled in all those packages, while now they are all nicely gathered in a single location. At least, I believe this is a maintenance improvment; not an enormous gain, but still.
It certainly is!
Is that an ACK of the patch? ;-p
Quoted 17 lines
Quoted 10 lines
Quoted 9 lines
Quoted 6 lines
Furthermore, this means that those packages all overwrite the busybox-installed applets, which means that this triggers the no-two-packages-touch-the-same-file rule. So far, this is only a warning, but when we eventually go with TLPB, we'll have to enforce that rule.
Although we've already discussed this a couple of times in BR meetings, we
never found a solution that is really satisfactory.Quoted 6 lines
I'm not sure what you mean by "satisfactory". If speakign about busybox, I think this solution is technically better than the alternative, current situation, at least becasue we know that busybox will enforce a noclobber install (heck, this was already the case with our hook), while we can not easily audit all packages to be sure they properly install their executalbes.
Quoted 7 lines
Well, normally the proper way to install is to overwrite what was previously there.
So the solution is not entirely satisfactory because it only really applies to
busybox. Which means that for other packages, we either have to perform manual install commands to prevent overwriting, or we have to revert the dependency (i.e., for busybox, the first package wins, while for other packages, the last package wins...).
OK, I see what you meant. Right.
Quoted 6 lines
Also note that in the latter case, we should allow two packages to touch the
same file, at least as long as there is a dependency between them. Indeed, if there is a dependency, then the build result is reproducible, so there is no need to disallow it. Checking for that will get hairy though...
Quoted 8 lines
Quoted 5 lines
For example, the attr package we current have will forcibly overwrite any destination file without unlinking it, thus effectively replacing
/usr/bin/setfattrwithits own code, and if that fiel happens to be a hardlink or a symlink to busybox, we lose busybox. Seehttps://bugs.busybox.net/show_bug.cgi?id=10986*That* is really a bug in the attr package. If it would use install, like the
rest of the world does, it wouldn't have this problem.
And I fixed it, and upstream also fixed it by switching to automake.
My point was that we can't audit all such packages, because it is a pita.
Quoted 5 lines
Quoted 5 lines
So, I think it is better to rely on a single package we know behaves correctly.
Quoted 2 lines
However, I have a new idea now...
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
IIUC, with PPS, there is no real problem with two packages touching the same
file, as long as the dependency is explicitly tracked in Buildroot, right? Because when it is explicitly tracked, the file created by package A will always be present in package B's PPS when package B is built, so it's perfectly reproducible.Huh weird, I thought this was a new idea I had tonight, but apparently I
already thought of it yesterday :-)
Eh! I'm more of the other kind of people, going lke "hmm, what was I thinking minutes ago? It was super important and so exceptional, too bad I can't remember..." ;-)
Yes, we could relax the rule, to say that a package can only modify files in {,/usr}/{,s}bin, but modifing (replacing/appending) to a file in any other location is forbidden.
But that is still not very nice either. Say, two packages install /sbin/httpd, and the two want to install its config file /etc/httpd.conf The first replacement is OK, the second is not.
But as you say, hat causes issues is appending, not replacing. So, we could further relax, saying "replacing is OK, not appending", but then how do we differentiate an append from a replace?
[--SNIP--]
Quoted 1 line
OK. Just thought I'd shoot the idea.
Yes, but we already have a lot of trouble even landing TLPB at all. Making the implementation even more complex can only postpone TLPB.
And ultimately, we can refine the implentation later, and then relax the restrictions. It is easier for user to upgrade to a more laxist implem, rather than going to a more restrictive one...
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 16/50 package/busybox: invert dependency with rsyslogd
In reply to Carlos SantosCarlos, All,
On 2018-07-05 22:58 -0300, Carlos Santos spake thusly:
Quoted 6 lines
Quoted 5 lines
From: "Yann Morin" <[email protected]>
To: "buildroot" <[email protected]>
Cc: "Yann Morin" <[email protected]>
Sent: Monday, July 2, 2018 6:11:50 PM
Subject: [Buildroot] [PATCH 16/50] package/busybox: invert dependency with rsyslogdShould be "rsyslog", not "rsyslogd", in the commit title.
Yip!...
Thanks! :-)
Regards,
Yann E. MORIN.
Quoted 39 lines
Quoted 36 lines
Signed-off-by Yann E. MORIN <[email protected]>---
package/busybox/busybox.mk| 1 +package/rsyslog/rsyslog.mk| 5 -----2 files changed, 1 insertion(+), 5 deletions(-)package/busybox/busybox.mk +1
-0@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \ # Packages that provide commands that may also be busybox applets: BUSYBOX_DEPENDENCIES = \ + $(if $(BR2_PACKAGE_RSYSLOGD),rsyslogd) \ $(if $(BR2_PACKAGE_START_STOP_DAEMON),start-stop-daemon) \ $(if $(BR2_PACKAGE_SYSKLOGD),sysklogd) \ $(if $(BR2_PACKAGE_SYSLOG_NG),syslog-ng) \package/rsyslog/rsyslog.mk +0
-5@@ -17,11 +17,6 @@ RSYSLOG_PLUGINS = imdiag imfile impstats imptcp \ RSYSLOG_CONF_OPTS = --disable-generate-man-pages \ $(foreach x,$(call qstrip,$(RSYSLOG_PLUGINS)),--enable-$(x)) -# Build after BusyBox -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -RSYSLOG_DEPENDENCIES += busybox -endif - ifeq ($(BR2_PACKAGE_GNUTLS),y)
RSYSLOG_DEPENDENCIES+= gnutlsRSYSLOG_CONF_OPTS+= --enable-gnutls --
2.14.1Signature · 1 line
Carlos Santos (Casantos) - DATACOM, P&D
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'