Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] glib-networking: depend on target ca-certificates.
@ 2019-01-02 16:54 aduskett at gmail.com
  2019-01-02 17:17 ` Yann E. MORIN
  0 siblings, 1 reply; 4+ messages in thread
From: aduskett at gmail.com @ 2019-01-02 16:54 UTC (permalink / raw)
  To: buildroot

From: Adam Duskett <Aduskett@gmail.com>

Currently, glib-networking uses the hosts ca-certificates, which, if not
installed or if they are installed in a different directory will cause a
configuration error.

Instead, select and depend on ca-certificates, and add $(TARGET_DIR) to the
-Dca_certificates_path option.

Fixes:
http://autobuild.buildroot.net/results/cc0/cc094e0a7c130c60641d32e9f4cbc46b0eba0852/build-end.log

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
---
 package/glib-networking/Config.in          | 1 +
 package/glib-networking/glib-networking.mk | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/package/glib-networking/Config.in b/package/glib-networking/Config.in
index b84a739460..a5fe7a8d65 100644
--- a/package/glib-networking/Config.in
+++ b/package/glib-networking/Config.in
@@ -6,6 +6,7 @@ config BR2_PACKAGE_GLIB_NETWORKING
 	depends on !BR2_STATIC_LIBS # gnutls
 	select BR2_PACKAGE_GNUTLS
 	select BR2_PACKAGE_LIBGLIB2
+	select BR2_PACKAGE_CA_CERTIFICATES
 	help
 	  Network-related GIO modules for glib.
 
diff --git a/package/glib-networking/glib-networking.mk b/package/glib-networking/glib-networking.mk
index 2852f90121..5b96847f24 100644
--- a/package/glib-networking/glib-networking.mk
+++ b/package/glib-networking/glib-networking.mk
@@ -14,10 +14,11 @@ GLIB_NETWORKING_DEPENDENCIES = \
 	host-pkgconf \
 	host-intltool \
 	libglib2 \
-	gnutls
+	gnutls \
+	ca-certificates
 
 GLIB_NETWORKING_CONF_OPTS = \
-	-Dca_certificates_path=/etc/ssl/certs/ca-certificates.crt \
+	-Dca_certificates_path=$(TARGET_DIR)/etc/ssl/certs/ca-certificates.crt \
 	-Dlibproxy_support=false \
 	-Dgnome_proxy_support=false \
 	-Dpkcs11_support=false
-- 
2.20.1

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

* [Buildroot] [PATCH 1/1] glib-networking: depend on target ca-certificates.
  2019-01-02 16:54 [Buildroot] [PATCH 1/1] glib-networking: depend on target ca-certificates aduskett at gmail.com
@ 2019-01-02 17:17 ` Yann E. MORIN
  2019-01-02 19:54   ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Yann E. MORIN @ 2019-01-02 17:17 UTC (permalink / raw)
  To: buildroot

Adam, All,

Thomas, question for you bbelow...

On 2019-01-02 11:54 -0500, aduskett at gmail.com spake thusly:
> From: Adam Duskett <Aduskett@gmail.com>
> 
> Currently, glib-networking uses the hosts ca-certificates, which, if not
> installed or if they are installed in a different directory will cause a
> configuration error.
> 
> Instead, select and depend on ca-certificates, and add $(TARGET_DIR) to the
> -Dca_certificates_path option.

As discussed on IRC, this is not the correct fix, because that path is
used at runtime.

The proper fix would be to fix their meson.build to behave in
cross-compilation.

It is to be noted that upstream no longer has the issue, because they
changed the way the handle certifcate trust store:
    https://gitlab.gnome.org/GNOME/glib-networking/commit/f1c8feee014007cc913b71357acb609f8d1200df

... but we can't backport this as a fix, though... :-(

Thomas: maybe we can look at updating it instead of trying to fix it?

Regards,
Yann E. MORIN.

> Fixes:
> http://autobuild.buildroot.net/results/cc0/cc094e0a7c130c60641d32e9f4cbc46b0eba0852/build-end.log
> 
> Signed-off-by: Adam Duskett <Aduskett@gmail.com>
> ---
>  package/glib-networking/Config.in          | 1 +
>  package/glib-networking/glib-networking.mk | 5 +++--
>  2 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/package/glib-networking/Config.in b/package/glib-networking/Config.in
> index b84a739460..a5fe7a8d65 100644
> --- a/package/glib-networking/Config.in
> +++ b/package/glib-networking/Config.in
> @@ -6,6 +6,7 @@ config BR2_PACKAGE_GLIB_NETWORKING
>  	depends on !BR2_STATIC_LIBS # gnutls
>  	select BR2_PACKAGE_GNUTLS
>  	select BR2_PACKAGE_LIBGLIB2
> +	select BR2_PACKAGE_CA_CERTIFICATES
>  	help
>  	  Network-related GIO modules for glib.
>  
> diff --git a/package/glib-networking/glib-networking.mk b/package/glib-networking/glib-networking.mk
> index 2852f90121..5b96847f24 100644
> --- a/package/glib-networking/glib-networking.mk
> +++ b/package/glib-networking/glib-networking.mk
> @@ -14,10 +14,11 @@ GLIB_NETWORKING_DEPENDENCIES = \
>  	host-pkgconf \
>  	host-intltool \
>  	libglib2 \
> -	gnutls
> +	gnutls \
> +	ca-certificates
>  
>  GLIB_NETWORKING_CONF_OPTS = \
> -	-Dca_certificates_path=/etc/ssl/certs/ca-certificates.crt \
> +	-Dca_certificates_path=$(TARGET_DIR)/etc/ssl/certs/ca-certificates.crt \
>  	-Dlibproxy_support=false \
>  	-Dgnome_proxy_support=false \
>  	-Dpkcs11_support=false
> -- 
> 2.20.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH 1/1] glib-networking: depend on target ca-certificates.
  2019-01-02 17:17 ` Yann E. MORIN
@ 2019-01-02 19:54   ` Thomas Petazzoni
  2019-01-02 21:01     ` Yann E. MORIN
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2019-01-02 19:54 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 2 Jan 2019 18:17:04 +0100, Yann E. MORIN wrote:

> Thomas: maybe we can look at updating it instead of trying to fix it?

Is there a released/stable, non-development version of glib-networking
that contains the commit fixing the issue ?

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

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

* [Buildroot] [PATCH 1/1] glib-networking: depend on target ca-certificates.
  2019-01-02 19:54   ` Thomas Petazzoni
@ 2019-01-02 21:01     ` Yann E. MORIN
  0 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2019-01-02 21:01 UTC (permalink / raw)
  To: buildroot

Thomas, All,

On 2019-01-02 20:54 +0100, Thomas Petazzoni spake thusly:
> On Wed, 2 Jan 2019 18:17:04 +0100, Yann E. MORIN wrote:
> > Thomas: maybe we can look at updating it instead of trying to fix it?
> Is there a released/stable, non-development version of glib-networking
> that contains the commit fixing the issue ?

There's 2.58.0 which contains the change that no longer requires the
path to exist at build time.

Adam, are the versions tightly coupled between glib-networking and glib?
I.e, is it possible to use glib-networking-2.58.0 with glib-2.56.3, or
do we have to bump both simultaneously?

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

end of thread, other threads:[~2019-01-02 21:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-02 16:54 [Buildroot] [PATCH 1/1] glib-networking: depend on target ca-certificates aduskett at gmail.com
2019-01-02 17:17 ` Yann E. MORIN
2019-01-02 19:54   ` Thomas Petazzoni
2019-01-02 21:01     ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox