package/pkg-autotools.mk: only pass --runstatedir=/run if supported
PATCH 1/1 package/pkg-autotools.mk: only pass --runstatedir=/run if supported
Fixes:
(thttpd) http://autobuild.buildroot.net/results/f74/f74cae1d981b284a69d7a4e138faf97e45e44865/
(wipe) http://autobuild.buildroot.net/results/4dc/4dc77752d5851d8a71d234c0b284ca696e633754/
And (possibly, unable to reproduce locally):
http://autobuild.buildroot.net/results/658/65882e1f266e818fecef2892c9493d3b8e1e912e/
--runstatedir was added in autoconf 2.69b:
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=a197431414088a417b407b9b20583b2e8f7363bd
Some earlier autoconf versions (E.G. 2.13 as used by thttpd/wipe) get confused if --runstatedir is passed, so only do so if it is supported (E.G. present in the script).
With this change we can go back to passing --runstatedir instead of runstatedir, so this effectively reverts commit c28b27032b926c2e (package/pkg-autotools.mk: fix runtime path).
--- package/pkg-autotools.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/pkg-autotools.mk +1 -1
@@ -187,7 +187,7 @@ define $(2)_CONFIGURE_CMDS --exec-prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ - runstatedir=/run \ + `grep -q -e '--runstatedir' configure && printf '%s' --runstatedir=/run` \ --program-prefix="" \ --disable-gtk-doc \ --disable-gtk-doc-html \
Signature · 6 lines
2.30.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedPeter, All,
On 2022-09-09 17:49 +0200, Peter Korsgaard spake thusly:
Quoted 29 lines
Fixes:
(thttpd) http://autobuild.buildroot.net/results/f74/f74cae1d981b284a69d7a4e138faf97e45e44865/
(wipe) http://autobuild.buildroot.net/results/4dc/4dc77752d5851d8a71d234c0b284ca696e633754/And (possibly, unable to reproduce locally):
http://autobuild.buildroot.net/results/658/65882e1f266e818fecef2892c9493d3b8e1e912e/--runstatedir was added in autoconf 2.69b:
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=a197431414088a417b407b9b20583b2e8f7363bdSome earlier autoconf versions (E.G. 2.13 as used by thttpd/wipe) get confused if --runstatedir is passed, so only do so if it is supported (E.G. present in the script).
With this change we can go back to passing --runstatedir instead of runstatedir, so this effectively reverts commit
c28b27032b926c2e(package/pkg-autotools.mk: fix runtime path).Suggested-by Norbert Lange <[email protected]>Signed-off-by Peter Korsgaard <[email protected]>--- package/pkg-autotools.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/pkg-autotools.mk +0
-0
package/pkg-autotools.mk define $(2)_CONFIGURE_CMDS · line 190
Quoted 5 lines
package/pkg-autotools.mk +1
-1@@ -187,7 +187,7 @@ define $(2)_CONFIGURE_CMDS --exec-prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ - runstatedir=/run \ + `grep -q -e '--runstatedir' configure && printf '%s' --runstatedir=/run` \
This is a bit ugly, but grepping the source code is not unheard of, if at least to know what libtool patch we need to apply. Still, this is not very nice... :-(
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 10 lines
package/pkg-autotools.mk +0
-0--program-prefix="" \ --disable-gtk-doc \ --disable-gtk-doc-html \Signature · 6 lines
2.30.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | 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 [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot