All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>, buildroot@buildroot.org
Cc: Marek Belisko <marek.belisko@open-nandra.com>
Subject: Re: [Buildroot] [PATCH 1/1] package/polkit: fix build without C++
Date: Thu, 14 Apr 2022 21:24:39 +0200	[thread overview]
Message-ID: <3cd32b76-fabd-8b07-a211-c3caf6a01962@mind.be> (raw)
In-Reply-To: <20220406163300.4006892-1-fontaine.fabrice@gmail.com>



On 06/04/2022 18:33, Fabrice Fontaine wrote:
> Fix the following build failure raised since switch to meson-package in
> commit 1db13226394ff7e6f5e7ca643e275f35d6c633bb and
> https://gitlab.freedesktop.org/polkit/polkit/-/commit/957a015157fd359d9679540f664183e4b9492896:
> 
> The following exception(s) were encountered:
> Running "/home/autobuild/autobuild/instance-14/output-1/host/bin/or1k-buildroot-linux-musl-g++ --version" gave "[Errno 2] No such file or directory: '/home/autobuild/autobuild/instance-14/output-1/host/bin/or1k-buildroot-linux-musl-g++'"
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/1d52c8100414aa384572b23006a13f9b806d2d5a
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   package/polkit/0003-fix-build-without-C.patch | 50 +++++++++++++++++++
>   1 file changed, 50 insertions(+)
>   create mode 100644 package/polkit/0003-fix-build-without-C.patch
> 
> diff --git a/package/polkit/0003-fix-build-without-C.patch b/package/polkit/0003-fix-build-without-C.patch
> new file mode 100644
> index 0000000000..8e16de256c
> --- /dev/null
> +++ b/package/polkit/0003-fix-build-without-C.patch
> @@ -0,0 +1,50 @@
> +From abbc04f6f3acfc2dfa34b1c07decaa658786e142 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Sat, 2 Apr 2022 18:33:08 +0200
> +Subject: [PATCH] fix build without C++
> +
> +Fix the following build failure without C++ raised since
> +https://gitlab.freedesktop.org/polkit/polkit/-/commit/957a015157fd359d9679540f664183e4b9492896:
> +
> +The following exception(s) were encountered:
> +Running "/home/autobuild/autobuild/instance-14/output-1/host/bin/or1k-buildroot-linux-musl-g++ --version" gave "[Errno 2] No such file or directory: '/home/autobuild/autobuild/instance-14/output-1/host/bin/or1k-buildroot-linux-musl-g++'"
> +
> +Indeed, C++ is only required with mozjs engine
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/1d52c8100414aa384572b23006a13f9b806d2d5a
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Retrieved from:
> +https://gitlab.freedesktop.org/polkit/polkit/-/commit/abbc04f6f3acfc2dfa34b1c07decaa658786e142]
> +---
> + meson.build                   | 2 +-
> + src/polkitbackend/meson.build | 1 +
> + 2 files changed, 2 insertions(+), 1 deletion(-)
> +
> +diff --git a/meson.build b/meson.build
> +index c6765fd..da60930 100644
> +--- a/meson.build
> ++++ b/meson.build
> +@@ -1,5 +1,5 @@
> + project(
> +-  'polkit', ['c', 'cpp'],
> ++  'polkit', ['c'],
> +   version: '0.120',
> +   license: 'LGPL2+',
> +   default_options: [
> +diff --git a/src/polkitbackend/meson.build b/src/polkitbackend/meson.build
> +index 266f280..7c5d443 100644
> +--- a/src/polkitbackend/meson.build
> ++++ b/src/polkitbackend/meson.build
> +@@ -38,6 +38,7 @@ if js_engine == 'duktape'
> +   deps += libm_dep
> +   deps += thread_dep
> + elif js_engine == 'mozjs'
> ++  add_languages('cpp')
> +   sources += files('polkitbackendjsauthority.cpp')
> + endif
> +
> +--
> +GitLab
> +
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2022-04-14 19:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-06 16:33 [Buildroot] [PATCH 1/1] package/polkit: fix build without C++ Fabrice Fontaine
2022-04-14 19:24 ` Arnout Vandecappelle [this message]
2022-04-26 20:46 ` Peter Korsgaard

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=3cd32b76-fabd-8b07-a211-c3caf6a01962@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@buildroot.org \
    --cc=fontaine.fabrice@gmail.com \
    --cc=marek.belisko@open-nandra.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.