Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932497 - dev-ml/camlp5-8.02.00 fails to build during @world update that updates from dev-lang/ocaml-4.14.1 to dev-lang/ocaml-4.14.2
Summary: dev-ml/camlp5-8.02.00 fails to build during @world update that updates from d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-22 16:36 UTC by Maciej S. Szmigiero
Modified: 2024-05-30 06:28 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej S. Szmigiero 2024-05-22 16:36:34 UTC
During @world update that updates from dev-lang/ocaml-4.14.1 to dev-lang/ocaml-4.14.2 the dev-ml/* packages are correctly added to the list of packages to be rebuilt.

However, in the merge list the rebuild of dev-ml/camlp5-8.02.00 is ordered before the rebuild of its apparent dependencies of dev-ml/camlp-streams, dev-ml/rresult, dev-ml/astring, dev-ml/fpath, dev-ml/fmt, dev-ml/logs, dev-ml/bos, dev-ml/dune-configurator and dev-ml/pcre-ocaml.

Due to this, dev-ml/camlp5-8.02.00 fails to rebuild:
> File "_none_", line 1:
> Error: Files /usr/lib64/ocaml/camlp-streams/camlp_streams.cmxa
>        and /usr/lib64/ocaml/stdlib.cmxa
>        make inconsistent assumptions over implementation Stdlib__Stream
> 
> File "_none_", line 1:
> Error: Files /usr/lib64/ocaml/rresult/rresult.cmxa
>        and /usr/lib64/ocaml/stdlib.cmxa
>        make inconsistent assumptions over implementation CamlinternalFormat
> 
> File "_none_", line 1:
> Error: Files /usr/lib64/ocaml/astring/astring.cmxa
>        and /usr/lib64/ocaml/stdlib.cmxa
>        make inconsistent assumptions over implementation Stdlib__Bytes
> 
> File "_none_", line 1:
> Error: Files /usr/lib64/ocaml/fpath/fpath.cmxa
>        and /usr/lib64/ocaml/astring/astring.cmxa
>        make inconsistent assumptions over implementation Astring_base
> 
> File "_none_", line 1:
> Error: Files /usr/lib64/ocaml/fmt/fmt.cmxa and /usr/lib64/ocaml/stdlib.cmxa
>        make inconsistent assumptions over implementation CamlinternalFormat
> 
> File "_none_", line 1:
> Error: Files /usr/lib64/ocaml/logs/logs.cmxa and /usr/lib64/ocaml/stdlib.cmxa
>        make inconsistent assumptions over implementation Stdlib__Queue
> 
> File "_none_", line 1:
> Error: Files /usr/lib64/ocaml/bos/bos.cmxa and /usr/lib64/ocaml/stdlib.cmxa
>        make inconsistent assumptions over implementation Stdlib__Set
> 
> File "_none_", line 1:
> Error: Files /usr/lib64/ocaml/pcre/pcre.cmxa and /usr/lib64/ocaml/stdlib.cmxa
>        make inconsistent assumptions over implementation Stdlib__Sys
> 
> File "_none_", line 1:
> Error: Files /usr/lib64/ocaml/re/re.cmxa and /usr/lib64/ocaml/stdlib.cmxa
>        make inconsistent assumptions over implementation Stdlib__Format

That's on Portage 3.0.64.

After manually rebuilding all these aforementioned dependencies dev-ml/camlp5-8.02.00 (re)builds successfully.
Comment 1 Maciej S. Szmigiero 2024-05-23 10:58:30 UTC
I guess there are two issues with dev-ml/camlp5-8.02.00 ebuild:
1) The dependencies are specified just in RDEPEND (as run-time dependencies) even thought they are clearly also build-time dependencies.

2) Only dev-ml/camlp-stream, dev-ml/rresult, dev-ml/bos and dev-ml/pcre-ocaml are specified as dependencies even though the package clearly needs some other packages as well.
Comment 2 Bernd Feige 2024-05-25 11:57:18 UTC
Thanks for the hint!
Here:
emerge -1 dev-ml/bos dev-ml/logs dev-ml/fmt dev-ml/fpath dev-ml/astring dev-ml/rresult
had to be done to emerge camlp5 successfully.

Note that the problem did not occur on several other systems before which updated more often - only on one that wasn't updated for 2 weeks.
Comment 3 Larry the Git Cow gentoo-dev 2024-05-30 06:28:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8266dfc73a7af43e4e864585fc34a6680b63e61c

commit 8266dfc73a7af43e4e864585fc34a6680b63e61c
Author:     Alfredo Tupone <tupone@gentoo.org>
AuthorDate: 2024-05-30 06:27:01 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2024-05-30 06:27:50 +0000

    dev-ml/camlp5: Dependencies
    
    Closes: https://bugs.gentoo.org/932497
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 .../{camlp5-8.02.00.ebuild => camlp5-8.02.00-r1.ebuild}      | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)