Bug 34902

Summary: Invalid libdir builtin in menhir
Product: Sisyphus Reporter: Vitaly Chikunov <vt>
Component: ocaml-menhirAssignee: Anton Farygin <rider>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: rider
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on:    
Bug Blocks: 35493    

Description Vitaly Chikunov 2018-05-14 02:56:40 MSK

    
Comment 1 Vitaly Chikunov 2018-05-14 03:02:23 MSK
При компиляции coccinelle возникает ошибка

Error: /usr/src/tmp/ocaml-menhir-buildroot/usr/share/menhir/standard.mly: No such file or directory

[builder@localhost ~]$ strings /usr/bin/menhir | grep buildroot
/usr/src/tmp/ocaml-menhir-buildroot/usr/share/menhir

[builder@localhost ~]$ ls -l /usr/share/menhir/standard.mly
-rw-r--r-- 1 rooter rooter 6521 Jul 11  2017 /usr/share/menhir/standard.mly

в ocaml-menhir/menhir/src/settings.ml есть такая запись:

(* By default, [stdlib_path] is [Installation.libdir], that is, the directory
   that was specified when Menhir was compiled. This is overridden by the
   environment variable $MENHIR_STDLIB, if it is defined, and by the --stdlib
   command line option, if present. *)

Workaround, установить MENHIR_STDLIB работает. Однако, это не совсем правильно, что по-умолчанию в путь попал buildroot.
Comment 2 Repository Robot 2018-05-31 18:26:20 MSK
ocaml-menhir-20180530-alt1.S1 -> sisyphus:

Thu May 31 2018 Anton Farygin <rider@altlinux.ru> 20180530-alt1.S1
- 20180530 (closes: #34902)