Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 749711 - dev-ml/ocaml-gettext-0.4.2 fails to compile
Summary: dev-ml/ocaml-gettext-0.4.2 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-17 13:08 UTC by Agostino Sarubbo
Modified: 2020-10-18 22:16 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,13.54 KB, text/plain)
2020-10-17 13:08 UTC, Agostino Sarubbo
Details
Build log (dev-ml:ocaml-gettext-0.4.2:20201018-090331.log,9.76 KB, text/plain)
2020-10-18 09:17 UTC, Ian Pickworth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-10-17 13:08:34 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-ml/ocaml-gettext-0.4.2 fails to compile.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2020-10-17 13:08:36 UTC
Created attachment 666200 [details]
build.log

build log and emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-17 22:13:03 UTC
Bad timing! (Always better to find something fixed than new!)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e210d7974317f01982f88ac5c8377884b03318d
Comment 3 Ian Pickworth 2020-10-18 09:17:16 UTC
Created attachment 666410 [details]
Build log

The fix in previous comment does not fix the problem reported.
This log is from 10am BST (approx), still shows the problem originally reported.
I checked the ebuild, and the fix in previous comment has been applied.

ian2 ~ # emerge -pqv '=dev-ml/ocaml-gettext-0.4.2::gentoo'
[ebuild     U ] dev-ml/ocaml-gettext-0.4.2 [0.3.7-r2] USE="ocamlopt%* -test (-doc%)" 
ian2 ~ #
Comment 4 Ian Pickworth 2020-10-18 09:21:31 UTC
The failure text in the logs (both of them) is:

.....
Done: 247/489 (jobs: 9)
                       
File "src/bin/ocaml-xgettext/xgettext.ml", line 125, characters 2-5:
Error: Syntax error: pattern expected.
Done: 247/489 (jobs: 9)
......
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-18 11:18:05 UTC
(In reply to Ian Pickworth from comment #4)
> The failure text in the logs (both of them) is:
> 
> .....
> Done: 247/489 (jobs: 9)
>                        
> File "src/bin/ocaml-xgettext/xgettext.ml", line 125, characters 2-5:
> Error: Syntax error: pattern expected.
> Done: 247/489 (jobs: 9)
> ......

I don’t see this string in ago’s log?

The error in his was:
0;1mFile "src/tools/discover-stub/dune", line 3, characters 12-29:[0m
3 |  (libraries dune.configurator))
                ^^^^^^^^^^^^^^^^^
[1;31mError[0m: Library "dune.configurator" not found.
Hint: try:
  dune external-lib-deps --missing @install

Can you try upgrading cppo for me?
Comment 6 Ian Pickworth 2020-10-18 11:42:21 UTC
Sorry, I thought I saw that error in the first log :-(

Installed dev-ml/cppo as follows:

ian2 ~ # emerge  --oneshot --jobs dev-ml/cppo
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-ml/cppo-1.6.6::gentoo
>>> Installing (1 of 1) dev-ml/cppo-1.6.6::gentoo
>>> Jobs: 1 of 1 complete                           Load avg: 0.65, 0.46, 0.31
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
ian2 ~ # 

And then dev-ml/ocaml emerged OK:

ian2 ~ # emerge -uND --with-bdeps y --jobs --keep-going --quiet-fail y @world
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 7) dev-ml/result-1.5::gentoo
>>> Emerging (2 of 7) dev-ml/sexplib0-0.14.0::gentoo
>>> Installing (1 of 7) dev-ml/result-1.5::gentoo
>>> Emerging (3 of 7) dev-ml/csexp-1.3.2::gentoo
>>> Installing (2 of 7) dev-ml/sexplib0-0.14.0::gentoo
>>> Installing (3 of 7) dev-ml/csexp-1.3.2::gentoo
>>> Emerging (4 of 7) dev-ml/dune-private-libs-2.7.1::gentoo
>>> Installing (4 of 7) dev-ml/dune-private-libs-2.7.1::gentoo
>>> Emerging (5 of 7) dev-ml/dune-configurator-2.7.1::gentoo
>>> Installing (5 of 7) dev-ml/dune-configurator-2.7.1::gentoo
>>> Emerging (6 of 7) dev-ml/base-0.14.0::gentoo
>>> Installing (6 of 7) dev-ml/base-0.14.0::gentoo
>>> Emerging (7 of 7) dev-ml/ocaml-gettext-0.4.2::gentoo
>>> Installing (7 of 7) dev-ml/ocaml-gettext-0.4.2::gentoo
>>> Jobs: 7 of 7 complete                           Load avg: 2.81, 1.47, 0.74
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
 * After world updates, it is important to remove obsolete packages with
 * emerge --depclean. Refer to `man emerge` for more information.
ian2 ~ # 


Maybe dev-ml/ocaml-gettext needs dependency on >=dev-ml/cppo-1.6.6

Many thanks for prompt follow up.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-18 11:59:23 UTC
(In reply to Ian Pickworth from comment #6)
> Sorry, I thought I saw that error in the first log :-(
> 
>

No worries, thank you for reporting it!

[...]
> >>> Installing (7 of 7) dev-ml/ocaml-gettext-0.4.2::gentoo
> >>> Jobs: 7 of 7 complete                           Load avg: 2.81, 1.47, 0.74
> >>> Auto-cleaning packages...
> 
> >>> No outdated packages were found on your system.
> 
>  * GNU info directory index is up-to-date.
>  * After world updates, it is important to remove obsolete packages with
>  * emerge --depclean. Refer to `man emerge` for more information.
> ian2 ~ # 
> 
> 
> Maybe dev-ml/ocaml-gettext needs dependency on >=dev-ml/cppo-1.6.6
> 
> Many thanks for prompt follow up.

Yeah, I'll add this now and tag the bug. Let me know if you spot any other issues because it's all a bit up in the air at the moment (we're sorting out most of dev-ml/* now though).
Comment 8 Larry the Git Cow gentoo-dev 2020-10-18 12:05:55 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53e4936f459e8290f027c2f56f73a32ea4b83b63

commit 53e4936f459e8290f027c2f56f73a32ea4b83b63
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-10-18 12:05:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-10-18 12:05:46 +0000

    dev-ml/ocaml-gettext: add lower bound on cppo
    
    Fix additional problem caused by not-sufficiently-recent
    cppo, see bug for details (different problem).
    
    Bug: https://bugs.gentoo.org/749711
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-ml/ocaml-gettext/ocaml-gettext-0.4.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)