Drop unused host packages
cover Drop unused host packages
A lot of host packages are never built, because they don't have a Config.in option, and are never referenced in other packages' dependencies.
This series removes them to avoid maintaining unneeded code; they will still be in git history if some are needed again in the future.
The other motivation behind this cleanup is that I'm starting to think about a new proposal for speeding up the Makefile parsing, similar to what Thomas proposed here:
http://lists.busybox.net/pipermail/buildroot/2014-March/092548.html
As Thomas explained, this change would imply adding blind Config.in options for all host packages. It's quite a big change, so a little preliminary cleanup could help.
Julien Floret (24):
x11r7: drop unused host variants
sepolgen: drop unused host package
attr: drop unused host variant
directfb: drop unused host variant
erlang-goldrush: drop unused host variant
jsmin: drop unused host variant
libatomic_ops: drop unused host variant
libconfuse: drop unused host variant
libpthread-stubs: drop unused host variant
libsemanage: drop unused host variant
libsodium: drop unused host variant
lzip: drop unused host variant
pax-utils: drop unused host variant
perl-file-util: drop unused host variant
python-jinja2: drop unused host variant
python-mako: drop unused host variant
sdl_image: drop unused host variant
setools: drop unused host variant
xutil_util-macros: drop unused host variant
bzip2: drop unused host variant
python-markupsafe: drop unused host variant
sdl: drop unused host variant
sqlite: drop unused host variant
ustr: drop unused host variant
package/attr/attr.mk | 7 ---- package/bzip2/bzip2.mk | 15 ------- package/directfb/directfb.mk | 17 -------- package/erlang-goldrush/erlang-goldrush.mk | 1 - package/jsmin/jsmin.mk | 9 ----- package/libatomic_ops/libatomic_ops.mk | 1 - package/libconfuse/libconfuse.mk | 1 - package/libpthread-stubs/libpthread-stubs.mk | 1 - package/libsemanage/libsemanage.mk | 32 --------------- package/libsodium/libsodium.mk | 1 - package/lzip/lzip.mk | 14 ------- package/pax-utils/pax-utils.mk | 4 -- package/perl-file-util/perl-file-util.mk | 2 - package/python-jinja2/python-jinja2.mk | 3 -- package/python-mako/python-mako.mk | 4 -- package/python-markupsafe/python-markupsafe.mk | 1 - package/sdl/sdl.mk | 11 ------ package/sdl_image/sdl_image.mk | 12 ------ package/sepolgen/sepolgen.hash | 2 - package/sepolgen/sepolgen.mk | 30 -------------- package/setools/setools.mk | 46 ---------------------- package/sqlite/sqlite.mk | 1 - package/ustr/ustr.mk | 1 - package/x11r7/libxcb/libxcb.mk | 3 -- package/x11r7/xfont_encodings/xfont_encodings.mk | 1 - package/x11r7/xlib_libX11/xlib_libX11.mk | 6 --- package/x11r7/xlib_libXau/xlib_libXau.mk | 1 - package/x11r7/xlib_libXcursor/xlib_libXcursor.mk | 1 - package/x11r7/xlib_libXdmcp/xlib_libXdmcp.mk | 1 - package/x11r7/xlib_libXfixes/xlib_libXfixes.mk | 1 - package/x11r7/xlib_libXfont/xlib_libXfont.mk | 3 -- package/x11r7/xlib_libXrender/xlib_libXrender.mk | 1 - package/x11r7/xlib_libfontenc/xlib_libfontenc.mk | 1 - package/x11r7/xlib_libxkbfile/xlib_libxkbfile.mk | 1 - package/x11r7/xlib_xtrans/xlib_xtrans.mk | 1 - .../x11r7/xproto_fixesproto/xproto_fixesproto.mk | 1 - .../xproto_fontcacheproto/xproto_fontcacheproto.mk | 1 - .../x11r7/xproto_fontsproto/xproto_fontsproto.mk | 1 - .../x11r7/xproto_inputproto/xproto_inputproto.mk | 1 - package/x11r7/xproto_kbproto/xproto_kbproto.mk | 1 - .../x11r7/xproto_renderproto/xproto_renderproto.mk | 1 - .../x11r7/xproto_xcmiscproto/xproto_xcmiscproto.mk | 2 - package/x11r7/xproto_xextproto/xproto_xextproto.mk | 2 - .../xproto_xf86bigfontproto.mk | 1 - package/xutil_util-macros/xutil_util-macros.mk | 1 - 45 files changed, 249 deletions(-) delete mode 100644 package/sepolgen/sepolgen.hash delete mode 100644 package/sepolgen/sepolgen.mk
Signature · 1 line
2.1.0
PATCH 1/24 x11r7: drop unused host variants
--- package/x11r7/libxcb/libxcb.mk | 3 --- package/x11r7/xfont_encodings/xfont_encodings.mk | 1 - package/x11r7/xlib_libX11/xlib_libX11.mk | 6 ------ package/x11r7/xlib_libXau/xlib_libXau.mk | 1 - package/x11r7/xlib_libXcursor/xlib_libXcursor.mk | 1 - package/x11r7/xlib_libXdmcp/xlib_libXdmcp.mk | 1 - package/x11r7/xlib_libXfixes/xlib_libXfixes.mk | 1 - package/x11r7/xlib_libXfont/xlib_libXfont.mk | 3 --- package/x11r7/xlib_libXrender/xlib_libXrender.mk | 1 - package/x11r7/xlib_libfontenc/xlib_libfontenc.mk | 1 - package/x11r7/xlib_libxkbfile/xlib_libxkbfile.mk | 1 - package/x11r7/xlib_xtrans/xlib_xtrans.mk | 1 - package/x11r7/xproto_fixesproto/xproto_fixesproto.mk | 1 - package/x11r7/xproto_fontcacheproto/xproto_fontcacheproto.mk | 1 - package/x11r7/xproto_fontsproto/xproto_fontsproto.mk | 1 - package/x11r7/xproto_inputproto/xproto_inputproto.mk | 1 - package/x11r7/xproto_kbproto/xproto_kbproto.mk | 1 - package/x11r7/xproto_renderproto/xproto_renderproto.mk | 1 - package/x11r7/xproto_xcmiscproto/xproto_xcmiscproto.mk | 2 -- package/x11r7/xproto_xextproto/xproto_xextproto.mk | 2 -- package/x11r7/xproto_xf86bigfontproto/xproto_xf86bigfontproto.mk | 1 - 21 files changed, 32 deletions(-)
package/x11r7/libxcb/libxcb.mk +0 -3
@@ -17,11 +17,8 @@ LIBXCB_DEPENDENCIES = \ host-xcb-proto host-python host-pkgconf LIBXCB_CONF_OPTS = --with-doxygen=no -HOST_LIBXCB_CONF_OPTS = --with-doxygen=no # libxcb is not python3 friendly, so force the python interpreter -HOST_LIBXCB_CONF_OPTS += ac_cv_path_PYTHON=$(HOST_DIR)/usr/bin/python2 LIBXCB_CONF_OPTS += ac_cv_path_PYTHON=$(HOST_DIR)/usr/bin/python2 $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xfont_encodings/xfont_encodings.mk +0 -1
@@ -13,4 +13,3 @@ XFONT_ENCODINGS_LICENSE_FILES = COPYING XFONT_ENCODINGS_DEPENDENCIES = host-xapp_mkfontscale host-pkgconf xutil_util-macros $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xlib_libX11/xlib_libX11.mk +0 -6
@@ -29,10 +29,6 @@ XLIB_LIBX11_CONF_OPTS = \ --disable-specs \ --without-perl -HOST_XLIB_LIBX11_CONF_OPTS = \ - --disable-specs \ - --without-perl - # src/util/makekeys is executed at build time to generate ks_tables.h, so # it should get compiled for the host. The libX11 makefile unfortunately # doesn't have X11_CFLAGS_FOR_BUILD so this doesn't work. For buildroot,
@@ -43,7 +39,5 @@ define XLIB_LIBX11_DISABLE_MAKEKEYS_X11_CFLAGS endef XLIB_LIBX11_POST_PATCH_HOOKS += XLIB_LIBX11_DISABLE_MAKEKEYS_X11_CFLAGS -HOST_XLIB_LIBX11_POST_PATCH_HOOKS += XLIB_LIBX11_DISABLE_MAKEKEYS_X11_CFLAGS $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xlib_libXau/xlib_libXau.mk +0 -1
@@ -13,4 +13,3 @@ XLIB_LIBXAU_INSTALL_STAGING = YES XLIB_LIBXAU_DEPENDENCIES = host-pkgconf xutil_util-macros xproto_xproto $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xlib_libXcursor/xlib_libXcursor.mk +0 -1
@@ -13,4 +13,3 @@ XLIB_LIBXCURSOR_INSTALL_STAGING = YES XLIB_LIBXCURSOR_DEPENDENCIES = xlib_libX11 xlib_libXfixes xlib_libXrender xproto_xproto $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xlib_libXdmcp/xlib_libXdmcp.mk +0 -1
@@ -13,4 +13,3 @@ XLIB_LIBXDMCP_INSTALL_STAGING = YES XLIB_LIBXDMCP_DEPENDENCIES = xutil_util-macros xproto_xproto $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xlib_libXfixes/xlib_libXfixes.mk +0 -1
@@ -13,4 +13,3 @@ XLIB_LIBXFIXES_INSTALL_STAGING = YES XLIB_LIBXFIXES_DEPENDENCIES = xproto_fixesproto xlib_libX11 xproto_xextproto xproto_xproto $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xlib_libXfont/xlib_libXfont.mk +0 -3
@@ -14,8 +14,6 @@ XLIB_LIBXFONT_INSTALL_STAGING = YES XLIB_LIBXFONT_DEPENDENCIES = freetype xlib_libfontenc xlib_xtrans xproto_fontsproto xproto_xproto xfont_encodings XLIB_LIBXFONT_CONF_OPTS = --disable-devel-docs -HOST_XLIB_LIBXFONT_CONF_OPTS = --disable-devel-docs - ifeq ($(BR2_microblaze),y) # The microblaze toolchains don't define the __ELF__ preprocessor # symbol even though they do use the elf format. LibXfont checks for
@@ -27,4 +25,3 @@ XLIB_LIBXFONT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -D__ELF__" endif $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xlib_libXrender/xlib_libXrender.mk +0 -1
@@ -14,4 +14,3 @@ XLIB_LIBXRENDER_DEPENDENCIES = xlib_libX11 xproto_renderproto xproto_xproto XLIB_LIBXRENDER_CONF_OPTS = --disable-malloc0returnsnull $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xlib_libfontenc/xlib_libfontenc.mk +0 -1
@@ -13,4 +13,3 @@ XLIB_LIBFONTENC_INSTALL_STAGING = YES XLIB_LIBFONTENC_DEPENDENCIES = zlib xproto_xproto $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xlib_libxkbfile/xlib_libxkbfile.mk +0 -1
@@ -13,4 +13,3 @@ XLIB_LIBXKBFILE_INSTALL_STAGING = YES XLIB_LIBXKBFILE_DEPENDENCIES = xlib_libX11 xproto_kbproto $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xlib_xtrans/xlib_xtrans.mk +0 -1
@@ -12,4 +12,3 @@ XLIB_XTRANS_LICENSE_FILES = COPYING XLIB_XTRANS_INSTALL_STAGING = YES $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xproto_fixesproto/xproto_fixesproto.mk +0 -1
@@ -13,4 +13,3 @@ XPROTO_FIXESPROTO_INSTALL_STAGING = YES XPROTO_FIXESPROTO_INSTALL_TARGET = NO $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xproto_fontcacheproto/xproto_fontcacheproto.mk +0 -1
@@ -13,4 +13,3 @@ XPROTO_FONTCACHEPROTO_INSTALL_STAGING = YES XPROTO_FONTCACHEPROTO_INSTALL_TARGET = NO $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xproto_fontsproto/xproto_fontsproto.mk +0 -1
@@ -13,4 +13,3 @@ XPROTO_FONTSPROTO_INSTALL_STAGING = YES XPROTO_FONTSPROTO_INSTALL_TARGET = NO $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xproto_inputproto/xproto_inputproto.mk +0 -1
@@ -13,4 +13,3 @@ XPROTO_INPUTPROTO_INSTALL_STAGING = YES XPROTO_INPUTPROTO_INSTALL_TARGET = NO $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xproto_kbproto/xproto_kbproto.mk +0 -1
@@ -13,4 +13,3 @@ XPROTO_KBPROTO_INSTALL_STAGING = YES XPROTO_KBPROTO_INSTALL_TARGET = NO $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xproto_renderproto/xproto_renderproto.mk +0 -1
@@ -13,4 +13,3 @@ XPROTO_RENDERPROTO_INSTALL_STAGING = YES XPROTO_RENDERPROTO_INSTALL_TARGET = NO $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xproto_xcmiscproto/xproto_xcmiscproto.mk +0 -2
@@ -11,7 +11,5 @@ XPROTO_XCMISCPROTO_LICENSE = MIT XPROTO_XCMISCPROTO_LICENSE_FILES = COPYING XPROTO_XCMISCPROTO_INSTALL_STAGING = YES XPROTO_XCMISCPROTO_CONF_OPTS = --disable-specs -HOST_XPROTO_XCMISCPROTO_CONF_OPTS = --disable-specs $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xproto_xextproto/xproto_xextproto.mk +0 -2
@@ -11,7 +11,5 @@ XPROTO_XEXTPROTO_LICENSE = MIT XPROTO_XEXTPROTO_LICENSE_FILES = COPYING XPROTO_XEXTPROTO_INSTALL_STAGING = YES XPROTO_XEXTPROTO_CONF_OPTS = --disable-specs -HOST_XPROTO_XEXTPROTO_CONF_OPTS = --disable-specs $(eval $(autotools-package)) -$(eval $(host-autotools-package))
package/x11r7/xproto_xf86bigfontproto/xproto_xf86bigfontproto.mk +0 -1
@@ -13,4 +13,3 @@ XPROTO_XF86BIGFONTPROTO_INSTALL_STAGING = YES XPROTO_XF86BIGFONTPROTO_INSTALL_TARGET = NO $(eval $(autotools-package)) -$(eval $(host-autotools-package))
Signature · 1 line
2.1.0
PATCH 2/24 sepolgen: drop unused host package
In reply to Julien Floret--- package/sepolgen/sepolgen.hash | 2 -- package/sepolgen/sepolgen.mk | 30 ------------------------------ 2 files changed, 32 deletions(-) delete mode 100644 package/sepolgen/sepolgen.hash delete mode 100644 package/sepolgen/sepolgen.mk
package/sepolgen/sepolgen.hash deleted +0 -2
@@ -1,2 +0,0 @@ -# https://github.com/SELinuxProject/selinux/wiki/Releases -sha256 8a1c6d3a78c9b6ad3555c74def555f65a62950bf21c111c585bfc382fec3a645 sepolgen-1.1.9.tar.gz
package/sepolgen/sepolgen.mk deleted +0 -30
@@ -1,30 +0,0 @@ -################################################################################ -# -# sepolgen -# -################################################################################ - -SEPOLGEN_VERSION = 1.1.9 -SEPOLGEN_SITE = https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20130423 -SEPOLGEN_LICENSE = GPLv2 -SEPOLGEN_LICENSE_FILES = COPYING - -ifeq ($(BR2_PACKAGE_PYTHON3),y) -HOST_SEPOLGEN_DEPENDENCIES = host-python3 -HOST_SEPOLGEN_MAKE_CMDS = $(HOST_CONFIGURE_OPTS) \ - PYTHONLIBDIR=/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages -else -HOST_SEPOLGEN_DEPENDENCIES = host-python -HOST_SEPOLGEN_MAKE_CMDS = $(HOST_CONFIGURE_OPTS) \ - PYTHONLIBDIR=/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages -endif - -define HOST_SEPOLGEN_BUILD_CMDS - $(MAKE) -C $(@D) $(HOST_SEPOLGEN_MAKE_CMDS) DESTDIR=$(HOST_DIR) -endef - -define HOST_SEPOLGEN_INSTALL_CMDS - $(MAKE) -C $(@D) $(HOST_SEPOLGEN_MAKE_CMDS) DESTDIR=$(HOST_DIR) install -endef - -$(eval $(host-generic-package))
Signature · 1 line
2.1.0
PATCH 2/24 sepolgen: drop unused host package
Hello,
Quoted 7 lines · Julien Floret
Signed-off-by Julien Floret <[email protected]>--- package/sepolgen/sepolgen.hash | 2 -- package/sepolgen/sepolgen.mk | 30 ------------------------------ 2 files changed, 32 deletions(-) delete mode 100644 package/sepolgen/sepolgen.hash delete mode 100644 package/sepolgen/sepolgen.mk
This package is meant to be used in the (near?) future by the refpolicy stuff needed for SELinux. We should keep it IMO.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 3/24 attr: drop unused host variant
In reply to Julien Floret--- package/attr/attr.mk | 7 ------- 1 file changed, 7 deletions(-)
package/attr/attr.mk +0 -7
@@ -9,7 +9,6 @@ ATTR_SOURCE = attr-$(ATTR_VERSION).src.tar.gz ATTR_SITE = http://download.savannah.gnu.org/releases/attr ATTR_INSTALL_STAGING = YES ATTR_CONF_OPTS = --enable-gettext=no -HOST_ATTR_CONF_OPTS = --enable-gettext=no ATTR_LICENSE = GPLv2+ (programs), LGPLv2.1+ (libraries) ATTR_LICENSE_FILES = doc/COPYING doc/COPYING.LGPL
@@ -27,11 +26,6 @@ ATTR_INSTALL_TARGET_OPTS = \ exec_prefix=$(TARGET_DIR)/usr \ install install-lib -HOST_ATTR_INSTALL_OPTS = \ - prefix=$(HOST_DIR)/usr \ - exec_prefix=$(HOST_DIR)/usr \ - install-dev install-lib - # The libdir variable in libattr.la is empty, so let's fix it. This is # probably due to attr not using automake, and not doing fully the # right thing with libtool.
@@ -43,4 +37,3 @@ endef ATTR_POST_INSTALL_STAGING_HOOKS += ATTR_FIX_LIBTOOL_LA_LIBDIR $(eval $(autotools-package)) -$(eval $(host-autotools-package))
Signature · 1 line
2.1.0
PATCH 4/24 directfb: drop unused host variant
In reply to Julien Floret--- package/directfb/directfb.mk | 17 ----------------- 1 file changed, 17 deletions(-)
package/directfb/directfb.mk +0 -17
@@ -153,21 +153,4 @@ ifeq ($(BR2_PACKAGE_DIRECTFB_TESTS),y) DIRECTFB_CONF_OPTS += --with-tests endif -HOST_DIRECTFB_DEPENDENCIES = host-pkgconf host-libpng -HOST_DIRECTFB_CONF_OPTS = \ - --disable-multi \ - --enable-png \ - --with-gfxdrivers=none \ - --with-inputdrivers=none - -HOST_DIRECTFB_BUILD_CMDS = \ - $(MAKE) -C $(@D)/tools directfb-csource - -HOST_DIRECTFB_INSTALL_CMDS = \ - $(INSTALL) -m 0755 $(@D)/tools/directfb-csource $(HOST_DIR)/usr/bin - $(eval $(autotools-package)) -$(eval $(host-autotools-package)) - -# directfb-csource for the host -DIRECTFB_HOST_BINARY = $(HOST_DIR)/usr/bin/directfb-csource
Signature · 1 line
2.1.0
PATCH 5/24 erlang-goldrush: drop unused host variant
In reply to Julien Floret--- package/erlang-goldrush/erlang-goldrush.mk | 1 - 1 file changed, 1 deletion(-)
package/erlang-goldrush/erlang-goldrush.mk +0 -1
@@ -11,4 +11,3 @@ ERLANG_GOLDRUSH_LICENSE_FILES = LICENSE ERLANG_GOLDRUSH_INSTALL_STAGING = YES $(eval $(rebar-package)) -$(eval $(host-rebar-package))
Signature · 1 line
2.1.0
PATCH 5/24 erlang-goldrush: drop unused host variant
Hello,
Quoted 1 line · Julien Floret
Signed-off-by Julien Floret <[email protected]>
This one is a good example of what I said yesterday. You have the following dependency chain:
ejabberd -> host-erlang-lager -> host-erlang-goldrush
The host-erlang-lager -> host-erlang-goldrush dependency is not visible by grepping for host-erlang-goldrush because the erlang-lager package only does:
ERLANG_LAGER_VERSION = 2.2.0ERLANG_LAGER_SITE = $(call github,basho,lager,$(ERLANG_LAGER_VERSION)) ERLANG_LAGER_LICENSE = Apache-2.0 ERLANG_LAGER_LICENSE_FILES = LICENSE ERLANG_LAGER_DEPENDENCIES = erlang-goldrush
$(eval $(rebar-package))
$(eval $(host-rebar-package))
And the line:
ERLANG_LAGER_DEPENDENCIES = erlang-goldrush
implies:
HOST_ERLANG_LAGER_DEPENDENCIES = host-erlang-goldrush
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 6/24 jsmin: drop unused host variant
In reply to Julien Floret--- package/jsmin/jsmin.mk | 9 --------- 1 file changed, 9 deletions(-)
package/jsmin/jsmin.mk +0 -9
@@ -17,13 +17,4 @@ define JSMIN_INSTALL_TARGET_CMDS $(INSTALL) -m 0755 -D $(@D)/jsmin $(TARGET_DIR)/usr/bin/jsmin endef -define HOST_JSMIN_BUILD_CMDS - $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) jsmin -endef - -define HOST_JSMIN_INSTALL_CMDS - $(INSTALL) -m 0755 -D $(@D)/jsmin $(HOST_DIR)/usr/bin/jsmin -endef - $(eval $(generic-package)) -$(eval $(host-generic-package))
Signature · 1 line
2.1.0
PATCH 6/24 jsmin: drop unused host variant
Hello,
Quoted 13 lines · Julien Floret
Signed-off-by Julien Floret <[email protected]>--- package/jsmin/jsmin.mk | 9 --------- 1 file changed, 9 deletions(-)package/jsmin/jsmin.mk +0
-0@@ -17,13 +17,4 @@ define JSMIN_INSTALL_TARGET_CMDS $(INSTALL) -m 0755 -D $(@D)/jsmin $(TARGET_DIR)/usr/bin/jsmin endef
package/jsmin/jsmin.mk define JSMIN_INSTALL_TARGET_CMDS · line 29
Quoted 10 lines
package/jsmin/jsmin.mk +0
-9-define HOST_JSMIN_BUILD_CMDS - $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) jsmin -endef - -define HOST_JSMIN_INSTALL_CMDS - $(INSTALL) -m 0755 -D $(@D)/jsmin $(HOST_DIR)/usr/bin/jsmin -endef - $(eval $(generic-package)) -$(eval $(host-generic-package))
This package (and its host variant) was added by Peter Korsgaard. I guess the JS minimizer is useful on the host, when building other packages, like web sites and their javascript code. Such packages are generally not in Buildroot upstream, which is why we don't have a dependency on host-jsmin anywhere.
Should we add a menuconfig entry, even though it's merely a build dependency?
Peter?
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 6/24 jsmin: drop unused host variant
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hi,
Quoted 10 lines
This package (and its host variant) was added by Peter Korsgaard. I guess the JS minimizer is useful on the host, when building other packages, like web sites and their javascript code. Such packages are generally not in Buildroot upstream, which is why we don't have a dependency on host-jsmin anywhere.
Should we add a menuconfig entry, even though it's merely a build dependency?
Peter?
Yes, that might be the best solution. That also makes it available for use in E.G. a post-build script.
Signature · 2 lines
Venlig hilsen, Peter Korsgaard
PATCH 7/24 libatomic_ops: drop unused host variant
In reply to Julien Floret--- package/libatomic_ops/libatomic_ops.mk | 1 - 1 file changed, 1 deletion(-)
package/libatomic_ops/libatomic_ops.mk +0 -1
@@ -24,4 +24,3 @@ LIBATOMIC_OPS_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -DAO_NO_SPARC_V9" endif $(eval $(autotools-package)) -$(eval $(host-autotools-package))
Signature · 1 line
2.1.0
PATCH 8/24 libconfuse: drop unused host variant
In reply to Julien Floret--- package/libconfuse/libconfuse.mk | 1 - 1 file changed, 1 deletion(-)
package/libconfuse/libconfuse.mk +0 -1
@@ -14,4 +14,3 @@ LIBCONFUSE_LICENSE = ISC LIBCONFUSE_LICENSE_FILES = LICENSE $(eval $(autotools-package)) -$(eval $(host-autotools-package))
Signature · 1 line
2.1.0
PATCH 9/24 libpthread-stubs: drop unused host variant
In reply to Julien Floret--- package/libpthread-stubs/libpthread-stubs.mk | 1 - 1 file changed, 1 deletion(-)
package/libpthread-stubs/libpthread-stubs.mk +0 -1
@@ -17,4 +17,3 @@ LIBPTHREAD_STUBS_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -pthread" endif $(eval $(autotools-package)) -$(eval $(host-autotools-package))
Signature · 1 line
2.1.0
PATCH 10/24 libsemanage: drop unused host variant
In reply to Julien Floret--- package/libsemanage/libsemanage.mk | 32 -------------------------------- 1 file changed, 32 deletions(-)
package/libsemanage/libsemanage.mk +0 -32
@@ -27,36 +27,4 @@ define LIBSEMANAGE_INSTALL_TARGET_CMDS $(MAKE) -C $(@D) $(LIBSEMANAGE_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install endef -HOST_LIBSEMANAGE_DEPENDENCIES = host-bison host-libsepol host-libselinux \ - host-ustr host-bzip2 host-swig -HOST_LIBSEMANAGE_MAKE_OPTS += $(HOST_CONFIGURE_OPTS) \ - SWIG_LIB="$(HOST_DIR)/usr/share/swig/$(SWIG_VERSION)/" - -ifeq ($(BR2_PACKAGE_PYTHON3),y) -HOST_LIBSEMANAGE_DEPENDENCIES += host-python3 -HOST_LIBSEMANAGE_MAKE_OPTS += \ - PYINC="-I$(HOST_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)m/" \ - PYTHONLIBDIR="-L$(HOST_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/" \ - PYLIBVER="python$(PYTHON3_VERSION_MAJOR)" -else -HOST_LIBSEMANAGE_DEPENDENCIES += host-python -HOST_LIBSEMANAGE_MAKE_OPTS += \ - PYINC="-I$(HOST_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)/" \ - PYTHONLIBDIR="-L$(HOST_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/" \ - PYLIBVER="python$(PYTHON_VERSION_MAJOR)" -endif - -define HOST_LIBSEMANAGE_BUILD_CMDS - # DESTDIR is needed during the compile to compute library and - # header paths. - $(MAKE) -C $(@D) $(HOST_CONFIGURE_OPTS) DESTDIR=$(HOST_DIR) all - $(MAKE) -C $(@D) $(HOST_LIBSEMANAGE_MAKE_OPTS) DESTDIR=$(HOST_DIR) swigify pywrap -endef - -define HOST_LIBSEMANAGE_INSTALL_CMDS - $(MAKE) -C $(@D) $(HOST_CONFIGURE_OPTS) DESTDIR=$(HOST_DIR) install - $(MAKE) -C $(@D) $(HOST_LIBSEMANAGE_MAKE_OPTS) DESTDIR=$(HOST_DIR) install-pywrap -endef - $(eval $(generic-package)) -$(eval $(host-generic-package))
Signature · 1 line
2.1.0
PATCH 11/24 libsodium: drop unused host variant
In reply to Julien Floret--- package/libsodium/libsodium.mk | 1 - 1 file changed, 1 deletion(-)
package/libsodium/libsodium.mk +0 -1
@@ -15,4 +15,3 @@ LIBSODIUM_CONF_OPTS += --disable-pie endif $(eval $(autotools-package)) -$(eval $(host-autotools-package))
Signature · 1 line
2.1.0
PATCH 12/24 lzip: drop unused host variant
In reply to Julien Floret--- package/lzip/lzip.mk | 14 -------------- 1 file changed, 14 deletions(-)
package/lzip/lzip.mk +0 -14
@@ -14,27 +14,13 @@ define LZIP_CONFIGURE_CMDS $(TARGET_CONFIGURE_OPTS) ) endef -define HOST_LZIP_CONFIGURE_CMDS - (cd $(@D); ./configure --prefix=/usr \ - $(HOST_CONFIGURE_OPTS) ) -endef - define LZIP_BUILD_CMDS $(MAKE) -C $(@D) endef -define HOST_LZIP_BUILD_CMDS - $(MAKE) -C $(@D) -endef - define LZIP_INSTALL_TARGET_CMDS $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install endef -define HOST_LZIP_INSTALL_CMDS - $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR) install -endef - # It's not autotools-based $(eval $(generic-package)) -$(eval $(host-generic-package))
Signature · 1 line
2.1.0
PATCH 13/24 pax-utils: drop unused host variant
In reply to Julien Floret--- package/pax-utils/pax-utils.mk | 4 ---- 1 file changed, 4 deletions(-)
package/pax-utils/pax-utils.mk +0 -4
@@ -27,9 +27,6 @@ else PAX_UTILS_CONF_OPTS += --without-seccomp endif -# libcap is only useful for pspax (a running system) -HOST_PAX_UTILS_DEPENDENCIES = - # lddtree and symtree need bash ifeq ($(BR2_PACKAGE_BASH),) define PAX_UTILS_REMOVE_BASH_TOOLS
@@ -39,4 +36,3 @@ endif PAX_UTILS_POST_INSTALL_TARGET_HOOKS += PAX_UTILS_REMOVE_BASH_TOOLS $(eval $(autotools-package)) -$(eval $(host-autotools-package))
Signature · 1 line
2.1.0
PATCH 14/24 perl-file-util: drop unused host variant
In reply to Julien Floret--- package/perl-file-util/perl-file-util.mk | 2 -- 1 file changed, 2 deletions(-)
package/perl-file-util/perl-file-util.mk +0 -2
@@ -10,7 +10,5 @@ PERL_FILE_UTIL_SITE = $(BR2_CPAN_MIRROR)/authors/id/T/TO/TOMMY PERL_FILE_UTIL_DEPENDENCIES = host-perl-module-build PERL_FILE_UTIL_LICENSE = Artistic or GPLv1+ PERL_FILE_UTIL_LICENSE_FILES = COPYING LICENSE -HOST_PERL_FILE_UTIL_DEPENDENCIES = host-perl-module-build $(eval $(perl-package)) -$(eval $(host-perl-package))
Signature · 1 line
2.1.0
PATCH 14/24 perl-file-util: drop unused host variant
Quoted 22 lines
From: "Julien Floret" <[email protected]>
To: buildroot at buildroot.org
Cc: "thomas petazzoni" <[email protected]>
Sent: Wednesday, June 29, 2016 10:46:21 AM
Subject: [Buildroot] [PATCH 14/24] perl-file-util: drop unused host variantSigned-off-by Julien Floret <[email protected]>---
package/perl-file-util/perl-file-util.mk| 2 --1 file changed, 2 deletions(-)package/perl-file-util/perl-file-util.mk +0
-0@@ -10,7 +10,5 @@ PERL_FILE_UTIL_SITE = $(BR2_CPAN_MIRROR)/authors/id/T/TO/TOMMY
PERL_FILE_UTIL_DEPENDENCIES= host-perl-module-buildPERL_FILE_UTIL_LICENSE= Artistic or GPLv1+PERL_FILE_UTIL_LICENSE_FILES= COPYING LICENSE -HOST_PERL_FILE_UTIL_DEPENDENCIES = host-perl-module-build
Quoted 4 lines
$(eval $(perl-package))
-$(eval $(host-perl-package))
--
2.1.0
Not again, please!
commit 5b7cb94c967549cd59cc692ec2fc843f66974478
Author: Carlos Santos <[email protected]> Date: Tue Nov 17 10:24:06 2015 -0200
perl-file-util: restore host variant and fix dependencies
The host variant was added by us (DATACOM) because it is useful to build some third-party packages that we use in our firmware. We humbly request you to keep it alive.
Declare that it requires host-perl-module-build.
commit 4b33c324809c4928e0da827a3ec88703a73c654a
Author: Yann E. MORIN <[email protected]> Date: Fri Nov 13 22:48:49 2015 +0100
package/perl-file-util: remove host variant
It does not build, and no one depends on it.
Carlos Santos (Casantos)
DATACOM, P&D
PATCH 14/24 perl-file-util: drop unused host variant
Hello,
Quoted 11 lines · Carlos Santos
Quoted 11 lines
package/perl-file-util/perl-file-util.mk +0
-0@@ -10,7 +10,5 @@ PERL_FILE_UTIL_SITE = $(BR2_CPAN_MIRROR)/authors/id/T/TO/TOMMY
PERL_FILE_UTIL_DEPENDENCIES= host-perl-module-buildPERL_FILE_UTIL_LICENSE= Artistic or GPLv1+PERL_FILE_UTIL_LICENSE_FILES= COPYING LICENSE -HOST_PERL_FILE_UTIL_DEPENDENCIES = host-perl-module-build
Quoted 6 lines
Quoted 4 lines
$(eval $(perl-package))
-$(eval $(host-perl-package))
--
2.1.0Not again, please!
All those patches have already been marked rejected, so no worries.
We are still wondering how to deal with those "orphan" host packages though.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 15/24 python-jinja2: drop unused host variant
In reply to Julien Floret--- package/python-jinja2/python-jinja2.mk | 3 --- 1 file changed, 3 deletions(-)
package/python-jinja2/python-jinja2.mk +0 -3
@@ -10,8 +10,5 @@ PYTHON_JINJA2_SITE = http://pypi.python.org/packages/source/J/Jinja2 PYTHON_JINJA2_SETUP_TYPE = setuptools PYTHON_JINJA2_LICENSE = BSD-3c PYTHON_JINJA2_LICENSE_FILES = LICENSE -# In host build, setup.py tries to download markupsafe if it is not installed -HOST_PYTHON_JINJA2_DEPENDENCIES = host-python-markupsafe $(eval $(python-package)) -$(eval $(host-python-package))
Signature · 1 line
2.1.0
PATCH 16/24 python-mako: drop unused host variant
In reply to Julien Floret--- package/python-mako/python-mako.mk | 4 ---- 1 file changed, 4 deletions(-)
package/python-mako/python-mako.mk +0 -4
@@ -11,8 +11,4 @@ PYTHON_MAKO_SETUP_TYPE = setuptools PYTHON_MAKO_LICENSE = MIT PYTHON_MAKO_LICENSE_FILES = LICENSE -# In host build, setup.py tries to download markupsafe if it is not installed -HOST_PYTHON_MAKO_DEPENDENCIES = host-python-markupsafe - $(eval $(python-package)) -$(eval $(host-python-package))
Signature · 1 line
2.1.0
PATCH 17/24 sdl_image: drop unused host variant
In reply to Julien Floret--- package/sdl_image/sdl_image.mk | 12 ------------ 1 file changed, 12 deletions(-)
package/sdl_image/sdl_image.mk +0 -12
@@ -36,16 +36,4 @@ SDL_IMAGE_DEPENDENCIES = sdl \ $(if $(BR2_PACKAGE_SDL_IMAGE_TIFF),tiff) \ $(if $(BR2_PACKAGE_SDL_IMAGE_WEBP),webp) -HOST_SDL_IMAGE_CONF_OPTS = \ - --with-sdl-prefix=$(HOST_DIR)/usr \ - --with-sdl-exec-prefix=$(HOST_DIR)/usr \ - --disable-sdltest \ - --disable-static \ - --disable-jpg-shared \ - --disable-png-shared \ - --disable-tif-shared \ - -HOST_SDL_IMAGE_DEPENDENCIES = host-libjpeg host-libpng host-sdl - $(eval $(autotools-package)) -$(eval $(host-autotools-package))
Signature · 1 line
2.1.0
PATCH 18/24 setools: drop unused host variant
In reply to Julien Floret--- package/setools/setools.mk | 46 ---------------------------------------------- 1 file changed, 46 deletions(-)
package/setools/setools.mk +0 -46
@@ -35,50 +35,4 @@ ifeq ($(BR2_sparc64):$(BR2_STATIC_LIBS),y:) SETOOLS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -fPIC" endif -HOST_SETOOLS_DEPENDENCIES = host-libselinux host-libsepol host-sqlite \ - host-libxml2 host-bzip2 host-bison - -ifeq ($(BR2_PACKAGE_PYTHON3),y) -HOST_SETOOLS_PYTHON_VERSION=$(PYTHON3_VERSION_MAJOR) -HOST_SETOOLS_DEPENDENCIES += host-python3 -HOST_SETOOLS_CONF_ENV += am_cv_python_version=$(PYTHON3_VERSION) -else -HOST_SETOOLS_PYTHON_VERSION=$(PYTHON_VERSION_MAJOR) -HOST_SETOOLS_DEPENDENCIES += host-python -HOST_SETOOLS_CONF_ENV += am_cv_python_version=$(PYTHON_VERSION) -endif - -HOST_SETOOLS_PYTHON_SITE_PACKAGES = $(HOST_DIR)/usr/lib/python$(HOST_SETOOLS_PYTHON_VERSION)/site-packages -HOST_SETOOLS_PYTHON_INCLUDES = $(HOST_DIR)/usr/include/python$(HOST_SETOOLS_PYTHON_VERSION) -HOST_SETOOLS_PYTHON_LIB = -lpython$(HOST_SETOOLS_PYTHON_VERSION) - -# Notes: Need "disable-selinux-check" so the configure does not check to see -# if host has selinux enabled. -# Host builds with python support to enable tools for offline target -# policy analysis -HOST_SETOOLS_CONF_OPTS = \ - --disable-debug \ - --disable-gui \ - --disable-bwidget-check \ - --disable-selinux-check \ - --disable-swig-java \ - --disable-swig-python \ - --disable-swig-tcl \ - --with-sepol-devel="$(HOST_DIR)/usr" \ - --with-selinux-devel="$(HOST_DIR)/usr" \ - PYTHON_LDFLAGS="-L$(HOST_DIR)/usr/lib/" \ - PYTHON_CPPFLAGS="-I$(HOST_SETOOLS_PYTHON_INCLUDES)" \ - PYTHON_SITE_PKG="$(HOST_SETOOLS_PYTHON_SITE_PACKAGES)" \ - PYTHON_EXTRA_LIBS="-lpthread -ldl -lutil $(HOST_SETOOLS_PYTHON_LIB)" - -HOST_SETOOLS_CONF_ENV += \ - am_cv_pathless_PYTHON=python \ - ac_cv_path_PYTHON=$(HOST_DIR)/usr/bin/python \ - am_cv_python_platform=linux2 \ - am_cv_python_version=$(HOST_SETOOLS_PYTHON_VERSION) \ - am_cv_python_pythondir=$(HOST_SETOOLS_PYTHON_SITE_PACKAGES) \ - am_cv_python_pyexecdir=$(HOST_SETOOLS_PYTHON_SITE_PACKAGES) \ - am_cv_python_includes=-I$(HOST_SETOOLS_PYTHON_INCLUDES) - $(eval $(autotools-package)) -$(eval $(host-autotools-package))
Signature · 1 line
2.1.0
PATCH 19/24 xutil_util-macros: drop unused host variant
In reply to Julien Floret--- package/xutil_util-macros/xutil_util-macros.mk | 1 - 1 file changed, 1 deletion(-)
package/xutil_util-macros/xutil_util-macros.mk +0 -1
@@ -14,4 +14,3 @@ XUTIL_UTIL_MACROS_INSTALL_STAGING = YES XUTIL_UTIL_MACROS_INSTALL_TARGET = NO $(eval $(autotools-package)) -$(eval $(host-autotools-package))
Signature · 1 line
2.1.0
PATCH 20/24 bzip2: drop unused host variant
In reply to Julien Floret--- package/bzip2/bzip2.mk | 15 --------------- 1 file changed, 15 deletions(-)
package/bzip2/bzip2.mk +0 -15
@@ -51,19 +51,4 @@ define BZIP2_INSTALL_TARGET_CMDS $(BZIP2_INSTALL_TARGET_SHARED_CMDS) endef -define HOST_BZIP2_BUILD_CMDS - $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) \ - $(MAKE) -C $(@D) -f Makefile-libbz2_so - $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) \ - $(MAKE) -C $(@D) libbz2.a bzip2 bzip2recover -endef - -define HOST_BZIP2_INSTALL_CMDS - $(HOST_MAKE_ENV) \ - $(MAKE) PREFIX=$(HOST_DIR)/usr -C $(@D) install - $(HOST_MAKE_ENV) \ - $(MAKE) -f Makefile-libbz2_so PREFIX=$(HOST_DIR)/usr -C $(@D) install -endef - $(eval $(generic-package)) -$(eval $(host-generic-package))
Signature · 1 line
2.1.0
PATCH 21/24 python-markupsafe: drop unused host variant
In reply to Julien Floret--- package/python-markupsafe/python-markupsafe.mk | 1 - 1 file changed, 1 deletion(-)
package/python-markupsafe/python-markupsafe.mk +0 -1
@@ -12,4 +12,3 @@ PYTHON_MARKUPSAFE_LICENSE = BSD-3c PYTHON_MARKUPSAFE_LICENSE_FILES = LICENSE $(eval $(python-package)) -$(eval $(host-python-package))
Signature · 1 line
2.1.0
PATCH 22/24 sdl: drop unused host variant
In reply to Julien Floret--- package/sdl/sdl.mk | 11 ----------- 1 file changed, 11 deletions(-)
package/sdl/sdl.mk +0 -11
@@ -18,10 +18,8 @@ define SDL_RUN_AUTOGEN endef SDL_PRE_CONFIGURE_HOOKS += SDL_RUN_AUTOGEN -HOST_SDL_PRE_CONFIGURE_HOOKS += SDL_RUN_AUTOGEN SDL_DEPENDENCIES += host-automake host-autoconf host-libtool -HOST_SDL_DEPENDENCIES += host-automake host-autoconf host-libtool ifeq ($(BR2_PACKAGE_SDL_FBCON),y) SDL_CONF_OPTS += --enable-video-fbcon=yes
@@ -87,15 +85,6 @@ SDL_CONF_OPTS += \ --disable-nasm \ --disable-video-ps3 -HOST_SDL_CONF_OPTS += \ - --enable-pulseaudio=no \ - --enable-video-x11=no \ - --disable-arts \ - --disable-esd \ - --disable-nasm \ - --disable-video-ps3 - SDL_CONFIG_SCRIPTS = sdl-config $(eval $(autotools-package)) -$(eval $(host-autotools-package))
Signature · 1 line
2.1.0
PATCH 23/24 sqlite: drop unused host variant
In reply to Julien Floret--- package/sqlite/sqlite.mk | 1 - 1 file changed, 1 deletion(-)
package/sqlite/sqlite.mk +0 -1
@@ -56,4 +56,3 @@ SQLITE_CONF_OPTS += --disable-editline --disable-readline endif $(eval $(autotools-package)) -$(eval $(host-autotools-package))
Signature · 1 line
2.1.0
PATCH 24/24 ustr: drop unused host variant
In reply to Julien Floret--- package/ustr/ustr.mk | 1 - 1 file changed, 1 deletion(-)
package/ustr/ustr.mk +0 -1
@@ -24,4 +24,3 @@ USTR_INSTALL_STAGING = YES USTR_MAKE_OPTS = all all-shared $(eval $(autotools-package)) -$(eval $(host-autotools-package))
Signature · 1 line
2.1.0
cover Drop unused host packages
In reply to Julien FloretHello,
Quoted 7 lines · Julien Floret
A lot of host packages are never built, because they don't have a Config.in option, and are never referenced in other packages' dependencies.
This series removes them to avoid maintaining unneeded code; they will still be in git history if some are needed again in the future.
Quoted 8 lines
The other motivation behind this cleanup is that I'm starting to think about a new proposal for speeding up the
Makefileparsing, similar to what Thomas proposed here:
http://lists.busybox.net/pipermail/buildroot/2014-March/092548.htmlAs Thomas explained, this change would imply adding blind Config.in options for all host packages. It's quite a big change, so a little preliminary cleanup could help.
I haven't looked at the series, but did you take into account that just grepping for "host-foo" is not sufficient to know if the host-foo package is used or not?
Indeed, if a package has:
BAR_DEPENDENCIES = foo
then host-bar automatically has a dependency on host-foo, without host-foo being written anywhere.
Can you confirm this is something you have taken into account?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
cover Drop unused host packages
Quoted 4 lines
I haven't looked at the series, but did you take into account that just grepping for "host-foo" is not sufficient to know if the host-foo package is used or not?
Quoted 8 lines
Indeed, if a package has:
BAR_DEPENDENCIES= foothen host-bar automatically has a dependency on host-foo, without host-foo being written anywhere.
Can you confirm this is something you have taken into account?
No, I'm afraid I missed this point, sorry...
I checked only for dependencies on host-foo, or BR2_PACKAGE_HOST_FOO presence.
Julien
cover Drop unused host packages
Hello,
Quoted 4 lines · Julien Floret
Quoted 1 line
Can you confirm this is something you have taken into account?
No, I'm afraid I missed this point, sorry...
I checked only for dependencies on host-foo, orBR2_PACKAGE_HOST_FOOpresence.
Then you might have missed some of the possible uses of those host packages, I'm afraid :-/
Can you double check this, and see if your series still applies or whether it should be reworked ?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
cover Drop unused host packages
Quoted 10 lines
Quoted 4 lines
Quoted 1 line
Can you confirm this is something you have taken into account?
No, I'm afraid I missed this point, sorry...
I checked only for dependencies on host-foo, orBR2_PACKAGE_HOST_FOOpresence.Then you might have missed some of the possible uses of those host packages, I'm afraid :-/
Can you double check this, and see if your series still applies or whether it should be reworked ?
It surely needs some rework, sorry for the noise!
From your comments, I also understand some host packages should be kept even if they are unused in buildroot upstream (e.g. jsmin), so I guess it's not trivial for me to know which packages could be removed.
cover Drop unused host packages
Hello,
Quoted 1 line · Julien Floret
It surely needs some rework, sorry for the noise!
No problem, this cleanup effort is definitely welcome.
Quoted 3 lines
From your comments, I also understand some host packages should be kept even if they are unused in buildroot upstream (e.g. jsmin), so I guess it's not trivial for me to know which packages could be removed.
Yes, there are some tricky cases. Normally the rule should indeed be that a host package should either:
1/ Be described in a Config.in.host file and therefore visible in
menuconfig ;
2/ Be a dependency of another package.
However, there are other situations:
*/ Host packages that we merge, even if they are not *yet* used by
target packages. We sometimes do this to help people reduce the size of their patch series by merging some initial patches, while the remaining patches are still under discussion/review. Normally this is only a temporary situation (but for sepolgen, it's a temporary situation that lasts since many months).
*/ Host packages that are not used by other packages in Buildroot, but
might be used by private, company/project-specific packages. I don't like this situation, because there is really no way these host packages will ever be built/tested. But I'm not sure what to do about these: adding an entry in menuconfig is a bit weird since they are not really needed for anything else but a build dependency.
What do others think?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
cover Drop unused host packages
On 29 June 2016 at 11:43, Thomas Petazzoni
<[email protected]> wrote:
[..]
Quoted 8 lines
*/ Host packages that are not used by other packages in Buildroot, but
might be used by private, company/project-specific packages. I don't like this situation, because there is really no way these host packages will ever be built/tested. But I'm not sure what to do about these: adding an entry in menuconfig is a bit weird since they are not really needed for anything else but a build dependency.
I guess we could argue that if company/project is willing to maintain some private package(s), then they are willing to maintain its dependencies, incluing host package(s) and carry the whole bunch out of tree.
Signature · 2 lines
Ezequiel Garc?a, VanguardiaSur www.vanguardiasur.com.ar
cover Drop unused host packages
----- Mensagem original -----
Quoted 18 lines
De: "Ezequiel Garcia" <[email protected]>
Para: "Thomas Petazzoni" <[email protected]>
Cc: "buildroot" <[email protected]>
Enviadas: Quarta-feira, 29 de junho de 2016 18:53:26
Assunto: Re: [Buildroot] [PATCH 00/24] Drop unused host packagesOn 29 June 2016 at 11:43, Thomas Petazzoni
<[email protected]> wrote:
[..]Quoted 8 lines
*/ Host packages that are not used by other packages in Buildroot, but
might be used by private, company/project-specific packages. I don't like this situation, because there is really no way these host packages will ever be built/tested. But I'm not sure what to do about these: adding an entry in menuconfig is a bit weird since they are not really needed for anything else but a build dependency.
Quoted 10 lines
I guess we could argue that if company/project is willing to maintain some private package(s), then they are willing to maintain its dependencies, incluing host package(s) and carry the whole bunch out of tree. --
Ezequiel Garc?a, VanguardiaSur
www.vanguardiasur.com.ar
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
I can confirm some of the host packages removed with the patch series are used to build private packages, in private buildroot trees.
Of course, we try to contribute as much as possible, and it seems to me that keep this packages in the tree is good for us, because our private tree based on upstream buildroot tree have no more than 10 patches. Everytime there is an opportunity to send one of this patches to buildroot upstream, we have one less package to maintain internally, and this is good for us and for the project.
We could think of a stronger politics of ownership for these packages, instead of removing them from the upstream tree.
Some host packages, like perl-file-util, would be a little harder to maintain in our buildroot-tree.
Signature · 5 lines
Dr. Henrique Marks henrique.marks at datacom.ind.br R. Am?rica, 1000 - Eldorado do Sul - RS CEP: 92990-000 - Brasil Fone: +55 51 3933 3000 - Ramal 3466
cover Drop unused host packages
In reply to Ezequiel Garcia2016-06-29 23:53 GMT+02:00 Ezequiel Garcia <[email protected]>:
Quoted 12 lines
On 29 June 2016 at 11:43, Thomas Petazzoni
<[email protected]> wrote:
[..]Quoted 8 lines
*/ Host packages that are not used by other packages in Buildroot, but
might be used by private, company/project-specific packages. I don't like this situation, because there is really no way these host packages will ever be built/tested. But I'm not sure what to do about these: adding an entry in menuconfig is a bit weird since they are not really needed for anything else but a build dependency.
Quoted 6 lines
I guess we could argue that if company/project is willing to maintain some private package(s), then they are willing to maintain its dependencies, incluing host package(s) and carry the whole bunch out of tree. --
Ezequiel Garc?a, VanguardiaSur
www.vanguardiasur.com.ar
Then maybe the best approach would be to add Kconfig options for all host packages, similarly to target packages - blind options for build dependencies that get selected automatically by other packages, and explicit options for host packages that are unreachable in upstream buildroot - to allow testing their build and keep track of them?
Besides, having Kconfig options for all host packages would open the way to including only the .mk files of selected packages, to speed up the makefile parsing.
Maybe it could be handy for other things, too?
cover Drop unused host packages
Quoted 16 lines · Julien Floret
2016-06-29 23:53 GMT+02:00 Ezequiel Garcia <[email protected]>:
Quoted 15 lines
On 29 June 2016 at 11:43, Thomas Petazzoni
<[email protected]> wrote:
[..]Quoted 8 lines
*/ Host packages that are not used by other packages in Buildroot, but
might be used by private, company/project-specific packages. I don't like this situation, because there is really no way these host packages will ever be built/tested. But I'm not sure what to do about these: adding an entry in menuconfig is a bit weird since they are not really needed for anything else but a build dependency.I guess we could argue that if company/project is willing to maintain some private package(s), then they are willing to maintain its dependencies, incluing host package(s) and carry the whole bunch out of tree.
I would agree with this.
Quoted 9 lines
Quoted 3 lines
--
Ezequiel Garc?a, VanguardiaSur
www.vanguardiasur.com.arThen maybe the best approach would be to add
Kconfigoptions for all host packages, similarly to target packages - blind options for build dependencies that get selected automatically by other packages, and explicit options for host packages that are unreachable in upstream buildroot - to allow testing their build and keep track of them?
And I agree with this as well.
That said, I'm less opposed to adding Config.in.host options for random
packages than some other people here.
Quoted 5 lines
Besides, having
Kconfigoptions for all host packages would open the way to including only the .mk files of selected packages, to speed up the makefile parsing.
Maybe it could be handy for other things, too?
IIRC it was also needed to get per-package staging completely correct. And it
would allow to simplify the construction of the list of packages. Things like ALL_DEPENDENCIES wouldn't be needed anymore.
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 Drop unused host packages
In reply to Thomas PetazzoniQuoted 23 lines · Thomas Petazzoni
Hello,
Quoted 7 lines · Julien Floret
A lot of host packages are never built, because they don't have a Config.in option, and are never referenced in other packages' dependencies.
This series removes them to avoid maintaining unneeded code; they will still be in git history if some are needed again in the future.
Quoted 8 lines
The other motivation behind this cleanup is that I'm starting to think about a new proposal for speeding up the
Makefileparsing, similar to what Thomas proposed here:
http://lists.busybox.net/pipermail/buildroot/2014-March/092548.htmlAs Thomas explained, this change would imply adding blind Config.in options for all host packages. It's quite a big change, so a little preliminary cleanup could help.
I haven't looked at the series, but did you take into account that just grepping for "host-foo" is not sufficient to know if the host-foo package is used or not?
Quoted 6 lines
Indeed, if a package has:
BAR_DEPENDENCIES= foothen host-bar automatically has a dependency on host-foo, without host-foo being written anywhere.
That automatic derivation of dependencies of host packages sounded like a good
idea at the time, but it can really bite you. Of the 200 host packages that we have at the moment, there are just 64 that use the inheritance - and many of them are in Julien's list here (possibly incorrectly).
So, as the person who introduced this mis-feature, I'm the first one to vote
for removing it again.
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 Drop unused host packages
Hello,
Quoted 7 lines · Arnout Vandecappelle
That automatic derivation of dependencies of host packages sounded like a good
idea at the time, but it can really bite you. Of the 200 host packages that we have at the moment, there are just 64 that use the inheritance - and many of them are in Julien's list here (possibly incorrectly).So, as the person who introduced this mis-feature, I'm the first one to vote
for removing it again.
I agree that this automatic derivation has caused quite a few issues in the past and in many cases, we need different dependencies for the host and the target variants. So maybe we should think of removing this functionality.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
cover Drop unused host packages
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hi,
Quoted 7 lines
Quoted 2 lines
So, as the person who introduced this mis-feature, I'm the first one to vote for removing it again.
I agree that this automatic derivation has caused quite a few issues in the past and in many cases, we need different dependencies for the host and the target variants. So maybe we should think of removing this functionality.
+1 from here as well.
Signature · 1 line
Bye, Peter Korsgaard
cover Drop unused host packages
2016-07-02 13:30 GMT+02:00 Peter Korsgaard <[email protected]>:
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hi,
Quoted 2 lines
Quoted 2 lines
So, as the person who introduced this mis-feature, I'm the first one to vote for removing it again.
Quoted 6 lines
Quoted 4 lines
I agree that this automatic derivation has caused quite a few issues in the past and in many cases, we need different dependencies for the host and the target variants. So maybe we should think of removing this functionality.
+1 from here as well.
Sounds good to me, I can take a look at this.
Julien
cover Drop unused host packages
Quoted 8 lines · Julien Floret
2016-07-02 13:30 GMT+02:00 Peter Korsgaard <[email protected]>:
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hi,
Quoted 2 lines
Quoted 2 lines
So, as the person who introduced this mis-feature, I'm the first one to vote for removing it again.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
I agree that this automatic derivation has caused quite a few issues in the past and in many cases, we need different dependencies for the host and the target variants. So maybe we should think of removing this functionality.
+1 from here as well.
Sounds good to me, I can take a look at this.
Since that will be 64 patches, it may be a good idea to already submit just a
subset.
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 Drop unused host packages
Quoted 2 lines
Since that will be 64 patches, it may be a good idea to already submit just a
subset.
Ok, done. By the way, I only found 60 packages to modify actually (4 target packages have a dependency on their host variant only).