All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gyorgy Sarvari <skandigraun@gmail.com>
To: rbarrau33@gmail.com, openembedded-devel@lists.openembedded.org
Subject: Re: [oe] [meta-oe][PATCH 1/2] libtoml: add new recipe
Date: Wed, 17 Dec 2025 19:06:12 +0100	[thread overview]
Message-ID: <241db2c0-d701-4172-a3d6-7b000c2f5ab6@gmail.com> (raw)
In-Reply-To: <20251217161114.403899-1-renaud.barrau@madic.com>

On 12/17/25 17:11, Renaud Barrau via lists.openembedded.org wrote:
> From: Renaud Barrau <rbarrau33@gmail.com>
>
> Create a recipe for the tomlc99 project https://github.com/cktan/tomlc99
>
> Signed-off-by: Renaud Barrau <rbarrau33@gmail.com>
> ---
>  .../recipes-support/libtoml/libtoml_git.bb    | 41 +++++++++++++++++++
>  1 file changed, 41 insertions(+)
>  create mode 100644 meta-oe/recipes-support/libtoml/libtoml_git.bb
>
> diff --git a/meta-oe/recipes-support/libtoml/libtoml_git.bb b/meta-oe/recipes-support/libtoml/libtoml_git.bb
> new file mode 100644
> index 0000000000..befd413d3c
> --- /dev/null
> +++ b/meta-oe/recipes-support/libtoml/libtoml_git.bb
> @@ -0,0 +1,41 @@
> +SUMMARY = "TOML parser in C"
> +HOMEPAGE = "https://github.com/cktan/tomlc99"
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=95bbe2f9180443b5dcef3fb959804a65"
> +
> +SRC_URI = "git://github.com/cktan/tomlc99;protocol=https;branch=master"

It looks that this project isn't developed anymore (based on its
readme), and has been superseded by tomlc17 from the same developer.
Wouldn't it be better to use that? (This is a question from me - the
project claims to be compatible with this library, but don't know if
it's really true)

> +
> +SRCREV = "26b9c1ea770dab2378e5041b695d24ccebe58a7a"
> +
> +S = "${WORKDIR}/git"

Specifying S using WORKDIR is a fatal error in Whinlatter and master
branch - when using the git fetcher, S doesn't need to be specified
anymore 99% of the cases, the default should work.

> +
> +inherit pkgconfig
> +
> +do_compile() {
> +    oe_runmake CC="${CC}"
> +}
> +
> +do_install() {
> +    install -d ${D}${includedir}
> +    install -m 0644 toml.h ${D}${includedir}/
> +
> +    install -d ${D}${libdir}
> +    install -m 0644 libtoml.a ${D}${libdir}/
> +}
> +
> +do_install:append() {
> +    install -d ${D}${libdir}/pkgconfig
> +
> +    cat << EOF > ${D}${libdir}/pkgconfig/libtoml.pc
> +prefix=${prefix}
> +exec_prefix=${exec_prefix}
> +includedir=${includedir}
> +libdir=${libdir}
> +
> +Name: libtoml
> +Description: TOML parser in C (tomlc99)
> +Version: 1.0
> +Libs: -L\${libdir} -ltoml
> +Cflags: -I\${includedir}
> +EOF
> +}
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#122725): https://lists.openembedded.org/g/openembedded-devel/message/122725
> Mute This Topic: https://lists.openembedded.org/mt/116829679/6084445
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [skandigraun@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>



      parent reply	other threads:[~2025-12-17 18:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-17 16:11 [meta-oe][PATCH 1/2] libtoml: add new recipe Renaud Barrau
2025-12-17 16:11 ` [meta-oe][PATCH 2/2] drm-lease-manager: " Renaud Barrau
2025-12-17 18:14   ` [oe] " Gyorgy Sarvari
2025-12-17 18:21     ` Gyorgy Sarvari
2025-12-17 18:06 ` Gyorgy Sarvari [this message]

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=241db2c0-d701-4172-a3d6-7b000c2f5ab6@gmail.com \
    --to=skandigraun@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=rbarrau33@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.