[Buildroot] [PATCH] package/x11r7/xserver_xorg-server: fix automake-1.18 command not found

Thomas Devoogdt <[email protected]>
Newsgroups net.busybox.buildroot
Message-ID <[email protected]>
The tarball published on
https://xorg.freedesktop.org/archive/individual/xserver/ ships a
pre-generated build system produced with automake 1.18. Buildroot only
provides automake 1.16, so the shipped Makefile.in files are unusable and
the build fails when they are regenerated:

```
 cd ../../../.. && /bin/bash /home/thomas/buildroot/output/build/xserver_xorg-server-21.1.23/missing automake-1.18 --foreign hw/xfree86/drivers/modesetting/Makefile
/home/thomas/buildroot/output/build/xserver_xorg-server-21.1.23/missing: line 85: automake-1.18: command not found
WARNING: 'automake-1.18' is missing on your system.
```

Enable AUTORECONF so the build system is regenerated with the automake
version available in Buildroot.

Regenerating the build system additionally requires the font-util
autoconf macros, hence the extra dependency:

```
configure.ac:52: error: must install font-util 1.1 or later before running autoconf/autogen
```

This commit can be reverted once Buildroot bumps automake to >= 1.18.

Signed-off-by: Thomas Devoogdt <[email protected]>
---
 package/x11r7/xserver_xorg-server/xserver_xorg-server.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk b/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
index cecbb821aea..efb849a9b02 100644
--- a/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
+++ b/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
@@ -41,6 +41,10 @@ XSERVER_XORG_SERVER_DEPENDENCIES = \
 	mcookie \
 	host-pkgconf
 
+# automake-1.18: command not found, font-util needed for autoconf/autogen
+XSERVER_XORG_SERVER_AUTORECONF = YES
+XSERVER_XORG_SERVER_DEPENDENCIES += xfont_font-util
+
 # We force -O2 regardless of the optimization level chosen by the
 # user, as the X.org server is known to trigger some compiler bugs at
 # -Os on several architectures.
-- 
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.