Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 954169 - dev-ruby/commonmarker: missing llvm-core/clang in BDEPEND
Summary: dev-ruby/commonmarker: missing llvm-core/clang in BDEPEND
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-04-22 02:15 UTC by Hank Leininger
Modified: 2025-06-13 13:26 UTC (History)
0 users

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 Hank Leininger 2025-04-22 02:15:52 UTC
dev-ruby/commonmarker-2.1.1 fails to build if llvm-core/clang is not installed:

...
  thread 'main' panicked at /var/tmp/portage/dev-ruby/commonmarker-2.1.1/work/cargo_home/gentoo/bindgen-0.69.5/lib.rs:622:31:
  Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang-*.so', 'libclang.so.*', 'libclang-*.so.*'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
^[[1m^[[33mwarning^[[0m^[[1m:^[[0m build failed, waiting for other jobs to finish...
make: *** [Makefile:566: target/release/libcommonmarker.so] Error 101
make: Leaving directory '/var/tmp/portage/dev-ruby/commonmarker-2.1.1/work/ruby32/commonmarker-2.1.1/ext/commonmarker'
 ^[[31;01m*^[[0m ERROR: dev-ruby/commonmarker-2.1.1::gentoo failed (compile phase):
 ^[[31;01m*^[[0m   emake failed
...

Manually emerging llvm-core/clang first (tested with 20.1.3:20/20.1 but I don't know that it matters) will make building dev-ruby/commonmarker-2.1.1 succeed.
Comment 1 Larry the Git Cow gentoo-dev 2025-06-13 13:26:21 UTC
The bug has been closed via the following commit(s):

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

commit a963280a6a0b84cbbb7653772f650363bf3bc01e
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2025-06-13 13:22:36 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2025-06-13 13:26:12 +0000

    dev-ruby/commonmarker: add 2.3.0
    
    Add missing dependency on clang due to clang-sys and cbindgen.
    Thanks to Hank Leiniger for providing a fix for this.
    
    Closes: https://bugs.gentoo.org/954169
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/commonmarker/Manifest                  |   2 +
 dev-ruby/commonmarker/commonmarker-2.3.0.ebuild | 185 ++++++++++++++++++++++++
 2 files changed, 187 insertions(+)