package/bash: use --bindir instead of exec_prefix=
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 23 Apr 2021 20:23:53 +0000 (22:23 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 24 Apr 2021 07:27:13 +0000 (09:27 +0200)
commit73aed53c82793269f22383bbeaa3d78ff2660ba5
tree8ca7f0eb904fbb73aa08073937a4f9095992fac2
parent8cf034ab0f686d0a3891b6fe5bb5a2d1bdf381d5
package/bash: use --bindir instead of exec_prefix=

We want bash to be installed as /bin/bash. For ages, Buildroot has
been doing this by overriding exec_prefix at install time. First of
all, it would be preferred to do this at configure time. But also,
overriding exec_prefix not only changes where "bash" goes, but also
where the pkgconfig file goes. Due to this, bash.pc goes into
/lib/pkgconfig/, and doesn't get removed by target-finalize.

Since all we want is to have 'bash' as /bin/bash, simply pass
--bindir=/bin at configure time. This allows to use the default target
installation logic for autotools-package. We keep a post-install
target hook to remove /bin/bashbug.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/bash/bash.mk