Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 886185

Summary: Package bindgen for kernel builds
Product: Gentoo Linux Reporter: Patrick McLean <chutzpah>
Component: New packagesAssignee: Gentoo Rust Project <rust>
Status: RESOLVED FIXED    
Severity: normal CC: bertrand, flow
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/projg2/pycargoebuild/issues/9
https://github.com/gentoo/cargo-ebuild/issues/29
Whiteboard:
Package list:
Runtime testing required: ---

Description Patrick McLean gentoo-dev 2022-12-15 23:07:09 UTC
We probably should package bindgen since the kernel rust support requires it
https://github.com/rust-lang/rust-bindgen

# make LLVM=1 rustavailable
***
*** Rust bindings generator 'bindgen' could not be found.
***
make: *** [Makefile:1800: rustavailable] Error 1
Comment 1 Bertrand Jacquin 2022-12-18 00:23:02 UTC
See PR https://github.com/gentoo/gentoo/pull/28696
Comment 2 Larry the Git Cow gentoo-dev 2022-12-20 04:57:43 UTC
The bug has been referenced in the following commit(s):

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

commit cc45983ea9734149c5cfd763d349554b7ed96731
Author:     Bertrand Jacquin <bertrand@jacquin.bzh>
AuthorDate: 2022-12-13 01:02:50 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2022-12-20 04:49:33 +0000

    dev-util/bindgen: new package, add 0.56.0, 0.62.0, 0.63.0
    
    bindgen is required to build Linux kernel 6.1+ with rust[1].
    * 0.56.0 is the recommended version to build kernel[2]
    * 0.62.0 is the previous latest version building kernel 6.1+ successfully
    * 0.63.0 is the current latest version[3], however does not allow to
      build kernel due to command line changes
    
    [1] https://docs.kernel.org/rust/quick-start.html#bindgen
    [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/min-tool-version.sh?h=v6.1#n36
    [3] https://crates.io/crates/bindgen/versions
    
    Bug: https://bugs.gentoo.org/886185
    
    Signed-off-by: Bertrand Jacquin <bertrand@jacquin.bzh>
    Closes: https://github.com/gentoo/gentoo/pull/28696
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-util/bindgen/Manifest              | 116 ++++++++++++++++++++++++++++++
 dev-util/bindgen/bindgen-0.56.0.ebuild |  81 +++++++++++++++++++++
 dev-util/bindgen/bindgen-0.62.0.ebuild | 125 +++++++++++++++++++++++++++++++++
 dev-util/bindgen/bindgen-0.63.0.ebuild | 125 +++++++++++++++++++++++++++++++++
 dev-util/bindgen/metadata.xml          |  16 +++++
 5 files changed, 463 insertions(+)