Skip to contentSkip to conversation

Drop unused host packages

PATCH New Julien Floret 7 participants 46 messages Jun 29, 2016 – Jul 3, 2016

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 7f7823bf5303..f8ef57c076af 100644
@@ -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
index 568dbcbde81f..3d2fdc165237 100644
@@ -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
index fc19aa1d2814..2aeaf1e072ef 100644
@@ -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
index 8ef48e4a7b30..c074e6fb8a5a 100644
@@ -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
index 508b5e21c522..196f249333fc 100644
@@ -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
index 119c01813713..9e443a743a74 100644
@@ -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
index 2a10d49eb15c..c15ecbdf4847 100644
@@ -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
index adc22b4df7b2..a4929ba7d0a3 100644
@@ -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
index 949dea3f146c..35da6815f897 100644
@@ -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
index aff1f1a5d954..541603b859d4 100644
@@ -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
index 51c58c04a0da..1bef74981763 100644
@@ -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
index 40f613cc35f5..dcb7900a5a46 100644
@@ -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
index 55212b26785c..036b9f31e39b 100644
@@ -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
index 0cb205ad594b..d47b1f1ecec4 100644
@@ -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
index b4e6d6a84847..3cb2b9f533ac 100644
@@ -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
index 20169b5c4639..f8bd1991757f 100644
@@ -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
index b6c818f70547..57aee1633c04 100644
@@ -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
index 41a84454093a..63f5538c7225 100644
@@ -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
index 3bef2e979214..4e7a3b5db667 100644
@@ -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
index c17dd938b75d..4d8609aa219c 100644
@@ -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
index f88f5ecace5f..a455f3ece08c 100644
@@ -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
#2 lore raw

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
deleted file mode 100644
index a377c66aef42..000000000000
@@ -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
deleted file mode 100644
index 7c958662c4d1..000000000000
@@ -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
#3 lore raw

PATCH 2/24 sepolgen: drop unused host package

Hello,

Quoted 7 lines · 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

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
#4 lore raw

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
index 4d5a07df0bcf..6883287aeacf 100644
@@ -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
#5 lore raw

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
index d51094f850cb..773c9e2416b5 100644
@@ -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
#6 lore raw

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
index 2fa88107e18f..91165cae57a7 100644
@@ -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
#7 lore raw

PATCH 5/24 erlang-goldrush: drop unused host variant

Hello,

Quoted 1 line · Julien Floret

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.0
ERLANG_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
#8 lore raw

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
index a66ba7158245..42344c9c8674 100644
@@ -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
#9 lore raw

PATCH 6/24 jsmin: drop unused host variant

Hello,

Quoted 13 lines · Julien Floret
---
 package/jsmin/jsmin.mk | 9 ---------
 1 file changed, 9 deletions(-)
package/jsmin/jsmin.mk +0 -0
index a66ba7158245..42344c9c8674 100644
@@ -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
#10 lore raw

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 
#11 lore raw

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
index fd457267502b..01e9e9c9a261 100644
@@ -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
#12 lore raw

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
index 089e12cdb52c..f9cecbcd17c2 100644
@@ -14,4 +14,3 @@ LIBCONFUSE_LICENSE = ISC
 LIBCONFUSE_LICENSE_FILES = LICENSE
 
 $(eval $(autotools-package))
-$(eval $(host-autotools-package))
Signature · 1 line
2.1.0
#13 lore raw

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
index 856793c4e055..182aeb4d3089 100644
@@ -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
#14 lore raw

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
index 197c14e4229a..3b01d510989f 100644
@@ -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
#15 lore raw

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
index 13dba8dec3f1..bd6f58d343a4 100644
@@ -15,4 +15,3 @@ LIBSODIUM_CONF_OPTS += --disable-pie
 endif
 
 $(eval $(autotools-package))
-$(eval $(host-autotools-package))
Signature · 1 line
2.1.0
#16 lore raw

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
index 7b1fdf48afbb..41f8af88da07 100644
@@ -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
#17 lore raw

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
index 747c2bb1145b..5c3238281dc0 100644
@@ -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
#18 lore raw

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
index 7026515e6649..fe83585f3614 100644
@@ -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
#19 lore raw

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 variant

---
package/perl-file-util/perl-file-util.mk | 2 --

1 file changed, 2 deletions(-)
package/perl-file-util/perl-file-util.mk +0 -0
index 7026515e6649..fe83585f3614 100644
@@ -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

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

#20 lore raw

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
index 7026515e6649..fe83585f3614 100644
@@ -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

Quoted 6 lines
Quoted 4 lines

$(eval $(perl-package))
-$(eval $(host-perl-package))
--
2.1.0

Not 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
#21 lore raw

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
index ce6e2b9c5fc8..40cee81210d8 100644
@@ -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
#22 lore raw

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
index 52679e051857..8db518cf38b0 100644
@@ -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
#23 lore raw

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
index b46fc6440f75..2b5dbc4d5052 100644
@@ -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
#24 lore raw

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
index 87a19cf5ae79..e837cf7119f7 100644
@@ -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
#25 lore raw

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
index 1451a0698dee..a13012b635dd 100644
@@ -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
#26 lore raw

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
index 0597ab97d620..6011cd3965d0 100644
@@ -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
#27 lore raw

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
index c815728cd505..9c7eb14c971c 100644
@@ -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
#28 lore raw

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
index 38b4b977525f..c2e791dbbd38 100644
@@ -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
#29 lore raw

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
index 0dadd76516aa..ef009727d663 100644
@@ -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
#30 lore raw

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
index 174f05565aef..5dcd3c460f49 100644
@@ -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
#31 lore raw

cover Drop unused host packages

In reply to Julien Floret

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 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.

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
#32 lore raw

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 = 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?

No, I'm afraid I missed this point, sorry...
I checked only for dependencies on host-foo, or BR2_PACKAGE_HOST_FOO presence.

Julien

#33 lore raw

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, or BR2_PACKAGE_HOST_FOO presence.

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
#34 lore raw

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, or BR2_PACKAGE_HOST_FOO presence.

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.

#35 lore raw

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
#36 lore raw

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
#37 lore raw

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 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.

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
#38 lore raw

cover Drop unused host packages

In reply to Ezequiel Garcia

2016-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?

#39 lore raw

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.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?

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 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?

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
#40 lore raw

cover Drop unused host packages

In reply to Thomas Petazzoni
Quoted 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 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.

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 = foo

then 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
#41 lore raw

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
#42 lore raw

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
#43 lore raw

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

#44 lore raw

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
#45 lore raw

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).