Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Böszörményi Zoltán" <zboszor@gmail.com>
To: Alex Kiernan <alex.kiernan@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH 1/4] bindgen-cli: Add new recipe
Date: Fri, 24 Feb 2023 17:43:23 +0100	[thread overview]
Message-ID: <bc3ae608-9fcd-9b4d-2552-301690a37609@gmail.com> (raw)
In-Reply-To: <CAO5Uq5SxRwhJMXa4qzpJhWx8xVFOKHEa4Rx4-emN9bgJYTnUcw@mail.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]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>



  reply	other threads:[~2023-02-24 16:43 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-24  9:38 [PATCH 1/4] bindgen-cli: Add new recipe Zoltán Böszörményi
2023-02-24  9:38 ` [PATCH 2/4] mesa, mesa-gl: 23.0.0 Zoltán Böszörményi
2023-02-24  9:38 ` [PATCH 3/4] mesa: Rename PACKAGECONFIG "opencl" to "clover" Zoltán Böszörményi
2023-02-24 12:28   ` [OE-core] " Alexandre Belloni
2023-02-24 14:29     ` Alexander Kanavin
2023-02-24  9:38 ` [PATCH 4/4] mesa: Add PACKAGECONFIG "rusticl" Zoltán Böszörményi
2023-02-24  9:45   ` [OE-core] " Ross Burton
2023-02-24 10:05     ` Böszörményi Zoltán
     [not found]     ` <1746BAA6D62E4C0A.18951@lists.openembedded.org>
2023-02-24 10:34       ` Böszörményi Zoltán
2023-02-24 10:52         ` Alexander Kanavin
     [not found]         ` <1746BD3631A1C7C1.29542@lists.openembedded.org>
2023-02-24 11:12           ` Alexander Kanavin
2023-02-24 16:41             ` Böszörményi Zoltán
2023-02-24  9:44 ` [OE-core] [PATCH 1/4] bindgen-cli: Add new recipe Alexander Kanavin
2023-02-24  9:59   ` Böszörményi Zoltán
2023-02-24 10:13     ` Alexander Kanavin
2023-02-24 10:36       ` Böszörményi Zoltán
2023-02-24 13:32 ` Alex Kiernan
2023-02-24 16:43   ` Böszörményi Zoltán [this message]
2023-02-26  5:08 ` [PATCH v2 0/3] Mesa 23.0.0 Zoltán Böszörményi
2023-02-26  5:08   ` [PATCH v2 1/3] mesa, mesa-gl: 23.0.0 Zoltán Böszörményi
2023-02-26  5:08   ` [PATCH v2 2/3] mesa: Rename PACKAGECONFIG "opencl" to "clover" Zoltán Böszörményi
2023-02-27  9:18     ` Alexander Kanavin
2023-02-26  5:08   ` [PATCH v2 3/3] mesa: Add PACKAGECONFIG "rusticl" Zoltán Böszörményi
2023-02-27  8:03     ` Alex Kiernan
2023-02-27  9:31       ` Alexander Kanavin
2023-02-27 10:39         ` Böszörményi Zoltán
     [not found]     ` <17479FC3A76A2964.29542@lists.openembedded.org>
2023-02-27  9:32       ` [OE-core] " Alex Kiernan
2023-02-27 10:36         ` Böszörményi Zoltán
2023-02-27 11:28           ` Alex Kiernan
2023-02-27 11:36             ` Alexander Kanavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bc3ae608-9fcd-9b4d-2552-301690a37609@gmail.com \
    --to=zboszor@gmail.com \
    --cc=alex.kiernan@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox