All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/webkitgtk: add missing host-perl dependency
@ 2019-09-15 13:01 Adrian Perez de Castro
  2019-09-15 13:54 ` François Perrad
  2019-09-15 22:57 ` [Buildroot] [PATCH v2 1/1] support/dependencies/dependencies.sh: check for JSON:PP Perl module Adrian Perez de Castro
  0 siblings, 2 replies; 5+ messages in thread
From: Adrian Perez de Castro @ 2019-09-15 13:01 UTC (permalink / raw)
  To: buildroot

Fixes:
http://autobuild.buildroot.net/results/faa23c0e648b916d0fb01adb95948234d6db7a71/

The JSON::PP module is included within the Perl installation. WebKit
has some scripts used at build time which require Perl installed in
the host.

Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
---
 package/webkitgtk/webkitgtk.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/webkitgtk/webkitgtk.mk b/package/webkitgtk/webkitgtk.mk
index 97e3311654..74c832d5df 100644
--- a/package/webkitgtk/webkitgtk.mk
+++ b/package/webkitgtk/webkitgtk.mk
@@ -12,7 +12,7 @@ WEBKITGTK_LICENSE = LGPL-2.1+, BSD-2-Clause
 WEBKITGTK_LICENSE_FILES = \
 	Source/WebCore/LICENSE-APPLE \
 	Source/WebCore/LICENSE-LGPL-2.1
-WEBKITGTK_DEPENDENCIES = host-ruby host-python host-gperf \
+WEBKITGTK_DEPENDENCIES = host-ruby host-perl host-python host-gperf \
 	enchant harfbuzz icu jpeg libgcrypt libgtk3 libsecret libsoup \
 	libtasn1 libxml2 libxslt openjpeg sqlite webp woff2
 WEBKITGTK_CONF_OPTS = \
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] package/webkitgtk: add missing host-perl dependency
  2019-09-15 13:01 [Buildroot] [PATCH 1/1] package/webkitgtk: add missing host-perl dependency Adrian Perez de Castro
@ 2019-09-15 13:54 ` François Perrad
  2019-09-15 22:57 ` [Buildroot] [PATCH v2 1/1] support/dependencies/dependencies.sh: check for JSON:PP Perl module Adrian Perez de Castro
  1 sibling, 0 replies; 5+ messages in thread
From: François Perrad @ 2019-09-15 13:54 UTC (permalink / raw)
  To: buildroot

Le dim. 15 sept. 2019 ? 15:01, Adrian Perez de Castro <aperez@igalia.com> a
?crit :

> Fixes:
>
> http://autobuild.buildroot.net/results/faa23c0e648b916d0fb01adb95948234d6db7a71/
>
> The JSON::PP module is included within the Perl installation. WebKit
> has some scripts used at build time which require Perl installed in
> the host.
>
>
Building host-perl is overkill, the system perl is enough.
The presence of a core module like JSON::PP could be checked in
dependencies.sh
see
https://git.busybox.net/buildroot/tree/support/dependencies/dependencies.sh#n259
Note: JSON::PP is a core module since Perl 5.18 which was released in 2013

Fran?ois


> Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
> ---
>  package/webkitgtk/webkitgtk.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/webkitgtk/webkitgtk.mk b/package/webkitgtk/
> webkitgtk.mk
> index 97e3311654..74c832d5df 100644
> --- a/package/webkitgtk/webkitgtk.mk
> +++ b/package/webkitgtk/webkitgtk.mk
> @@ -12,7 +12,7 @@ WEBKITGTK_LICENSE = LGPL-2.1+, BSD-2-Clause
>  WEBKITGTK_LICENSE_FILES = \
>         Source/WebCore/LICENSE-APPLE \
>         Source/WebCore/LICENSE-LGPL-2.1
> -WEBKITGTK_DEPENDENCIES = host-ruby host-python host-gperf \
> +WEBKITGTK_DEPENDENCIES = host-ruby host-perl host-python host-gperf \
>         enchant harfbuzz icu jpeg libgcrypt libgtk3 libsecret libsoup \
>         libtasn1 libxml2 libxslt openjpeg sqlite webp woff2
>  WEBKITGTK_CONF_OPTS = \
> --
> 2.23.0
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190915/410825e0/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 1/1] support/dependencies/dependencies.sh: check for JSON:PP Perl module
  2019-09-15 13:01 [Buildroot] [PATCH 1/1] package/webkitgtk: add missing host-perl dependency Adrian Perez de Castro
  2019-09-15 13:54 ` François Perrad
@ 2019-09-15 22:57 ` Adrian Perez de Castro
  2019-09-17 20:40   ` Thomas Petazzoni
  2019-09-26  9:12   ` Peter Korsgaard
  1 sibling, 2 replies; 5+ messages in thread
From: Adrian Perez de Castro @ 2019-09-15 22:57 UTC (permalink / raw)
  To: buildroot

Fixes:
http://autobuild.buildroot.net/results/faa23c0e648b916d0fb01adb95948234d6db7a71/

The JSON::PP Perl module is used at build time by the webkitgtk
and wpewebkit packages.

Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
---
 support/dependencies/dependencies.sh | 4 ++++
 1 file changed, 4 insertions(+)

---
v1 -> v2:
- Intead of making the package depend on host-perl, check for the module
  in the dependencies.sh script to avoid making the build slower. The
  module has been in core Perl since 2013.

diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh
index 3a170cbda6..3f18985435 100755
--- a/support/dependencies/dependencies.sh
+++ b/support/dependencies/dependencies.sh
@@ -270,6 +270,10 @@ if grep -q ^BR2_PACKAGE_WHOIS=y $BR2_CONFIG ; then
     required_perl_modules="$required_perl_modules autodie"
 fi
 
+if grep -q -E '^BR2_PACKAGE_(WEBKITGTK|WPEWEBKIT)=y' $BR2_CONFIG ; then
+    required_perl_modules="${required_perl_modules} JSON::PP"
+fi
+
 # This variable will keep the modules that are missing in your system.
 missing_perl_modules=""
 
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 1/1] support/dependencies/dependencies.sh: check for JSON:PP Perl module
  2019-09-15 22:57 ` [Buildroot] [PATCH v2 1/1] support/dependencies/dependencies.sh: check for JSON:PP Perl module Adrian Perez de Castro
@ 2019-09-17 20:40   ` Thomas Petazzoni
  2019-09-26  9:12   ` Peter Korsgaard
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2019-09-17 20:40 UTC (permalink / raw)
  To: buildroot

Hello Adrian,

On Mon, 16 Sep 2019 01:57:43 +0300
Adrian Perez de Castro <aperez@igalia.com> wrote:

> Fixes:
> http://autobuild.buildroot.net/results/faa23c0e648b916d0fb01adb95948234d6db7a71/
> 
> The JSON::PP Perl module is used at build time by the webkitgtk
> and wpewebkit packages.
> 
> Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>

I've applied to master, thanks. However, I did a mistake: I deleted the
Fixes line and the URL, because I thought this patch would not fix the
build issue. Indeed, I thought that it if fails today when building
wpewebkit or webkitgtk, with your patch it would simply fail earlier in
the dependencies check.

However, as I wrote this explanation I realized that
utils/genrandconfig has some logic to check the dependencies and reject
a configuration if the necessary dependencies are not met.

So indeed, your patch fixes the above issue. Unfortunately, I had
already pushed the commit, so it was too late to re-amend the commit
log.

Sorry about that :-/

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 1/1] support/dependencies/dependencies.sh: check for JSON:PP Perl module
  2019-09-15 22:57 ` [Buildroot] [PATCH v2 1/1] support/dependencies/dependencies.sh: check for JSON:PP Perl module Adrian Perez de Castro
  2019-09-17 20:40   ` Thomas Petazzoni
@ 2019-09-26  9:12   ` Peter Korsgaard
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2019-09-26  9:12 UTC (permalink / raw)
  To: buildroot

>>>>> "Adrian" == Adrian Perez de Castro <aperez@igalia.com> writes:

 > Fixes:
 > http://autobuild.buildroot.net/results/faa23c0e648b916d0fb01adb95948234d6db7a71/

 > The JSON::PP Perl module is used at build time by the webkitgtk
 > and wpewebkit packages.

 > Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
 > ---
 >  support/dependencies/dependencies.sh | 4 ++++
 >  1 file changed, 4 insertions(+)

 > ---
 > v1 -> v2:
 > - Intead of making the package depend on host-perl, check for the module
 >   in the dependencies.sh script to avoid making the build slower. The
 >   module has been in core Perl since 2013.

Committed to 2019.02.x, 2019.05.x and 2019.08.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-09-26  9:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-15 13:01 [Buildroot] [PATCH 1/1] package/webkitgtk: add missing host-perl dependency Adrian Perez de Castro
2019-09-15 13:54 ` François Perrad
2019-09-15 22:57 ` [Buildroot] [PATCH v2 1/1] support/dependencies/dependencies.sh: check for JSON:PP Perl module Adrian Perez de Castro
2019-09-17 20:40   ` Thomas Petazzoni
2019-09-26  9:12   ` Peter Korsgaard

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.