x11-base/xorg-server-1.3.0.0-r5 on hardened amd64 doesn't install /usr/lib/pkgconfig/xorg-server.pc and thus isn't known to pkgconfig. This leads to xf86-video-nv failing at configure: [blablabla...] checking if DPMSExtension is defined... no checking for x86_64-pc-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for XORG... configure: error: Package requirements (xorg-server >= 1.2 xproto fontsproto ) were not met: No package 'xorg-server' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables XORG_CFLAGS and XORG_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. ... I don't know if there's a reason xorg-server doesn't register itself with pkgconfig or if it's just some mistake. Please let me know if there's any rationale behind this, so I might look into fixing it... Reproducible: Always
Created attachment 145268 [details] config.log
strange, enabling the sdl use flag on xorg-server makes it install /usr/lib/pkgconfig/xorg-server.pc . What does sdl have to do with pkg-config? Well, if this ought to make any sense, xf86-video-nv should print a warning that sdl needs to be enabled on xorg-server... So I guess this is not a hardened-specific issue...
xorg-server.pc is now always installed in xorg-server 1.5.3. I didn't check older versions but since it's the latest stable, let's consider the bug fixed. Thanks