Hello, We [workaround] an upstream [bug] in x11/hs-X11.
A proper fix would be to add an exrta-lib-dirs line to [X11.buildinfo.in] that sets the directory where X libs live (/usr/X11R6/lib). The directory is already included as ld-options: @LDFLAGS@, except it ends up as -L/usr/X11R6/lib and is not used for linking the shared library (the essence of the [bug]). Anybody got an autoconf recipe handy for that? I'd like a patch like the following, except with a proper x_libraries figured out by [configure.ac]. diff --git a/X11.buildinfo.in b/X11.buildinfo.in index 6925939..a6c7ef3 100644 --- a/X11.buildinfo.in +++ b/X11.buildinfo.in @@ -5,3 +5,4 @@ buildable: @BUILD_PACKAGE_BOOL@ cc-options: @X_CFLAGS@ @CPPFLAGS@ ld-options: @X_LIBS@ @LDFLAGS@ extra-libraries: @EXTRA_LIBRARIES@ +extra-lib-dirs: @x_libraries@ The value is already available in configure, it's just not "exported". Output of ./configure includes lines like this: checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include Produced by this shell fragment: $as_echo "libraries $x_libraries, headers $x_includes" >&6; } [X11.buildinfo.in] https://github.com/xmonad/X11/blob/master/X11.buildinfo.in [configure.ac] https://github.com/xmonad/X11/blob/master/configure.ac [bug] https://github.com/xmonad/X11/issues/53 [workaround] https://github.com/openbsd/ports/blob/master/x11/hs-X11/Makefile#L20 Thanks Greg -- nest.cx is Gmail hosted, use PGP: https://pgp.key-server.io/0x0B1542BD8DF5A1B0 Fingerprint: 5E2B 2D0E 1E03 2046 BEC3 4D50 0B15 42BD 8DF5 A1B0
