build system should support setting a prefix
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ocamlbricks |
New
|
Undecided
|
Unassigned |
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/
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,
From #debian-ocaml:
DESTDIR or a prefix. if upstream agreed to change build system, what would you recommend?
generates build and install script out of it
19:21 < lucas> I'm looking at ocamlbricks, which uses a custom build system that does not support setting
19:33 < mehdi> something using oasis could do it
19:33 < olasd> oasis is well supported
19:34 < mehdi> the user writes up an _oasis file (something that looks like a debian/control file) and oasis
20:02 < lucas> the user = the upstream dev, in that case?
20:05 < olasd> yes
20:06 < mehdi> you can also contribute an _oasis file for ocamlbricks :)