Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 886185 - Package bindgen for kernel builds
Summary: Package bindgen for kernel builds
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-15 23:07 UTC by Patrick McLean
Modified: 2022-12-22 01:23 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 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(+)