[opensuse-packaging] OCaml help please
Probably have mostly the same people on the obs list and the packaging list, but never the less I will try my luck here as well. I have a couple of requests/questions in "cleaning up" OCaml related packages and a problem. 1.) Since we have top level devel:languages:ocaml project can we please move everything that is ocaml related and maintained devel:languages:misc into the ocaml project? 2.) Do we have anyone that is really interested in OCaml or do we just have what we have because other projects/packages depend on the few packages we do have? in d:l:ocaml the ocaml package is a link to the package in Factory. The devel project for factory is d:l:misc. Because of local mods in d:l:ocaml the link is busted due to merge conflicts. This breaks other packages in d:l:ocaml. I have no idea how to fix this as every time I try to touch any of these packages to get something fixed I get a stupid: buildinfo is broken... it says: type of message. This is of course complete crap as it prevents a person trying to fix something from fixing it. In addition to the gripes above I have a problem that I am stuck on and could also use some help with. I am trying to build ocamlnet which depends on pcre. The build process failes with this error: ocamlfind ocamlc -g -I ../../src/netstring -package "unix" -custom -o ocamlrpcgen -package unix,netstring \ rpc_generator.cma main.cmo -linkpkg /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lpcre_stubs collect2: ld returned 1 exit status File "_none_", line 1, characters 0-1: Error: Error while building custom runtime system make[1]: *** [ocamlrpcgen] Error 2 Knowing nothing about OCaml build and link processes I can only infer things. Obviously the process calls ld to link a binary and passes -lpcre_stubs, this would require the presence of libpcre_stubs.so somewhere in the default search directories of ld. However, the package ocaml-pcre does not provide this, it provides a dllpcre_stubs.so file in a none-standard location (%{_libdir}/ocaml/stublibs). Should ocaml-pcre create and provide a link %{_libdir}/libpcre_stubs.so to {_libdir}/ocaml/stublibs/dllpcre_stubs.so, or maybe a link in %{_libdir}/ocaml/stublibs and then a -L argument on the link line? Or is there some trick that ocamlfind is supposed to play for me? Help is as always appreciated. Thanks, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Dnia piątek, 1 czerwca 2012 15:13:56 Robert Schweikert pisze:
Should ocaml-pcre create and provide a link %{_libdir}/libpcre_stubs.so to {_libdir}/ocaml/stublibs/dllpcre_stubs.so,
Probably not, it looks like a private library.
or maybe a link in %{_libdir}/ocaml/stublibs and then a -L argument on the link line? Or is there some trick that ocamlfind is supposed to play for me?
Does the thing build using the steps recommended by the manufacturer (a vanilla build following the manufacturer’s instructions)? Chris -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 06/01/2012 03:23 PM, Křištof Želechovski wrote:
Dnia piątek, 1 czerwca 2012 15:13:56 Robert Schweikert pisze:
Should ocaml-pcre create and provide a link %{_libdir}/libpcre_stubs.so to {_libdir}/ocaml/stublibs/dllpcre_stubs.so,
Probably not, it looks like a private library.
or maybe a link in %{_libdir}/ocaml/stublibs and then a -L argument on the link line? Or is there some trick that ocamlfind is supposed to play for me?
Does the thing build using the steps recommended by the manufacturer (a vanilla build following the manufacturer’s instructions)?
I am following the guidelines in the INSTALL file, that gets me into trouble. If I disable pcre the build works, but disabling pcre is not recommended. The instructions for ocamlnet of course say nothing about ocaml-pcre build and wht it is suppossed to provide. Later, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
OK, partially answering my own questions.... sometimes it helps to just send a message into the world and stew over things for a bit ;) On 06/01/2012 03:13 PM, Robert Schweikert wrote: <snip>
In addition to the gripes above I have a problem that I am stuck on and could also use some help with. I am trying to build ocamlnet which depends on pcre. The build process failes with this error:
ocamlfind ocamlc -g -I ../../src/netstring -package "unix" -custom -o ocamlrpcgen -package unix,netstring \ rpc_generator.cma main.cmo -linkpkg /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lpcre_stubs collect2: ld returned 1 exit status File "_none_", line 1, characters 0-1: Error: Error while building custom runtime system make[1]: *** [ocamlrpcgen] Error 2
Knowing nothing about OCaml build and link processes I can only infer things. Obviously the process calls ld to link a binary and passes -lpcre_stubs, this would require the presence of libpcre_stubs.so somewhere in the default search directories of ld.
Well, not necessarily, and archive, i.e. would do, and if you look at the .spec file for ocaml-pcre you will find that the -devel package contains just the archive needed. ;) Just using the archive will lead to link errors as -lpcre is missing on the link line. Other distros do not consider unresolved symbols at link time as errors, thus they do not need a patch to fix the link step, shame on them, good for us :) Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Fri, Jun 01, Robert Schweikert wrote:
Probably have mostly the same people on the obs list and the packaging list, but never the less I will try my luck here as well.
I have a couple of requests/questions in "cleaning up" OCaml related packages and a problem.
1.) Since we have top level devel:languages:ocaml project can we please move everything that is ocaml related and maintained devel:languages:misc into the ocaml project?
Did you get anywhere with this? ocaml is still in several projects instead of the d:l:o. Perhaps in the end Virtualization:Cloud:CloudStack:Testing and Virtualization can build against devel:languages:ocaml Olaf -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 08/20/2012 05:53 AM, Olaf Hering wrote:
On Fri, Jun 01, Robert Schweikert wrote:
Probably have mostly the same people on the obs list and the packaging list, but never the less I will try my luck here as well.
I have a couple of requests/questions in "cleaning up" OCaml related packages and a problem.
1.) Since we have top level devel:languages:ocaml project can we please move everything that is ocaml related and maintained devel:languages:misc into the ocaml project?
Did you get anywhere with this?
No I did not. I got pulled away from this by other tasks and did not have the time to follow through to at least consolidate our OCaml packages. Hoping to get back to this later this year. Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Mon, Aug 20, Robert Schweikert wrote:
On 08/20/2012 05:53 AM, Olaf Hering wrote:
On Fri, Jun 01, Robert Schweikert wrote:
Probably have mostly the same people on the obs list and the packaging list, but never the less I will try my luck here as well.
I have a couple of requests/questions in "cleaning up" OCaml related packages and a problem.
1.) Since we have top level devel:languages:ocaml project can we please move everything that is ocaml related and maintained devel:languages:misc into the ocaml project?
Did you get anywhere with this?
No I did not. I got pulled away from this by other tasks and did not have the time to follow through to at least consolidate our OCaml packages. Hoping to get back to this later this year.
I see you are not listed as maintainer in :misc and :ocaml, so it was appearently not your idea to move the ocaml packages to its own project. Can this cleaned up please? Just moving the existing packages to devel:languages:ocaml and adjusting the devel-package info is probably enough to get it out of failed state. Olaf -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Křištof Želechovski
-
Olaf Hering
-
Robert Schweikert