Fails to build
- It seems that something was changed in the build flags, and now it fails with this error:
xorg-server-21.1.11/meson.build:1:0: ERROR: Unable to detect linker for compiler `cc -Wl,--version -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl -Wl,-z,pack-relative-relocs -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/xorg-server/src=/usr/src/debug/xorg-server -flto=auto`
stdout:
stderr: cc: error: unrecognized command-line option ‘-Wl’; did you mean ‘-W’?
Changing the line from export LDFLAGS=${LDFLAGS/,-z,now}
to export LDFLAGS=${LDFLAGS/-Wl,-z,now}
fixes the problem.
- At the end of the build,
makepkg
throws the following error:
==> Creating package "xorg-server"...
-> Generating .PKGINFO file...
==> ERROR: Invalid value for license: LicenseRef-Adobe-Display-PostScript AND BSD-3-Clause AND LicenseRef-DEC-3-Clause AND HPND AND
LicenseRef-HPND-sell-MIT-disclaimer-xserver AND HPND-sell-variant AND ICU AND ISC AND MIT AND MIT-open-group AND NTP AND
SGI-B-2.0 AND SMLNJ AND X11 AND X11-distribute-modifications-variant
I don't know what's wrong this with value. Maybe it's too long?