From patchwork Wed Nov 10 01:37:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 34369 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7601627BBE1; Wed, 10 Nov 2021 01:38:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E6A4D27BBE3 for ; Wed, 10 Nov 2021 01:38:09 +0000 (GMT) Received: from localhost ([::1]:40104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkcYz-0001o1-1Z for patchwork@mira.cbaines.net; Tue, 09 Nov 2021 20:38:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkcYs-0001nk-N1 for guix-patches@gnu.org; Tue, 09 Nov 2021 20:38:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53068) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkcYs-00056C-E9 for guix-patches@gnu.org; Tue, 09 Nov 2021 20:38:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mkcYs-0000tZ-Cn for guix-patches@gnu.org; Tue, 09 Nov 2021 20:38:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51737] [PATCH 1/4] gnu: Add libglibutil. References: In-Reply-To: Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 10 Nov 2021 01:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51737 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: "51737@debbugs.gnu.org" <51737@debbugs.gnu.org> Received: via spool by 51737-submit@debbugs.gnu.org id=B51737.16365082693408 (code B ref 51737); Wed, 10 Nov 2021 01:38:02 +0000 Received: (at 51737) by debbugs.gnu.org; 10 Nov 2021 01:37:49 +0000 Received: from localhost ([127.0.0.1]:36379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkcYf-0000su-EI for submit@debbugs.gnu.org; Tue, 09 Nov 2021 20:37:49 -0500 Received: from mail-4316.protonmail.ch ([185.70.43.16]:64131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkcYd-0000sg-IF for 51737@debbugs.gnu.org; Tue, 09 Nov 2021 20:37:48 -0500 Date: Wed, 10 Nov 2021 01:37:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1636508260; bh=bRaf6/NZgXtL0VC7E643R9Z0NKG56hOHcRk1ID4LcfM=; h=Date:To:From:Reply-To:Subject:From; b=f50KC+t5bFYuEJQd0lbK4Ar6bxBWCY2spfM/+9nmccrKk7MuSNTdfoDN67+PxuWJx It8P2zlHik1FF3aLHA23Dq2eHx7eegau44CJ474O0cYEpLlQ7z+qlvY7R9OXBaGmJd 81ZGoUNHMQzbhvUYnHhrf9ftb6bIdDjA8I3JJEu4= Message-ID: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches * gnu/packages/glib.scm (libglibutil): New variable. --- 2.33.1 diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index 8ed1e3a944..6d8a6801da 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm @@ -14,6 +14,7 @@ ;;; Copyright © 2019, 2020 Marius Bakke ;;; Copyright © 2020 Nicolò Balzarotti ;;; Copyright © 2020 Arthur Margerit +;;; Copyright © 2021 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -68,6 +69,7 @@ (define-module (gnu packages glib) #:use-module (guix build-system perl) #:use-module (guix build-system python) #:use-module (guix download) + #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix utils) @@ -749,6 +751,49 @@ (define-public glibmm-2.64 `(("libsigc++" ,libsigc++) ("glib" ,glib))))) +(define-public libglibutil + (package + (name "libglibutil") + (version "1.0.55") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sailfishos.org/mer-core/libglibutil") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0zrxccpyfz4jf14zr6fj9b88p340s66lw5cnqkapfa72kl1rnp4q")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags (list (string-append "CC=" ,(cc-for-target)) + (string-append "DESTDIR=" %output)) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'remove-usr-prefix + (lambda* _ + (substitute* "libglibutil.pc.in" + (("/usr/include") (string-append %output "/include"))) + (substitute* "Makefile" + (("usr/") "")))) + (add-after 'install 'install-dev + (lambda* _ + (invoke "make" "install-dev" (string-append "DESTDIR=" %output)))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (chdir "test") + (invoke "make" (string-append "CC=" ,(cc-for-target))) + (chdir "..") #t)))))) + (native-inputs `(("pkg-config" ,pkg-config))) + (inputs `(("glib" ,glib))) + (home-page "https://git.sailfishos.org/mer-core/libglibutil") + (synopsis "GLib utilites") + (description "This package provides library of glib utilities.") + (license license:bsd-3))) + (define-public python2-pygobject-2 (package (name "python2-pygobject") From patchwork Wed Nov 10 01:38:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 34370 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4BC0A27BBE3; Wed, 10 Nov 2021 01:39:19 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0E73527BBE1 for ; Wed, 10 Nov 2021 01:39:19 +0000 (GMT) Received: from localhost ([::1]:40590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkca6-0002D3-79 for patchwork@mira.cbaines.net; Tue, 09 Nov 2021 20:39:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkcZu-0002Ce-Fu for guix-patches@gnu.org; Tue, 09 Nov 2021 20:39:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53075) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkcZq-0005Cj-4g for guix-patches@gnu.org; Tue, 09 Nov 2021 20:39:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mkcZq-0000vW-3b for guix-patches@gnu.org; Tue, 09 Nov 2021 20:39:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51737] [PATCH 2/4] gnu: Add libgbinder. References: In-Reply-To: Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 10 Nov 2021 01:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51737 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: "51737@debbugs.gnu.org" <51737@debbugs.gnu.org> Received: via spool by 51737-submit@debbugs.gnu.org id=B51737.16365083053506 (code B ref 51737); Wed, 10 Nov 2021 01:39:02 +0000 Received: (at 51737) by debbugs.gnu.org; 10 Nov 2021 01:38:25 +0000 Received: from localhost ([127.0.0.1]:36385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkcZE-0000uU-QJ for submit@debbugs.gnu.org; Tue, 09 Nov 2021 20:38:25 -0500 Received: from mail-4322.protonmail.ch ([185.70.43.22]:39685) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkcZC-0000uG-Fw for 51737@debbugs.gnu.org; Tue, 09 Nov 2021 20:38:23 -0500 Date: Wed, 10 Nov 2021 01:38:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1636508296; bh=U8X7bmXcW8U+okhMm84K56cEcKgzfLIS3Ufrybp8Sy4=; h=Date:To:From:Reply-To:Subject:From; b=Jvl9K4ANvHivB9/9dak0PeuneFz2X/i098efS/ZS/3J7dxfj32H32GHMTDGTS6rtP 6c2j9yPiIZy3/jCY3IRS/lYDw+xZ5u8CZV4UuKJlhx2ECZVZ9NPlq7JEqvzQQ6fMeW P69mbOkXukUQvn+IVGdC/l66P7KxqeQIiX6s2jmw= Message-ID: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches * gnu/packages/glib.scm (libgbinder): New variable. --- 2.33.1 diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index 6d8a6801da..4f3e026d1b 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm @@ -751,6 +751,59 @@ (define-public glibmm-2.64 `(("libsigc++" ,libsigc++) ("glib" ,glib))))) +(define-public libgbinder + (package + (name "libgbinder") + (version "1.1.13") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mer-hybris/libgbinder") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "054kghsyyxk7lbsgwis1fczbgjlh0g0x6smwvcczd8dqacfclvpy")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags (list (string-append "CC=" ,(cc-for-target)) + (string-append "DESTDIR=" %output)) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'fix-pkg-config-in + (lambda* _ + (substitute* "Makefile" + (("usr/") "")) + (substitute* "libgbinder.pc.in" + (("@libdir@") (string-append (assoc-ref %outputs "out") "/lib")) + (("/usr/include") (string-append %output "/include"))))) + (add-after 'install 'install-dev + (lambda* _ + (invoke "make" "install-dev" (string-append "DESTDIR=" %output)))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (chdir "test") + (invoke "make" (string-append "CC=" ,(cc-for-target))) + (chdir "..") #t)))))) + (native-inputs `(("bison" ,bison) + ("flex" ,flex) + ("pkg-config" ,pkg-config))) + (inputs `(("glib" ,glib) + ("libglibutil" ,libglibutil))) + (home-page "https://github.com/mer-hybris/libgbinder") + (synopsis "GLib-style interface to binder") + (description "This package provides GLib-style interface to binder: +@enumerate +@item Integration with GLib event loop +@item Detection of 32 vs 64 bit kernel at runtime +@item Asynchronous transactions that don't block the event thread +@item Stable service manager and low-level transation APIs +@end enumerate") + (license license:bsd-3))) + (define-public libglibutil (package (name "libglibutil") From patchwork Wed Nov 10 01:38:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 34371 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A929E27BBE1; Wed, 10 Nov 2021 01:39:19 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 639A727BBE1 for ; Wed, 10 Nov 2021 01:39:19 +0000 (GMT) Received: from localhost ([::1]:40592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkca6-0002DE-93 for patchwork@mira.cbaines.net; Tue, 09 Nov 2021 20:39:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkcZu-0002Cf-Es for guix-patches@gnu.org; Tue, 09 Nov 2021 20:39:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53076) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkcZq-0005Cl-HK for guix-patches@gnu.org; Tue, 09 Nov 2021 20:39:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mkcZq-0000ve-GQ for guix-patches@gnu.org; Tue, 09 Nov 2021 20:39:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51737] [PATCH 3/4] gnu: Add python-gbinder. References: In-Reply-To: Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 10 Nov 2021 01:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51737 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: "51737@debbugs.gnu.org" <51737@debbugs.gnu.org> Received: via spool by 51737-submit@debbugs.gnu.org id=B51737.16365083333547 (code B ref 51737); Wed, 10 Nov 2021 01:39:02 +0000 Received: (at 51737) by debbugs.gnu.org; 10 Nov 2021 01:38:53 +0000 Received: from localhost ([127.0.0.1]:36388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkcZh-0000v9-3n for submit@debbugs.gnu.org; Tue, 09 Nov 2021 20:38:53 -0500 Received: from mail-40134.protonmail.ch ([185.70.40.134]:34282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkcZc-0000ut-Kb for 51737@debbugs.gnu.org; Tue, 09 Nov 2021 20:38:51 -0500 Date: Wed, 10 Nov 2021 01:38:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1636508318; bh=16SV15DnHOiGklQy5at7igGa7X9Li8k3KcQO/ZJp7xw=; h=Date:To:From:Reply-To:Subject:From; b=JNDD3EF+qa9gJSdmqAKv888cqsxR+hCyRoiapIUE+99+4vqbwJU3ipZG9FXU+xnqh +Cum6Fnu3720iU93u2lLTEk3MnJBsUydqShkbcTtjYORKOCWDE87zm5+KzTuYWTBqC s1ve0Oa2XzjfA9MM5p/wEoAJ9lvC0s0bdu17F8NI= Message-ID: <7QtNhomJeWJORkBXmW-URZhK86zqNDlMhu0kJCfLqCylsZc9rK48bBPumKeMQFh1BZzYulgZMpgSrbRV7soqEvKx1CmHbyh_ymrTceqeVZc=@protonmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches * gnu/packages/glib.scm (python-gbinder): New variable. --- 2.33.1 diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index 4f3e026d1b..d9e50a69c8 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm @@ -847,6 +847,37 @@ (define-public libglibutil (description "This package provides library of glib utilities.") (license license:bsd-3))) +(define-public python-gbinder + (package + (name "python-gbinder") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/erfanoabdi/gbinder-python") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0jgblzakjgsy0cj93bmh5gr7qnl2xgsrm0wzc6xjvzry9lrbs360")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'build + (lambda* _ + (invoke "python" "setup.py" "build_ext" "--inplace" "--cython")))))) + (native-inputs `(("python-cython" ,python-cython) + ("pkg-config" ,pkg-config))) + (inputs `(("glib" ,glib) + ("libgbinder" ,libgbinder) + ("libglibutil" ,libglibutil))) + (home-page "https://github.com/erfanoabdi/gbinder-python") + (synopsis "Python bindings for libgbinder") + (description "This package provides Python bindings for libgbinder.") + (license license:gpl3+))) + (define-public python2-pygobject-2 (package (name "python2-pygobject") From patchwork Wed Nov 10 01:39:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 34372 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B807327BBE3; Wed, 10 Nov 2021 01:40:52 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 75C6327BBE1 for ; Wed, 10 Nov 2021 01:40:52 +0000 (GMT) Received: from localhost ([::1]:41022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkcbb-0002YS-Kc for patchwork@mira.cbaines.net; Tue, 09 Nov 2021 20:40:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:32862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkcao-0002XJ-SV for guix-patches@gnu.org; Tue, 09 Nov 2021 20:40:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53085) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkcao-0005JV-B0 for guix-patches@gnu.org; Tue, 09 Nov 2021 20:40:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mkcao-0000xj-9U for guix-patches@gnu.org; Tue, 09 Nov 2021 20:40:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51737] [PATCH 4/4] gnu: Add waydroid. References: In-Reply-To: Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 10 Nov 2021 01:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51737 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: "51737@debbugs.gnu.org" <51737@debbugs.gnu.org> Received: via spool by 51737-submit@debbugs.gnu.org id=B51737.16365083593638 (code B ref 51737); Wed, 10 Nov 2021 01:40:02 +0000 Received: (at 51737) by debbugs.gnu.org; 10 Nov 2021 01:39:19 +0000 Received: from localhost ([127.0.0.1]:36397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkca6-0000wW-Nn for submit@debbugs.gnu.org; Tue, 09 Nov 2021 20:39:19 -0500 Received: from mail-4316.protonmail.ch ([185.70.43.16]:39399) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkcZz-0000w1-Oq for 51737@debbugs.gnu.org; Tue, 09 Nov 2021 20:39:17 -0500 Date: Wed, 10 Nov 2021 01:39:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1636508345; bh=dxbyBxxF8rfjzLL/WjIGq9/90GdU4T95YDhjXgQO7lU=; h=Date:To:From:Reply-To:Subject:From; b=gzzuQ8Mx1Zay8BrnHAzt35ShpbU+gsjzsW31xV/nByvXe9Vy36xDeQNh4z3bTReE+ 4NjG8w2soVw6hMGi32WYDSX2WdeyQQcYyeg8LCUP2IfUYnoudipIusnyLJs5u1kZlp HHABycfJcYsWAo724Or5ci4ZhU7Vha3IP6/FHQyg= Message-ID: <5RLyma8o5V0_Xhn_sSJGxZYF4XMzJtrEna-xE5UU-suoRiBa7vaxBdDUEBgKSBMb94O68CnqEzPkcuFA4qasS4rHR4lh-ch-S1k-mFn6d4U=@protonmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches * gnu/packages/virtualization.scm (waydroid): New variable. --- 2.33.1 diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index 1817f6dc22..d47d8402f6 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -2005,6 +2005,72 @@ (define-public bochs DOS or Microsoft Windows.") (license license:lgpl2.0+))) +(define-public waydroid + (package + (name "waydroid") + (version "1.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/waydroid/waydroid") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "03d87sh443kn0j2mpih1g909khkx3wgb04h605f9jhd0znskkbmw")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'build) ; no setup.py + (delete 'check) ; no test suite + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (lib (string-append out "/lib/waydroid")) + (tools (string-append lib "/tools")) + (data (string-append lib "/data")) + (apps (string-append out "/share/applications")) + (bin (string-append out "/bin")) + (site (string-append out "/lib/python" + ,(version-major+minor + (package-version python)) + "/site-packages")) + (path (getenv "PYTHONPATH"))) + (mkdir-p tools) + (mkdir-p data) + (mkdir-p apps) + (mkdir-p bin) + (copy-recursively "tools" tools) + (copy-recursively "data" data) + (install-file (string-append data "/Waydroid.desktop") + (string-append apps)) + (substitute* (string-append apps "/Waydroid.desktop") + (("/usr") lib)) + (install-file "waydroid.py" lib) + (symlink (string-append lib "/waydroid.py") (string-append bin + "/waydroid.py")) + (wrap-program (string-append bin "/waydroid.py") + `("PYTHONPATH" ":" prefix (,site ,path))))))))) + (inputs `(("bash-minimal" ,bash-minimal) + ("dnsmasq" ,dnsmasq) + ("libgbinder" ,libgbinder) + ("lxc" ,lxc) + ("nftables" ,nftables) + ("python" ,python) + ("python-gbinder" ,python-gbinder) + ("python-pygobject" ,python-pygobject))) + (home-page "https://waydro.id") + (synopsis "Container-based approach to boot a full Android system") + (description "Waydroid uses Linux namespaces @code{(user, pid, uts, net, +mount, ipc)} to run a full Android system in a container and provide Android +applications. The Android inside the container has direct access to needed +underlying hardware. The Android runtime environment ships with a minimal +customized Android system image based on LineageOS. The used image is +currently based on Android 10.") + (license license:gpl3))) + (define-public xen (package (name "xen")