[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 4.04 changes



Ximin Luo:
>>>> [..]
>>>>
>>>> Maybe now is a good time for Stéphane to step in and do the package merging like we were talking about?
>>>
>>> IMHO, the new installation process is cleaner. It's good it has been done
>>> upstream. Notice how it may introduce incompatibilities. Forcing ocamlc to
>>> point to ocamlc.byte everywhere (I guess it's already the case for bytecode
>>> architecture...?) for the sake of keeping ocaml-native-compilers separate
>>> could also introduce other incompatibilities. I am now all in favour of
>>> merging ocaml-native-compilers into ocaml-nox.
>>
>> yes, agreed. -Ralf.
>>
> 
> I'll be at the mirageOS hackathon next week and that should be a good environment to continue with this.
> 
> If anyone has specific ideas on how to merge these two packages please let me know, otherwise I'll see if I can just make it up as I go along.
> 

I've pushed the changes to the debian/experimental branch. It builds well but fails here:

dh_ocaml -Xcompiler-libs \
 --runtime-map ocaml-nox:ocaml-base-nox,ocaml:ocaml-base \
 --checksum 4.04.0
Fatal error: cannot find file 'tools/objinfo'
E: Error running OCAMLLIB=tools boot/ocamlrun tools/objinfo on debian/ocaml-nox/usr/bin/ocamlc.byte

I can fix this by doing this:

diff --git a/debian/rules b/debian/rules
index 0c7f4c03..fccd038a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -47,7 +47,7 @@ endif
 endif
 
 # Environment variable for dh_ocaml
-export OCAMLOBJINFO = OCAMLLIB=tools boot/ocamlrun tools/objinfo
+export OCAMLOBJINFO = OCAMLLIB=tools debian/tmp/usr/bin/ocamlobjinfo
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1

Then the build succeeds and I get some .debs, but there are lots of warnings:

dh_ocaml -Xcompiler-libs \
 --runtime-map ocaml-nox:ocaml-base-nox,ocaml:ocaml-base \
 --checksum 4.04.0
W: ocaml-nox/ocaml-base-nox v4.04.0-1 doesn't resolve dependency on unit Optmain
W: ocaml-nox/ocaml-base-nox v4.04.0-1 doesn't resolve dependency on unit Flambda
W: ocaml-nox/ocaml-base-nox v4.04.0-1 doesn't resolve dependency on unit Cmm
W: ocaml-nox/ocaml-base-nox v4.04.0-1 doesn't resolve dependency on unit Typedecl

etc, about 150-200 of them.

Is it OK to ignore, or should I fix the build failure in some other way?

X

-- 
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git


Reply to: