GNU bug report logs - #76662
[PATCH 0/1] Add guix AppStream catalog generation

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: Noé Lopez <noe@HIDDEN>; Keywords: patch; merged with #76661; dated Sat, 1 Mar 2025 16:46:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.
Merged 76661 76662. Request was from Noé Lopez <noe@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 76662) by debbugs.gnu.org; 1 Mar 2025 16:54:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 01 11:54:49 2025
Received: from localhost ([127.0.0.1]:42353 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1toQ6z-0003Yz-8Y
	for submit <at> debbugs.gnu.org; Sat, 01 Mar 2025 11:54:49 -0500
Received: from smtp.domeneshop.no ([2a01:5b40:0:3006::1]:46616)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <noe@HIDDEN>)
 id 1toQ6w-0003Y7-2k; Sat, 01 Mar 2025 11:54:47 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=xn--no-cja.eu; s=ds202502; h=Content-Type:MIME-Version:Message-ID:Date:To:
 From:From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:
 Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description:
 Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
 In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=PwzRnsI7Q0MZA5UqemPiLeFUfL5U9niJAwdBA3rVHMM=; b=oQdQo2Oh7Zc1WRpXi6O427RnEq
 AdDr5r6E1kjIdsCFUMgz0UTI0uPplxO5KwU+LYAVAfPZ2uJDHNIdMx5zR2rmvJyE8ZTIjL8a+swUN
 v5aDH7Mgx2m5p1uQrpVLD/vxjEDTRjZ5nD1gl/JzBcZt13gZWf7pNDyij8stxB46Dw5HRN4UfS46D
 06VYVDiV+ckp/Upgxo2hD8q0vGTcPAbH8aglwfrl2ybTy4qb5hELHHQewOaXSxgvw8tF7qb2Z2dON
 n1pPRkHyKO6S/IV3zLo0nteA8xoIhAYUA/vAIOvK1pZVrwz3Y28v0cSxtbQ+11aLbtzdSmXgOgyVr
 iQw/wO0w==;
Received: from smtp by smtp.domeneshop.no with esmtpsa (TLS1.3) tls
 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95)
 id 1toQ6p-00802H-Vn; Sat, 01 Mar 2025 17:54:40 +0100
From: =?utf-8?Q?No=C3=A9_Lopez?= <noe@HIDDEN>
To: control <at> debbugs.gnu.org, 76661 <at> debbugs.gnu.org, 76662 <at> debbugs.gnu.org
Date: Sat, 01 Mar 2025 17:54:38 +0100
Message-ID: <87ikosk7xt.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  merge 76661 76662 thanks 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 1.8 MISSING_SUBJECT        Missing Subject: header
 0.2 NO_SUBJECT             Extra score for no subject
X-Debbugs-Envelope-To: 76662
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.0 (+)

--=-=-=
Content-Type: text/plain

merge 76661 76662
thanks

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

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

iQHGBAEBCAAwFiEEXVTPJVeyOOiNwYCiLSIyQQq3QEMFAmfDO84SHG5vZUB4bi0t
bm8tY2phLmV1AAoJEC0iMkEKt0BD2i8L/jyVEwciT1pIEsd+vBAFT3b7yqje+CU2
tvTX/BSQS2lzINbwCyVtnPTIucLfjjYFrLe3N5rNy9Nyfo52UzqNp5BZ06ZoBERP
fclbK8zO1JA8ETdqvjNylL0UwRTOmNZgnnOwkzUMNoOMTTzy2Jc/cJmsCiPxfn/G
KCDU5ODYLjkqsZJOVsushuJnanes3TcrLrO9FLlsvbuisKx9jLzh3mIr1aaVwHeE
DFmIKKNn6KcMbbU9tQcSkaxw6+rdtSLNeIN7GU+w/JOoHeBPpevRJ6jwaE2tvU4B
LJdwYTjRnrzUl2w6cOKAzQ2m9uSu2S98/rr97/p8kRq0gEkWCyGdP+CAcYNaxVW2
YUHWxbxS82e7pmzK7Stq4ikILnFWCGdIZHornhaLXXhPqeWnKeesQ8O9O1qs4ofp
xQ1a+Bq8nwCTY7qodrK1sXAUotV9UFuIBulPUbVjmV+OoJlgCmdlBDtrvEYSuBRJ
+hrtxe2/t0VTpIE0pyeGqZK1Tu6Er0tCgA==
=DGgu
-----END PGP SIGNATURE-----
--=-=-=--




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

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


Received: (at submit) by debbugs.gnu.org; 1 Mar 2025 16:45:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 01 11:45:42 2025
Received: from localhost ([127.0.0.1]:42250 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1toPy9-0002jH-6Z
	for submit <at> debbugs.gnu.org; Sat, 01 Mar 2025 11:45:42 -0500
Received: from lists.gnu.org ([2001:470:142::17]:44344)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <noe@HIDDEN>) id 1toPy3-0002i1-V6
 for submit <at> debbugs.gnu.org; Sat, 01 Mar 2025 11:45:39 -0500
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 <noe@HIDDEN>) id 1toPxx-0004y2-Ji
 for guix-patches@HIDDEN; Sat, 01 Mar 2025 11:45:29 -0500
Received: from smtp.domeneshop.no ([2a01:5b40:0:3006::1])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <noe@HIDDEN>) id 1toPxu-0002qe-0G
 for guix-patches@HIDDEN; Sat, 01 Mar 2025 11:45:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=xn--no-cja.eu; s=ds202502; h=Content-Transfer-Encoding:Content-Type:
 MIME-Version:Message-ID:Date:Subject:Cc:To:From:From:Sender:Reply-To:Subject:
 Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:
 List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=3OhuIjKYE1h9MUCqmtJ4yj55m/JzhYRoiu7l2zdG+08=; b=H+K0r1T796gDf4iLlnTzCqbFNV
 HoHut51HqCJ8oOzTXRtkRfyuntP6b02JulZYifGFtecAdJs61yJKkHQuOCZhdVaBNXNKga6Jmsg8X
 jSR368RYo9Cysdi4s4UffgIwc6LHTNcfxUaiIDnHcr+ugracYZK9aBW+iPC1ntrCniQCUc+P4ib8e
 8P3df98tnkROZM3ygR11pDL7V8eOGdlg35viVLjtvqDeVCTiSLaGQiIkG9Kgdb9dRtxi8Yulp+u7Q
 UAecDe72XSx5ml+rcv3ozUk1oRIk1VA/det65oRRm40WHDxoAh40YC7PswWMDrGUeosYwn15QchOn
 1rPkAGew==;
Received: from smtp by smtp.domeneshop.no with esmtpsa (TLS1.3) tls
 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95)
 id 1toPxn-007xzn-Uc; Sat, 01 Mar 2025 17:45:20 +0100
From: =?UTF-8?q?No=C3=A9=20Lopez?= <noe@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH 0/1] Add guix AppStream catalog generation
Date: Sat,  1 Mar 2025 17:44:45 +0100
Message-ID: <cover.1740845771.git.noelopez@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Debbugs-Cc: Christopher Baines <guix@HIDDEN>, Josselin Poiret <dev@HIDDEN>, Ludovic Courtès <ludo@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN>
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a01:5b40:0:3006::1;
 envelope-from=noe@HIDDEN; helo=smtp.domeneshop.no
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
Cc: =?UTF-8?q?No=C3=A9=20Lopez?= <noelopez@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: -0.0 (/)

From: Noé Lopez <noelopez@HIDDEN>

Hi,

This patch adds a new “guix appstream” command that generates an AppStream
catalog out of all packages contained in the current guix (channels included).

This patch is part of my work on PackageKit integration and is needed for
Gnome Software and Discover to recognise packages.  The installation of the
xml file is intentionaly left out for now, but I imagine it could be done
using a (home) service.  Similarly, the xml file presents some shortcomings:

– It contains too many packages, and does not take into account the different
  package outputs.

– It does not respect packages’ metainfo files or desktop entries, as you need
  a built package for that.  This means no icons, wrong rDNS ids, and only the
  metainfo guix knows.

It doesn’t need to be merged in this version but I am posting to get some
reviews on what I currently have :)

If you want to try out the command, the resulting xml file should be placed in
/var/lib/swcatalog/xml/ and can be tested using appstreamcli:

noe@lignux ~/src/guix-appstream [env]$ ./pre-inst-env guix appstream
[…]
Created guix-1.4.0-31.121e96d.xml with 33125 packages
noe@lignux ~/src/guix-appstream [env]$ sudo cp guix-1.4.0-31.121e96d.xml /var/lib/swcatalog/xml/
noe@lignux ~/src/guix-appstream [env]$ guix shell appstream -- appstreamcli search openttd
Identifier: openttd [desktop-application]
Name: openttd
Summary: Transportation economics simulator game
Package: openttd
Homepage: https://www.openttd.org/
\---
Identifier: catcodec [desktop-application]
Name: catcodec
Summary: Encode/decode OpenTTD sounds
Package: catcodec
Homepage: https://dev.openttdcoop.org/projects/catcodec

Noé Lopez (1):
  guix appstream: New script.

 Makefile.am                |   1 +
 guix/import/utils.scm      |  14 +++++
 guix/scripts/appstream.scm | 125 +++++++++++++++++++++++++++++++++++++
 3 files changed, 140 insertions(+)
 create mode 100644 guix/scripts/appstream.scm


base-commit: d1e3c41abdda9f8e9f1283376feb853670393793
-- 
2.48.1





Acknowledgement sent to Noé Lopez <noe@HIDDEN>:
New bug report received and forwarded. Copy sent to guix@HIDDEN, dev@HIDDEN, ludo@HIDDEN, othacehe@HIDDEN, zimon.toutoune@HIDDEN, me@HIDDEN, guix-patches@HIDDEN. Full text available.
Report forwarded to guix@HIDDEN, dev@HIDDEN, ludo@HIDDEN, othacehe@HIDDEN, zimon.toutoune@HIDDEN, me@HIDDEN, guix-patches@HIDDEN:
bug#76662; 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: Sat, 1 Mar 2025 17:00:02 UTC

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