From unknown Thu Jun 19 14:07:40 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#64808 <64808@debbugs.gnu.org> To: bug#64808 <64808@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add andorid-sdkmanager. Reply-To: bug#64808 <64808@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:07:40 +0000 retitle 64808 [PATCH] gnu: Add andorid-sdkmanager. reassign 64808 guix-patches submitter 64808 Distopico severity 64808 normal tag 64808 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 23 14:50:06 2023 Received: (at submit) by debbugs.gnu.org; 23 Jul 2023 18:50:06 +0000 Received: from localhost ([127.0.0.1]:41229 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNe9d-00045N-L0 for submit@debbugs.gnu.org; Sun, 23 Jul 2023 14:50:06 -0400 Received: from lists.gnu.org ([2001:470:142::17]:58592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNe9Z-00044l-Uj for submit@debbugs.gnu.org; Sun, 23 Jul 2023 14:50:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNe9U-00088n-Hu for guix-patches@gnu.org; Sun, 23 Jul 2023 14:49:56 -0400 Received: from mx0.riseup.net ([198.252.153.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNe9S-0004PZ-M4 for guix-patches@gnu.org; Sun, 23 Jul 2023 14:49:56 -0400 Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4R8C5W4zx3z9tDM for ; Sun, 23 Jul 2023 18:49:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1690138191; bh=sjFNvTnYIzTLiRSHSQ0kcMYJQh/zr62S7yRxrU//DgQ=; h=From:To:Subject:Date:From; b=OsPjMgotF0jm99Ci672fNkwI1tjgBES5O0DdzvxZRkDGULZm7gmcsK0beDjjZvTWs FgTjHsz6utJrY1v0nogTn76YkSxjCqGXk75GlXOovjfuWwcGpquNYil9UcAA4fmXlg mbbO4GHau7Kg8ULNbqGwkSc75bTN1cV69suNH4hI= X-Riseup-User-ID: ED525548EDBF4F5F3CF71269A8EF061C02EBCB48BF4C36EE3900F1D3BDA4FA00 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4R8C5W0k19zJnsx for ; Sun, 23 Jul 2023 18:49:50 +0000 (UTC) From: Distopico To: guix-patches@gnu.org Subject: [PATCH] gnu: Add andorid-sdkmanager. Date: Sun, 23 Jul 2023 13:41:32 -0500 X-Debbugs-Cc: maxim.cournoyer@gmail.com, andreas@enge.fr Message-ID: <87y1j6o437.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.6; envelope-from=distopico@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) A drop-in replacement for sdkmanager from the Android SDK by F-droid projec= t. * gnu/packages/android.scm (andorid-sdkmanager): New variables. --- gnu/packages/android.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index f35c2398bd..24f5fd2893 100644 --- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -12,6 +12,7 @@ ;;; Copyright =C2=A9 2020 Sergey Trofimov ;;; Copyright =C2=A9 2021 Guillaume Le Vaillant ;;; Copyright =C2=A9 2021 Petr Hodina +;;; Copyright =C2=A9 2023 Camilo Q.S. (Distopico) ;;; ;;; This file is part of GNU Guix. ;;; @@ -721,6 +722,32 @@ (define-public fastboot "This package provides @command{fastboot}, a tool to upload file syst= em images to Android devices.") (license license:asl2.0))) =20 +(define-public andorid-sdkmanager + (package + (name "android-sdkmanager") + (version "0.6.5") + (source (origin + (method url-fetch) + (uri (pypi-uri "sdkmanager" version ".tar.gz")) + (sha256 + (base32 + "11as7n2mj3nbqsqb3ivyv9985n73i022s748qvjg36cs8ig50afx")))) + (build-system python-build-system) + (inputs (list python-requests python-argcomplete python-urllib3)) + (propagated-inputs (list gnupg)) + (home-page "https://gitlab.com/fdroid/sdkmanager") + (synopsis + "Drop-in replacement for sdkmanager from the Android SDK written in P= ython") + (description + "This package provides an drop-in replacement for sdkmanager from the= Android SDK +written in Python from fdroid project. It implements the exact API of the= sdkmanager +command line. It only deviates from that API if it can be done while being +100% compatible. + +The project also attempts to maintain the same terminal output so it can b= e compatible +with things that scrape sdkmanager output.") + (license license:agpl3+))) + (define-public android-udev-rules (package (name "android-udev-rules") base-commit: 13cb9b302868b5a966a6ae177412c474084f4bf1 --=20 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 24 08:58:52 2023 Received: (at 64808) by debbugs.gnu.org; 24 Jul 2023 12:58:52 +0000 Received: from localhost ([127.0.0.1]:42103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNv9H-0006x1-SZ for submit@debbugs.gnu.org; Mon, 24 Jul 2023 08:58:52 -0400 Received: from hera.aquilenet.fr ([2a0c:e300::1]:53136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNv9C-0006wY-VW for 64808@debbugs.gnu.org; Mon, 24 Jul 2023 08:58:48 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 2D4671B4F; Mon, 24 Jul 2023 14:58:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2L1UGF4sKTg6; Mon, 24 Jul 2023 14:58:39 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0::c64]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 619585F0; Mon, 24 Jul 2023 14:58:39 +0200 (CEST) Date: Mon, 24 Jul 2023 14:58:37 +0200 From: Andreas Enge To: Distopico Subject: Re: [bug#64808] [PATCH] gnu: Add andorid-sdkmanager. Message-ID: References: <87y1j6o437.fsf@riseup.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="TF/1jH+aCwzdxgZe" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87y1j6o437.fsf@riseup.net> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64808 Cc: 64808@debbugs.gnu.org, maxim.cournoyer@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --TF/1jH+aCwzdxgZe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, thanks for the new package! According to our naming scheme, we should either call it "sdkmanager" (the upstream name), or "python-sdkmanager" (as a Python library). Given that it is mainly an executable, I opted for the first one; also since the second one is a bit misleading (it does not manage SDKs for python). I have removed the propagated input gnutls; propagated inputs should be used very sparingly, and so far I did not see where it would be required. I am not sure the package works. When running sdkmanager --sdk_root /tmp/sdk --install it complains that it has no rights on /opt/android-sdk. I was just guessing how it works from "sdkmanager --help"; should --sdk_root not set the place where to install the SDKs? "sdkmanager --list" does seem to work. I am attaching a new version of the patch; what do you think? Andreas --TF/1jH+aCwzdxgZe Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: attachment; filename="0001-gnu-Add-sdkmanager.patch" Content-Transfer-Encoding: 8bit >From fe501c98e105a0ee76b34737d8071608f130c76b Mon Sep 17 00:00:00 2001 Message-ID: From: Distopico Date: Sun, 23 Jul 2023 13:41:32 -0500 Subject: [PATCH] gnu: Add sdkmanager. * gnu/packages/android.scm (sdkmanager): New variable. Co-authored-by: Andreas Enge --- gnu/packages/android.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index f35c2398bd..f9c24226b8 100644 --- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2020 Sergey Trofimov ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Petr Hodina +;;; Copyright © 2023 Camilo Q.S. (Distopico) ;;; ;;; This file is part of GNU Guix. ;;; @@ -38,6 +39,7 @@ (define-module (gnu packages android) #:use-module (guix build-system gnu) #:use-module (guix build-system go) #:use-module (guix build-system python) + #:use-module (guix build-system pyproject) #:use-module (guix build-system trivial) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages) @@ -721,6 +723,28 @@ (define-public fastboot "This package provides @command{fastboot}, a tool to upload file system images to Android devices.") (license license:asl2.0))) +(define-public sdkmanager + (package + (name "sdkmanager") + (version "0.6.5") + (source (origin + (method url-fetch) + (uri (pypi-uri "sdkmanager" version ".tar.gz")) + (sha256 + (base32 + "11as7n2mj3nbqsqb3ivyv9985n73i022s748qvjg36cs8ig50afx")))) + (build-system pyproject-build-system) + (inputs (list python-requests python-argcomplete python-urllib3)) + (home-page "https://gitlab.com/fdroid/sdkmanager") + (synopsis + "Replacement for Android sdkmanager written in Python") + (description + "This package provides a drop-in replacement for sdkmanager from +the Android SDK. It is written in Python and part of the F-Droid +project. It implements the exact API of the Android sdkmanager command +line. The project also attempts to maintain the same terminal output.") + (license license:agpl3+))) + (define-public android-udev-rules (package (name "android-udev-rules") base-commit: cf9904bcc8dd03e73675475bb4d8746dc434e415 -- 2.41.0 --TF/1jH+aCwzdxgZe-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 24 09:05:06 2023 Received: (at 64808) by debbugs.gnu.org; 24 Jul 2023 13:05:06 +0000 Received: from localhost ([127.0.0.1]:42108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNvFJ-000783-UV for submit@debbugs.gnu.org; Mon, 24 Jul 2023 09:05:06 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:46364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNvFE-00077L-Gl for 64808@debbugs.gnu.org; Mon, 24 Jul 2023 09:05:04 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id F14551B4F; Mon, 24 Jul 2023 15:04:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12D7rSFUVQdo; Mon, 24 Jul 2023 15:04:53 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0::c64]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 7CF6B189; Mon, 24 Jul 2023 15:04:53 +0200 (CEST) Date: Mon, 24 Jul 2023 15:04:52 +0200 From: Andreas Enge To: Distopico Subject: Re: [bug#64808] [PATCH] gnu: Add andorid-sdkmanager. Message-ID: References: <87y1j6o437.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64808 Cc: 64808@debbugs.gnu.org, maxim.cournoyer@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Something like this works: ANDROID_HOME=/tmp/sdk sdkmanager --install tools and creates a directory /tmp/sdk/tools with stuff in it. So if it works for you, I would be happy to push the new package. Andreas From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 24 10:55:46 2023 Received: (at 64808) by debbugs.gnu.org; 24 Jul 2023 14:55:46 +0000 Received: from localhost ([127.0.0.1]:43770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNwyP-000232-PI for submit@debbugs.gnu.org; Mon, 24 Jul 2023 10:55:46 -0400 Received: from mx1.riseup.net ([198.252.153.129]:33004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNwyL-00022m-Dv for 64808@debbugs.gnu.org; Mon, 24 Jul 2023 10:55:45 -0400 Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4R8jrl4sTmzDrWC; Mon, 24 Jul 2023 14:55:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1690210535; bh=b2Dak/uU8jOA4lUE7cJZpzh1QlDxWkjKxpFcUmPRLB4=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=D0mrQM3xPzY22QvRi04x6fYazLtivrfQNaVavOxFckMwqt67TZJz67pLvcFRaX+ys yzO5H0vAjNbqveRDvzIavaMnIufmCM1pXiOQ9HWU2mjUYjdsWf9ELwmZn+amSMNK+5 WvYOk9bjVUArwOPSPcH/N46IIAbC1uQIf+dNiLSs= X-Riseup-User-ID: 7B6116AA722C9390291081BD56AB2092695170162EE142E998C2E750E5E9A5AD Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4R8jrW4YNrzJnsj; Mon, 24 Jul 2023 14:55:23 +0000 (UTC) References: <87y1j6o437.fsf@riseup.net> From: Distopico To: Andreas Enge Subject: Re: [bug#64808] [PATCH] gnu: Add andorid-sdkmanager. Date: Mon, 24 Jul 2023 09:51:35 -0500 In-reply-to: Message-ID: <87ttttnyuf.fsf@riseup.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 64808 Cc: 64808@debbugs.gnu.org, maxim.cournoyer@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain On 2023-07-24, Andreas Enge wrote: > Hello, > > thanks for the new package! > > According to our naming scheme, we should either call it "sdkmanager" > (the upstream name), or "python-sdkmanager" (as a Python library). Given > that it is mainly an executable, I opted for the first one; also since the > second one is a bit misleading (it does not manage SDKs for python). > > I have removed the propagated input gnutls; propagated inputs should be > used very sparingly, and so far I did not see where it would be required. > > I am not sure the package works. When running > sdkmanager --sdk_root /tmp/sdk --install > it complains that it has no rights on /opt/android-sdk. I was just guessing > how it works from "sdkmanager --help"; should --sdk_root not set the place > where to install the SDKs? > > "sdkmanager --list" does seem to work. > > I am attaching a new version of the patch; what do you think? > > Andreas > > [2. text/plain; 0001-gnu-Add-sdkmanager.patch]... The name change make sense, thank you and ANDROID_HOME is the way according with the documentation, but "gnupg" is necessary, if you test with `--container -N` you will se the error: `FileNotFoundError: [Errno 2] No such file or directory: 'gpgv'` after run `sdkmanager --list`, "gpgv" is part of gnupg package, for that reason I added it in "propagated-inputs". attached a patch with that change. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-andorid-sdkmanager.patch Content-Transfer-Encoding: quoted-printable From=2060c09ab615cb929be2215adc6b85ce3c8cd3fcfa Mon Sep 17 00:00:00 2001 From: Distopico Date: Sun, 23 Jul 2023 13:37:39 -0500 Subject: [PATCH] gnu: Add andorid-sdkmanager. * gnu/packages/android.scm (sdkmanager): New variables. =2D-- gnu/packages/android.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index f35c2398bd..1d36f9aa7d 100644 =2D-- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -12,6 +12,7 @@ ;;; Copyright =C2=A9 2020 Sergey Trofimov ;;; Copyright =C2=A9 2021 Guillaume Le Vaillant ;;; Copyright =C2=A9 2021 Petr Hodina +;;; Copyright =C2=A9 2023 Camilo Q.S. (Distopico) ;;; ;;; This file is part of GNU Guix. ;;; @@ -52,6 +53,7 @@ (define-module (gnu packages android) #:use-module (gnu packages linux) #:use-module (gnu packages pcre) #:use-module (gnu packages python) + #:use-module (guix build-system pyproject) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) @@ -721,6 +723,29 @@ (define-public fastboot "This package provides @command{fastboot}, a tool to upload file syst= em images to Android devices.") (license license:asl2.0))) =20 +(define-public sdkmanager + (package + (name "sdkmanager") + (version "0.6.5") + (source (origin + (method url-fetch) + (uri (pypi-uri "sdkmanager" version ".tar.gz")) + (sha256 + (base32 + "11as7n2mj3nbqsqb3ivyv9985n73i022s748qvjg36cs8ig50afx")))) + (build-system pyproject-build-system) + (inputs (list python-requests python-argcomplete python-urllib3)) + (propagated-inputs (list gnupg)) + (home-page "https://gitlab.com/fdroid/sdkmanager") + (synopsis + "Replacement for Android sdkmanager written in Python") + (description + "This package provides a drop-in replacement for sdkmanager from +the Android SDK. It is written in Python and part of the F-Droid +project. It implements the exact API of the Android sdkmanager command +line. The project also attempts to maintain the same terminal output.") + (license license:agpl3+))) + (define-public android-udev-rules (package (name "android-udev-rules") base-commit: 13cb9b302868b5a966a6ae177412c474084f4bf1 =2D-=20 2.41.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFJBAEBCAAzFiEEvYwofabWO6y953lVmAk6gHJUa/MFAmS+kNgVHGRpc3RvcGlj b0ByaXNldXAubmV0AAoJEJgJOoByVGvzrBgH/3oERAr8aLrGRvyV5+DkoDbkAoaE viUIgHuYpZ2WKv0RbWEQT4FrQoVbwlVhi8hp1gJLFWKLtv3+meI/WG5FdyreRbCp X+v7EwpAcJRuQ2LdsJMSfuMMoaYDTaCX+wB28o7SAThK7YdvgjQOBO3v3OHhzxCt P1gbCDxj1+q6oejbZGonyO/CqETosWSFrPzyY1mHWAMKZ6HXLt9vh7Kx3HSEWsi3 XnKkpJLCjEsGMXGoV+CDrve/kUU+MP4ehcSJHj8MEpoJ88B+jQM3PrgZwciik8RB g/jDB+iEJe2l/64L8i/Xlszo8ZfyuFyQ0LcsaSECxSuDqTCUrHE0pBjeL3k= =rweV -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 24 11:43:40 2023 Received: (at 64808) by debbugs.gnu.org; 24 Jul 2023 15:43:40 +0000 Received: from localhost ([127.0.0.1]:43824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNxim-0003N5-7o for submit@debbugs.gnu.org; Mon, 24 Jul 2023 11:43:40 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:45662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNxii-0003Mk-Qm for 64808@debbugs.gnu.org; Mon, 24 Jul 2023 11:43:39 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 817871D22; Mon, 24 Jul 2023 17:43:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tkt0ak0ODau8; Mon, 24 Jul 2023 17:43:29 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0::c64]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 37600389; Mon, 24 Jul 2023 17:43:29 +0200 (CEST) Date: Mon, 24 Jul 2023 17:43:27 +0200 From: Andreas Enge To: Distopico Subject: Re: [bug#64808] [PATCH] gnu: Add andorid-sdkmanager. Message-ID: References: <87y1j6o437.fsf@riseup.net> <87ttttnyuf.fsf@riseup.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MjONEB5T5vfpFX76" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87ttttnyuf.fsf@riseup.net> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64808 Cc: 64808@debbugs.gnu.org, maxim.cournoyer@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --MjONEB5T5vfpFX76 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Am Mon, Jul 24, 2023 at 09:51:35AM -0500 schrieb Distopico: > The name change make sense, thank you and ANDROID_HOME is the way > according with the documentation, but "gnupg" is necessary, if you test > with `--container -N` you will se the error: > `FileNotFoundError: [Errno 2] No such file or directory: 'gpgv'` > after run `sdkmanager --list`, "gpgv" is part of gnupg package, for that > reason I added it in "propagated-inputs". attached a patch with that > change. Ah, I see, of course I did have gnupg in my profile already... I think a better option is to replace the one occurrence of "gpgv" in the script by the absolute path to the binary; this also registers a reference with the package. Could you test the attached patch, please? Andreas --MjONEB5T5vfpFX76 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: attachment; filename="0001-gnu-Add-sdkmanager.patch" Content-Transfer-Encoding: 8bit >From 18c42e27cca61c868fc6b5d06ab8e13cc0a02302 Mon Sep 17 00:00:00 2001 Message-ID: <18c42e27cca61c868fc6b5d06ab8e13cc0a02302.1690213156.git.andreas@enge.fr> From: Distopico Date: Sun, 23 Jul 2023 13:41:32 -0500 Subject: [PATCH] gnu: Add sdkmanager. * gnu/packages/android.scm (sdkmanager): New variable. Co-authored-by: Andreas Enge --- gnu/packages/android.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index f35c2398bd..b9b8b89208 100644 --- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2020 Sergey Trofimov ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Petr Hodina +;;; Copyright © 2023 Camilo Q.S. (Distopico) ;;; ;;; This file is part of GNU Guix. ;;; @@ -38,6 +39,7 @@ (define-module (gnu packages android) #:use-module (guix build-system gnu) #:use-module (guix build-system go) #:use-module (guix build-system python) + #:use-module (guix build-system pyproject) #:use-module (guix build-system trivial) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages) @@ -721,6 +723,35 @@ (define-public fastboot "This package provides @command{fastboot}, a tool to upload file system images to Android devices.") (license license:asl2.0))) +(define-public sdkmanager + (package + (name "sdkmanager") + (version "0.6.5") + (source (origin + (method url-fetch) + (uri (pypi-uri "sdkmanager" version ".tar.gz")) + (sha256 + (base32 + "11as7n2mj3nbqsqb3ivyv9985n73i022s748qvjg36cs8ig50afx")))) + (build-system pyproject-build-system) + (inputs (list python-requests python-argcomplete python-urllib3 gnupg)) + (arguments + (list #:phases #~(modify-phases %standard-phases + (add-before 'build 'patch-gnupg + (lambda _ + (substitute* "sdkmanager.py" + (("gpgv") + (string-append #$(this-package-input "gnupg") + "/bin/gpgv")))))))) + (home-page "https://gitlab.com/fdroid/sdkmanager") + (synopsis "Replacement for Android sdkmanager written in Python") + (description + "This package provides a drop-in replacement for sdkmanager from +the Android SDK. It is written in Python and part of the F-Droid +project. It implements the exact API of the Android sdkmanager command +line. The project also attempts to maintain the same terminal output.") + (license license:agpl3+))) + (define-public android-udev-rules (package (name "android-udev-rules") base-commit: cf9904bcc8dd03e73675475bb4d8746dc434e415 -- 2.41.0 --MjONEB5T5vfpFX76-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 24 13:24:31 2023 Received: (at 64808) by debbugs.gnu.org; 24 Jul 2023 17:24:31 +0000 Received: from localhost ([127.0.0.1]:43947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNzIM-0006DD-VE for submit@debbugs.gnu.org; Mon, 24 Jul 2023 13:24:31 -0400 Received: from mx1.riseup.net ([198.252.153.129]:39382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNzIJ-0006Cu-8h for 64808@debbugs.gnu.org; Mon, 24 Jul 2023 13:24:29 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4R8n8P3VS9zDrcx; Mon, 24 Jul 2023 17:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1690219461; bh=jxBP/z97N3nDX+BXQ0+bMK6yFAa+6AsSEfG5tFzMavI=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=OgSMh0qVhmB+v0laVV6Go9s1OQLAwh0f4CETNz5/Ax0BQzLE2lnsFqkGdpRdQKwh/ qNd62vLPL4jkCoDA3B8nWuUhMZj9KsfdFiwGt4qkAgNujA23oca0FIuIApxxOUP60R fUtQMzw5PnxZ50mRtMJ4w7DwHuwl72HKpDgfVoQE= X-Riseup-User-ID: BB2F8FAFAEFC13D863E675F8E052B232949FB42C35DA752AC3B2BAC59ACAA19C Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4R8n8N30MzzFpnZ; Mon, 24 Jul 2023 17:24:20 +0000 (UTC) References: <87y1j6o437.fsf@riseup.net> <87ttttnyuf.fsf@riseup.net> From: Distopico To: Andreas Enge Subject: Re: [bug#64808] [PATCH] gnu: Add andorid-sdkmanager. Date: Mon, 24 Jul 2023 12:23:44 -0500 In-reply-to: Message-ID: <87cz0hnryb.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 64808 Cc: 64808@debbugs.gnu.org, maxim.cournoyer@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) That patch works fine from my side, thank you. On 2023-07-24, Andreas Enge wrote: > Am Mon, Jul 24, 2023 at 09:51:35AM -0500 schrieb Distopico: >> The name change make sense, thank you and ANDROID_HOME is the way >> according with the documentation, but "gnupg" is necessary, if you test >> with `--container -N` you will se the error: >> `FileNotFoundError: [Errno 2] No such file or directory: 'gpgv'` >> after run `sdkmanager --list`, "gpgv" is part of gnupg package, for that >> reason I added it in "propagated-inputs". attached a patch with that >> change. > > Ah, I see, of course I did have gnupg in my profile already... > I think a better option is to replace the one occurrence of "gpgv" > in the script by the absolute path to the binary; this also registers > a reference with the package. > > Could you test the attached patch, please? > > Andreas > > [2. text/plain; 0001-gnu-Add-sdkmanager.patch]... From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 24 14:23:31 2023 Received: (at 64808-done) by debbugs.gnu.org; 24 Jul 2023 18:23:31 +0000 Received: from localhost ([127.0.0.1]:44004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qO0DT-0001pa-Cq for submit@debbugs.gnu.org; Mon, 24 Jul 2023 14:23:31 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:56460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qO0DO-0001pJ-39 for 64808-done@debbugs.gnu.org; Mon, 24 Jul 2023 14:23:30 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id A66785F0; Mon, 24 Jul 2023 20:23:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0AQNtf6VBnFm; Mon, 24 Jul 2023 20:23:19 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0::c64]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 2055410D; Mon, 24 Jul 2023 20:23:19 +0200 (CEST) Date: Mon, 24 Jul 2023 20:23:17 +0200 From: Andreas Enge To: Distopico Subject: Re: [bug#64808] [PATCH] gnu: Add andorid-sdkmanager. Message-ID: References: <87y1j6o437.fsf@riseup.net> <87ttttnyuf.fsf@riseup.net> <87cz0hnryb.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87cz0hnryb.fsf@riseup.net> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64808-done Cc: maxim.cournoyer@gmail.com, 64808-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Am Mon, Jul 24, 2023 at 12:23:44PM -0500 schrieb Distopico: > That patch works fine from my side, thank you. Excellent, thank you, and congratulations for your first package in Guix! I have just pushed the commit and am closing the issue. Andreas From unknown Thu Jun 19 14:07:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 22 Aug 2023 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator