lxde/libfm

libfm does not build without gio/gdesktopappinfo.h

jtojnar opened this issue · 0 comments

We started building glib with Cocoa on MacOS, which makes it not build gio/gdesktopappinfo.h header:

https://gitlab.gnome.org/GNOME/glib/blob/be10f19752223f2607ba1fe00408c75920792aba/gio/meson.build#L412-429

Unfortunately, this also broke libfm, which depends on the header:

  CC       base/libfm_la-fm-app-info.lo
base/fm-app-info.c:40:10: fatal error: 'gio/gdesktopappinfo.h' file not found
#include <gio/gdesktopappinfo.h>
         ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[4]: *** [Makefile:2325: base/libfm_la-fm-app-info.lo] Error 1
make[4]: Leaving directory '/private/tmp/nix-build-libfm-1.3.1.drv-0/libfm-1.3.1/src'
make[3]: *** [Makefile:2767: all-recursive] Error 1
make[3]: Leaving directory '/private/tmp/nix-build-libfm-1.3.1.drv-0/libfm-1.3.1/src'
make[2]: *** [Makefile:1133: all] Error 2
make[2]: Leaving directory '/private/tmp/nix-build-libfm-1.3.1.drv-0/libfm-1.3.1/src'
make[1]: *** [Makefile:567: all-recursive] Error 1
make[1]: Leaving directory '/private/tmp/nix-build-libfm-1.3.1.drv-0/libfm-1.3.1'
make: *** [Makefile:469: all] Error 2
builder for '/nix/store/vch36j0g1smn9j6ycchjv5n7wmq3sdzi-libfm-1.3.1.drv' failed with exit code 2

Since you use autotools, perhaps you need to do the same thing glibmm does:

https://gitlab.gnome.org/GNOME/glibmm/blob/96a997b1f4cf902a7690de8a27e1173f1d217042/configure.ac#L58-76

Downstream report: NixOS/nixpkgs#54428 (comment)