Yes, this was actually a bug of our build system. Thanks for reporting.
I have fixed it in the trunk revno 339 introducing the variable
`ocaml_libraryprefix' (the location of libraries *used* by the project).
The value of this variable may be different from `libraryprefix', that
represents the location where we want to install the libraries *built*
by the project.
Sorry for the delay of our reaction: we were very busy these two last
week by the evaluation of our laboratory (by the AERES, you are a MCF
and you can easily imagine the stress ;-)).
Here an example of a CONFIGME suitable, I think, for debian packaging :
On Sat, 01 Dec 2012 18:19:56 -0000, Lucas Nussbaum wrote:
> Public bug reported:
>
> Hi,
>
> The way Debian packages builds work is that "make install" is run
> with a
> custom prefix or DESTDIR variable, so that files are installed in the
> debian/tmp subdirectory. That is usually implemented by specifying a
> prefix during the configure phase, or by setting a variable.
>
> The custom build system in ocamlbricks does not allow to do that. If
> you
> override libraryprefix in CONFIGME and set it to
> debian/tmp/usr/lib/ocaml, 'make' then fails to find lablgtk2, because
> it
> looks for it in debian/tmp/usr/lib/ocaml/lablgtk2/
>
> It would be better to move away from the custom build system, and use
> something more standard. Since I'm not usually involved in ocaml
> packaging, I cannot make a recommandation, but if needed, I could ask
> the right people.
>
> Alternatively, this could be worked-around using dirty hacks in the
> package building process, but:
> (1) these will be very dirty hacks
> (2) it would only fix the problem for Debian
> Generally, it is much easier to improve the build system, since it
> benefits everybody.
>
> Thanks,
>
> ** Affects: ocamlbricks
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of
> Marionnet
> drivers, which is subscribed to ocamlbricks.
> https://bugs.launchpad.net/bugs/1085461
>
> Title:
> build system should support setting a prefix
>
> Status in ocamlbricks - a library of ocaml components:
> New
>
> Bug description:
> Hi,
>
> The way Debian packages builds work is that "make install" is run
> with
> a custom prefix or DESTDIR variable, so that files are installed in
> the debian/tmp subdirectory. That is usually implemented by
> specifying
> a prefix during the configure phase, or by setting a variable.
>
> The custom build system in ocamlbricks does not allow to do that.
> If
> you override libraryprefix in CONFIGME and set it to
> debian/tmp/usr/lib/ocaml, 'make' then fails to find lablgtk2,
> because
> it looks for it in debian/tmp/usr/lib/ocaml/lablgtk2/
>
> It would be better to move away from the custom build system, and
> use
> something more standard. Since I'm not usually involved in ocaml
> packaging, I cannot make a recommandation, but if needed, I could
> ask
> the right people.
>
> Alternatively, this could be worked-around using dirty hacks in the
> package building process, but:
> (1) these will be very dirty hacks
> (2) it would only fix the problem for Debian
> Generally, it is much easier to improve the build system, since it
> benefits everybody.
>
> Thanks,
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ocamlbricks/+bug/1085461/+subscriptions
>
> !DSPAM:97,50ba4bb2301711564113414!
Hi Lucas,
Yes, this was actually a bug of our build system. Thanks for reporting. libraryprefix' (the location of libraries *used* by the project).
I have fixed it in the trunk revno 339 introducing the variable
`ocaml_
The value of this variable may be different from `libraryprefix', that
represents the location where we want to install the libraries *built*
by the project.
Sorry for the delay of our reaction: we were very busy these two last
week by the evaluation of our laboratory (by the AERES, you are a MCF
and you can easily imagine the stress ;-)).
Here an example of a CONFIGME suitable, I think, for debian packaging :
% cat CONFIGME efix=$( ocamlc -where || exit -1) ${ocaml_ libraryprefix} /caml ${DESTDIR: -debian/ tmp} ${prefix} /${ocaml_ libraryprefix} efix=$prefix/ etc efix=$prefix/ share/doc $prefix/ share/locale
ocaml_librarypr
ocaml_sources=
prefix=
libraryprefix=
configurationpr
documentationpr
localeprefix=
Thanks,
Jean-Vincent
On Sat, 01 Dec 2012 18:19:56 -0000, Lucas Nussbaum wrote: tmp/usr/ lib/ocaml, 'make' then fails to find lablgtk2, because tmp/usr/ lib/ocaml/ lablgtk2/ /bugs.launchpad .net/bugs/ 1085461 tmp/usr/ lib/ocaml, 'make' then fails to find lablgtk2, tmp/usr/ lib/ocaml/ lablgtk2/ /bugs.launchpad .net/ocamlbrick s/+bug/ 1085461/ +subscriptions 97,50ba4bb23017 11564113414!
> Public bug reported:
>
> Hi,
>
> The way Debian packages builds work is that "make install" is run
> with a
> custom prefix or DESTDIR variable, so that files are installed in the
> debian/tmp subdirectory. That is usually implemented by specifying a
> prefix during the configure phase, or by setting a variable.
>
> The custom build system in ocamlbricks does not allow to do that. If
> you
> override libraryprefix in CONFIGME and set it to
> debian/
> it
> looks for it in debian/
>
> It would be better to move away from the custom build system, and use
> something more standard. Since I'm not usually involved in ocaml
> packaging, I cannot make a recommandation, but if needed, I could ask
> the right people.
>
> Alternatively, this could be worked-around using dirty hacks in the
> package building process, but:
> (1) these will be very dirty hacks
> (2) it would only fix the problem for Debian
> Generally, it is much easier to improve the build system, since it
> benefits everybody.
>
> Thanks,
>
> ** Affects: ocamlbricks
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of
> Marionnet
> drivers, which is subscribed to ocamlbricks.
> https:/
>
> Title:
> build system should support setting a prefix
>
> Status in ocamlbricks - a library of ocaml components:
> New
>
> Bug description:
> Hi,
>
> The way Debian packages builds work is that "make install" is run
> with
> a custom prefix or DESTDIR variable, so that files are installed in
> the debian/tmp subdirectory. That is usually implemented by
> specifying
> a prefix during the configure phase, or by setting a variable.
>
> The custom build system in ocamlbricks does not allow to do that.
> If
> you override libraryprefix in CONFIGME and set it to
> debian/
> because
> it looks for it in debian/
>
> It would be better to move away from the custom build system, and
> use
> something more standard. Since I'm not usually involved in ocaml
> packaging, I cannot make a recommandation, but if needed, I could
> ask
> the right people.
>
> Alternatively, this could be worked-around using dirty hacks in the
> package building process, but:
> (1) these will be very dirty hacks
> (2) it would only fix the problem for Debian
> Generally, it is much easier to improve the build system, since it
> benefits everybody.
>
> Thanks,
>
> To manage notifications about this bug go to:
> https:/
>
> !DSPAM: