|Anonymous | Login | Signup for a new account||2015-03-07 02:45 CET|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000312||OCaml||OCaml general||public||2001-03-14 23:56||2001-03-15 16:11|
|Status||closed||Resolution||no change required|
|Target Version||Fixed in Version|
|Summary||0000312: source rpm spec file bug.|
|Description||Full_Name: Fred Smith|
OS: Linux RH 7.0
Submission from: dhcp99-190.cs.cornell.edu (184.108.40.206)
In the spec file for the source rpm the variable BUILDROOT is set to var/tmp/...
so building the rpm puts all the executables in /var/tmp/.... Removing this
from the spec file solved the problem for me.
On a related topic, the binary RPM does not "require" -lcurses, but doesn't
without it. We just upgraded to the latest ncurses and ld no longer finds
I am not sure what is going on, but recompiling the OCaml source fixed that
Thanks for all your help.
|Tags||No tags attached.|
> In the spec file for the source rpm the variable BUILDROOT is set to
> var/tmp/... so building the rpm puts all the executables in
> /var/tmp/.... Removing this line from the spec file solved the
> problem for me.
This is a feature: building the RPM should not install the software in
a user-visible location, just build a binary RPM. You can then
install the binary RPM in its final location (/usr) using rpm -i.
This avoids having files in /usr that are not managed by the RPM
database, and also overwriting managed files in /usr during
the building of the RPM. All RPMs from Linux vendors follow this
> On a related topic, the binary RPM does not "require" -lcurses, but
> doesn't work without it.
I'm suprised: the RH62 RPM requires libncurses.so.4, and
the MK72 RPM requires libncurses.so.5. (Haven't checked the RH70 RPM
yet.) You're correct that OCaml needs the curses library.
Actually, I think I see what you mean. RedHat has two RPMS,
ncurses and ncurses-devel. The former provides the shared library,
and the latter provides include files and the correct symbolic links
so that compiling with -lcurses works. ncurses is all you need to run
the binaries from the RPM, so there is an automatically-generated
dependency on ncurses, but none on ncurses-devel. But ncurses-devel
is needed for compiling software with ocamlc -custom. So we should
probably add an explicit dependency on ncurses-devel in the spec file.
Thanks for the feedback,
- Xavier Leroy
|2005-11-18 10:13||administrator||New Issue|
|Copyright © 2000 - 2011 MantisBT Group|