Message ID | 20230224093850.3393567-1-zboszor@gmail.com |
---|---|
State | New |
Headers | show |
Series | [1/4] bindgen-cli: Add new recipe | expand |
As this is needed only for rusticl, and that is switched off by default, there is no need for the recipe to be in core. I'd say meta-oe is a better location. Also, the list of crates should be generated by cargo-update-recipe-crates class, not by cargo bitbake. Alex On Fri, 24 Feb 2023 at 10:39, Zoltan Boszormenyi <zboszor@gmail.com> wrote: > > The recipe is automatically generated by cargo-bitbake, with the > manual change to add BBCLASSEXTEND = "native" in the include file. > > It is used by Mesa 23.0.0 to build Rusticl. > > Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> > --- > meta/recipes-devtools/bindgen/bindgen-cli.inc | 1 + > .../bindgen/bindgen-cli_0.64.0.bb | 132 ++++++++++++++++++ > 2 files changed, 133 insertions(+) > create mode 100644 meta/recipes-devtools/bindgen/bindgen-cli.inc > create mode 100644 meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb > > diff --git a/meta/recipes-devtools/bindgen/bindgen-cli.inc b/meta/recipes-devtools/bindgen/bindgen-cli.inc > new file mode 100644 > index 0000000000..d3267ac413 > --- /dev/null > +++ b/meta/recipes-devtools/bindgen/bindgen-cli.inc > @@ -0,0 +1 @@ > +BBCLASSEXTEND = "native" > diff --git a/meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb b/meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb > new file mode 100644 > index 0000000000..da3d692717 > --- /dev/null > +++ b/meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb > @@ -0,0 +1,132 @@ > +# Auto-Generated by cargo-bitbake 0.3.16-alpha.0 > +# > +inherit cargo > + > +# If this is git based prefer versioned ones if they exist > +# DEFAULT_PREFERENCE = "-1" > + > +# how to get bindgen-cli could be as easy as but default to a git checkout: > +# SRC_URI += "crate://crates.io/bindgen-cli/0.64.0" > +SRC_URI += "git://github.com/rust-lang/rust-bindgen.git;protocol=https;nobranch=1;branch=v0.64.0" > +SRCREV = "ae6817256ac557981906e93a1f866349db85053e" > +S = "${WORKDIR}/git" > +CARGO_SRC_DIR = "bindgen-cli" > + > + > +# please note if you have entries that do not begin with crate:// > +# you must change them to how that package can be fetched > +SRC_URI += " \ > + crate://crates.io/aho-corasick/0.5.3 \ > + crate://crates.io/aho-corasick/0.7.20 \ > + crate://crates.io/ansi_term/0.12.1 \ > + crate://crates.io/atty/0.2.14 \ > + crate://crates.io/bitflags/1.3.2 \ > + crate://crates.io/block/0.1.6 \ > + crate://crates.io/cc/1.0.78 \ > + crate://crates.io/cexpr/0.6.0 \ > + crate://crates.io/cfg-if/1.0.0 \ > + crate://crates.io/clang-sys/1.4.0 \ > + crate://crates.io/clap/2.34.0 \ > + crate://crates.io/clap/4.1.4 \ > + crate://crates.io/clap_derive/4.1.0 \ > + crate://crates.io/clap_lex/0.3.1 \ > + crate://crates.io/diff/0.1.13 \ > + crate://crates.io/either/1.8.1 \ > + crate://crates.io/env_logger/0.3.5 \ > + crate://crates.io/env_logger/0.9.3 \ > + crate://crates.io/errno-dragonfly/0.1.2 \ > + crate://crates.io/errno/0.2.8 \ > + crate://crates.io/fastrand/1.8.0 \ > + crate://crates.io/fuchsia-cprng/0.1.1 \ > + crate://crates.io/glob/0.3.1 \ > + crate://crates.io/heck/0.4.0 \ > + crate://crates.io/hermit-abi/0.1.19 \ > + crate://crates.io/hermit-abi/0.2.6 \ > + crate://crates.io/humantime/2.1.0 \ > + crate://crates.io/instant/0.1.12 \ > + crate://crates.io/io-lifetimes/1.0.4 \ > + crate://crates.io/is-terminal/0.4.2 \ > + crate://crates.io/kernel32-sys/0.2.2 \ > + crate://crates.io/lazy_static/1.4.0 \ > + crate://crates.io/lazycell/1.3.0 \ > + crate://crates.io/libc/0.2.139 \ > + crate://crates.io/libloading/0.6.7 \ > + crate://crates.io/libloading/0.7.4 \ > + crate://crates.io/linux-raw-sys/0.1.4 \ > + crate://crates.io/log/0.3.9 \ > + crate://crates.io/log/0.4.17 \ > + crate://crates.io/malloc_buf/0.0.6 \ > + crate://crates.io/memchr/0.1.11 \ > + crate://crates.io/memchr/2.5.0 \ > + crate://crates.io/minimal-lexical/0.2.1 \ > + crate://crates.io/nom/7.1.3 \ > + crate://crates.io/objc/0.2.7 \ > + crate://crates.io/once_cell/1.17.0 \ > + crate://crates.io/os_str_bytes/6.4.1 \ > + crate://crates.io/peeking_take_while/0.1.2 \ > + crate://crates.io/proc-macro-error-attr/1.0.4 \ > + crate://crates.io/proc-macro-error/1.0.4 \ > + crate://crates.io/proc-macro2/1.0.50 \ > + crate://crates.io/quickcheck/0.4.1 \ > + crate://crates.io/quote/1.0.23 \ > + crate://crates.io/rand/0.3.23 \ > + crate://crates.io/rand/0.4.6 \ > + crate://crates.io/rand_core/0.3.1 \ > + crate://crates.io/rand_core/0.4.2 \ > + crate://crates.io/rdrand/0.4.0 \ > + crate://crates.io/redox_syscall/0.2.16 \ > + crate://crates.io/regex-syntax/0.3.9 \ > + crate://crates.io/regex-syntax/0.6.28 \ > + crate://crates.io/regex/0.1.80 \ > + crate://crates.io/regex/1.7.1 \ > + crate://crates.io/remove_dir_all/0.5.3 \ > + crate://crates.io/rustc-hash/1.1.0 \ > + crate://crates.io/rustix/0.36.7 \ > + crate://crates.io/shlex/1.1.0 \ > + crate://crates.io/strsim/0.10.0 \ > + crate://crates.io/strsim/0.8.0 \ > + crate://crates.io/syn/1.0.107 \ > + crate://crates.io/tempdir/0.3.7 \ > + crate://crates.io/tempfile/3.3.0 \ > + crate://crates.io/termcolor/1.2.0 \ > + crate://crates.io/textwrap/0.11.0 \ > + crate://crates.io/thread-id/2.0.0 \ > + crate://crates.io/thread_local/0.2.7 \ > + crate://crates.io/unicode-ident/1.0.6 \ > + crate://crates.io/unicode-width/0.1.10 \ > + crate://crates.io/utf8-ranges/0.1.3 \ > + crate://crates.io/vec_map/0.8.2 \ > + crate://crates.io/version_check/0.9.4 \ > + crate://crates.io/which/4.4.0 \ > + crate://crates.io/winapi-build/0.1.1 \ > + crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \ > + crate://crates.io/winapi-util/0.1.5 \ > + crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \ > + crate://crates.io/winapi/0.2.8 \ > + crate://crates.io/winapi/0.3.9 \ > + crate://crates.io/windows-sys/0.42.0 \ > + crate://crates.io/windows_aarch64_gnullvm/0.42.1 \ > + crate://crates.io/windows_aarch64_msvc/0.42.1 \ > + crate://crates.io/windows_i686_gnu/0.42.1 \ > + crate://crates.io/windows_i686_msvc/0.42.1 \ > + crate://crates.io/windows_x86_64_gnu/0.42.1 \ > + crate://crates.io/windows_x86_64_gnullvm/0.42.1 \ > + crate://crates.io/windows_x86_64_msvc/0.42.1 \ > +" > + > + > + > +# FIXME: update generateme with the real MD5 of the license file > +LIC_FILES_CHKSUM = " \ > + file://bindgen-cli/LICENSE;md5=0b9a98cb3dcdefcceb145324693fda9b \ > +" > + > +SUMMARY = "Automatically generates Rust FFI bindings to C and C++ libraries." > +HOMEPAGE = "https://rust-lang.github.io/rust-bindgen/" > +LICENSE = "BSD-3-Clause" > + > +# includes this file if it exists but does not fail > +# this is useful for anything you may want to override from > +# what cargo-bitbake generates. > +include bindgen-cli-${PV}.inc > +include bindgen-cli.inc > -- > 2.39.2 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#177664): https://lists.openembedded.org/g/openembedded-core/message/177664 > Mute This Topic: https://lists.openembedded.org/mt/97202942/1686489 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
2023. 02. 24. 10:44 keltezéssel, Alexander Kanavin írta: > As this is needed only for rusticl, and that is switched off by > default, there is no need for the recipe to be in core. I'd say > meta-oe is a better location. Why? Rust itself is in OE-core for a while now and bindgen is practically an integral part of Rust if it's to be interfaced with C/C++. > Also, the list of crates should be generated by > cargo-update-recipe-crates class, not by cargo bitbake. I will look into it, thanks. > > Alex > > On Fri, 24 Feb 2023 at 10:39, Zoltan Boszormenyi <zboszor@gmail.com> wrote: >> The recipe is automatically generated by cargo-bitbake, with the >> manual change to add BBCLASSEXTEND = "native" in the include file. >> >> It is used by Mesa 23.0.0 to build Rusticl. >> >> Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> >> --- >> meta/recipes-devtools/bindgen/bindgen-cli.inc | 1 + >> .../bindgen/bindgen-cli_0.64.0.bb | 132 ++++++++++++++++++ >> 2 files changed, 133 insertions(+) >> create mode 100644 meta/recipes-devtools/bindgen/bindgen-cli.inc >> create mode 100644 meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb >> >> diff --git a/meta/recipes-devtools/bindgen/bindgen-cli.inc b/meta/recipes-devtools/bindgen/bindgen-cli.inc >> new file mode 100644 >> index 0000000000..d3267ac413 >> --- /dev/null >> +++ b/meta/recipes-devtools/bindgen/bindgen-cli.inc >> @@ -0,0 +1 @@ >> +BBCLASSEXTEND = "native" >> diff --git a/meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb b/meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb >> new file mode 100644 >> index 0000000000..da3d692717 >> --- /dev/null >> +++ b/meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb >> @@ -0,0 +1,132 @@ >> +# Auto-Generated by cargo-bitbake 0.3.16-alpha.0 >> +# >> +inherit cargo >> + >> +# If this is git based prefer versioned ones if they exist >> +# DEFAULT_PREFERENCE = "-1" >> + >> +# how to get bindgen-cli could be as easy as but default to a git checkout: >> +# SRC_URI += "crate://crates.io/bindgen-cli/0.64.0" >> +SRC_URI += "git://github.com/rust-lang/rust-bindgen.git;protocol=https;nobranch=1;branch=v0.64.0" >> +SRCREV = "ae6817256ac557981906e93a1f866349db85053e" >> +S = "${WORKDIR}/git" >> +CARGO_SRC_DIR = "bindgen-cli" >> + >> + >> +# please note if you have entries that do not begin with crate:// >> +# you must change them to how that package can be fetched >> +SRC_URI += " \ >> + crate://crates.io/aho-corasick/0.5.3 \ >> + crate://crates.io/aho-corasick/0.7.20 \ >> + crate://crates.io/ansi_term/0.12.1 \ >> + crate://crates.io/atty/0.2.14 \ >> + crate://crates.io/bitflags/1.3.2 \ >> + crate://crates.io/block/0.1.6 \ >> + crate://crates.io/cc/1.0.78 \ >> + crate://crates.io/cexpr/0.6.0 \ >> + crate://crates.io/cfg-if/1.0.0 \ >> + crate://crates.io/clang-sys/1.4.0 \ >> + crate://crates.io/clap/2.34.0 \ >> + crate://crates.io/clap/4.1.4 \ >> + crate://crates.io/clap_derive/4.1.0 \ >> + crate://crates.io/clap_lex/0.3.1 \ >> + crate://crates.io/diff/0.1.13 \ >> + crate://crates.io/either/1.8.1 \ >> + crate://crates.io/env_logger/0.3.5 \ >> + crate://crates.io/env_logger/0.9.3 \ >> + crate://crates.io/errno-dragonfly/0.1.2 \ >> + crate://crates.io/errno/0.2.8 \ >> + crate://crates.io/fastrand/1.8.0 \ >> + crate://crates.io/fuchsia-cprng/0.1.1 \ >> + crate://crates.io/glob/0.3.1 \ >> + crate://crates.io/heck/0.4.0 \ >> + crate://crates.io/hermit-abi/0.1.19 \ >> + crate://crates.io/hermit-abi/0.2.6 \ >> + crate://crates.io/humantime/2.1.0 \ >> + crate://crates.io/instant/0.1.12 \ >> + crate://crates.io/io-lifetimes/1.0.4 \ >> + crate://crates.io/is-terminal/0.4.2 \ >> + crate://crates.io/kernel32-sys/0.2.2 \ >> + crate://crates.io/lazy_static/1.4.0 \ >> + crate://crates.io/lazycell/1.3.0 \ >> + crate://crates.io/libc/0.2.139 \ >> + crate://crates.io/libloading/0.6.7 \ >> + crate://crates.io/libloading/0.7.4 \ >> + crate://crates.io/linux-raw-sys/0.1.4 \ >> + crate://crates.io/log/0.3.9 \ >> + crate://crates.io/log/0.4.17 \ >> + crate://crates.io/malloc_buf/0.0.6 \ >> + crate://crates.io/memchr/0.1.11 \ >> + crate://crates.io/memchr/2.5.0 \ >> + crate://crates.io/minimal-lexical/0.2.1 \ >> + crate://crates.io/nom/7.1.3 \ >> + crate://crates.io/objc/0.2.7 \ >> + crate://crates.io/once_cell/1.17.0 \ >> + crate://crates.io/os_str_bytes/6.4.1 \ >> + crate://crates.io/peeking_take_while/0.1.2 \ >> + crate://crates.io/proc-macro-error-attr/1.0.4 \ >> + crate://crates.io/proc-macro-error/1.0.4 \ >> + crate://crates.io/proc-macro2/1.0.50 \ >> + crate://crates.io/quickcheck/0.4.1 \ >> + crate://crates.io/quote/1.0.23 \ >> + crate://crates.io/rand/0.3.23 \ >> + crate://crates.io/rand/0.4.6 \ >> + crate://crates.io/rand_core/0.3.1 \ >> + crate://crates.io/rand_core/0.4.2 \ >> + crate://crates.io/rdrand/0.4.0 \ >> + crate://crates.io/redox_syscall/0.2.16 \ >> + crate://crates.io/regex-syntax/0.3.9 \ >> + crate://crates.io/regex-syntax/0.6.28 \ >> + crate://crates.io/regex/0.1.80 \ >> + crate://crates.io/regex/1.7.1 \ >> + crate://crates.io/remove_dir_all/0.5.3 \ >> + crate://crates.io/rustc-hash/1.1.0 \ >> + crate://crates.io/rustix/0.36.7 \ >> + crate://crates.io/shlex/1.1.0 \ >> + crate://crates.io/strsim/0.10.0 \ >> + crate://crates.io/strsim/0.8.0 \ >> + crate://crates.io/syn/1.0.107 \ >> + crate://crates.io/tempdir/0.3.7 \ >> + crate://crates.io/tempfile/3.3.0 \ >> + crate://crates.io/termcolor/1.2.0 \ >> + crate://crates.io/textwrap/0.11.0 \ >> + crate://crates.io/thread-id/2.0.0 \ >> + crate://crates.io/thread_local/0.2.7 \ >> + crate://crates.io/unicode-ident/1.0.6 \ >> + crate://crates.io/unicode-width/0.1.10 \ >> + crate://crates.io/utf8-ranges/0.1.3 \ >> + crate://crates.io/vec_map/0.8.2 \ >> + crate://crates.io/version_check/0.9.4 \ >> + crate://crates.io/which/4.4.0 \ >> + crate://crates.io/winapi-build/0.1.1 \ >> + crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \ >> + crate://crates.io/winapi-util/0.1.5 \ >> + crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \ >> + crate://crates.io/winapi/0.2.8 \ >> + crate://crates.io/winapi/0.3.9 \ >> + crate://crates.io/windows-sys/0.42.0 \ >> + crate://crates.io/windows_aarch64_gnullvm/0.42.1 \ >> + crate://crates.io/windows_aarch64_msvc/0.42.1 \ >> + crate://crates.io/windows_i686_gnu/0.42.1 \ >> + crate://crates.io/windows_i686_msvc/0.42.1 \ >> + crate://crates.io/windows_x86_64_gnu/0.42.1 \ >> + crate://crates.io/windows_x86_64_gnullvm/0.42.1 \ >> + crate://crates.io/windows_x86_64_msvc/0.42.1 \ >> +" >> + >> + >> + >> +# FIXME: update generateme with the real MD5 of the license file >> +LIC_FILES_CHKSUM = " \ >> + file://bindgen-cli/LICENSE;md5=0b9a98cb3dcdefcceb145324693fda9b \ >> +" >> + >> +SUMMARY = "Automatically generates Rust FFI bindings to C and C++ libraries." >> +HOMEPAGE = "https://rust-lang.github.io/rust-bindgen/" >> +LICENSE = "BSD-3-Clause" >> + >> +# includes this file if it exists but does not fail >> +# this is useful for anything you may want to override from >> +# what cargo-bitbake generates. >> +include bindgen-cli-${PV}.inc >> +include bindgen-cli.inc >> -- >> 2.39.2 >> >> >> -=-=-=-=-=-=-=-=-=-=-=- >> Links: You receive all messages sent to this group. >> View/Reply Online (#177664): https://lists.openembedded.org/g/openembedded-core/message/177664 >> Mute This Topic: https://lists.openembedded.org/mt/97202942/1686489 >> Group Owner: openembedded-core+owner@lists.openembedded.org >> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com] >> -=-=-=-=-=-=-=-=-=-=-=- >>
On Fri, 24 Feb 2023 at 10:59, Böszörményi Zoltán <zboszor@gmail.com> wrote: > > 2023. 02. 24. 10:44 keltezéssel, Alexander Kanavin írta: > > As this is needed only for rusticl, and that is switched off by > > default, there is no need for the recipe to be in core. I'd say > > meta-oe is a better location. > > Why? > > Rust itself is in OE-core for a while now and > bindgen is practically an integral part of Rust > if it's to be interfaced with C/C++. That is not enough for inclusion into core. It either needs to be useful in a typical, common embedded use case, or be a hard depenency of such an item. So it has only one consumer, rusticl, and even that is not enabled by default or broadly useful. Keep in mind that maintainer capacity is not infinite, we're all volunteers except RP. Alex
2023. 02. 24. 11:13 keltezéssel, Alexander Kanavin írta: > On Fri, 24 Feb 2023 at 10:59, Böszörményi Zoltán <zboszor@gmail.com> wrote: >> 2023. 02. 24. 10:44 keltezéssel, Alexander Kanavin írta: >>> As this is needed only for rusticl, and that is switched off by >>> default, there is no need for the recipe to be in core. I'd say >>> meta-oe is a better location. >> Why? >> >> Rust itself is in OE-core for a while now and >> bindgen is practically an integral part of Rust >> if it's to be interfaced with C/C++. > That is not enough for inclusion into core. It either needs to be > useful in a typical, common embedded use case, or be a hard depenency > of such an item. So it has only one consumer, rusticl, and even that > is not enabled by default or broadly useful. Understood. I will move the bindgen recipe to meta-oe. > > Keep in mind that maintainer capacity is not infinite, we're all > volunteers except RP. > > Alex
I need to go and ask our resident rustacean, but when we pulled this crate into a build here, I had to bring in meta-clang in order to satisfy the runtime deps. May well be that I got something wrong at the time, or something's changed, but we definitely needed that. On Fri, Feb 24, 2023 at 9:39 AM Zoltan Boszormenyi <zboszor@gmail.com> wrote: > > The recipe is automatically generated by cargo-bitbake, with the > manual change to add BBCLASSEXTEND = "native" in the include file. > > It is used by Mesa 23.0.0 to build Rusticl. > > Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> > --- > meta/recipes-devtools/bindgen/bindgen-cli.inc | 1 + > .../bindgen/bindgen-cli_0.64.0.bb | 132 ++++++++++++++++++ > 2 files changed, 133 insertions(+) > create mode 100644 meta/recipes-devtools/bindgen/bindgen-cli.inc > create mode 100644 meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb > > diff --git a/meta/recipes-devtools/bindgen/bindgen-cli.inc b/meta/recipes-devtools/bindgen/bindgen-cli.inc > new file mode 100644 > index 0000000000..d3267ac413 > --- /dev/null > +++ b/meta/recipes-devtools/bindgen/bindgen-cli.inc > @@ -0,0 +1 @@ > +BBCLASSEXTEND = "native" > diff --git a/meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb b/meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb > new file mode 100644 > index 0000000000..da3d692717 > --- /dev/null > +++ b/meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb > @@ -0,0 +1,132 @@ > +# Auto-Generated by cargo-bitbake 0.3.16-alpha.0 > +# > +inherit cargo > + > +# If this is git based prefer versioned ones if they exist > +# DEFAULT_PREFERENCE = "-1" > + > +# how to get bindgen-cli could be as easy as but default to a git checkout: > +# SRC_URI += "crate://crates.io/bindgen-cli/0.64.0" > +SRC_URI += "git://github.com/rust-lang/rust-bindgen.git;protocol=https;nobranch=1;branch=v0.64.0" > +SRCREV = "ae6817256ac557981906e93a1f866349db85053e" > +S = "${WORKDIR}/git" > +CARGO_SRC_DIR = "bindgen-cli" > + > + > +# please note if you have entries that do not begin with crate:// > +# you must change them to how that package can be fetched > +SRC_URI += " \ > + crate://crates.io/aho-corasick/0.5.3 \ > + crate://crates.io/aho-corasick/0.7.20 \ > + crate://crates.io/ansi_term/0.12.1 \ > + crate://crates.io/atty/0.2.14 \ > + crate://crates.io/bitflags/1.3.2 \ > + crate://crates.io/block/0.1.6 \ > + crate://crates.io/cc/1.0.78 \ > + crate://crates.io/cexpr/0.6.0 \ > + crate://crates.io/cfg-if/1.0.0 \ > + crate://crates.io/clang-sys/1.4.0 \ > + crate://crates.io/clap/2.34.0 \ > + crate://crates.io/clap/4.1.4 \ > + crate://crates.io/clap_derive/4.1.0 \ > + crate://crates.io/clap_lex/0.3.1 \ > + crate://crates.io/diff/0.1.13 \ > + crate://crates.io/either/1.8.1 \ > + crate://crates.io/env_logger/0.3.5 \ > + crate://crates.io/env_logger/0.9.3 \ > + crate://crates.io/errno-dragonfly/0.1.2 \ > + crate://crates.io/errno/0.2.8 \ > + crate://crates.io/fastrand/1.8.0 \ > + crate://crates.io/fuchsia-cprng/0.1.1 \ > + crate://crates.io/glob/0.3.1 \ > + crate://crates.io/heck/0.4.0 \ > + crate://crates.io/hermit-abi/0.1.19 \ > + crate://crates.io/hermit-abi/0.2.6 \ > + crate://crates.io/humantime/2.1.0 \ > + crate://crates.io/instant/0.1.12 \ > + crate://crates.io/io-lifetimes/1.0.4 \ > + crate://crates.io/is-terminal/0.4.2 \ > + crate://crates.io/kernel32-sys/0.2.2 \ > + crate://crates.io/lazy_static/1.4.0 \ > + crate://crates.io/lazycell/1.3.0 \ > + crate://crates.io/libc/0.2.139 \ > + crate://crates.io/libloading/0.6.7 \ > + crate://crates.io/libloading/0.7.4 \ > + crate://crates.io/linux-raw-sys/0.1.4 \ > + crate://crates.io/log/0.3.9 \ > + crate://crates.io/log/0.4.17 \ > + crate://crates.io/malloc_buf/0.0.6 \ > + crate://crates.io/memchr/0.1.11 \ > + crate://crates.io/memchr/2.5.0 \ > + crate://crates.io/minimal-lexical/0.2.1 \ > + crate://crates.io/nom/7.1.3 \ > + crate://crates.io/objc/0.2.7 \ > + crate://crates.io/once_cell/1.17.0 \ > + crate://crates.io/os_str_bytes/6.4.1 \ > + crate://crates.io/peeking_take_while/0.1.2 \ > + crate://crates.io/proc-macro-error-attr/1.0.4 \ > + crate://crates.io/proc-macro-error/1.0.4 \ > + crate://crates.io/proc-macro2/1.0.50 \ > + crate://crates.io/quickcheck/0.4.1 \ > + crate://crates.io/quote/1.0.23 \ > + crate://crates.io/rand/0.3.23 \ > + crate://crates.io/rand/0.4.6 \ > + crate://crates.io/rand_core/0.3.1 \ > + crate://crates.io/rand_core/0.4.2 \ > + crate://crates.io/rdrand/0.4.0 \ > + crate://crates.io/redox_syscall/0.2.16 \ > + crate://crates.io/regex-syntax/0.3.9 \ > + crate://crates.io/regex-syntax/0.6.28 \ > + crate://crates.io/regex/0.1.80 \ > + crate://crates.io/regex/1.7.1 \ > + crate://crates.io/remove_dir_all/0.5.3 \ > + crate://crates.io/rustc-hash/1.1.0 \ > + crate://crates.io/rustix/0.36.7 \ > + crate://crates.io/shlex/1.1.0 \ > + crate://crates.io/strsim/0.10.0 \ > + crate://crates.io/strsim/0.8.0 \ > + crate://crates.io/syn/1.0.107 \ > + crate://crates.io/tempdir/0.3.7 \ > + crate://crates.io/tempfile/3.3.0 \ > + crate://crates.io/termcolor/1.2.0 \ > + crate://crates.io/textwrap/0.11.0 \ > + crate://crates.io/thread-id/2.0.0 \ > + crate://crates.io/thread_local/0.2.7 \ > + crate://crates.io/unicode-ident/1.0.6 \ > + crate://crates.io/unicode-width/0.1.10 \ > + crate://crates.io/utf8-ranges/0.1.3 \ > + crate://crates.io/vec_map/0.8.2 \ > + crate://crates.io/version_check/0.9.4 \ > + crate://crates.io/which/4.4.0 \ > + crate://crates.io/winapi-build/0.1.1 \ > + crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \ > + crate://crates.io/winapi-util/0.1.5 \ > + crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \ > + crate://crates.io/winapi/0.2.8 \ > + crate://crates.io/winapi/0.3.9 \ > + crate://crates.io/windows-sys/0.42.0 \ > + crate://crates.io/windows_aarch64_gnullvm/0.42.1 \ > + crate://crates.io/windows_aarch64_msvc/0.42.1 \ > + crate://crates.io/windows_i686_gnu/0.42.1 \ > + crate://crates.io/windows_i686_msvc/0.42.1 \ > + crate://crates.io/windows_x86_64_gnu/0.42.1 \ > + crate://crates.io/windows_x86_64_gnullvm/0.42.1 \ > + crate://crates.io/windows_x86_64_msvc/0.42.1 \ > +" > + > + > + > +# FIXME: update generateme with the real MD5 of the license file > +LIC_FILES_CHKSUM = " \ > + file://bindgen-cli/LICENSE;md5=0b9a98cb3dcdefcceb145324693fda9b \ > +" > + > +SUMMARY = "Automatically generates Rust FFI bindings to C and C++ libraries." > +HOMEPAGE = "https://rust-lang.github.io/rust-bindgen/" > +LICENSE = "BSD-3-Clause" > + > +# includes this file if it exists but does not fail > +# this is useful for anything you may want to override from > +# what cargo-bitbake generates. > +include bindgen-cli-${PV}.inc > +include bindgen-cli.inc > -- > 2.39.2 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#177664): https://lists.openembedded.org/g/openembedded-core/message/177664 > Mute This Topic: https://lists.openembedded.org/mt/97202942/3618097 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kiernan@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
2023. 02. 24. 14:32 keltezéssel, Alex Kiernan írta: > I need to go and ask our resident rustacean, but when we pulled this > crate into a build here, I had to bring in meta-clang in order to > satisfy the runtime deps. May well be that I got something wrong at > the time, or something's changed, but we definitely needed that. I am also using meta-clang. Then I will probably have to post it to meta-clang or make this recipe conditional on the presence of meta-clang. > > On Fri, Feb 24, 2023 at 9:39 AM Zoltan Boszormenyi <zboszor@gmail.com> wrote: >> The recipe is automatically generated by cargo-bitbake, with the >> manual change to add BBCLASSEXTEND = "native" in the include file. >> >> It is used by Mesa 23.0.0 to build Rusticl. >> >> Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> >> --- >> meta/recipes-devtools/bindgen/bindgen-cli.inc | 1 + >> .../bindgen/bindgen-cli_0.64.0.bb | 132 ++++++++++++++++++ >> 2 files changed, 133 insertions(+) >> create mode 100644 meta/recipes-devtools/bindgen/bindgen-cli.inc >> create mode 100644 meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb >> >> diff --git a/meta/recipes-devtools/bindgen/bindgen-cli.inc b/meta/recipes-devtools/bindgen/bindgen-cli.inc >> new file mode 100644 >> index 0000000000..d3267ac413 >> --- /dev/null >> +++ b/meta/recipes-devtools/bindgen/bindgen-cli.inc >> @@ -0,0 +1 @@ >> +BBCLASSEXTEND = "native" >> diff --git a/meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb b/meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb >> new file mode 100644 >> index 0000000000..da3d692717 >> --- /dev/null >> +++ b/meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb >> @@ -0,0 +1,132 @@ >> +# Auto-Generated by cargo-bitbake 0.3.16-alpha.0 >> +# >> +inherit cargo >> + >> +# If this is git based prefer versioned ones if they exist >> +# DEFAULT_PREFERENCE = "-1" >> + >> +# how to get bindgen-cli could be as easy as but default to a git checkout: >> +# SRC_URI += "crate://crates.io/bindgen-cli/0.64.0" >> +SRC_URI += "git://github.com/rust-lang/rust-bindgen.git;protocol=https;nobranch=1;branch=v0.64.0" >> +SRCREV = "ae6817256ac557981906e93a1f866349db85053e" >> +S = "${WORKDIR}/git" >> +CARGO_SRC_DIR = "bindgen-cli" >> + >> + >> +# please note if you have entries that do not begin with crate:// >> +# you must change them to how that package can be fetched >> +SRC_URI += " \ >> + crate://crates.io/aho-corasick/0.5.3 \ >> + crate://crates.io/aho-corasick/0.7.20 \ >> + crate://crates.io/ansi_term/0.12.1 \ >> + crate://crates.io/atty/0.2.14 \ >> + crate://crates.io/bitflags/1.3.2 \ >> + crate://crates.io/block/0.1.6 \ >> + crate://crates.io/cc/1.0.78 \ >> + crate://crates.io/cexpr/0.6.0 \ >> + crate://crates.io/cfg-if/1.0.0 \ >> + crate://crates.io/clang-sys/1.4.0 \ >> + crate://crates.io/clap/2.34.0 \ >> + crate://crates.io/clap/4.1.4 \ >> + crate://crates.io/clap_derive/4.1.0 \ >> + crate://crates.io/clap_lex/0.3.1 \ >> + crate://crates.io/diff/0.1.13 \ >> + crate://crates.io/either/1.8.1 \ >> + crate://crates.io/env_logger/0.3.5 \ >> + crate://crates.io/env_logger/0.9.3 \ >> + crate://crates.io/errno-dragonfly/0.1.2 \ >> + crate://crates.io/errno/0.2.8 \ >> + crate://crates.io/fastrand/1.8.0 \ >> + crate://crates.io/fuchsia-cprng/0.1.1 \ >> + crate://crates.io/glob/0.3.1 \ >> + crate://crates.io/heck/0.4.0 \ >> + crate://crates.io/hermit-abi/0.1.19 \ >> + crate://crates.io/hermit-abi/0.2.6 \ >> + crate://crates.io/humantime/2.1.0 \ >> + crate://crates.io/instant/0.1.12 \ >> + crate://crates.io/io-lifetimes/1.0.4 \ >> + crate://crates.io/is-terminal/0.4.2 \ >> + crate://crates.io/kernel32-sys/0.2.2 \ >> + crate://crates.io/lazy_static/1.4.0 \ >> + crate://crates.io/lazycell/1.3.0 \ >> + crate://crates.io/libc/0.2.139 \ >> + crate://crates.io/libloading/0.6.7 \ >> + crate://crates.io/libloading/0.7.4 \ >> + crate://crates.io/linux-raw-sys/0.1.4 \ >> + crate://crates.io/log/0.3.9 \ >> + crate://crates.io/log/0.4.17 \ >> + crate://crates.io/malloc_buf/0.0.6 \ >> + crate://crates.io/memchr/0.1.11 \ >> + crate://crates.io/memchr/2.5.0 \ >> + crate://crates.io/minimal-lexical/0.2.1 \ >> + crate://crates.io/nom/7.1.3 \ >> + crate://crates.io/objc/0.2.7 \ >> + crate://crates.io/once_cell/1.17.0 \ >> + crate://crates.io/os_str_bytes/6.4.1 \ >> + crate://crates.io/peeking_take_while/0.1.2 \ >> + crate://crates.io/proc-macro-error-attr/1.0.4 \ >> + crate://crates.io/proc-macro-error/1.0.4 \ >> + crate://crates.io/proc-macro2/1.0.50 \ >> + crate://crates.io/quickcheck/0.4.1 \ >> + crate://crates.io/quote/1.0.23 \ >> + crate://crates.io/rand/0.3.23 \ >> + crate://crates.io/rand/0.4.6 \ >> + crate://crates.io/rand_core/0.3.1 \ >> + crate://crates.io/rand_core/0.4.2 \ >> + crate://crates.io/rdrand/0.4.0 \ >> + crate://crates.io/redox_syscall/0.2.16 \ >> + crate://crates.io/regex-syntax/0.3.9 \ >> + crate://crates.io/regex-syntax/0.6.28 \ >> + crate://crates.io/regex/0.1.80 \ >> + crate://crates.io/regex/1.7.1 \ >> + crate://crates.io/remove_dir_all/0.5.3 \ >> + crate://crates.io/rustc-hash/1.1.0 \ >> + crate://crates.io/rustix/0.36.7 \ >> + crate://crates.io/shlex/1.1.0 \ >> + crate://crates.io/strsim/0.10.0 \ >> + crate://crates.io/strsim/0.8.0 \ >> + crate://crates.io/syn/1.0.107 \ >> + crate://crates.io/tempdir/0.3.7 \ >> + crate://crates.io/tempfile/3.3.0 \ >> + crate://crates.io/termcolor/1.2.0 \ >> + crate://crates.io/textwrap/0.11.0 \ >> + crate://crates.io/thread-id/2.0.0 \ >> + crate://crates.io/thread_local/0.2.7 \ >> + crate://crates.io/unicode-ident/1.0.6 \ >> + crate://crates.io/unicode-width/0.1.10 \ >> + crate://crates.io/utf8-ranges/0.1.3 \ >> + crate://crates.io/vec_map/0.8.2 \ >> + crate://crates.io/version_check/0.9.4 \ >> + crate://crates.io/which/4.4.0 \ >> + crate://crates.io/winapi-build/0.1.1 \ >> + crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \ >> + crate://crates.io/winapi-util/0.1.5 \ >> + crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \ >> + crate://crates.io/winapi/0.2.8 \ >> + crate://crates.io/winapi/0.3.9 \ >> + crate://crates.io/windows-sys/0.42.0 \ >> + crate://crates.io/windows_aarch64_gnullvm/0.42.1 \ >> + crate://crates.io/windows_aarch64_msvc/0.42.1 \ >> + crate://crates.io/windows_i686_gnu/0.42.1 \ >> + crate://crates.io/windows_i686_msvc/0.42.1 \ >> + crate://crates.io/windows_x86_64_gnu/0.42.1 \ >> + crate://crates.io/windows_x86_64_gnullvm/0.42.1 \ >> + crate://crates.io/windows_x86_64_msvc/0.42.1 \ >> +" >> + >> + >> + >> +# FIXME: update generateme with the real MD5 of the license file >> +LIC_FILES_CHKSUM = " \ >> + file://bindgen-cli/LICENSE;md5=0b9a98cb3dcdefcceb145324693fda9b \ >> +" >> + >> +SUMMARY = "Automatically generates Rust FFI bindings to C and C++ libraries." >> +HOMEPAGE = "https://rust-lang.github.io/rust-bindgen/" >> +LICENSE = "BSD-3-Clause" >> + >> +# includes this file if it exists but does not fail >> +# this is useful for anything you may want to override from >> +# what cargo-bitbake generates. >> +include bindgen-cli-${PV}.inc >> +include bindgen-cli.inc >> -- >> 2.39.2 >> >> >> -=-=-=-=-=-=-=-=-=-=-=- >> Links: You receive all messages sent to this group. >> View/Reply Online (#177664): https://lists.openembedded.org/g/openembedded-core/message/177664 >> Mute This Topic: https://lists.openembedded.org/mt/97202942/3618097 >> Group Owner: openembedded-core+owner@lists.openembedded.org >> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kiernan@gmail.com] >> -=-=-=-=-=-=-=-=-=-=-=- >> >
diff --git a/meta/recipes-devtools/bindgen/bindgen-cli.inc b/meta/recipes-devtools/bindgen/bindgen-cli.inc new file mode 100644 index 0000000000..d3267ac413 --- /dev/null +++ b/meta/recipes-devtools/bindgen/bindgen-cli.inc @@ -0,0 +1 @@ +BBCLASSEXTEND = "native" diff --git a/meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb b/meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb new file mode 100644 index 0000000000..da3d692717 --- /dev/null +++ b/meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb @@ -0,0 +1,132 @@ +# Auto-Generated by cargo-bitbake 0.3.16-alpha.0 +# +inherit cargo + +# If this is git based prefer versioned ones if they exist +# DEFAULT_PREFERENCE = "-1" + +# how to get bindgen-cli could be as easy as but default to a git checkout: +# SRC_URI += "crate://crates.io/bindgen-cli/0.64.0" +SRC_URI += "git://github.com/rust-lang/rust-bindgen.git;protocol=https;nobranch=1;branch=v0.64.0" +SRCREV = "ae6817256ac557981906e93a1f866349db85053e" +S = "${WORKDIR}/git" +CARGO_SRC_DIR = "bindgen-cli" + + +# please note if you have entries that do not begin with crate:// +# you must change them to how that package can be fetched +SRC_URI += " \ + crate://crates.io/aho-corasick/0.5.3 \ + crate://crates.io/aho-corasick/0.7.20 \ + crate://crates.io/ansi_term/0.12.1 \ + crate://crates.io/atty/0.2.14 \ + crate://crates.io/bitflags/1.3.2 \ + crate://crates.io/block/0.1.6 \ + crate://crates.io/cc/1.0.78 \ + crate://crates.io/cexpr/0.6.0 \ + crate://crates.io/cfg-if/1.0.0 \ + crate://crates.io/clang-sys/1.4.0 \ + crate://crates.io/clap/2.34.0 \ + crate://crates.io/clap/4.1.4 \ + crate://crates.io/clap_derive/4.1.0 \ + crate://crates.io/clap_lex/0.3.1 \ + crate://crates.io/diff/0.1.13 \ + crate://crates.io/either/1.8.1 \ + crate://crates.io/env_logger/0.3.5 \ + crate://crates.io/env_logger/0.9.3 \ + crate://crates.io/errno-dragonfly/0.1.2 \ + crate://crates.io/errno/0.2.8 \ + crate://crates.io/fastrand/1.8.0 \ + crate://crates.io/fuchsia-cprng/0.1.1 \ + crate://crates.io/glob/0.3.1 \ + crate://crates.io/heck/0.4.0 \ + crate://crates.io/hermit-abi/0.1.19 \ + crate://crates.io/hermit-abi/0.2.6 \ + crate://crates.io/humantime/2.1.0 \ + crate://crates.io/instant/0.1.12 \ + crate://crates.io/io-lifetimes/1.0.4 \ + crate://crates.io/is-terminal/0.4.2 \ + crate://crates.io/kernel32-sys/0.2.2 \ + crate://crates.io/lazy_static/1.4.0 \ + crate://crates.io/lazycell/1.3.0 \ + crate://crates.io/libc/0.2.139 \ + crate://crates.io/libloading/0.6.7 \ + crate://crates.io/libloading/0.7.4 \ + crate://crates.io/linux-raw-sys/0.1.4 \ + crate://crates.io/log/0.3.9 \ + crate://crates.io/log/0.4.17 \ + crate://crates.io/malloc_buf/0.0.6 \ + crate://crates.io/memchr/0.1.11 \ + crate://crates.io/memchr/2.5.0 \ + crate://crates.io/minimal-lexical/0.2.1 \ + crate://crates.io/nom/7.1.3 \ + crate://crates.io/objc/0.2.7 \ + crate://crates.io/once_cell/1.17.0 \ + crate://crates.io/os_str_bytes/6.4.1 \ + crate://crates.io/peeking_take_while/0.1.2 \ + crate://crates.io/proc-macro-error-attr/1.0.4 \ + crate://crates.io/proc-macro-error/1.0.4 \ + crate://crates.io/proc-macro2/1.0.50 \ + crate://crates.io/quickcheck/0.4.1 \ + crate://crates.io/quote/1.0.23 \ + crate://crates.io/rand/0.3.23 \ + crate://crates.io/rand/0.4.6 \ + crate://crates.io/rand_core/0.3.1 \ + crate://crates.io/rand_core/0.4.2 \ + crate://crates.io/rdrand/0.4.0 \ + crate://crates.io/redox_syscall/0.2.16 \ + crate://crates.io/regex-syntax/0.3.9 \ + crate://crates.io/regex-syntax/0.6.28 \ + crate://crates.io/regex/0.1.80 \ + crate://crates.io/regex/1.7.1 \ + crate://crates.io/remove_dir_all/0.5.3 \ + crate://crates.io/rustc-hash/1.1.0 \ + crate://crates.io/rustix/0.36.7 \ + crate://crates.io/shlex/1.1.0 \ + crate://crates.io/strsim/0.10.0 \ + crate://crates.io/strsim/0.8.0 \ + crate://crates.io/syn/1.0.107 \ + crate://crates.io/tempdir/0.3.7 \ + crate://crates.io/tempfile/3.3.0 \ + crate://crates.io/termcolor/1.2.0 \ + crate://crates.io/textwrap/0.11.0 \ + crate://crates.io/thread-id/2.0.0 \ + crate://crates.io/thread_local/0.2.7 \ + crate://crates.io/unicode-ident/1.0.6 \ + crate://crates.io/unicode-width/0.1.10 \ + crate://crates.io/utf8-ranges/0.1.3 \ + crate://crates.io/vec_map/0.8.2 \ + crate://crates.io/version_check/0.9.4 \ + crate://crates.io/which/4.4.0 \ + crate://crates.io/winapi-build/0.1.1 \ + crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \ + crate://crates.io/winapi-util/0.1.5 \ + crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \ + crate://crates.io/winapi/0.2.8 \ + crate://crates.io/winapi/0.3.9 \ + crate://crates.io/windows-sys/0.42.0 \ + crate://crates.io/windows_aarch64_gnullvm/0.42.1 \ + crate://crates.io/windows_aarch64_msvc/0.42.1 \ + crate://crates.io/windows_i686_gnu/0.42.1 \ + crate://crates.io/windows_i686_msvc/0.42.1 \ + crate://crates.io/windows_x86_64_gnu/0.42.1 \ + crate://crates.io/windows_x86_64_gnullvm/0.42.1 \ + crate://crates.io/windows_x86_64_msvc/0.42.1 \ +" + + + +# FIXME: update generateme with the real MD5 of the license file +LIC_FILES_CHKSUM = " \ + file://bindgen-cli/LICENSE;md5=0b9a98cb3dcdefcceb145324693fda9b \ +" + +SUMMARY = "Automatically generates Rust FFI bindings to C and C++ libraries." +HOMEPAGE = "https://rust-lang.github.io/rust-bindgen/" +LICENSE = "BSD-3-Clause" + +# includes this file if it exists but does not fail +# this is useful for anything you may want to override from +# what cargo-bitbake generates. +include bindgen-cli-${PV}.inc +include bindgen-cli.inc
The recipe is automatically generated by cargo-bitbake, with the manual change to add BBCLASSEXTEND = "native" in the include file. It is used by Mesa 23.0.0 to build Rusticl. Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> --- meta/recipes-devtools/bindgen/bindgen-cli.inc | 1 + .../bindgen/bindgen-cli_0.64.0.bb | 132 ++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 meta/recipes-devtools/bindgen/bindgen-cli.inc create mode 100644 meta/recipes-devtools/bindgen/bindgen-cli_0.64.0.bb