All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/2] pacakge: drop remnants of $(HOST_DIR)/usr (branch yem/no-host-dir-usr)
@ 2022-07-16 21:30 Yann E. MORIN
  2022-07-16 21:30 ` [Buildroot] [PATCH 1/2] package/rustc: fix target names for i586 and i686 Yann E. MORIN
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Yann E. MORIN @ 2022-07-16 21:30 UTC (permalink / raw)
  To: buildroot
  Cc: Bernd Kuhls, Hervé Codina, Julien Olivain, Antoine Tenart,
	José Luis Salvador Rufo, Anisse Astier, Asaf Kahlon,
	Guillaume William Brs, Angelo Compagnucci, Vadim Kochan,
	Ezequiel Garcia, Thomas Petazzoni, Julien Boibessot, Matt Weber,
	Yann E . MORIN

Hello All!

Back in 2017.08, we dropped the use of $(HOST_DIR)/usr as a prefix, and
just installed with $(HOST_DIR) as a prefix. At least, the migration
information was added as c8f51a00d8ec for 2017.08.

5 years ago.

And we still had a few packages that installed stuff in there, or used
stuff from there.

Fix those.

In the process of testing the change, we noticed that the conditions for
the rustc tier-1 and tier-2 platforms were incorrect, so we fixed them
too.

Regards,
Yann E. MORIN.


----------------------------------------------------------------
Yann E. MORIN (2):
      package/rustc: fix target names for i586 and i686
      pacakge: drop remnants of $(HOST_DIR)/usr

 boot/grub2/grub2.mk                                               | 2 +-
 package/abootimg/abootimg.mk                                      | 2 +-
 package/bind/bind.mk                                              | 2 +-
 package/compiler-rt/compiler-rt.mk                                | 2 +-
 package/dbus-python/dbus-python.mk                                | 6 +++---
 package/gawk/gawk.mk                                              | 2 +-
 package/gettext-tiny/gettext-tiny.mk                              | 2 +-
 package/go/go.mk                                                  | 6 +++---
 package/jimtcl/jimtcl.mk                                          | 6 +++---
 package/libapparmor/libapparmor.mk                                | 2 +-
 package/libva/libva.mk                                            | 2 +-
 package/lua/lua.mk                                                | 2 +-
 package/ola/ola.mk                                                | 4 ++--
 package/openjdk-bin/openjdk-bin.mk                                | 2 +-
 package/php-apcu/php-apcu.mk                                      | 4 ++--
 package/php-lua/php-lua.mk                                        | 4 ++--
 package/php-pam/php-pam.mk                                        | 4 ++--
 package/php-pecl-dbus/php-pecl-dbus.mk                            | 4 ++--
 package/python-cryptography/python-cryptography.mk                | 2 +-
 package/python-pybind/python-pybind.mk                            | 2 +-
 package/refpolicy/refpolicy.mk                                    | 2 +-
 package/rustc/Config.in.host                                      | 8 ++++----
 package/zfs/zfs.mk                                                | 2 +-
 .../package/python-pybind-example/python-pybind-example.mk        | 2 +-
 24 files changed, 38 insertions(+), 38 deletions(-)

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH 1/2] package/rustc: fix target names for i586 and i686
  2022-07-16 21:30 [Buildroot] [PATCH 0/2] pacakge: drop remnants of $(HOST_DIR)/usr (branch yem/no-host-dir-usr) Yann E. MORIN
@ 2022-07-16 21:30 ` Yann E. MORIN
  2022-07-17  3:21   ` Baruch Siach via buildroot
  2022-08-16 20:11   ` Peter Korsgaard
  2022-07-16 21:30 ` [Buildroot] [PATCH 2/2] pacakge: drop remnants of $(HOST_DIR)/usr Yann E. MORIN
  2022-07-24 10:15 ` [Buildroot] [PATCH 0/2] pacakge: drop remnants of $(HOST_DIR)/usr (branch yem/no-host-dir-usr) Yann E. MORIN
  2 siblings, 2 replies; 9+ messages in thread
From: Yann E. MORIN @ 2022-07-16 21:30 UTC (permalink / raw)
  To: buildroot; +Cc: Yann E. MORIN, Thomas Petazzoni

Commit d69d40c029dc (package/rustc: add support for Tier 1 and Tier 2
platforms) misspelled the config options for i586 and i686.

They are BR2_i386_i586 and BR2_i386_i686, not BR2_i586 or BR2_i686.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 package/rustc/Config.in.host | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/package/rustc/Config.in.host b/package/rustc/Config.in.host
index 27c3a3cdeb..fec8726aee 100644
--- a/package/rustc/Config.in.host
+++ b/package/rustc/Config.in.host
@@ -25,7 +25,7 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER1_PLATFORMS
 	# aarch64-unknown-linux-gnu
 	default y if BR2_aarch64 && BR2_TOOLCHAIN_USES_GLIBC
 	# i686-unknown-linux-gnu
-	default y if (BR2_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_GLIBC
+	default y if (BR2_x86_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_GLIBC
 	# x86_64-unknown-linux-gnu
 	default y if BR2_x86_64 && BR2_TOOLCHAIN_USES_GLIBC
 
@@ -93,11 +93,11 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_PLATFORMS
 	# userspace
 	default y if BR2_arm && BR2_ARM_CPU_ARMV8A && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_MUSL
 	# i586-unknown-linux-gnu
-	default y if BR2_i586 && BR2_TOOLCHAIN_USES_GLIBC
+	default y if BR2_x86_i586 && BR2_TOOLCHAIN_USES_GLIBC
 	# i586-unknown-linux-musl
-	default y if BR2_i586 && BR2_TOOLCHAIN_USES_MUSL
+	default y if BR2_x86_i586 && BR2_TOOLCHAIN_USES_MUSL
 	# i686-unknown-linux-musl
-	default y if (BR2_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_MUSL
+	default y if (BR2_x86_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_MUSL
 	# mips-unknown-linux-musl
 	default y if BR2_mips && BR2_TOOLCHAIN_USES_MUSL && !BR2_MIPS_CPU_MIPS32R6
 	# mips64-unknown-linux-muslabi64
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH 2/2] pacakge: drop remnants of $(HOST_DIR)/usr
  2022-07-16 21:30 [Buildroot] [PATCH 0/2] pacakge: drop remnants of $(HOST_DIR)/usr (branch yem/no-host-dir-usr) Yann E. MORIN
  2022-07-16 21:30 ` [Buildroot] [PATCH 1/2] package/rustc: fix target names for i586 and i686 Yann E. MORIN
@ 2022-07-16 21:30 ` Yann E. MORIN
  2022-07-24  8:38   ` Romain Naour
  2022-07-24 10:15 ` [Buildroot] [PATCH 0/2] pacakge: drop remnants of $(HOST_DIR)/usr (branch yem/no-host-dir-usr) Yann E. MORIN
  2 siblings, 1 reply; 9+ messages in thread
From: Yann E. MORIN @ 2022-07-16 21:30 UTC (permalink / raw)
  To: buildroot
  Cc: Bernd Kuhls, Hervé Codina, Matt Weber, Julien Olivain,
	Antoine Tenart, José Luis Salvador Rufo, Anisse Astier,
	Asaf Kahlon, Guillaume William Brs, Angelo Compagnucci,
	Vadim Kochan, Ezequiel Garcia, Thomas Petazzoni,
	Julien Boibessot, Yann E. MORIN

It's been ages (5 years at the next release) that we've not installed
host packages in $(HOST_DIR)/usr, but we still have a few packages that
reference it or install things in there.

Drop all of those in one fell swoop.

The run-time test still succeeds, and the following defconfig, which
should exercise all touched packages [*], does build:

    BR2_x86_i686=y
    BR2_TOOLCHAIN_EXTERNAL=y
    BR2_INIT_NONE=y
    BR2_SYSTEM_BIN_SH_NONE=y
    # BR2_PACKAGE_BUSYBOX is not set
    BR2_PACKAGE_GAWK=y
    BR2_PACKAGE_GETTEXT=y
    BR2_PACKAGE_ABOOTIMG=y
    BR2_PACKAGE_DBUS_PYTHON=y
    BR2_PACKAGE_OLA=y
    BR2_PACKAGE_JIMTCL=y
    BR2_PACKAGE_LUA=y
    # BR2_PACKAGE_LUA_32BITS is not set
    BR2_PACKAGE_ARGPARSE=y
    BR2_PACKAGE_PERL=y
    BR2_PACKAGE_PHP=y
    BR2_PACKAGE_PHP_APCU=y
    BR2_PACKAGE_PHP_LUA=y
    BR2_PACKAGE_PHP_PAM=y
    BR2_PACKAGE_PHP_PECL_DBUS=y
    BR2_PACKAGE_PYTHON3=y
    BR2_PACKAGE_PYTHON_CRYPTOGRAPHY=y
    BR2_PACKAGE_PYTHON_PLY=y
    BR2_PACKAGE_PYTHON_PYBIND=y
    BR2_PACKAGE_LIBVA=y
    BR2_PACKAGE_BIND=y
    BR2_PACKAGE_BIND_SERVER=y
    BR2_PACKAGE_BIND_TOOLS=y
    BR2_PACKAGE_APPARMOR=y
    BR2_PACKAGE_APPARMOR_BINUTILS=y
    BR2_PACKAGE_APPARMOR_UTILS=y
    BR2_PACKAGE_APPARMOR_UTILS_EXTRA=y
    BR2_PACKAGE_APPARMOR_PROFILES=y
    BR2_PACKAGE_REFPOLICY=y
    BR2_PACKAGE_URANDOM_SCRIPTS=y
    BR2_PACKAGE_BASH=y
    # embiggen-disk to exercise go
    BR2_PACKAGE_EMBIGGEN_DISK=y
    BR2_TARGET_GRUB2=y
    BR2_TARGET_GRUB2_I386_PC=y
    BR2_TARGET_GRUB2_I386_EFI=y

[*] exceptions:
  - zfs was not tested: it needs a kernel to be built;
  - compiler-rt was not tsted: it needs llvm to be built, that takes
    ages, and other packages already reference the correct location for
    llvm-config, so it was assumed that is OK.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Cc: Anisse Astier <anisse@astier.eu>
Cc: Antoine Tenart <atenart@kernel.org>
Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Asaf Kahlon <asafka7@gmail.com>
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
Cc: Christian Stewart <christian@paral.in>
Cc: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Cc: Francois Perrad <francois.perrad@gadz.org>
Cc: Guillaume William Brs <guillaume.bressaix@gmail.com>
Cc: Hervé Codina <herve.codina@bootlin.com>
Cc: José Luis Salvador Rufo <salvador.joseluis@gmail.com>
Cc: Julien Boibessot <julien.boibessot@armadeus.com>
Cc: Julien Olivain <ju.o@free.fr>
Cc: Matt Weber <matthew.weber@collins.com>
Cc: Nicolas Carrier <nicolas.carrier@orolia.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Vadim Kochan <vadim4j@gmail.com>
Cc: Yegor Yefremov <yegorslists@googlemail.com>
---
 boot/grub2/grub2.mk                                         | 2 +-
 package/abootimg/abootimg.mk                                | 2 +-
 package/bind/bind.mk                                        | 2 +-
 package/compiler-rt/compiler-rt.mk                          | 2 +-
 package/dbus-python/dbus-python.mk                          | 6 +++---
 package/gawk/gawk.mk                                        | 2 +-
 package/gettext-tiny/gettext-tiny.mk                        | 2 +-
 package/go/go.mk                                            | 6 +++---
 package/jimtcl/jimtcl.mk                                    | 6 +++---
 package/libapparmor/libapparmor.mk                          | 2 +-
 package/libva/libva.mk                                      | 2 +-
 package/lua/lua.mk                                          | 2 +-
 package/ola/ola.mk                                          | 4 ++--
 package/openjdk-bin/openjdk-bin.mk                          | 2 +-
 package/php-apcu/php-apcu.mk                                | 4 ++--
 package/php-lua/php-lua.mk                                  | 4 ++--
 package/php-pam/php-pam.mk                                  | 4 ++--
 package/php-pecl-dbus/php-pecl-dbus.mk                      | 4 ++--
 package/python-cryptography/python-cryptography.mk          | 2 +-
 package/python-pybind/python-pybind.mk                      | 2 +-
 package/refpolicy/refpolicy.mk                              | 2 +-
 package/zfs/zfs.mk                                          | 2 +-
 .../package/python-pybind-example/python-pybind-example.mk  | 2 +-
 23 files changed, 34 insertions(+), 34 deletions(-)

diff --git a/boot/grub2/grub2.mk b/boot/grub2/grub2.mk
index d93e383422..955f48ae8d 100644
--- a/boot/grub2/grub2.mk
+++ b/boot/grub2/grub2.mk
@@ -183,7 +183,7 @@ define GRUB2_INSTALL_IMAGES_CMDS
 	$(foreach tuple, $(GRUB2_TUPLES-y), \
 		@$(call MESSAGE,Installing $(tuple) to images directory)
 		mkdir -p $(dir $(GRUB2_IMAGE_$(tuple)))
-		$(HOST_DIR)/usr/bin/grub-mkimage \
+		$(HOST_DIR)/bin/grub-mkimage \
 			-d $(@D)/build-$(tuple)/grub-core/ \
 			-O $(tuple) \
 			-o $(GRUB2_IMAGE_$(tuple)) \
diff --git a/package/abootimg/abootimg.mk b/package/abootimg/abootimg.mk
index a07100df5a..ca09e94f16 100644
--- a/package/abootimg/abootimg.mk
+++ b/package/abootimg/abootimg.mk
@@ -27,7 +27,7 @@ define HOST_ABOOTIMG_BUILD_CMDS
 endef
 
 define HOST_ABOOTIMG_INSTALL_CMDS
-	$(INSTALL) -m 0755 $(@D)/abootimg $(HOST_DIR)/usr/bin/abootimg
+	$(INSTALL) -m 0755 $(@D)/abootimg $(HOST_DIR)/bin/abootimg
 endef
 
 $(eval $(generic-package))
diff --git a/package/bind/bind.mk b/package/bind/bind.mk
index 5164001ab5..d18d84bbaf 100644
--- a/package/bind/bind.mk
+++ b/package/bind/bind.mk
@@ -83,7 +83,7 @@ endif
 # Used by dnssec-keymgr
 ifeq ($(BR2_PACKAGE_PYTHON_PLY),y)
 BIND_DEPENDENCIES += host-python-ply
-BIND_CONF_OPTS += --with-python=$(HOST_DIR)/usr/bin/python
+BIND_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python
 else
 BIND_CONF_OPTS += --with-python=no
 endif
diff --git a/package/compiler-rt/compiler-rt.mk b/package/compiler-rt/compiler-rt.mk
index 57f9c26854..c8ea86e899 100644
--- a/package/compiler-rt/compiler-rt.mk
+++ b/package/compiler-rt/compiler-rt.mk
@@ -19,7 +19,7 @@ COMPILER_RT_INSTALL_TARGET = NO
 COMPILER_RT_CONF_OPTS=-DCOMPILER_RT_STANDALONE_BUILD=OFF \
 	-DCOMPILER_RT_STANDALONE_BUILD=ON \
 	-DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=$(GNU_TARGET_NAME) \
-	-DLLVM_CONFIG_PATH=$(HOST_DIR)/usr/bin/llvm-config
+	-DLLVM_CONFIG_PATH=$(HOST_DIR)/bin/llvm-config
 
 # The installation of the target runtime libraries defaults to DESTDIR, however
 # host-clang resources directory needs a link so Clang can find the runtime
diff --git a/package/dbus-python/dbus-python.mk b/package/dbus-python/dbus-python.mk
index d9bb30ed67..16b22d4821 100644
--- a/package/dbus-python/dbus-python.mk
+++ b/package/dbus-python/dbus-python.mk
@@ -20,9 +20,9 @@ DBUS_PYTHON_CONF_ENV = \
 
 HOST_DBUS_PYTHON_CONF_ENV = \
 	PYTHON=$(HOST_DIR)/bin/python3 \
-	PYTHON_INCLUDES="`$(HOST_DIR)/usr/bin/python3-config --includes`" \
-	PYTHON_LIBS="`$(HOST_DIR)/usr/bin/python3-config --ldflags`" \
-	PYTHON_EXTRA_LIBS="`$(HOST_DIR)/usr/bin/python3-config --libs --embed`"
+	PYTHON_INCLUDES="`$(HOST_DIR)/bin/python3-config --includes`" \
+	PYTHON_LIBS="`$(HOST_DIR)/bin/python3-config --ldflags`" \
+	PYTHON_EXTRA_LIBS="`$(HOST_DIR)/bin/python3-config --libs --embed`"
 
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
diff --git a/package/gawk/gawk.mk b/package/gawk/gawk.mk
index b55c74d00a..3a1cec4969 100644
--- a/package/gawk/gawk.mk
+++ b/package/gawk/gawk.mk
@@ -40,7 +40,7 @@ endef
 GAWK_POST_INSTALL_TARGET_HOOKS += GAWK_CREATE_SYMLINK
 
 define HOST_GAWK_CREATE_SYMLINK
-	ln -sf gawk $(HOST_DIR)/usr/bin/awk
+	ln -sf gawk $(HOST_DIR)/bin/awk
 endef
 
 HOST_GAWK_POST_INSTALL_HOOKS += HOST_GAWK_CREATE_SYMLINK
diff --git a/package/gettext-tiny/gettext-tiny.mk b/package/gettext-tiny/gettext-tiny.mk
index c297cb1fe5..e2dc563667 100644
--- a/package/gettext-tiny/gettext-tiny.mk
+++ b/package/gettext-tiny/gettext-tiny.mk
@@ -95,7 +95,7 @@ define HOST_GETTEXT_TINY_INSTALL_CMDS
 	$(Q)touch $(HOST_DIR)/share/gettext-tiny/ABOUT-NLS
 
 	# for gettextize
-	ln -sf $(HOST_DIR)/usr/share/gettext-tiny $(HOST_DIR)/usr/share/gettext
+	ln -sf $(HOST_DIR)/share/gettext-tiny $(HOST_DIR)/share/gettext
 endef
 
 # Install simple echo wrapper for gettext tool
diff --git a/package/go/go.mk b/package/go/go.mk
index 6767b1481d..172bf16b6f 100644
--- a/package/go/go.mk
+++ b/package/go/go.mk
@@ -13,10 +13,10 @@ GO_LICENSE_FILES = LICENSE
 GO_CPE_ID_VENDOR = golang
 
 HOST_GO_DEPENDENCIES = host-go-bootstrap
-HOST_GO_GOPATH = $(HOST_DIR)/usr/share/go-path
-HOST_GO_HOST_CACHE = $(HOST_DIR)/usr/share/host-go-cache
+HOST_GO_GOPATH = $(HOST_DIR)/share/go-path
+HOST_GO_HOST_CACHE = $(HOST_DIR)/share/host-go-cache
 HOST_GO_ROOT = $(HOST_DIR)/lib/go
-HOST_GO_TARGET_CACHE = $(HOST_DIR)/usr/share/go-cache
+HOST_GO_TARGET_CACHE = $(HOST_DIR)/share/go-cache
 
 # We pass an empty GOBIN, otherwise "go install: cannot install
 # cross-compiled binaries when GOBIN is set"
diff --git a/package/jimtcl/jimtcl.mk b/package/jimtcl/jimtcl.mk
index 2f8e0e6c69..3d68ca8f64 100644
--- a/package/jimtcl/jimtcl.mk
+++ b/package/jimtcl/jimtcl.mk
@@ -92,11 +92,11 @@ endef
 
 define HOST_JIMTCL_INSTALL_CMDS
 	for i in $(JIMTCL_HEADERS_TO_INSTALL); do \
-		cp -a $(@D)/$$i $(HOST_DIR)/usr/include/ || exit 1 ; \
+		cp -a $(@D)/$$i $(HOST_DIR)/include/ || exit 1 ; \
 	done;
 	$(INSTALL) -m 0755 -D $(@D)/libjim.so.$(JIMTCL_VERSION) \
-		$(HOST_DIR)/usr/lib/libjim.so.$(JIMTCL_VERSION)
-	ln -sf libjim.so.$(JIMTCL_VERSION) $(HOST_DIR)/usr/lib/libjim.so
+		$(HOST_DIR)/lib/libjim.so.$(JIMTCL_VERSION)
+	ln -sf libjim.so.$(JIMTCL_VERSION) $(HOST_DIR)/lib/libjim.so
 endef
 
 $(eval $(generic-package))
diff --git a/package/libapparmor/libapparmor.mk b/package/libapparmor/libapparmor.mk
index fcd3a4389b..af59335933 100644
--- a/package/libapparmor/libapparmor.mk
+++ b/package/libapparmor/libapparmor.mk
@@ -31,7 +31,7 @@ ifeq ($(BR2_PACKAGE_PYTHON3),y)
 LIBAPPARMOR_DEPENDENCIES += host-python3 host-python-setuptools host-swig python3
 LIBAPPARMOR_CONF_OPTS += \
 	--with-python \
-	PYTHON=$(HOST_DIR)/usr/bin/python3 \
+	PYTHON=$(HOST_DIR)/bin/python3 \
 	PYTHON_CONFIG=$(STAGING_DIR)/usr/bin/python3-config \
 	SWIG=$(SWIG)
 else
diff --git a/package/libva/libva.mk b/package/libva/libva.mk
index f89dac335f..4138daf8b4 100644
--- a/package/libva/libva.mk
+++ b/package/libva/libva.mk
@@ -30,7 +30,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_WAYLAND),y)
 LIBVA_DEPENDENCIES += wayland
-LIBVA_CONF_ENV += ac_cv_path_WAYLAND_SCANNER=$(HOST_DIR)/usr/bin/wayland-scanner
+LIBVA_CONF_ENV += ac_cv_path_WAYLAND_SCANNER=$(HOST_DIR)/bin/wayland-scanner
 LIBVA_CONF_OPTS += --enable-wayland
 else
 LIBVA_CONF_OPTS += --disable-wayland
diff --git a/package/lua/lua.mk b/package/lua/lua.mk
index 09e7b34f7d..01b554eb6b 100644
--- a/package/lua/lua.mk
+++ b/package/lua/lua.mk
@@ -60,7 +60,7 @@ LUA_POST_PATCH_HOOKS += LUA_32BITS_LUACONF
 endif
 
 define HOST_LUA_LUACONF
-	$(SED) 's|#define LUA_ROOT.*|#define LUA_ROOT "$(HOST_DIR)/usr/"|' $(@D)/src/luaconf.h
+	$(SED) 's|#define LUA_ROOT.*|#define LUA_ROOT "$(HOST_DIR)/"|' $(@D)/src/luaconf.h
 endef
 HOST_LUA_POST_PATCH_HOOKS += HOST_LUA_LUACONF
 
diff --git a/package/ola/ola.mk b/package/ola/ola.mk
index 6600de797e..82615e8155 100644
--- a/package/ola/ola.mk
+++ b/package/ola/ola.mk
@@ -24,7 +24,7 @@ OLA_CONF_OPTS = \
 	--disable-root-check \
 	--disable-tcmalloc \
 	--disable-unittests \
-	--with-ola-protoc-plugin=$(HOST_DIR)/usr/bin/ola_protoc_plugin
+	--with-ola-protoc-plugin=$(HOST_DIR)/bin/ola_protoc_plugin
 
 HOST_OLA_DEPENDENCIES = host-util-linux host-protobuf host-bison host-flex
 
@@ -47,7 +47,7 @@ HOST_OLA_CONF_OPTS = \
 # only.
 HOST_OLA_MAKE_OPTS = protoc/ola_protoc_plugin
 define HOST_OLA_INSTALL_CMDS
-	$(INSTALL) -D -m 0755 $(@D)/protoc/ola_protoc_plugin $(HOST_DIR)/usr/bin/ola_protoc_plugin
+	$(INSTALL) -D -m 0755 $(@D)/protoc/ola_protoc_plugin $(HOST_DIR)/bin/ola_protoc_plugin
 endef
 
 # sets where to find python libs built for target and required by ola
diff --git a/package/openjdk-bin/openjdk-bin.mk b/package/openjdk-bin/openjdk-bin.mk
index 5cb6e3ba6a..608a0bc3ac 100644
--- a/package/openjdk-bin/openjdk-bin.mk
+++ b/package/openjdk-bin/openjdk-bin.mk
@@ -26,7 +26,7 @@ HOST_OPENJDK_BIN_SITE = https://github.com/adoptium/temurin$(HOST_OPENJDK_BIN_VE
 HOST_OPENJDK_BIN_LICENSE = GPL-2.0+ with exception
 HOST_OPENJDK_BIN_LICENSE_FILES = legal/java.prefs/LICENSE legal/java.prefs/ASSEMBLY_EXCEPTION
 
-HOST_OPENJDK_BIN_ROOT_DIR = $(HOST_DIR)/usr/lib/jvm
+HOST_OPENJDK_BIN_ROOT_DIR = $(HOST_DIR)/lib/jvm
 
 # unpack200 has an invalid RPATH and relies on libzlib. When
 # host-libzlib is installed on the system, the error "ERROR: package
diff --git a/package/php-apcu/php-apcu.mk b/package/php-apcu/php-apcu.mk
index 3ac062e772..d381c9054f 100644
--- a/package/php-apcu/php-apcu.mk
+++ b/package/php-apcu/php-apcu.mk
@@ -16,8 +16,8 @@ PHP_APCU_CONF_OPTS = \
 
 define PHP_APCU_PHPIZE
 	(cd $(@D); \
-		PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
-		PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
+		PHP_AUTOCONF=$(HOST_DIR)/bin/autoconf \
+		PHP_AUTOHEADER=$(HOST_DIR)/bin/autoheader \
 		$(STAGING_DIR)/usr/bin/phpize)
 endef
 PHP_APCU_PRE_CONFIGURE_HOOKS += PHP_APCU_PHPIZE
diff --git a/package/php-lua/php-lua.mk b/package/php-lua/php-lua.mk
index 529b347e42..559bd59209 100644
--- a/package/php-lua/php-lua.mk
+++ b/package/php-lua/php-lua.mk
@@ -30,8 +30,8 @@ endif
 
 define PHP_LUA_PHPIZE
 	(cd $(@D); \
-		PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
-		PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
+		PHP_AUTOCONF=$(HOST_DIR)/bin/autoconf \
+		PHP_AUTOHEADER=$(HOST_DIR)/bin/autoheader \
 		$(STAGING_DIR)/usr/bin/phpize)
 endef
 PHP_LUA_PRE_CONFIGURE_HOOKS += PHP_LUA_PHPIZE
diff --git a/package/php-pam/php-pam.mk b/package/php-pam/php-pam.mk
index 8e20095d86..c35ad4f5d0 100644
--- a/package/php-pam/php-pam.mk
+++ b/package/php-pam/php-pam.mk
@@ -17,8 +17,8 @@ PHP_PAM_CONF_OPTS = \
 
 define PHP_PAM_PHPIZE
 	(cd $(@D); \
-		PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
-		PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
+		PHP_AUTOCONF=$(HOST_DIR)/bin/autoconf \
+		PHP_AUTOHEADER=$(HOST_DIR)/bin/autoheader \
 		$(STAGING_DIR)/usr/bin/phpize)
 endef
 PHP_PAM_PRE_CONFIGURE_HOOKS += PHP_PAM_PHPIZE
diff --git a/package/php-pecl-dbus/php-pecl-dbus.mk b/package/php-pecl-dbus/php-pecl-dbus.mk
index 456d662554..a70a2e7ae1 100644
--- a/package/php-pecl-dbus/php-pecl-dbus.mk
+++ b/package/php-pecl-dbus/php-pecl-dbus.mk
@@ -15,8 +15,8 @@ PHP_PECL_DBUS_CONF_OPTS = \
 
 define PHP_PECL_DBUS_PHPIZE
 	(cd $(@D); \
-		PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
-		PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
+		PHP_AUTOCONF=$(HOST_DIR)/bin/autoconf \
+		PHP_AUTOHEADER=$(HOST_DIR)/bin/autoheader \
 		$(STAGING_DIR)/usr/bin/phpize)
 endef
 PHP_PECL_DBUS_PRE_CONFIGURE_HOOKS += PHP_PECL_DBUS_PHPIZE
diff --git a/package/python-cryptography/python-cryptography.mk b/package/python-cryptography/python-cryptography.mk
index 99eba3eeab..582a7f7891 100644
--- a/package/python-cryptography/python-cryptography.mk
+++ b/package/python-cryptography/python-cryptography.mk
@@ -27,7 +27,7 @@ PYTHON_CRYPTOGRAPHY_ENV = \
 	PYO3_CROSS_LIB_DIR="$(STAGING_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)"
 HOST_PYTHON_CRYPTOGRAPHY_ENV = \
 	$(HOST_PKG_CARGO_ENV) \
-	PYO3_CROSS_LIB_DIR="$(HOST_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)"
+	PYO3_CROSS_LIB_DIR="$(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)"
 # We need to vendor the Cargo crates at download time
 PYTHON_CRYPTOGRAPHY_DOWNLOAD_POST_PROCESS = cargo
 PYTHON_CRYPTOGRAPHY_DOWNLOAD_DEPENDENCIES = host-rustc
diff --git a/package/python-pybind/python-pybind.mk b/package/python-pybind/python-pybind.mk
index 7448d246b2..05fc593346 100644
--- a/package/python-pybind/python-pybind.mk
+++ b/package/python-pybind/python-pybind.mk
@@ -17,7 +17,7 @@ PYTHON_PYBIND_CONF_OPTS = \
 	-DPYBIND11_TEST=OFF \
 	-DPYBIND11_NOPYTHON=ON
 
-PYTHON_PYBIND_INSTALL_PATH = $(HOST_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/pybind11
+PYTHON_PYBIND_INSTALL_PATH = $(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/pybind11
 
 define PYTHON_PYBIND_INSTALL_MODULE
 	mkdir -p $(PYTHON_PYBIND_INSTALL_PATH)
diff --git a/package/refpolicy/refpolicy.mk b/package/refpolicy/refpolicy.mk
index 44c50af278..f11b72755a 100644
--- a/package/refpolicy/refpolicy.mk
+++ b/package/refpolicy/refpolicy.mk
@@ -30,7 +30,7 @@ endif
 
 # Cannot use multiple threads to build the reference policy
 REFPOLICY_MAKE = \
-	PYTHON=$(HOST_DIR)/usr/bin/python3 \
+	PYTHON=$(HOST_DIR)/bin/python3 \
 	XMLLINT=$(LIBXML2_HOST_BINARY) \
 	TEST_TOOLCHAIN=$(HOST_DIR) \
 	$(TARGET_MAKE_ENV) \
diff --git a/package/zfs/zfs.mk b/package/zfs/zfs.mk
index 07ce3295ec..3f5b39cc4e 100644
--- a/package/zfs/zfs.mk
+++ b/package/zfs/zfs.mk
@@ -40,7 +40,7 @@ endif
 ifeq ($(BR2_PACKAGE_PYTHON3),y)
 ZFS_DEPENDENCIES += python3 python-setuptools host-python-cffi host-python-packaging
 ZFS_CONF_ENV += \
-	PYTHON=$(HOST_DIR)/usr/bin/python3 \
+	PYTHON=$(HOST_DIR)/bin/python3 \
 	PYTHON_CPPFLAGS="`$(STAGING_DIR)/usr/bin/python3-config --includes`" \
 	PYTHON_LIBS="`$(STAGING_DIR)/usr/bin/python3-config --ldflags`" \
 	PYTHON_EXTRA_LIBS="`$(STAGING_DIR)/usr/bin/python3-config --libs --embed`" \
diff --git a/support/testing/tests/package/br2-external/python-pybind/package/python-pybind-example/python-pybind-example.mk b/support/testing/tests/package/br2-external/python-pybind/package/python-pybind-example/python-pybind-example.mk
index a6d7e0daaf..6620e70410 100644
--- a/support/testing/tests/package/br2-external/python-pybind/package/python-pybind-example/python-pybind-example.mk
+++ b/support/testing/tests/package/br2-external/python-pybind/package/python-pybind-example/python-pybind-example.mk
@@ -10,7 +10,7 @@
 PYTHON_PYBIND_EXAMPLE_DEPENDENCIES = python-pybind
 
 PYTHON_PYBIND_EXAMPLE_PYBIND_INCLUDE = \
-	$(shell $(HOST_DIR)/usr/bin/python3 -c 'import pybind11; print(pybind11.get_include())')
+	$(shell $(HOST_DIR)/bin/python3 -c 'import pybind11; print(pybind11.get_include())')
 
 PYTHON_PYBIND_EXAMPLE_CXX_FLAGS = \
 	$(TARGET_CXXFLAGS) \
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [Buildroot] [PATCH 1/2] package/rustc: fix target names for i586 and i686
  2022-07-16 21:30 ` [Buildroot] [PATCH 1/2] package/rustc: fix target names for i586 and i686 Yann E. MORIN
@ 2022-07-17  3:21   ` Baruch Siach via buildroot
  2022-07-17  6:56     ` Yann E. MORIN
  2022-08-16 20:11   ` Peter Korsgaard
  1 sibling, 1 reply; 9+ messages in thread
From: Baruch Siach via buildroot @ 2022-07-17  3:21 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: Thomas Petazzoni, buildroot

Hi Yann,

On Sat, Jul 16 2022, Yann E. MORIN wrote:
> Commit d69d40c029dc (package/rustc: add support for Tier 1 and Tier 2
> platforms) misspelled the config options for i586 and i686.
>
> They are BR2_i386_i586 and BR2_i386_i686, not BR2_i586 or BR2_i686.

You mean BR2_x86_i586 and BR2_x86_i686, right? Because that's what the
patch does.

baruch

> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ---
>  package/rustc/Config.in.host | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/package/rustc/Config.in.host b/package/rustc/Config.in.host
> index 27c3a3cdeb..fec8726aee 100644
> --- a/package/rustc/Config.in.host
> +++ b/package/rustc/Config.in.host
> @@ -25,7 +25,7 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER1_PLATFORMS
>  	# aarch64-unknown-linux-gnu
>  	default y if BR2_aarch64 && BR2_TOOLCHAIN_USES_GLIBC
>  	# i686-unknown-linux-gnu
> -	default y if (BR2_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_GLIBC
> +	default y if (BR2_x86_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_GLIBC
>  	# x86_64-unknown-linux-gnu
>  	default y if BR2_x86_64 && BR2_TOOLCHAIN_USES_GLIBC
>  
> @@ -93,11 +93,11 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_PLATFORMS
>  	# userspace
>  	default y if BR2_arm && BR2_ARM_CPU_ARMV8A && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_MUSL
>  	# i586-unknown-linux-gnu
> -	default y if BR2_i586 && BR2_TOOLCHAIN_USES_GLIBC
> +	default y if BR2_x86_i586 && BR2_TOOLCHAIN_USES_GLIBC
>  	# i586-unknown-linux-musl
> -	default y if BR2_i586 && BR2_TOOLCHAIN_USES_MUSL
> +	default y if BR2_x86_i586 && BR2_TOOLCHAIN_USES_MUSL
>  	# i686-unknown-linux-musl
> -	default y if (BR2_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_MUSL
> +	default y if (BR2_x86_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_MUSL
>  	# mips-unknown-linux-musl
>  	default y if BR2_mips && BR2_TOOLCHAIN_USES_MUSL && !BR2_MIPS_CPU_MIPS32R6
>  	# mips64-unknown-linux-muslabi64


-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Buildroot] [PATCH 1/2] package/rustc: fix target names for i586 and i686
  2022-07-17  3:21   ` Baruch Siach via buildroot
@ 2022-07-17  6:56     ` Yann E. MORIN
  2022-07-24  9:01       ` Romain Naour
  0 siblings, 1 reply; 9+ messages in thread
From: Yann E. MORIN @ 2022-07-17  6:56 UTC (permalink / raw)
  To: Baruch Siach; +Cc: Thomas Petazzoni, buildroot

Baruch, All,

On 2022-07-17 06:21 +0300, Baruch Siach via buildroot spake thusly:
> On Sat, Jul 16 2022, Yann E. MORIN wrote:
> > Commit d69d40c029dc (package/rustc: add support for Tier 1 and Tier 2
> > platforms) misspelled the config options for i586 and i686.
> >
> > They are BR2_i386_i586 and BR2_i386_i686, not BR2_i586 or BR2_i686.
> 
> You mean BR2_x86_i586 and BR2_x86_i686, right? Because that's what the
> patch does.

Aha, good catch, thanks! :-)

"Why would I copy-paste the options names, they are simple enough, it's
gonna be faster to type them..." did I think while fixing typoes in
simple variable names. Doh...

So, I double-checked, and the options really arenamed BR2_x86_i586 and
BR2_x86_i686. And this time, I did copy-pate them:-)

Regards,
Yann E. MORIN.

> baruch
> 
> > Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> > Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> > ---
> >  package/rustc/Config.in.host | 8 ++++----
> >  1 file changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/package/rustc/Config.in.host b/package/rustc/Config.in.host
> > index 27c3a3cdeb..fec8726aee 100644
> > --- a/package/rustc/Config.in.host
> > +++ b/package/rustc/Config.in.host
> > @@ -25,7 +25,7 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER1_PLATFORMS
> >  	# aarch64-unknown-linux-gnu
> >  	default y if BR2_aarch64 && BR2_TOOLCHAIN_USES_GLIBC
> >  	# i686-unknown-linux-gnu
> > -	default y if (BR2_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_GLIBC
> > +	default y if (BR2_x86_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_GLIBC
> >  	# x86_64-unknown-linux-gnu
> >  	default y if BR2_x86_64 && BR2_TOOLCHAIN_USES_GLIBC
> >  
> > @@ -93,11 +93,11 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_PLATFORMS
> >  	# userspace
> >  	default y if BR2_arm && BR2_ARM_CPU_ARMV8A && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_MUSL
> >  	# i586-unknown-linux-gnu
> > -	default y if BR2_i586 && BR2_TOOLCHAIN_USES_GLIBC
> > +	default y if BR2_x86_i586 && BR2_TOOLCHAIN_USES_GLIBC
> >  	# i586-unknown-linux-musl
> > -	default y if BR2_i586 && BR2_TOOLCHAIN_USES_MUSL
> > +	default y if BR2_x86_i586 && BR2_TOOLCHAIN_USES_MUSL
> >  	# i686-unknown-linux-musl
> > -	default y if (BR2_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_MUSL
> > +	default y if (BR2_x86_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_MUSL
> >  	# mips-unknown-linux-musl
> >  	default y if BR2_mips && BR2_TOOLCHAIN_USES_MUSL && !BR2_MIPS_CPU_MIPS32R6
> >  	# mips64-unknown-linux-muslabi64
> 
> 
> -- 
>                                                      ~. .~   Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
>    - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Buildroot] [PATCH 2/2] pacakge: drop remnants of $(HOST_DIR)/usr
  2022-07-16 21:30 ` [Buildroot] [PATCH 2/2] pacakge: drop remnants of $(HOST_DIR)/usr Yann E. MORIN
@ 2022-07-24  8:38   ` Romain Naour
  0 siblings, 0 replies; 9+ messages in thread
From: Romain Naour @ 2022-07-24  8:38 UTC (permalink / raw)
  To: Yann E. MORIN, buildroot
  Cc: Bernd Kuhls, Hervé Codina, Antoine Tenart,
	José Luis Salvador Rufo, Anisse Astier, Asaf Kahlon,
	Guillaume William Brs, Julien Olivain, Vadim Kochan,
	Ezequiel Garcia, Thomas Petazzoni, Julien Boibessot, Matt Weber,
	Angelo Compagnucci

Le 16/07/2022 à 23:30, Yann E. MORIN a écrit :
> It's been ages (5 years at the next release) that we've not installed
> host packages in $(HOST_DIR)/usr, but we still have a few packages that
> reference it or install things in there.
> 
> Drop all of those in one fell swoop.
> 
> The run-time test still succeeds, and the following defconfig, which
> should exercise all touched packages [*], does build:
> 
>     BR2_x86_i686=y
>     BR2_TOOLCHAIN_EXTERNAL=y
>     BR2_INIT_NONE=y
>     BR2_SYSTEM_BIN_SH_NONE=y
>     # BR2_PACKAGE_BUSYBOX is not set
>     BR2_PACKAGE_GAWK=y
>     BR2_PACKAGE_GETTEXT=y
>     BR2_PACKAGE_ABOOTIMG=y
>     BR2_PACKAGE_DBUS_PYTHON=y
>     BR2_PACKAGE_OLA=y
>     BR2_PACKAGE_JIMTCL=y
>     BR2_PACKAGE_LUA=y
>     # BR2_PACKAGE_LUA_32BITS is not set
>     BR2_PACKAGE_ARGPARSE=y
>     BR2_PACKAGE_PERL=y
>     BR2_PACKAGE_PHP=y
>     BR2_PACKAGE_PHP_APCU=y
>     BR2_PACKAGE_PHP_LUA=y
>     BR2_PACKAGE_PHP_PAM=y
>     BR2_PACKAGE_PHP_PECL_DBUS=y
>     BR2_PACKAGE_PYTHON3=y
>     BR2_PACKAGE_PYTHON_CRYPTOGRAPHY=y
>     BR2_PACKAGE_PYTHON_PLY=y
>     BR2_PACKAGE_PYTHON_PYBIND=y
>     BR2_PACKAGE_LIBVA=y
>     BR2_PACKAGE_BIND=y
>     BR2_PACKAGE_BIND_SERVER=y
>     BR2_PACKAGE_BIND_TOOLS=y
>     BR2_PACKAGE_APPARMOR=y
>     BR2_PACKAGE_APPARMOR_BINUTILS=y
>     BR2_PACKAGE_APPARMOR_UTILS=y
>     BR2_PACKAGE_APPARMOR_UTILS_EXTRA=y
>     BR2_PACKAGE_APPARMOR_PROFILES=y
>     BR2_PACKAGE_REFPOLICY=y
>     BR2_PACKAGE_URANDOM_SCRIPTS=y
>     BR2_PACKAGE_BASH=y
>     # embiggen-disk to exercise go
>     BR2_PACKAGE_EMBIGGEN_DISK=y
>     BR2_TARGET_GRUB2=y
>     BR2_TARGET_GRUB2_I386_PC=y
>     BR2_TARGET_GRUB2_I386_EFI=y
> 
> [*] exceptions:
>   - zfs was not tested: it needs a kernel to be built;
>   - compiler-rt was not tsted: it needs llvm to be built, that takes
>     ages, and other packages already reference the correct location for
>     llvm-config, so it was assumed that is OK.

A new instance of $(HOST_DIR)/usr has been merged recently:
http://lists.busybox.net/pipermail/buildroot/2022-July/647034.html

Reviewed-by: Romain Naour <romain.naour@smile.fr>

Best regards,
Romain

> 
> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> Cc: Angelo Compagnucci <angelo.compagnucci@gmail.com>
> Cc: Anisse Astier <anisse@astier.eu>
> Cc: Antoine Tenart <atenart@kernel.org>
> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> Cc: Asaf Kahlon <asafka7@gmail.com>
> Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
> Cc: Christian Stewart <christian@paral.in>
> Cc: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
> Cc: Francois Perrad <francois.perrad@gadz.org>
> Cc: Guillaume William Brs <guillaume.bressaix@gmail.com>
> Cc: Hervé Codina <herve.codina@bootlin.com>
> Cc: José Luis Salvador Rufo <salvador.joseluis@gmail.com>
> Cc: Julien Boibessot <julien.boibessot@armadeus.com>
> Cc: Julien Olivain <ju.o@free.fr>
> Cc: Matt Weber <matthew.weber@collins.com>
> Cc: Nicolas Carrier <nicolas.carrier@orolia.com>
> Cc: Peter Korsgaard <peter@korsgaard.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Cc: Vadim Kochan <vadim4j@gmail.com>
> Cc: Yegor Yefremov <yegorslists@googlemail.com>
> ---
>  boot/grub2/grub2.mk                                         | 2 +-
>  package/abootimg/abootimg.mk                                | 2 +-
>  package/bind/bind.mk                                        | 2 +-
>  package/compiler-rt/compiler-rt.mk                          | 2 +-
>  package/dbus-python/dbus-python.mk                          | 6 +++---
>  package/gawk/gawk.mk                                        | 2 +-
>  package/gettext-tiny/gettext-tiny.mk                        | 2 +-
>  package/go/go.mk                                            | 6 +++---
>  package/jimtcl/jimtcl.mk                                    | 6 +++---
>  package/libapparmor/libapparmor.mk                          | 2 +-
>  package/libva/libva.mk                                      | 2 +-
>  package/lua/lua.mk                                          | 2 +-
>  package/ola/ola.mk                                          | 4 ++--
>  package/openjdk-bin/openjdk-bin.mk                          | 2 +-
>  package/php-apcu/php-apcu.mk                                | 4 ++--
>  package/php-lua/php-lua.mk                                  | 4 ++--
>  package/php-pam/php-pam.mk                                  | 4 ++--
>  package/php-pecl-dbus/php-pecl-dbus.mk                      | 4 ++--
>  package/python-cryptography/python-cryptography.mk          | 2 +-
>  package/python-pybind/python-pybind.mk                      | 2 +-
>  package/refpolicy/refpolicy.mk                              | 2 +-
>  package/zfs/zfs.mk                                          | 2 +-
>  .../package/python-pybind-example/python-pybind-example.mk  | 2 +-
>  23 files changed, 34 insertions(+), 34 deletions(-)
> 
> diff --git a/boot/grub2/grub2.mk b/boot/grub2/grub2.mk
> index d93e383422..955f48ae8d 100644
> --- a/boot/grub2/grub2.mk
> +++ b/boot/grub2/grub2.mk
> @@ -183,7 +183,7 @@ define GRUB2_INSTALL_IMAGES_CMDS
>  	$(foreach tuple, $(GRUB2_TUPLES-y), \
>  		@$(call MESSAGE,Installing $(tuple) to images directory)
>  		mkdir -p $(dir $(GRUB2_IMAGE_$(tuple)))
> -		$(HOST_DIR)/usr/bin/grub-mkimage \
> +		$(HOST_DIR)/bin/grub-mkimage \
>  			-d $(@D)/build-$(tuple)/grub-core/ \
>  			-O $(tuple) \
>  			-o $(GRUB2_IMAGE_$(tuple)) \
> diff --git a/package/abootimg/abootimg.mk b/package/abootimg/abootimg.mk
> index a07100df5a..ca09e94f16 100644
> --- a/package/abootimg/abootimg.mk
> +++ b/package/abootimg/abootimg.mk
> @@ -27,7 +27,7 @@ define HOST_ABOOTIMG_BUILD_CMDS
>  endef
>  
>  define HOST_ABOOTIMG_INSTALL_CMDS
> -	$(INSTALL) -m 0755 $(@D)/abootimg $(HOST_DIR)/usr/bin/abootimg
> +	$(INSTALL) -m 0755 $(@D)/abootimg $(HOST_DIR)/bin/abootimg
>  endef
>  
>  $(eval $(generic-package))
> diff --git a/package/bind/bind.mk b/package/bind/bind.mk
> index 5164001ab5..d18d84bbaf 100644
> --- a/package/bind/bind.mk
> +++ b/package/bind/bind.mk
> @@ -83,7 +83,7 @@ endif
>  # Used by dnssec-keymgr
>  ifeq ($(BR2_PACKAGE_PYTHON_PLY),y)
>  BIND_DEPENDENCIES += host-python-ply
> -BIND_CONF_OPTS += --with-python=$(HOST_DIR)/usr/bin/python
> +BIND_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python
>  else
>  BIND_CONF_OPTS += --with-python=no
>  endif
> diff --git a/package/compiler-rt/compiler-rt.mk b/package/compiler-rt/compiler-rt.mk
> index 57f9c26854..c8ea86e899 100644
> --- a/package/compiler-rt/compiler-rt.mk
> +++ b/package/compiler-rt/compiler-rt.mk
> @@ -19,7 +19,7 @@ COMPILER_RT_INSTALL_TARGET = NO
>  COMPILER_RT_CONF_OPTS=-DCOMPILER_RT_STANDALONE_BUILD=OFF \
>  	-DCOMPILER_RT_STANDALONE_BUILD=ON \
>  	-DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=$(GNU_TARGET_NAME) \
> -	-DLLVM_CONFIG_PATH=$(HOST_DIR)/usr/bin/llvm-config
> +	-DLLVM_CONFIG_PATH=$(HOST_DIR)/bin/llvm-config
>  
>  # The installation of the target runtime libraries defaults to DESTDIR, however
>  # host-clang resources directory needs a link so Clang can find the runtime
> diff --git a/package/dbus-python/dbus-python.mk b/package/dbus-python/dbus-python.mk
> index d9bb30ed67..16b22d4821 100644
> --- a/package/dbus-python/dbus-python.mk
> +++ b/package/dbus-python/dbus-python.mk
> @@ -20,9 +20,9 @@ DBUS_PYTHON_CONF_ENV = \
>  
>  HOST_DBUS_PYTHON_CONF_ENV = \
>  	PYTHON=$(HOST_DIR)/bin/python3 \
> -	PYTHON_INCLUDES="`$(HOST_DIR)/usr/bin/python3-config --includes`" \
> -	PYTHON_LIBS="`$(HOST_DIR)/usr/bin/python3-config --ldflags`" \
> -	PYTHON_EXTRA_LIBS="`$(HOST_DIR)/usr/bin/python3-config --libs --embed`"
> +	PYTHON_INCLUDES="`$(HOST_DIR)/bin/python3-config --includes`" \
> +	PYTHON_LIBS="`$(HOST_DIR)/bin/python3-config --ldflags`" \
> +	PYTHON_EXTRA_LIBS="`$(HOST_DIR)/bin/python3-config --libs --embed`"
>  
>  $(eval $(autotools-package))
>  $(eval $(host-autotools-package))
> diff --git a/package/gawk/gawk.mk b/package/gawk/gawk.mk
> index b55c74d00a..3a1cec4969 100644
> --- a/package/gawk/gawk.mk
> +++ b/package/gawk/gawk.mk
> @@ -40,7 +40,7 @@ endef
>  GAWK_POST_INSTALL_TARGET_HOOKS += GAWK_CREATE_SYMLINK
>  
>  define HOST_GAWK_CREATE_SYMLINK
> -	ln -sf gawk $(HOST_DIR)/usr/bin/awk
> +	ln -sf gawk $(HOST_DIR)/bin/awk
>  endef
>  
>  HOST_GAWK_POST_INSTALL_HOOKS += HOST_GAWK_CREATE_SYMLINK
> diff --git a/package/gettext-tiny/gettext-tiny.mk b/package/gettext-tiny/gettext-tiny.mk
> index c297cb1fe5..e2dc563667 100644
> --- a/package/gettext-tiny/gettext-tiny.mk
> +++ b/package/gettext-tiny/gettext-tiny.mk
> @@ -95,7 +95,7 @@ define HOST_GETTEXT_TINY_INSTALL_CMDS
>  	$(Q)touch $(HOST_DIR)/share/gettext-tiny/ABOUT-NLS
>  
>  	# for gettextize
> -	ln -sf $(HOST_DIR)/usr/share/gettext-tiny $(HOST_DIR)/usr/share/gettext
> +	ln -sf $(HOST_DIR)/share/gettext-tiny $(HOST_DIR)/share/gettext
>  endef
>  
>  # Install simple echo wrapper for gettext tool
> diff --git a/package/go/go.mk b/package/go/go.mk
> index 6767b1481d..172bf16b6f 100644
> --- a/package/go/go.mk
> +++ b/package/go/go.mk
> @@ -13,10 +13,10 @@ GO_LICENSE_FILES = LICENSE
>  GO_CPE_ID_VENDOR = golang
>  
>  HOST_GO_DEPENDENCIES = host-go-bootstrap
> -HOST_GO_GOPATH = $(HOST_DIR)/usr/share/go-path
> -HOST_GO_HOST_CACHE = $(HOST_DIR)/usr/share/host-go-cache
> +HOST_GO_GOPATH = $(HOST_DIR)/share/go-path
> +HOST_GO_HOST_CACHE = $(HOST_DIR)/share/host-go-cache
>  HOST_GO_ROOT = $(HOST_DIR)/lib/go
> -HOST_GO_TARGET_CACHE = $(HOST_DIR)/usr/share/go-cache
> +HOST_GO_TARGET_CACHE = $(HOST_DIR)/share/go-cache
>  
>  # We pass an empty GOBIN, otherwise "go install: cannot install
>  # cross-compiled binaries when GOBIN is set"
> diff --git a/package/jimtcl/jimtcl.mk b/package/jimtcl/jimtcl.mk
> index 2f8e0e6c69..3d68ca8f64 100644
> --- a/package/jimtcl/jimtcl.mk
> +++ b/package/jimtcl/jimtcl.mk
> @@ -92,11 +92,11 @@ endef
>  
>  define HOST_JIMTCL_INSTALL_CMDS
>  	for i in $(JIMTCL_HEADERS_TO_INSTALL); do \
> -		cp -a $(@D)/$$i $(HOST_DIR)/usr/include/ || exit 1 ; \
> +		cp -a $(@D)/$$i $(HOST_DIR)/include/ || exit 1 ; \
>  	done;
>  	$(INSTALL) -m 0755 -D $(@D)/libjim.so.$(JIMTCL_VERSION) \
> -		$(HOST_DIR)/usr/lib/libjim.so.$(JIMTCL_VERSION)
> -	ln -sf libjim.so.$(JIMTCL_VERSION) $(HOST_DIR)/usr/lib/libjim.so
> +		$(HOST_DIR)/lib/libjim.so.$(JIMTCL_VERSION)
> +	ln -sf libjim.so.$(JIMTCL_VERSION) $(HOST_DIR)/lib/libjim.so
>  endef
>  
>  $(eval $(generic-package))
> diff --git a/package/libapparmor/libapparmor.mk b/package/libapparmor/libapparmor.mk
> index fcd3a4389b..af59335933 100644
> --- a/package/libapparmor/libapparmor.mk
> +++ b/package/libapparmor/libapparmor.mk
> @@ -31,7 +31,7 @@ ifeq ($(BR2_PACKAGE_PYTHON3),y)
>  LIBAPPARMOR_DEPENDENCIES += host-python3 host-python-setuptools host-swig python3
>  LIBAPPARMOR_CONF_OPTS += \
>  	--with-python \
> -	PYTHON=$(HOST_DIR)/usr/bin/python3 \
> +	PYTHON=$(HOST_DIR)/bin/python3 \
>  	PYTHON_CONFIG=$(STAGING_DIR)/usr/bin/python3-config \
>  	SWIG=$(SWIG)
>  else
> diff --git a/package/libva/libva.mk b/package/libva/libva.mk
> index f89dac335f..4138daf8b4 100644
> --- a/package/libva/libva.mk
> +++ b/package/libva/libva.mk
> @@ -30,7 +30,7 @@ endif
>  
>  ifeq ($(BR2_PACKAGE_WAYLAND),y)
>  LIBVA_DEPENDENCIES += wayland
> -LIBVA_CONF_ENV += ac_cv_path_WAYLAND_SCANNER=$(HOST_DIR)/usr/bin/wayland-scanner
> +LIBVA_CONF_ENV += ac_cv_path_WAYLAND_SCANNER=$(HOST_DIR)/bin/wayland-scanner
>  LIBVA_CONF_OPTS += --enable-wayland
>  else
>  LIBVA_CONF_OPTS += --disable-wayland
> diff --git a/package/lua/lua.mk b/package/lua/lua.mk
> index 09e7b34f7d..01b554eb6b 100644
> --- a/package/lua/lua.mk
> +++ b/package/lua/lua.mk
> @@ -60,7 +60,7 @@ LUA_POST_PATCH_HOOKS += LUA_32BITS_LUACONF
>  endif
>  
>  define HOST_LUA_LUACONF
> -	$(SED) 's|#define LUA_ROOT.*|#define LUA_ROOT "$(HOST_DIR)/usr/"|' $(@D)/src/luaconf.h
> +	$(SED) 's|#define LUA_ROOT.*|#define LUA_ROOT "$(HOST_DIR)/"|' $(@D)/src/luaconf.h
>  endef
>  HOST_LUA_POST_PATCH_HOOKS += HOST_LUA_LUACONF
>  
> diff --git a/package/ola/ola.mk b/package/ola/ola.mk
> index 6600de797e..82615e8155 100644
> --- a/package/ola/ola.mk
> +++ b/package/ola/ola.mk
> @@ -24,7 +24,7 @@ OLA_CONF_OPTS = \
>  	--disable-root-check \
>  	--disable-tcmalloc \
>  	--disable-unittests \
> -	--with-ola-protoc-plugin=$(HOST_DIR)/usr/bin/ola_protoc_plugin
> +	--with-ola-protoc-plugin=$(HOST_DIR)/bin/ola_protoc_plugin
>  
>  HOST_OLA_DEPENDENCIES = host-util-linux host-protobuf host-bison host-flex
>  
> @@ -47,7 +47,7 @@ HOST_OLA_CONF_OPTS = \
>  # only.
>  HOST_OLA_MAKE_OPTS = protoc/ola_protoc_plugin
>  define HOST_OLA_INSTALL_CMDS
> -	$(INSTALL) -D -m 0755 $(@D)/protoc/ola_protoc_plugin $(HOST_DIR)/usr/bin/ola_protoc_plugin
> +	$(INSTALL) -D -m 0755 $(@D)/protoc/ola_protoc_plugin $(HOST_DIR)/bin/ola_protoc_plugin
>  endef
>  
>  # sets where to find python libs built for target and required by ola
> diff --git a/package/openjdk-bin/openjdk-bin.mk b/package/openjdk-bin/openjdk-bin.mk
> index 5cb6e3ba6a..608a0bc3ac 100644
> --- a/package/openjdk-bin/openjdk-bin.mk
> +++ b/package/openjdk-bin/openjdk-bin.mk
> @@ -26,7 +26,7 @@ HOST_OPENJDK_BIN_SITE = https://github.com/adoptium/temurin$(HOST_OPENJDK_BIN_VE
>  HOST_OPENJDK_BIN_LICENSE = GPL-2.0+ with exception
>  HOST_OPENJDK_BIN_LICENSE_FILES = legal/java.prefs/LICENSE legal/java.prefs/ASSEMBLY_EXCEPTION
>  
> -HOST_OPENJDK_BIN_ROOT_DIR = $(HOST_DIR)/usr/lib/jvm
> +HOST_OPENJDK_BIN_ROOT_DIR = $(HOST_DIR)/lib/jvm
>  
>  # unpack200 has an invalid RPATH and relies on libzlib. When
>  # host-libzlib is installed on the system, the error "ERROR: package
> diff --git a/package/php-apcu/php-apcu.mk b/package/php-apcu/php-apcu.mk
> index 3ac062e772..d381c9054f 100644
> --- a/package/php-apcu/php-apcu.mk
> +++ b/package/php-apcu/php-apcu.mk
> @@ -16,8 +16,8 @@ PHP_APCU_CONF_OPTS = \
>  
>  define PHP_APCU_PHPIZE
>  	(cd $(@D); \
> -		PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
> -		PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
> +		PHP_AUTOCONF=$(HOST_DIR)/bin/autoconf \
> +		PHP_AUTOHEADER=$(HOST_DIR)/bin/autoheader \
>  		$(STAGING_DIR)/usr/bin/phpize)
>  endef
>  PHP_APCU_PRE_CONFIGURE_HOOKS += PHP_APCU_PHPIZE
> diff --git a/package/php-lua/php-lua.mk b/package/php-lua/php-lua.mk
> index 529b347e42..559bd59209 100644
> --- a/package/php-lua/php-lua.mk
> +++ b/package/php-lua/php-lua.mk
> @@ -30,8 +30,8 @@ endif
>  
>  define PHP_LUA_PHPIZE
>  	(cd $(@D); \
> -		PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
> -		PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
> +		PHP_AUTOCONF=$(HOST_DIR)/bin/autoconf \
> +		PHP_AUTOHEADER=$(HOST_DIR)/bin/autoheader \
>  		$(STAGING_DIR)/usr/bin/phpize)
>  endef
>  PHP_LUA_PRE_CONFIGURE_HOOKS += PHP_LUA_PHPIZE
> diff --git a/package/php-pam/php-pam.mk b/package/php-pam/php-pam.mk
> index 8e20095d86..c35ad4f5d0 100644
> --- a/package/php-pam/php-pam.mk
> +++ b/package/php-pam/php-pam.mk
> @@ -17,8 +17,8 @@ PHP_PAM_CONF_OPTS = \
>  
>  define PHP_PAM_PHPIZE
>  	(cd $(@D); \
> -		PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
> -		PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
> +		PHP_AUTOCONF=$(HOST_DIR)/bin/autoconf \
> +		PHP_AUTOHEADER=$(HOST_DIR)/bin/autoheader \
>  		$(STAGING_DIR)/usr/bin/phpize)
>  endef
>  PHP_PAM_PRE_CONFIGURE_HOOKS += PHP_PAM_PHPIZE
> diff --git a/package/php-pecl-dbus/php-pecl-dbus.mk b/package/php-pecl-dbus/php-pecl-dbus.mk
> index 456d662554..a70a2e7ae1 100644
> --- a/package/php-pecl-dbus/php-pecl-dbus.mk
> +++ b/package/php-pecl-dbus/php-pecl-dbus.mk
> @@ -15,8 +15,8 @@ PHP_PECL_DBUS_CONF_OPTS = \
>  
>  define PHP_PECL_DBUS_PHPIZE
>  	(cd $(@D); \
> -		PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
> -		PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
> +		PHP_AUTOCONF=$(HOST_DIR)/bin/autoconf \
> +		PHP_AUTOHEADER=$(HOST_DIR)/bin/autoheader \
>  		$(STAGING_DIR)/usr/bin/phpize)
>  endef
>  PHP_PECL_DBUS_PRE_CONFIGURE_HOOKS += PHP_PECL_DBUS_PHPIZE
> diff --git a/package/python-cryptography/python-cryptography.mk b/package/python-cryptography/python-cryptography.mk
> index 99eba3eeab..582a7f7891 100644
> --- a/package/python-cryptography/python-cryptography.mk
> +++ b/package/python-cryptography/python-cryptography.mk
> @@ -27,7 +27,7 @@ PYTHON_CRYPTOGRAPHY_ENV = \
>  	PYO3_CROSS_LIB_DIR="$(STAGING_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)"
>  HOST_PYTHON_CRYPTOGRAPHY_ENV = \
>  	$(HOST_PKG_CARGO_ENV) \
> -	PYO3_CROSS_LIB_DIR="$(HOST_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)"
> +	PYO3_CROSS_LIB_DIR="$(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)"
>  # We need to vendor the Cargo crates at download time
>  PYTHON_CRYPTOGRAPHY_DOWNLOAD_POST_PROCESS = cargo
>  PYTHON_CRYPTOGRAPHY_DOWNLOAD_DEPENDENCIES = host-rustc
> diff --git a/package/python-pybind/python-pybind.mk b/package/python-pybind/python-pybind.mk
> index 7448d246b2..05fc593346 100644
> --- a/package/python-pybind/python-pybind.mk
> +++ b/package/python-pybind/python-pybind.mk
> @@ -17,7 +17,7 @@ PYTHON_PYBIND_CONF_OPTS = \
>  	-DPYBIND11_TEST=OFF \
>  	-DPYBIND11_NOPYTHON=ON
>  
> -PYTHON_PYBIND_INSTALL_PATH = $(HOST_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/pybind11
> +PYTHON_PYBIND_INSTALL_PATH = $(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/pybind11
>  
>  define PYTHON_PYBIND_INSTALL_MODULE
>  	mkdir -p $(PYTHON_PYBIND_INSTALL_PATH)
> diff --git a/package/refpolicy/refpolicy.mk b/package/refpolicy/refpolicy.mk
> index 44c50af278..f11b72755a 100644
> --- a/package/refpolicy/refpolicy.mk
> +++ b/package/refpolicy/refpolicy.mk
> @@ -30,7 +30,7 @@ endif
>  
>  # Cannot use multiple threads to build the reference policy
>  REFPOLICY_MAKE = \
> -	PYTHON=$(HOST_DIR)/usr/bin/python3 \
> +	PYTHON=$(HOST_DIR)/bin/python3 \
>  	XMLLINT=$(LIBXML2_HOST_BINARY) \
>  	TEST_TOOLCHAIN=$(HOST_DIR) \
>  	$(TARGET_MAKE_ENV) \
> diff --git a/package/zfs/zfs.mk b/package/zfs/zfs.mk
> index 07ce3295ec..3f5b39cc4e 100644
> --- a/package/zfs/zfs.mk
> +++ b/package/zfs/zfs.mk
> @@ -40,7 +40,7 @@ endif
>  ifeq ($(BR2_PACKAGE_PYTHON3),y)
>  ZFS_DEPENDENCIES += python3 python-setuptools host-python-cffi host-python-packaging
>  ZFS_CONF_ENV += \
> -	PYTHON=$(HOST_DIR)/usr/bin/python3 \
> +	PYTHON=$(HOST_DIR)/bin/python3 \
>  	PYTHON_CPPFLAGS="`$(STAGING_DIR)/usr/bin/python3-config --includes`" \
>  	PYTHON_LIBS="`$(STAGING_DIR)/usr/bin/python3-config --ldflags`" \
>  	PYTHON_EXTRA_LIBS="`$(STAGING_DIR)/usr/bin/python3-config --libs --embed`" \
> diff --git a/support/testing/tests/package/br2-external/python-pybind/package/python-pybind-example/python-pybind-example.mk b/support/testing/tests/package/br2-external/python-pybind/package/python-pybind-example/python-pybind-example.mk
> index a6d7e0daaf..6620e70410 100644
> --- a/support/testing/tests/package/br2-external/python-pybind/package/python-pybind-example/python-pybind-example.mk
> +++ b/support/testing/tests/package/br2-external/python-pybind/package/python-pybind-example/python-pybind-example.mk
> @@ -10,7 +10,7 @@
>  PYTHON_PYBIND_EXAMPLE_DEPENDENCIES = python-pybind
>  
>  PYTHON_PYBIND_EXAMPLE_PYBIND_INCLUDE = \
> -	$(shell $(HOST_DIR)/usr/bin/python3 -c 'import pybind11; print(pybind11.get_include())')
> +	$(shell $(HOST_DIR)/bin/python3 -c 'import pybind11; print(pybind11.get_include())')
>  
>  PYTHON_PYBIND_EXAMPLE_CXX_FLAGS = \
>  	$(TARGET_CXXFLAGS) \

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Buildroot] [PATCH 1/2] package/rustc: fix target names for i586 and i686
  2022-07-17  6:56     ` Yann E. MORIN
@ 2022-07-24  9:01       ` Romain Naour
  0 siblings, 0 replies; 9+ messages in thread
From: Romain Naour @ 2022-07-24  9:01 UTC (permalink / raw)
  To: Yann E. MORIN, Baruch Siach; +Cc: Thomas Petazzoni, buildroot

Le 17/07/2022 à 08:56, Yann E. MORIN a écrit :
> Baruch, All,
> 
> On 2022-07-17 06:21 +0300, Baruch Siach via buildroot spake thusly:
>> On Sat, Jul 16 2022, Yann E. MORIN wrote:
>>> Commit d69d40c029dc (package/rustc: add support for Tier 1 and Tier 2
>>> platforms) misspelled the config options for i586 and i686.
>>>
>>> They are BR2_i386_i586 and BR2_i386_i686, not BR2_i586 or BR2_i686.
>>
>> You mean BR2_x86_i586 and BR2_x86_i686, right? Because that's what the
>> patch does.
> 
> Aha, good catch, thanks! :-)
> 
> "Why would I copy-paste the options names, they are simple enough, it's
> gonna be faster to type them..." did I think while fixing typoes in
> simple variable names. Doh...
> 
> So, I double-checked, and the options really arenamed BR2_x86_i586 and
> BR2_x86_i686. And this time, I did copy-pate them:-)

With an updated commit log:

Reviewed-by: Romain Naour <romain.naour@smile.fr>

Best regards,
Romain

> 
> Regards,
> Yann E. MORIN.
> 
>> baruch
>>
>>> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
>>> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
>>> ---
>>>  package/rustc/Config.in.host | 8 ++++----
>>>  1 file changed, 4 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/package/rustc/Config.in.host b/package/rustc/Config.in.host
>>> index 27c3a3cdeb..fec8726aee 100644
>>> --- a/package/rustc/Config.in.host
>>> +++ b/package/rustc/Config.in.host
>>> @@ -25,7 +25,7 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER1_PLATFORMS
>>>  	# aarch64-unknown-linux-gnu
>>>  	default y if BR2_aarch64 && BR2_TOOLCHAIN_USES_GLIBC
>>>  	# i686-unknown-linux-gnu
>>> -	default y if (BR2_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_GLIBC
>>> +	default y if (BR2_x86_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_GLIBC
>>>  	# x86_64-unknown-linux-gnu
>>>  	default y if BR2_x86_64 && BR2_TOOLCHAIN_USES_GLIBC
>>>  
>>> @@ -93,11 +93,11 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_PLATFORMS
>>>  	# userspace
>>>  	default y if BR2_arm && BR2_ARM_CPU_ARMV8A && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_MUSL
>>>  	# i586-unknown-linux-gnu
>>> -	default y if BR2_i586 && BR2_TOOLCHAIN_USES_GLIBC
>>> +	default y if BR2_x86_i586 && BR2_TOOLCHAIN_USES_GLIBC
>>>  	# i586-unknown-linux-musl
>>> -	default y if BR2_i586 && BR2_TOOLCHAIN_USES_MUSL
>>> +	default y if BR2_x86_i586 && BR2_TOOLCHAIN_USES_MUSL
>>>  	# i686-unknown-linux-musl
>>> -	default y if (BR2_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_MUSL
>>> +	default y if (BR2_x86_i686 || BR2_x86_pentiumpro || BR2_X86_CPU_HAS_MMX) && BR2_TOOLCHAIN_USES_MUSL
>>>  	# mips-unknown-linux-musl
>>>  	default y if BR2_mips && BR2_TOOLCHAIN_USES_MUSL && !BR2_MIPS_CPU_MIPS32R6
>>>  	# mips64-unknown-linux-muslabi64
>>
>>
>> -- 
>>                                                      ~. .~   Tk Open Systems
>> =}------------------------------------------------ooO--U--Ooo------------{=
>>    - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
>> _______________________________________________
>> buildroot mailing list
>> buildroot@buildroot.org
>> https://lists.buildroot.org/mailman/listinfo/buildroot
> 

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Buildroot] [PATCH 0/2] pacakge: drop remnants of $(HOST_DIR)/usr (branch yem/no-host-dir-usr)
  2022-07-16 21:30 [Buildroot] [PATCH 0/2] pacakge: drop remnants of $(HOST_DIR)/usr (branch yem/no-host-dir-usr) Yann E. MORIN
  2022-07-16 21:30 ` [Buildroot] [PATCH 1/2] package/rustc: fix target names for i586 and i686 Yann E. MORIN
  2022-07-16 21:30 ` [Buildroot] [PATCH 2/2] pacakge: drop remnants of $(HOST_DIR)/usr Yann E. MORIN
@ 2022-07-24 10:15 ` Yann E. MORIN
  2 siblings, 0 replies; 9+ messages in thread
From: Yann E. MORIN @ 2022-07-24 10:15 UTC (permalink / raw)
  To: buildroot
  Cc: Bernd Kuhls, Hervé Codina, Julien Olivain, Antoine Tenart,
	José Luis Salvador Rufo, Anisse Astier, Asaf Kahlon,
	Guillaume William Brs, Angelo Compagnucci, Vadim Kochan,
	Ezequiel Garcia, Thomas Petazzoni, Julien Boibessot, Matt Weber

All,

On 2022-07-16 23:30 +0200, Yann E. MORIN spake thusly:
> Back in 2017.08, we dropped the use of $(HOST_DIR)/usr as a prefix, and
> just installed with $(HOST_DIR) as a prefix. At least, the migration
> information was added as c8f51a00d8ec for 2017.08.
> 5 years ago.
> And we still had a few packages that installed stuff in there, or used
> stuff from there.
> Fix those.
> In the process of testing the change, we noticed that the conditions for
> the rustc tier-1 and tier-2 platforms were incorrect, so we fixed them
> too.

Series applied to master, after fixing issues pointed out by Baruch and
Romain.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Buildroot] [PATCH 1/2] package/rustc: fix target names for i586 and i686
  2022-07-16 21:30 ` [Buildroot] [PATCH 1/2] package/rustc: fix target names for i586 and i686 Yann E. MORIN
  2022-07-17  3:21   ` Baruch Siach via buildroot
@ 2022-08-16 20:11   ` Peter Korsgaard
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2022-08-16 20:11 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: Thomas Petazzoni, buildroot

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 > Commit d69d40c029dc (package/rustc: add support for Tier 1 and Tier 2
 > platforms) misspelled the config options for i586 and i686.

 > They are BR2_i386_i586 and BR2_i386_i686, not BR2_i586 or BR2_i686.

 > Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
 > Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

Committed to 2022.05.x and 2022.02.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-08-16 20:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-16 21:30 [Buildroot] [PATCH 0/2] pacakge: drop remnants of $(HOST_DIR)/usr (branch yem/no-host-dir-usr) Yann E. MORIN
2022-07-16 21:30 ` [Buildroot] [PATCH 1/2] package/rustc: fix target names for i586 and i686 Yann E. MORIN
2022-07-17  3:21   ` Baruch Siach via buildroot
2022-07-17  6:56     ` Yann E. MORIN
2022-07-24  9:01       ` Romain Naour
2022-08-16 20:11   ` Peter Korsgaard
2022-07-16 21:30 ` [Buildroot] [PATCH 2/2] pacakge: drop remnants of $(HOST_DIR)/usr Yann E. MORIN
2022-07-24  8:38   ` Romain Naour
2022-07-24 10:15 ` [Buildroot] [PATCH 0/2] pacakge: drop remnants of $(HOST_DIR)/usr (branch yem/no-host-dir-usr) Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.