garrigue / lablgtk

LablGTK 2 and 3: an interface to the GIMP Tool Kit
https://garrigue.github.io/lablgtk
Other
89 stars 40 forks source link

[lablgtk3 beta6] Install does not use stublibs/ #86

Closed zorun closed 4 years ago

zorun commented 4 years ago

I am packaging lablgtk3 for Arch Linux and running in a number of issues.

When using the ocamlfind-based build system, so-files are installed in usr/lib/ocaml/lablgtk3/ instead of usr/lib/ocaml/stublibs/. Besides, it overrides usr/lib/ocaml/ld.conf which looks like a really bad idea and is a no-go for packaging... (possibly related to #18 ?)

Here is an example of so-file installed in the wrong location:

-rwxr-xr-x root/root    376352 2019-11-01 14:19 usr/lib/ocaml/lablgtk3/dlllablgtk3.so
-rwxr-xr-x root/root     60648 2019-11-01 14:19 usr/lib/ocaml/lablgtk3/dlllablgtksourceview3.so

Here is the content of the overwritten ld.conf, which is completely wrong:

/build/lablgtk3/pkg/lablgtk3/usr/lib/ocaml/lablgtk3

Here is how I build lablgtk3:

./configure --prefix=/usr \
  --without-gtkspell \
  --with-gtksourceview3
make world
make opt

and then install with:

make DESTDIR="/build/lablgtk3/pkg/lablgtk3" install

When using the old-install target, the libs are installed in usr/lib/ocaml/stublibs/ as expected.

zorun commented 4 years ago

Hmm, I see that support for building with the Makefile has been removed in the git repository.

I was having issues with the Dune build, but recent commits such as 1418b24bf99b10a3bd45258ed30613a8de4b8955 will probably help fix them.

zorun commented 4 years ago

My build now works fine with Dune, closing this!