unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#56395] [PATCH] gnu: connman: Fix cross-compilation.
@ 2022-07-05 10:36 Jean Pierre De Jesus DIAZ via Guix-patches via
  2022-07-05 10:40 ` [bug#56395] (No Subject) Jean Pierre De Jesus DIAZ via Guix-patches via
  2022-07-06  9:45 ` bug#56395: [PATCH] gnu: connman: Fix cross-compilation Efraim Flashner
  0 siblings, 2 replies; 3+ messages in thread
From: Jean Pierre De Jesus DIAZ via Guix-patches via @ 2022-07-05 10:36 UTC (permalink / raw)
  To: 56395

[-- Attachment #1: Type: text/plain, Size: 82 bytes --]

Fixes cross-compilation for `connman' package.

—
Jean-Pierre De Jesus DIAZ

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-connman-Fix-cross-compilation.patch --]
[-- Type: text/x-patch; name=0001-gnu-connman-Fix-cross-compilation.patch, Size: 3072 bytes --]

From 5e0e95de9d71082f3681c1038278980aa68e6e42 Mon Sep 17 00:00:00 2001
Message-Id: <5e0e95de9d71082f3681c1038278980aa68e6e42.1657017290.git.me@jeandudey.tech>
From: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
Date: Tue, 5 Jul 2022 12:33:16 +0200
Subject: [PATCH] gnu: connman: Fix cross-compilation.

* gnu/packages/connman.scm (connman): Fix cross-compilation.
  [arguments]: Use G-Expressions. Set path to binaries at
  `#:configure-flags'.
---
 gnu/packages/connman.scm | 38 +++++++++++++++++++++++++-------------
 1 file changed, 25 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/connman.scm b/gnu/packages/connman.scm
index 6221b56d77..71dff3588f 100644
--- a/gnu/packages/connman.scm
+++ b/gnu/packages/connman.scm
@@ -24,6 +24,7 @@ (define-module (gnu packages connman)
   #:use-module (guix packages)
   #:use-module (guix download)
   #:use-module (guix build-system gnu)
+  #:use-module (guix gexp)
   #:use-module (guix licenses)
   #:use-module (guix utils)
   #:use-module (gnu packages)
@@ -55,19 +56,30 @@ (define-public connman
          (base32 "12g5ilcnymx6i45z3359yds3cgd2dfqjyncfm92hqlymzps41yvr"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:configure-flags
-       (list "--enable-nmcompat"
-             "--enable-polkit" ; Polkit doesn't need to be present at build time.
-             "--enable-iwd"
-             "--enable-openconnect"
-             "--enable-openvpn"
-             "--enable-vpnc"
-             "--enable-l2tp"
-             "--localstatedir=/var"
-             (string-append
-              "--with-dbusconfdir=" (assoc-ref %outputs "out") "/etc")
-             (string-append
-              "--with-dbusdatadir=" (assoc-ref %outputs "out") "/share"))))
+     (list #:configure-flags
+           #~(list "--enable-nmcompat"
+                   ;; PolKit doesn't need to be present at build time.
+                   "--enable-polkit"
+                   "--enable-iwd"
+                   "--enable-l2tp"
+                   "--enable-openconnect"
+                   "--enable-openvpn"
+                   "--enable-vpnc"
+                   "--localstatedir=/var"
+                   (string-append "--with-l2tp="
+                                  #$(this-package-input "xl2tpd")
+                                  "/sbin/xl2tpd")
+                   (string-append "--with-openconnect="
+                                  #$(this-package-input "openconnect")
+                                  "/sbin/openconnect")
+                   (string-append "--with-openvpn="
+                                  #$(this-package-input "openvpn")
+                                  "/sbin/openvpn")
+                   (string-append "--with-vpnc="
+                                  #$(this-package-input "vpnc")
+                                  "/sbin/vpnc")
+                   (string-append "--with-dbusconfdir=" #$output "/etc")
+                   (string-append "--with-dbusdatadir=" #$output "/share"))))
     (native-inputs
      (list pkg-config
            python-wrapper))
-- 
2.36.1


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

* [bug#56395] (No Subject)
  2022-07-05 10:36 [bug#56395] [PATCH] gnu: connman: Fix cross-compilation Jean Pierre De Jesus DIAZ via Guix-patches via
@ 2022-07-05 10:40 ` Jean Pierre De Jesus DIAZ via Guix-patches via
  2022-07-06  9:45 ` bug#56395: [PATCH] gnu: connman: Fix cross-compilation Efraim Flashner
  1 sibling, 0 replies; 3+ messages in thread
From: Jean Pierre De Jesus DIAZ via Guix-patches via @ 2022-07-05 10:40 UTC (permalink / raw)
  To: 56395@debbugs.gnu.org

Please note that #56252 and #56394 may be needed.

To test:

guix build connman \
           --target=aarch64-linux-gnu

One more step closer towards `installation-os' cross compilation ;)

—
Jean-Pierre De Jesus DIAZ




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

* bug#56395: [PATCH] gnu: connman: Fix cross-compilation.
  2022-07-05 10:36 [bug#56395] [PATCH] gnu: connman: Fix cross-compilation Jean Pierre De Jesus DIAZ via Guix-patches via
  2022-07-05 10:40 ` [bug#56395] (No Subject) Jean Pierre De Jesus DIAZ via Guix-patches via
@ 2022-07-06  9:45 ` Efraim Flashner
  1 sibling, 0 replies; 3+ messages in thread
From: Efraim Flashner @ 2022-07-06  9:45 UTC (permalink / raw)
  To: Jean Pierre De Jesus DIAZ; +Cc: 56395-done

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

Thanks. Patch pushed!

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2022-07-06  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-05 10:36 [bug#56395] [PATCH] gnu: connman: Fix cross-compilation Jean Pierre De Jesus DIAZ via Guix-patches via
2022-07-05 10:40 ` [bug#56395] (No Subject) Jean Pierre De Jesus DIAZ via Guix-patches via
2022-07-06  9:45 ` bug#56395: [PATCH] gnu: connman: Fix cross-compilation Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).