GNU bug report logs - #57118
[PATCH] gnu: Add linode-cli.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: raingloom <raingloom@HIDDEN>; Keywords: patch; dated Wed, 10 Aug 2022 14:20:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 57118 <at> debbugs.gnu.org:


Received: (at 57118) by debbugs.gnu.org; 1 Apr 2024 07:54:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 01 03:54:00 2024
Received: from localhost ([127.0.0.1]:49428 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rrCUS-0005dj-16
	for submit <at> debbugs.gnu.org; Mon, 01 Apr 2024 03:54:00 -0400
Received: from mailtransmit05.runbox.com ([2a0c:5a00:149::26]:60960)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <steve@HIDDEN>) id 1rrCUP-0005dT-Kw
 for 57118 <at> debbugs.gnu.org; Mon, 01 Apr 2024 03:53:59 -0400
Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com)
 by mailtransmit05.runbox.com with esmtps (TLS1.2) tls
 TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93)
 (envelope-from <steve@HIDDEN>) id 1rrCUE-00E3Zc-FB
 for 57118 <at> debbugs.gnu.org; Mon, 01 Apr 2024 09:53:46 +0200
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=futurile.net; s=selector1; h=Content-Type:MIME-Version:Message-ID:Subject:
 To:From:Date; bh=krUFdCZeubDL91LKol2gkTg6ntPCyAYQEvPxOF38dxQ=; b=kA0U3pKY7xf0
 vuqqm0dEAmY1lil+njNz3qjvo7XjYKiDQz9duy/y0OeJ98b8r52mMWSnVbvy8fmcn+AV2w3O+w9uM
 cha4G5Fia84mPg9QiutPxZCxzHyi/WneFM+qQ9w1s9o7+s+3ua5mH2uwGi7uL7/ENOz/FJ+ewgVav
 jWu/KbHot07fOAjo0/gyxUgj7havi0+5VHOXD9ChSMDYkTHZSP60xp1X/3pCgGNhM7si2JZOjJOY3
 yGYE7kXqPGJr37dv4x2fiZX4aTCQexje6JetTXnIhQqlaH0oz1pcithZtznxrR+OU7JbxEWkXk8uU
 /nIjHjAFimBXBpf4abYjGg==;
Received: from [10.9.9.74] (helo=submission03.runbox)
 by mailtransmit03.runbox with esmtp (Exim 4.86_2)
 (envelope-from <steve@HIDDEN>) id 1rrCUE-0002Qc-40
 for 57118 <at> debbugs.gnu.org; Mon, 01 Apr 2024 09:53:46 +0200
Received: by submission03.runbox with esmtpsa [Authenticated ID (641962)]
 (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93)
 id 1rrCUC-00AvGi-3Z
 for 57118 <at> debbugs.gnu.org; Mon, 01 Apr 2024 09:53:44 +0200
Date: Mon, 1 Apr 2024 08:53:43 +0100
From: Steve George <steve@HIDDEN>
To: 57118 <at> debbugs.gnu.org
Subject: RE: Linode-cli license
Message-ID: <ZgpoB1zRUOMWE45k@t25sg>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 57118
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hi,

Bumping this linode-cli patch.

According to the repository there is now a license (Apache 2).

https://github.com/linode/linode-api-docs/blob/development/LICENSE.txt

Steve




Information forwarded to guix-patches@HIDDEN:
bug#57118; Package guix-patches. Full text available.

Message received at 57118 <at> debbugs.gnu.org:


Received: (at 57118) by debbugs.gnu.org; 17 Sep 2022 20:24:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 17 16:24:42 2022
Received: from localhost ([127.0.0.1]:47241 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZeMj-0003MY-VF
	for submit <at> debbugs.gnu.org; Sat, 17 Sep 2022 16:24:42 -0400
Received: from albert.telenet-ops.be ([195.130.137.90]:35228)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maximedevos@HIDDEN>) id 1oZeMf-0003MN-JB
 for 57118 <at> debbugs.gnu.org; Sat, 17 Sep 2022 16:24:40 -0400
Received: from [192.168.144.79] ([188.188.137.137])
 by albert.telenet-ops.be with bizsmtp
 id M8Qa280032y2tiL068QbQ1; Sat, 17 Sep 2022 22:24:36 +0200
Message-ID: <d46b2c19-a31f-bdb8-dfab-3937a77832ae@HIDDEN>
Date: Sat, 17 Sep 2022 22:24:33 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
 Thunderbird/91.12.0
Content-Language: en-US
To: Csepp <raingloom@HIDDEN>, =?UTF-8?Q?Ludovic_Court=c3=a8s?=
 <ludo@HIDDEN>
References: <20220810141843.21051-1-raingloom@HIDDEN>
 <20220815114227.10424-1-raingloom@HIDDEN> <87pmgg85ep.fsf_-_@HIDDEN>
 <87v8q728un.fsf@HIDDEN> <878rn35vdh.fsf@HIDDEN>
 <87fshac0bb.fsf@HIDDEN>
From: Maxime Devos <maximedevos@HIDDEN>
Subject: Re: [bug#57118] [PATCH] gnu: Add linode-cli.
In-Reply-To: <87fshac0bb.fsf@HIDDEN>
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="------------LWieHC43WL2UVLT0uqbkv5Db"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22;
 t=1663446276; bh=eSCZYt4fk3+2qJKLpSimE/iqIPQBHGaxDaI1ttbju1w=;
 h=Date:To:Cc:References:From:Subject:In-Reply-To;
 b=EfR4aYALlAq1D41ILEFQujkcB4HeJt0IbF652w/Hi1H/G0RBYtQXp4FI6kU3L1J63
 RIjoX2+WH/olcH2eV6jEM6uqSmdeQ+IWtM9j1jV+Nfr1hZqBnmooEfGX+na5laVuSH
 VKRuNYXeNuAv1NZrmNCyO67esEFkDSpEC8c24lnJoMtInYgzuYF3tIboqw8WAynPPA
 p6f3m12V1Lc7eClHRtXWeoqdEGO8gYNDx6gaPus/hIZVtxHTOholo9pvRiz45CR2JG
 vOb92YKtZO65bK5faC6bZPNtGefYPte+MVZEthhOaWNs0BqVtzZF6hHfnCX6XRka/w
 v/+UocrtWd1Ow==
X-Spam-Score: -1.8 (-)
X-Debbugs-Envelope-To: 57118
Cc: 57118 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.8 (--)

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------LWieHC43WL2UVLT0uqbkv5Db
Content-Type: multipart/mixed; boundary="------------EgiXZPkGVoo0vUmYIMaEjblT";
 protected-headers="v1"
From: Maxime Devos <maximedevos@HIDDEN>
To: Csepp <raingloom@HIDDEN>, =?UTF-8?Q?Ludovic_Court=c3=a8s?=
 <ludo@HIDDEN>
Cc: 57118 <at> debbugs.gnu.org
Message-ID: <d46b2c19-a31f-bdb8-dfab-3937a77832ae@HIDDEN>
Subject: Re: [bug#57118] [PATCH] gnu: Add linode-cli.
References: <20220810141843.21051-1-raingloom@HIDDEN>
 <20220815114227.10424-1-raingloom@HIDDEN> <87pmgg85ep.fsf_-_@HIDDEN>
 <87v8q728un.fsf@HIDDEN> <878rn35vdh.fsf@HIDDEN>
 <87fshac0bb.fsf@HIDDEN>
In-Reply-To: <87fshac0bb.fsf@HIDDEN>

--------------EgiXZPkGVoo0vUmYIMaEjblT
Content-Type: multipart/mixed; boundary="------------peRqv8tLv7crbRSnGuxIby8y"

--------------peRqv8tLv7crbRSnGuxIby8y
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: base64

DQoNCk9uIDAxLTA5LTIwMjIgMjI6MDYsIENzZXBwIHdyb3RlOg0KPiANCj4gWy4uLl0NCj4g
T2ggd293LCB0aGUgZ2l0IHJlcG8gc3VnZ2VzdGlvbiB3YXMgaGVhZCBvbi4gIEkgZGlkbid0
IHRoaW5rIHRoZXkgd291bGQNCj4gaGF2ZSBzb21ldGhpbmcgbGlrZSB0aGF0LCBidXQgYWxh
cywgdGhleSBkbzoNCj4gaHR0cHM6Ly9naXRodWIuY29tL2xpbm9kZS9saW5vZGUtYXBpLWRv
Y3MvYmxvYi9kZXZlbG9wbWVudC9vcGVuYXBpLnlhbWwNCj4gDQo+IEl0IGRvZXNuJ3QgcmVh
bGx5IGhhdmUgYSBsaWNlbnNlIHRob3VnaCwgSSdtIG5vdCBzdXJlIGlmIHRoYXQncyBhIHBy
b2JsZW0uDQo+IFdvdWxkIHdlIGdldCBpbiB0cm91YmxlIGZvciByZWRpc3RyaWJ1dGluZyBp
dD8NCg0KU291cmNlcyAobm90IG9ubHkgY29kZSAoKiksIGFsc28gaXQncyBkb2N1bWVudGF0
aW9uKSBuZWVkcyB0byBub3Qgb25seSANCmJlIHJlZGlzdHJpYnV0YWJsZSwgYnV0IGFsc28g
bW9kaWZpYWJsZS4NCg0KKCopIGl0IHNlZW1zIG1vc3RseSAnZGF0YScgKCsgZG9jdW1lbnRh
dGlvbiksIGJ1dCBpdCdzIGRhdGEgdGhhdCB0byBhIA0KbGFyZ2UgZGVncmVlIGNvbnRyb2xz
IGhvdyB0aGUgcHJvZ3JhbSB3b3Jrcywgc28gc2VlbXMgcmF0aGVyIGltcG9ydGFudCANCmRh
dGEgdG8gbWUgKGUuZy4gd2hhdCBpZiB5b3UgbWFrZSB5b3VyIG93biB2ZXJzaW9uIG9mICds
aW5vZGUuY29tJyBhbmQgDQpuZWVkIHRvIHR3ZWFrIHRoZSBvcGVuYXBpLnlhbWwgdG8gYWNj
b21vZGF0ZSB5b3VyIG93biB2ZXJzaW9uIHRoYXQgDQpiZWhhdmVzIGRpZmZlcmVudGx5IGlu
IHNvbWUgYXNwZWN0cywgb3IgcmVtb3ZlcyBvciBhZGRzIHBhcnRzPykuDQoNCkdyZWV0aW5n
cywNCk1heGltZS4NCg==
--------------peRqv8tLv7crbRSnGuxIby8y
Content-Type: application/pgp-keys; name="OpenPGP_0x49E3EE22191725EE.asc"
Content-Disposition: attachment; filename="OpenPGP_0x49E3EE22191725EE.asc"
Content-Description: OpenPGP public key
Content-Transfer-Encoding: quoted-printable

-----BEGIN PGP PUBLIC KEY BLOCK-----

xjMEX4ch6BYJKwYBBAHaRw8BAQdANPb/d6MrGnGi5HyvODCkBUJPRjiFQcRU5V+m
xvMaAa/NL01heGltZSBEZXZvcyA8bWF4aW1lLmRldm9zQHN0dWRlbnQua3VsZXV2
ZW4uYmU+wpAEExYIADgWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCX4ch6AIbAwUL
CQgHAwUVCgkICwUWAgMBAAIeAQIXgAAKCRBJ4+4iGRcl7japAQC3opZ2KGWzWmRc
/gIWSu0AAcfMwyinFEEPa/QhUt2CogD/e2RdF4CYAgaRHJJmZ9WU7piKbLZ7llB4
LzgezVDHggzNJU1heGltZSBEZXZvcyA8bWF4aW1lZGV2b3NAdGVsZW5ldC5iZT7C
kAQTFggAOBYhBMHzPuIMUo/bfdcBH0nj7iIZFyXuBQJf56ycAhsDBQsJCAcDBRUK
CQgLBRYCAwEAAh4BAheAAAoJEEnj7iIZFyXujpQBAKV1SwDDl4f24rXciDlB9L8W
ycZt30CgbewMSRQk4mvbAP9dFMbVVixYBd6C8cfhR+NsOBGiOJnQABlUmgNuqGFJ
Dc44BF+HIegSCisGAQQBl1UBBQEBB0BOlzIWiJzgobMF6/cqwLaLk7jIcFSZ++c0
k9cCNT6YXwMBCAfCeAQYFggAIBYhBMHzPuIMUo/bfdcBH0nj7iIZFyXuBQJfhyHo
AhsMAAoJEEnj7iIZFyXuMr0BAJc8cl5PGvVmVuSQVKjleNl4DK1/XAaPAYPe34AE
fZJPAP9IqLCQhH/FeJanHqBP8gNdGNI2qn8RnnLVfRJgUjZ1BA=3D=3D
=3DOVqp
-----END PGP PUBLIC KEY BLOCK-----

--------------peRqv8tLv7crbRSnGuxIby8y--

--------------EgiXZPkGVoo0vUmYIMaEjblT--

--------------LWieHC43WL2UVLT0uqbkv5Db
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature"

-----BEGIN PGP SIGNATURE-----

wnsEABYIACMWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYyYtAQUDAAAAAAAKCRBJ4+4iGRcl7onk
AP9P3jnPhSnzhhxjchP6+dSBz5OFq96/lwV7YmfJr2WVhgEA9AjY/4MhgauIdzvecTEoibIrpFkj
D0Xgw5FGfvUWNAw=
=bB6R
-----END PGP SIGNATURE-----

--------------LWieHC43WL2UVLT0uqbkv5Db--




Information forwarded to guix-patches@HIDDEN:
bug#57118; Package guix-patches. Full text available.

Message received at 57118 <at> debbugs.gnu.org:


Received: (at 57118) by debbugs.gnu.org; 17 Sep 2022 20:15:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 17 16:15:10 2022
Received: from localhost ([127.0.0.1]:47234 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZeDV-00038X-Tf
	for submit <at> debbugs.gnu.org; Sat, 17 Sep 2022 16:15:10 -0400
Received: from mx0.riseup.net ([198.252.153.6]:49874)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raingloom@HIDDEN>) id 1oZeDQ-00037g-Sc
 for 57118 <at> debbugs.gnu.org; Sat, 17 Sep 2022 16:15:08 -0400
Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83])
 (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 4MVMcM3Bcmz9s2H;
 Sat, 17 Sep 2022 20:14:59 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1663445699; bh=pBsY85wPgSJ+MrfWRVJeDnL+/yprcNmASUzLKv2YNeU=;
 h=References:From:To:Cc:Subject:Date:In-reply-to:From;
 b=OPty+Dsxuh8cvmQpje9k1UxjoLdnpS9t7+dvviiYG2XMFZgRJLc2IIwuLsfIN2Q5a
 tCG73SJ67iKtudW7WnF4m6sWEBqxgsPec7woHCwWer5y3KMWxQrVVo4HcNvIQt0iIY
 nn8BJgXIUCaenxPN+JKRniofZDWFh9u2xWWvPwtU=
X-Riseup-User-ID: B8B6D6C43C015DA90B603A0B556821BE25D15E05CCD5DEEEE0E10E0E917502C5
Received: from [127.0.0.1] (localhost [127.0.0.1])
 by fews1.riseup.net (Postfix) with ESMTPSA id 4MVMcL5Tqrz5vMb;
 Sat, 17 Sep 2022 20:14:58 +0000 (UTC)
References: <20220810141843.21051-1-raingloom@HIDDEN>
 <20220815114227.10424-1-raingloom@HIDDEN> <87pmgg85ep.fsf_-_@HIDDEN>
 <87v8q728un.fsf@HIDDEN> <878rn35vdh.fsf@HIDDEN>
 <87fshac0bb.fsf@HIDDEN> <87r10uxhpe.fsf@HIDDEN>
From: Csepp <raingloom@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#57118: [PATCH] gnu: Add linode-cli.
Date: Sat, 17 Sep 2022 22:13:55 +0200
In-reply-to: <87r10uxhpe.fsf@HIDDEN>
Message-ID: <87sfkpvjuo.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 57118
Cc: 57118 <at> debbugs.gnu.org, Csepp <raingloom@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

> Hi,
>
> Csepp <raingloom@HIDDEN> skribis:
>
>> Oh wow, the git repo suggestion was head on.  I didn't think they would
>> have something like that, but alas, they do:
>> https://github.com/linode/linode-api-docs/blob/development/openapi.yaml
>>
>> It doesn't really have a license though, I'm not sure if that's a proble=
m.
>> Would we get in trouble for redistributing it?
>
> Could you open an issue upstream asking them to clarify that?
>
> Thanks,
> Ludo=E2=80=99.

Finally got around to this, let's see how they respond.

https://github.com/linode/linode-api-docs/issues/677




Information forwarded to guix-patches@HIDDEN:
bug#57118; Package guix-patches. Full text available.

Message received at 57118 <at> debbugs.gnu.org:


Received: (at 57118) by debbugs.gnu.org; 2 Sep 2022 09:13:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 02 05:13:12 2022
Received: from localhost ([127.0.0.1]:44858 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oU2jg-0003NJ-0h
	for submit <at> debbugs.gnu.org; Fri, 02 Sep 2022 05:13:12 -0400
Received: from eggs.gnu.org ([209.51.188.92]:57090)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1oU2jd-0003Mu-DN
 for 57118 <at> debbugs.gnu.org; Fri, 02 Sep 2022 05:13:09 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:50724)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1oU2jY-00041p-5f; Fri, 02 Sep 2022 05:13:04 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=jVxLMxh2unArOAcfBF6u1MtIHBQ/lwbkjP2U4aqzhnc=; b=HDtHUOvWs3YQwuqjen5O
 n7/cEcLYTtQUZRAoHluVmZjgiwzPiivhUTZn5OlF+wi+U8ffg1Kj1p/SkF9gsM+9MV6Xi3GP4mLZe
 XlkMcPG2ADGHsdiuRBWp/g0lnzd17zHEOdhXKA+aQgZE+ThuFiBWMbuLhfO+lcyblsJl6okQPFB86
 lY80mnljBS61lwD9jmUhHwJEfikMRR3OGgS3bA51NN7S/B0kXxdyjWu4MvNfInhrsqCK5WpIvX6ii
 rHfz7PDQqpBTNztsyEq6mcOiGsivkN4zA9cNn08Cgvcq1TFMVDB52+DNegKz5dvm65rxvF8cSkw73
 Ow0lsFFOLNnAig==;
Received: from [193.50.110.177] (port=47342 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1oU2jX-0002SA-8x; Fri, 02 Sep 2022 05:13:03 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Csepp <raingloom@HIDDEN>
Subject: Re: bug#57118: [PATCH] gnu: Add linode-cli.
References: <20220810141843.21051-1-raingloom@HIDDEN>
 <20220815114227.10424-1-raingloom@HIDDEN>
 <87pmgg85ep.fsf_-_@HIDDEN> <87v8q728un.fsf@HIDDEN>
 <878rn35vdh.fsf@HIDDEN> <87fshac0bb.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Sextidi 16 Fructidor an 230 de la =?utf-8?Q?R=C3=A9v?=
 =?utf-8?Q?olution=2C?= jour du Citron
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Fri, 02 Sep 2022 11:13:01 +0200
In-Reply-To: <87fshac0bb.fsf@HIDDEN> (Csepp's message of "Thu, 01 Sep 2022
 22:06:32 +0200")
Message-ID: <87r10uxhpe.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57118
Cc: 57118 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Csepp <raingloom@HIDDEN> skribis:

> Oh wow, the git repo suggestion was head on.  I didn't think they would
> have something like that, but alas, they do:
> https://github.com/linode/linode-api-docs/blob/development/openapi.yaml
>
> It doesn't really have a license though, I'm not sure if that's a problem.
> Would we get in trouble for redistributing it?

Could you open an issue upstream asking them to clarify that?

Thanks,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#57118; Package guix-patches. Full text available.

Message received at 57118 <at> debbugs.gnu.org:


Received: (at 57118) by debbugs.gnu.org; 1 Sep 2022 20:22:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 01 16:22:14 2022
Received: from localhost ([127.0.0.1]:44238 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oTqha-0008Fg-6T
	for submit <at> debbugs.gnu.org; Thu, 01 Sep 2022 16:22:14 -0400
Received: from mx1.riseup.net ([198.252.153.129]:34114)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raingloom@HIDDEN>) id 1oTqhY-0008FS-4R
 for 57118 <at> debbugs.gnu.org; Thu, 01 Sep 2022 16:22:12 -0400
Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84])
 (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 mx1.riseup.net (Postfix) with ESMTPS id 4MJXWy3nYGzDqgj;
 Thu,  1 Sep 2022 20:22:06 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1662063726; bh=AGWeiPxKDyXca40iPiTWleeC2GKEaEhLdADy3eODrTM=;
 h=References:From:To:Cc:Subject:Date:In-reply-to:From;
 b=VL/17dhJSP67BM2jlD3JfbUn9y350qfPUD1x8k5+rwcok8Agq0FaeFuElDP9F3A1X
 dVG9+UXbC8MUrBsvyIBtGgee8WjbPevXojqtGfJLbP6HMGbjGIQX5ixe3x98faZEEM
 zr1k+HsNCBvOzLlfQyb2Py7lL3I+UKx9G742l0Zo=
X-Riseup-User-ID: 7B07E4ED2ACEFEEFCF4B7C413D8625128F198AF4EA3409524673C802B62DF9A8
Received: from [127.0.0.1] (localhost [127.0.0.1])
 by fews2.riseup.net (Postfix) with ESMTPSA id 4MJXWx5Twgz1yPx;
 Thu,  1 Sep 2022 20:22:05 +0000 (UTC)
References: <20220810141843.21051-1-raingloom@HIDDEN>
 <20220815114227.10424-1-raingloom@HIDDEN> <87pmgg85ep.fsf_-_@HIDDEN>
 <87v8q728un.fsf@HIDDEN> <878rn35vdh.fsf@HIDDEN>
From: Csepp <raingloom@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#57118: [PATCH] gnu: Add linode-cli.
Date: Thu, 01 Sep 2022 22:06:32 +0200
In-reply-to: <878rn35vdh.fsf@HIDDEN>
Message-ID: <87fshac0bb.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 57118
Cc: 57118 <at> debbugs.gnu.org, Csepp <raingloom@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

> Hi,
>
> Csepp <raingloom@HIDDEN> skribis:
>
>> Ludovic Court=C3=A8s <ludo@HIDDEN> writes:
>
> [...]
>
>>>> +(define linode-openapi-spec
>>>> +  (origin
>>>> +    (method url-fetch)
>>>> +    (uri "https://www.linode.com/docs/api/openapi.yaml")
>>>> +    (sha256
>>>> +     (base32
>>>> +      "1jcjfnagjihcy03fcmn5sghdf7a80798xjgj1x7z3ncqwd5aggwg"))))
>
> [...]
>
>> I skimmed the OpenAPI spec and couldn't find any mention of how to
>> access previous versions.
>
> OK.
>
>> IMHO if there is a build failure, guix refresh -u should take care of
>> updating the hash.  It's better than trying to use an outdated API
>> description without notifying the user.
>
> I should say I don=E2=80=99t know what this file is used for.  :-)
>
> What I do know is that we should avoid having origins like that above
> that are bound to fail.  Perhaps we can find another option?  If the CLI
> tools really need the latest version of =E2=80=98openapi.yaml=E2=80=99, c=
ould they
> download it (and possibly cache it) at run time?  Perhaps there are
> already provisions for that?
>
> If the tools don=E2=80=99t strictly need the latest version, then hopeful=
ly
> Linode keeps a copy of this file in a Git repo somewhere?
>
> TIA,
> Ludo=E2=80=99.

Oh wow, the git repo suggestion was head on.  I didn't think they would
have something like that, but alas, they do:
https://github.com/linode/linode-api-docs/blob/development/openapi.yaml

It doesn't really have a license though, I'm not sure if that's a problem.
Would we get in trouble for redistributing it?




Information forwarded to guix-patches@HIDDEN:
bug#57118; Package guix-patches. Full text available.

Message received at 57118 <at> debbugs.gnu.org:


Received: (at 57118) by debbugs.gnu.org; 1 Sep 2022 08:53:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 01 04:53:21 2022
Received: from localhost ([127.0.0.1]:41144 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oTfwl-00085m-1E
	for submit <at> debbugs.gnu.org; Thu, 01 Sep 2022 04:53:21 -0400
Received: from eggs.gnu.org ([209.51.188.92]:57556)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1oTfwi-00085X-T4
 for 57118 <at> debbugs.gnu.org; Thu, 01 Sep 2022 04:53:09 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:46480)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1oTfwd-0004Ev-Dk; Thu, 01 Sep 2022 04:53:03 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=rhFn8asP1yVt1WQ0QGpyKaZey9HKeK0rjaRPqNJhOvk=; b=ZMUEfeZO59UqUez9DdXn
 0+gckDBGlD+YQhNPhhtTZP0HbxHP12C0U6f4qq9ykO4XkMxPNKqYpAZe8V2DoASEi8BA1nf04WOPo
 cctjSTDGhaiZEaCVAhN3HJ8VhMGnBoZUecmWxc5IYNCUMm65KQopCpwKBtf8QOqDzMCuaCzGSn4Jb
 dFbyftKNWCt5UD3C3CDDwPhIUJ4xyL2EV2qb+BcXjhTZp7ZMCDeR4pitJ/aMxwNDbqJ6gLp09EvjL
 /2E1yBOKk6ChD+r0nGdHHMk1bVjVZ4Eo70/0+gadw64NnQfpBCQj8a4eJKtuzYy1fJumoUhqzNwFL
 o2mKqY61VJFp9A==;
Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:65345
 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1oTfwa-0003XA-Nj; Thu, 01 Sep 2022 04:53:03 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Csepp <raingloom@HIDDEN>
Subject: Re: bug#57118: [PATCH] gnu: Add linode-cli.
References: <20220810141843.21051-1-raingloom@HIDDEN>
 <20220815114227.10424-1-raingloom@HIDDEN>
 <87pmgg85ep.fsf_-_@HIDDEN> <87v8q728un.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Quintidi 15 Fructidor an 230 de la =?utf-8?Q?R=C3=A9?=
 =?utf-8?Q?volution=2C?= jour de la Truite
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Thu, 01 Sep 2022 10:52:58 +0200
In-Reply-To: <87v8q728un.fsf@HIDDEN> (Csepp's message of "Thu, 01 Sep 2022
 03:10:32 +0200")
Message-ID: <878rn35vdh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57118
Cc: 57118 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Csepp <raingloom@HIDDEN> skribis:

> Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

[...]

>>> +(define linode-openapi-spec
>>> +  (origin
>>> +    (method url-fetch)
>>> +    (uri "https://www.linode.com/docs/api/openapi.yaml")
>>> +    (sha256
>>> +     (base32
>>> +      "1jcjfnagjihcy03fcmn5sghdf7a80798xjgj1x7z3ncqwd5aggwg"))))

[...]

> I skimmed the OpenAPI spec and couldn't find any mention of how to
> access previous versions.

OK.

> IMHO if there is a build failure, guix refresh -u should take care of
> updating the hash.  It's better than trying to use an outdated API
> description without notifying the user.

I should say I don=E2=80=99t know what this file is used for.  :-)

What I do know is that we should avoid having origins like that above
that are bound to fail.  Perhaps we can find another option?  If the CLI
tools really need the latest version of =E2=80=98openapi.yaml=E2=80=99, cou=
ld they
download it (and possibly cache it) at run time?  Perhaps there are
already provisions for that?

If the tools don=E2=80=99t strictly need the latest version, then hopefully
Linode keeps a copy of this file in a Git repo somewhere?

TIA,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#57118; Package guix-patches. Full text available.

Message received at 57118 <at> debbugs.gnu.org:


Received: (at 57118) by debbugs.gnu.org; 1 Sep 2022 01:15:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 31 21:15:40 2022
Received: from localhost ([127.0.0.1]:40795 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oTYnz-0002TW-PV
	for submit <at> debbugs.gnu.org; Wed, 31 Aug 2022 21:15:40 -0400
Received: from mx1.riseup.net ([198.252.153.129]:45650)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raingloom@HIDDEN>) id 1oTYnx-0002TJ-KN
 for 57118 <at> debbugs.gnu.org; Wed, 31 Aug 2022 21:15:38 -0400
Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83])
 (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 mx1.riseup.net (Postfix) with ESMTPS id 4MJ3501NyHzDqXL;
 Thu,  1 Sep 2022 01:15:32 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1661994932; bh=UDelt+cgRE3M6SyInbBPfYs9JglAQzoBFXXYf6YunqU=;
 h=References:From:To:Cc:Subject:Date:In-reply-to:From;
 b=CqnZ8xLjTJD0rgKTWKptK1/FAekcAZtb7ibL5oMW9a6j1+blZehGUIq2jkh0pZX+U
 +AFhlGNueSgOGOX5ZuN3X5GIDopigssGzvtO9HvChVyyjP+cj5/kZkSDnATUpY3jip
 5b9wa8+F0sUyA4DsOUMiWR16kYtOip/HzJOmpTH0=
X-Riseup-User-ID: 14BBDE1868ACCD03F0EF9ABD68ECFA553CE2BFDCCAB630CE2C68024235CE50FC
Received: from [127.0.0.1] (localhost [127.0.0.1])
 by fews1.riseup.net (Postfix) with ESMTPSA id 4MJ34z34gNz5vMx;
 Thu,  1 Sep 2022 01:15:31 +0000 (UTC)
References: <20220810141843.21051-1-raingloom@HIDDEN>
 <20220815114227.10424-1-raingloom@HIDDEN> <87pmgg85ep.fsf_-_@HIDDEN>
From: Csepp <raingloom@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#57118: [PATCH] gnu: Add linode-cli.
Date: Thu, 01 Sep 2022 03:10:32 +0200
In-reply-to: <87pmgg85ep.fsf_-_@HIDDEN>
Message-ID: <87v8q728un.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 57118
Cc: 57118 <at> debbugs.gnu.org, raingloom <raingloom@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

> Hi,
>
> raingloom <raingloom@HIDDEN> skribis:
>
>> From: Csepp <raingloom@HIDDEN>
>>
>> * gnu/packages/python-xyz.scm (linode-cli) (linode-openapi-spec): New va=
riables.
>
> [...]
>
>> +;; linode-cli would normally fetch this at build time
>> +;; TODO: is there a way to refer to previous versions? is there even a =
point
>> +;; in trying to?
>> +(define linode-openapi-spec
>> +  (origin
>> +    (method url-fetch)
>> +    (uri "https://www.linode.com/docs/api/openapi.yaml")
>> +    (sha256
>> +     (base32
>> +      "1jcjfnagjihcy03fcmn5sghdf7a80798xjgj1x7z3ncqwd5aggwg"))))
>
> Unfortunately, as you probably guess, this file was updated in place and
> the hash is now different.
>
> Is there a stable URL for the specific version we=E2=80=99d want to use h=
ere?
> Otherwise it=E2=80=99s just too shaky: the thing will fail to build a wee=
k or
> month later, when linode.com decides to update that file.
>
> With this fixed, the patch is ready to go.
>
> Thanks in advance,
> Ludo=E2=80=99.

I skimmed the OpenAPI spec and couldn't find any mention of how to
access previous versions.
IMHO if there is a build failure, guix refresh -u should take care of
updating the hash.  It's better than trying to use an outdated API
description without notifying the user.




Information forwarded to guix-patches@HIDDEN:
bug#57118; Package guix-patches. Full text available.

Message received at 57118 <at> debbugs.gnu.org:


Received: (at 57118) by debbugs.gnu.org; 31 Aug 2022 21:33:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 31 17:33:29 2022
Received: from localhost ([127.0.0.1]:40690 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oTVKy-00033R-WB
	for submit <at> debbugs.gnu.org; Wed, 31 Aug 2022 17:33:29 -0400
Received: from eggs.gnu.org ([209.51.188.92]:43298)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1oTVKw-00033E-Lz
 for 57118 <at> debbugs.gnu.org; Wed, 31 Aug 2022 17:33:27 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:33904)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1oTVKr-0007GD-D7; Wed, 31 Aug 2022 17:33:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=Tq7sBvidKAD6FsvK4IW36XKEinqzlUmTUZohNFiPh3U=; b=U08b2sTsn712uM2xY6GL
 C0nAkUjuflEHdjFbK9Wqw/ngyg+hoYXEN9eGIHO9EKeMEpmJd1H2wiA0S11ndpAY8Di6vNOPkHts9
 4Ur49dKepl3YpSa4pTjLZ8FQONK/kOvG6qb40GSL54KTdHkQOB+te8DFUHDsu3bz6MgItTxYuy4eu
 Cf252KBSxAxYas2zBcT2c9TTY+/nTCy35zeJQBeottOjqc1qwGYAbd98fxDqUMcqB135PsQStdQuc
 d9/PwLlemTmH2UDrE8BAZUo3NQ8Rtaa5jfnN579jT+PAtTxxlQcHn29nzS2CGPijFKuOn7PA6vB87
 lt/f5GAOrnj1DQ==;
Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:62710
 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1oTVKq-0001Sb-Qc; Wed, 31 Aug 2022 17:33:21 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: raingloom <raingloom@HIDDEN>
Subject: Re: bug#57118: [PATCH] gnu: Add linode-cli.
References: <20220810141843.21051-1-raingloom@HIDDEN>
 <20220815114227.10424-1-raingloom@HIDDEN>
Date: Wed, 31 Aug 2022 23:33:18 +0200
In-Reply-To: <20220815114227.10424-1-raingloom@HIDDEN>
 (raingloom@HIDDEN's message of "Mon, 15 Aug 2022 13:42:28 +0200")
Message-ID: <87pmgg85ep.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57118
Cc: 57118 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

raingloom <raingloom@HIDDEN> skribis:

> From: Csepp <raingloom@HIDDEN>
>
> * gnu/packages/python-xyz.scm (linode-cli) (linode-openapi-spec): New var=
iables.

[...]

> +;; linode-cli would normally fetch this at build time
> +;; TODO: is there a way to refer to previous versions? is there even a p=
oint
> +;; in trying to?
> +(define linode-openapi-spec
> +  (origin
> +    (method url-fetch)
> +    (uri "https://www.linode.com/docs/api/openapi.yaml")
> +    (sha256
> +     (base32
> +      "1jcjfnagjihcy03fcmn5sghdf7a80798xjgj1x7z3ncqwd5aggwg"))))

Unfortunately, as you probably guess, this file was updated in place and
the hash is now different.

Is there a stable URL for the specific version we=E2=80=99d want to use her=
e?
Otherwise it=E2=80=99s just too shaky: the thing will fail to build a week =
or
month later, when linode.com decides to update that file.

With this fixed, the patch is ready to go.

Thanks in advance,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#57118; Package guix-patches. Full text available.

Message received at 57118 <at> debbugs.gnu.org:


Received: (at 57118) by debbugs.gnu.org; 15 Aug 2022 11:43:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 15 07:43:21 2022
Received: from localhost ([127.0.0.1]:41055 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oNYV7-0006mz-Hg
	for submit <at> debbugs.gnu.org; Mon, 15 Aug 2022 07:43:21 -0400
Received: from mx0.riseup.net ([198.252.153.6]:39426)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raingloom@HIDDEN>) id 1oNYV4-0006mk-QB
 for 57118 <at> debbugs.gnu.org; Mon, 15 Aug 2022 07:43:19 -0400
Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84])
 (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 4M5sq50Yk5z9sxL
 for <57118 <at> debbugs.gnu.org>; Mon, 15 Aug 2022 11:43:13 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1660563793; bh=HRQcIWbwofe1+gtlyLgVqgh+8AjbltjeIHFyzgMf9Uo=;
 h=From:To:Cc:Subject:Date:From;
 b=PRWQxguMYYqoEVTBp+uWy9qNuY1lMpNc/d4OlO5xP0QduwUHwD83iacbUAELKMkFG
 +nEOjzetG60PeOZWayP+56w0FjQmgmsnO/E8w3kwBbI8hIF8dgZcu5r9+xeFK8uJ5g
 /fFMAHd4ik8vcxcEy7HG2+IE34Mdbn9zfaviopyI=
X-Riseup-User-ID: 1A27FB2A1BFDF6AB96CBF1AAD8C2ED13446D3F4E47902FAFF6E234DEC9B4A798
Received: from [127.0.0.1] (localhost [127.0.0.1])
 by fews2.riseup.net (Postfix) with ESMTPSA id 4M5sq41jTtz1ySb;
 Mon, 15 Aug 2022 11:43:11 +0000 (UTC)
From: raingloom <raingloom@HIDDEN>
To: 57118 <at> debbugs.gnu.org
Subject: [PATCH v2] gnu: Add linode-cli.
Date: Mon, 15 Aug 2022 13:42:28 +0200
Message-Id: <20220815114227.10424-1-raingloom@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 57118
Cc: Csepp <raingloom@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

From: Csepp <raingloom@HIDDEN>

* gnu/packages/python-xyz.scm (linode-cli) (linode-openapi-spec): New variables.
---
 gnu/packages/python-xyz.scm | 67 +++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e5326274c0..f299476f47 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30353,3 +30353,70 @@ (define-public i3-autotiling
      "Script for Sway and i3 to automatically switch the horizontal/vertical
  window split orientation.")
     (license license:gpl3)))
+
+;; linode-cli would normally fetch this at build time
+;; TODO: is there a way to refer to previous versions? is there even a point
+;; in trying to?
+(define linode-openapi-spec
+  (origin
+    (method url-fetch)
+    (uri "https://www.linode.com/docs/api/openapi.yaml")
+    (sha256
+     (base32
+      "1jcjfnagjihcy03fcmn5sghdf7a80798xjgj1x7z3ncqwd5aggwg"))))
+
+(define-public linode-cli
+  (package
+    (name "linode-cli")
+    (version "5.22.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/linode/linode-cli")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1fv53wikx745kci86xrsq9kfsgv0a65srhywdw32cab1wywwpn2z"))))
+    (build-system python-build-system)
+    (arguments (list
+                #:tests? #f ;; requires personal access token
+                #:phases
+                #~(modify-phases %standard-phases
+                    (add-after 'build 'bake-api
+                      (lambda _
+                        ;; The "build" make target tries to do some Python 2
+                        ;; stuff, so instead we just take the two lines we care
+                        ;; about:
+                        (invoke "python3" "-m" "linodecli" "bake"
+                                #+linode-openapi-spec
+                                "--skip-config")
+                        (copy-file "data-3" "linodecli/data-3")))
+                    (add-before 'install 'fix-bash-completions-path
+                      (lambda _
+                        ;; rename it so setup.py thinks it's missing and
+                        ;; doesn't try to install it to /etc
+                        (rename-file "linode-cli.sh" "completions")
+                        ;; TODO for some reason these don't work?
+                        ;; I don't use bash, so I leave it for someone else to
+                        ;; figure out.
+                        (install-file
+                         "completions"
+                         (string-append #$output "/share/bash-completion/"))))
+                    (replace 'sanity-check
+                      (lambda _
+                        ;; this way it doesn't ask for an access token
+                        (invoke "linode-cli" "--version" "--skip-config"))))))
+    (inputs
+     (list
+      python-terminaltables
+      python-requests
+      python-pyyaml))
+    (synopsis "Tool for managing Linode resources")
+    (home-page "https://www.linode.com/docs/products/tools/cli/")
+    (description
+     "A wrapper around the Linode API, which gives you the ability to manage
+your Linode account from the command line.  Almost any task that can be done
+through the Cloud Manager can also be performed through the CLI.")
+    (license license:bsd-3)))
-- 
2.37.1





Information forwarded to guix-patches@HIDDEN:
bug#57118; Package guix-patches. Full text available.

Message received at 57118 <at> debbugs.gnu.org:


Received: (at 57118) by debbugs.gnu.org; 15 Aug 2022 08:32:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 15 04:32:25 2022
Received: from localhost ([127.0.0.1]:40809 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oNVWL-0005pE-DE
	for submit <at> debbugs.gnu.org; Mon, 15 Aug 2022 04:32:25 -0400
Received: from eggs.gnu.org ([209.51.188.92]:38664)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <othacehe@HIDDEN>) id 1oNVWK-0005p2-5L
 for 57118 <at> debbugs.gnu.org; Mon, 15 Aug 2022 04:32:24 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:35072)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <othacehe@HIDDEN>)
 id 1oNVWE-0003ST-Uj; Mon, 15 Aug 2022 04:32:18 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=23yPGvGOocHjVeQlbLavc68mhMoqEdbLpS8S4KPr388=; b=doUFr9/Xqg7k1e5OME9B
 uL5iZwk2ZtpEJR63mEvvmqPZZNwk8tChdwqGmHyPgbI3jnJAyKppED+VlVGiTBOP668yy1bjAAwPg
 ftS/RX1U0v2cZ/TBrFANCk/qs69jUiLcln5iAncer4TdlxLWpRb/c3hi8K5qnbyip+ZCIdNeFci/E
 lAOXGkybtUfBDXBK4x/8RfanE+OXcWCvvXPoyahmTtnGW+uXYu79vabdfF/i8atg7FxB0oT0a3MWP
 jVeSxO/3ouaODOEg3QAxW/y28MUE00Y7pucCceJbth/nQZS48S+CnxKM6zz/UHMtxogUfhbPz4xAR
 PY6baFm9rzomnQ==;
Received: from 2a02-8429-81d2-3d01-94c9-8097-ea5c-2775.rev.sfr.net
 ([2a02:8429:81d2:3d01:94c9:8097:ea5c:2775]:45846 helo=meije)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <othacehe@HIDDEN>)
 id 1oNVWC-0004T4-OA; Mon, 15 Aug 2022 04:32:18 -0400
From: Mathieu Othacehe <othacehe@HIDDEN>
To: raingloom <raingloom@HIDDEN>
Subject: Re: bug#57118: [PATCH] gnu: Add linode-cli.
References: <20220810141843.21051-1-raingloom@HIDDEN>
Date: Mon, 15 Aug 2022 10:32:14 +0200
In-Reply-To: <20220810141843.21051-1-raingloom@HIDDEN>
 (raingloom@HIDDEN's message of "Wed, 10 Aug 2022 16:18:43 +0200")
Message-ID: <87y1vpgb5d.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57118
Cc: 57118 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)


Hey,

> * gnu/packages/python-xyz.scm (linode-cli): New variable.

You also need to mention the linode-openapi-spec variable.

> +    (synopsis "Tool for managing Linode resources")
> +    (home-page "https://www.linode.com/docs/products/tools/cli/")

These are usually at the end of the package definition.

> +                               (assoc-ref inputs
> +                                          "linode-openapi-spec")

It would be preferable to use the gexp mechanism.

> +                                   (assoc-ref outputs "out")

Here too.

> +     "A wrapper around the Linode API, which gives you the ability to manage
> +your Linode account from the command line. Almost any task that can be done
> +through the Cloud Manager can also be performed through the CLI.")

This package provides a wrapper around Linode API which gives the
ability to manage Linode accounts from the command line.  Almost ...

Sentences must be separated by two spaces.

Could you please send a v2?

Thanks,

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#57118; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Aug 2022 14:19:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 10 10:19:07 2022
Received: from localhost ([127.0.0.1]:50403 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oLmY7-0001LQ-8N
	for submit <at> debbugs.gnu.org; Wed, 10 Aug 2022 10:19:07 -0400
Received: from lists.gnu.org ([209.51.188.17]:40852)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raingloom@HIDDEN>) id 1oLmY2-0001LG-P8
 for submit <at> debbugs.gnu.org; Wed, 10 Aug 2022 10:19:05 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39774)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <raingloom@HIDDEN>)
 id 1oLmY2-000770-JL
 for guix-patches@HIDDEN; Wed, 10 Aug 2022 10:19:02 -0400
Received: from mx0.riseup.net ([198.252.153.6]:54616)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <raingloom@HIDDEN>)
 id 1oLmXz-0006U5-21
 for guix-patches@HIDDEN; Wed, 10 Aug 2022 10:19:01 -0400
Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84])
 (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 4M2sW54l08z9sl6
 for <guix-patches@HIDDEN>; Wed, 10 Aug 2022 14:18:57 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1660141137; bh=QZYuQoj/BICIrf3oIk6/ibRTUvmS1RuANKMwy1mbIZw=;
 h=From:To:Cc:Subject:Date:From;
 b=tEYDVtZQZhxW87mJUEdjOmstBUN4nUjyffAaOdhGYSfY538ihDN40/zdhhWGIRWgQ
 6AenaivCJde5bTZFqEmGZ/mR3m3PAVkuXNDLNR1yQiIwL6XI/BS4H3KNWIvF4d8SGg
 4/RM13OQavX+NP/8rSpxl0uvG7/xwTAADZtCAhZI=
X-Riseup-User-ID: 75A32E004762B468EAC2B91BA36A233193CC8588CD11B0C0D60A54FFBD4ABD88
Received: from [127.0.0.1] (localhost [127.0.0.1])
 by fews2.riseup.net (Postfix) with ESMTPSA id 4M2sW45sWnz1ySb;
 Wed, 10 Aug 2022 14:18:56 +0000 (UTC)
From: raingloom <raingloom@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add linode-cli.
Date: Wed, 10 Aug 2022 16:18:43 +0200
Message-Id: <20220810141843.21051-1-raingloom@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=198.252.153.6; envelope-from=raingloom@HIDDEN;
 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: -1.4 (-)
X-Debbugs-Envelope-To: submit
Cc: raingloom <raingloom@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

* gnu/packages/python-xyz.scm (linode-cli): New variable.
---
 gnu/packages/python-xyz.scm | 69 +++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e5326274c0..1625df48c2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30353,3 +30353,72 @@ (define-public i3-autotiling
      "Script for Sway and i3 to automatically switch the horizontal/vertical
  window split orientation.")
     (license license:gpl3)))
+
+;; linode-cli would normally fetch this at build time
+;; TODO: is there a way to refer to previous versions? is there even a point
+;; in trying to?
+(define linode-openapi-spec
+  (origin
+    (method url-fetch)
+    (uri "https://www.linode.com/docs/api/openapi.yaml")
+    (sha256
+     (base32
+      "1jcjfnagjihcy03fcmn5sghdf7a80798xjgj1x7z3ncqwd5aggwg"))))
+
+(define-public linode-cli
+  (package
+    (name "linode-cli")
+    (version "5.22.0")
+    (synopsis "Tool for managing Linode resources")
+    (home-page "https://www.linode.com/docs/products/tools/cli/")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/linode/linode-cli")
+             (commit version)))
+       (sha256
+        (base32
+         "1fv53wikx745kci86xrsq9kfsgv0a65srhywdw32cab1wywwpn2z"))))
+    (build-system python-build-system)
+    (arguments '(#:tests? #f ;; requires personal access token
+                 #:phases
+                 (modify-phases %standard-phases
+                   (add-after 'build 'bake-api
+                     (lambda* (#:key inputs #:allow-other-keys)
+                       ;; The "build" make target tries to do some Python 2
+                       ;; stuff, so instead we just take the two lines we care
+                       ;; about:
+                       (invoke "python3" "-m" "linodecli" "bake"
+                               (assoc-ref inputs
+                                          "linode-openapi-spec")
+                               "--skip-config")
+                       (copy-file "data-3" "linodecli/data-3")))
+                   (add-before 'install 'fix-bash-completions-path
+                     (lambda* (#:key outputs #:allow-other-keys)
+                       ;; rename it so setup.py thinks it's missing and
+                       ;; doesn't try to install it to /etc
+                       (rename-file "linode-cli.sh" "completions")
+                       ;; TODO for some reason these don't work?
+                       ;; I don't use bash, so I leave it for someone else to
+                       ;; figure out.
+                       (install-file "completions"
+                                  (string-append
+                                   (assoc-ref outputs "out")
+                                   "/share/bash-completion/"))))
+                   (replace 'sanity-check
+                     (lambda _
+                       ;; this way it doesn't ask for an access token
+                       (invoke "linode-cli" "--version" "--skip-config"))))))
+    (native-inputs
+     `(("linode-openapi-spec" ,linode-openapi-spec)))
+    (inputs
+     (list
+      python-terminaltables
+      python-requests
+      python-pyyaml))
+    (description
+     "A wrapper around the Linode API, which gives you the ability to manage
+your Linode account from the command line. Almost any task that can be done
+through the Cloud Manager can also be performed through the CLI.")
+    (license license:bsd-3)))
-- 
2.37.1





Acknowledgement sent to raingloom <raingloom@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#57118; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 1 Apr 2024 08:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.