getent: look for glibc's getent in more places
PATCH 1/1 getent: look for glibc's getent in more places
External toolchains don't always install the executable in /usr/bin - God knows why. So check in a few more places.
We can use make's $(wildcard ...) here, because the variable only gets expanded when the install step is executed, and by that time the STAGING_DIR has already been installed.
Probably fixes most getent autobuilder errors, at least if fixes
http://autobuild.buildroot.net/results/615b9d17f713b4a53192efb00188560a76b9efa3/
---
Someone should check the Linaro, Arago, Xilinx, and crosstool-NG toolchains... Or we just wait for the autobuilders :-)
--- package/getent/getent.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
package/getent/getent.mk +5 -1
@@ -14,7 +14,11 @@ GETENT_LICENSE = LGPLv2.1+ # the C library. For other toolchains, we use the wrapper script # included in this package. ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y) -GETENT_LOCATION = $(STAGING_DIR)/usr/bin/getent +# Sourcery toolchains install it in sysroot/usr/lib/bin +# Buildroot toolchains install it in sysroot/usr/bin +GETENT_LOCATION = $(firstword $(wildcard \ + $(STAGING_DIR)/usr/bin/getent \ + $(STAGING_DIR)/usr/lib/bin/getent)) else GETENT_LOCATION = package/getent/getent endif
Signature · 1 line
2.1.1
PATCH 1/1 getent: look for glibc's getent in more places
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:
External toolchains don't always install the executable in
/usr/bin- God knows why. So check in a few more places.We can use make's $(wildcard ...) here, because the variable only gets expanded when the install step is executed, and by that time the
STAGING_DIRhas already been installed.
Quoted 7 lines
Probably fixes most getent autobuilder errors, at least if fixes
http://autobuild.buildroot.net/results/615b9d17f713b4a53192efb00188560a76b9efa3/---
Someone should check the Linaro, Arago, Xilinx, and crosstool-NG toolchains... Or we just wait for the autobuilders :-)
Yeah, lets see what it gives.
Committed, thanks. If we end up with external glibc toolchains that really don't have a getent binary we might consider extending the wildcard logic to fall back to our uclibc emulation - But lets wait and see.
Signature · 1 line
Bye, Peter Korsgaard