From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WFjZKiOMvWPLsQAAbAwnHQ (envelope-from ) for ; Tue, 10 Jan 2023 17:02:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2OrRKSOMvWMsKwAAG6o9tA (envelope-from ) for ; Tue, 10 Jan 2023 17:02:43 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 66712D84B for ; Tue, 10 Jan 2023 17:02:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFFJI-0008Ui-Is; Tue, 10 Jan 2023 09:09:04 -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 ) id 1pFFJG-0008RC-Fl for guix-patches@gnu.org; Tue, 10 Jan 2023 09:09:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pFFJG-0004lA-6U for guix-patches@gnu.org; Tue, 10 Jan 2023 09:09:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pFFJF-0006Yr-Q4 for guix-patches@gnu.org; Tue, 10 Jan 2023 09:09:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59592] Keep asd-systems for cl-* packages Resent-From: Guillaume Le Vaillant Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Jan 2023 14:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59592 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Charles Cc: "59592@debbugs.gnu.org" <59592@debbugs.gnu.org> Received: via spool by 59592-submit@debbugs.gnu.org id=B59592.167335969925160 (code B ref 59592); Tue, 10 Jan 2023 14:09:01 +0000 Received: (at 59592) by debbugs.gnu.org; 10 Jan 2023 14:08:19 +0000 Received: from localhost ([127.0.0.1]:39159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFFIY-0006Xj-NM for submit@debbugs.gnu.org; Tue, 10 Jan 2023 09:08:18 -0500 Received: from mout02.posteo.de ([185.67.36.66]:44695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFFIW-0006XN-2m for 59592@debbugs.gnu.org; Tue, 10 Jan 2023 09:08:17 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id EEC07240228 for <59592@debbugs.gnu.org>; Tue, 10 Jan 2023 15:08:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1673359690; bh=vx1xHYLNq3Eq10SZfNzfhWrB51iQI46lHwythOAcYus=; h=From:To:Cc:Subject:Date:From; b=P3Shq+bYr3CzbLXqCSDxPIk6xMFcb5gm0kMdrdq4gyloeS32Nr1tAGVa+6VyM/jBc XoQQ9pLewpYSDtS3W4KxN9uMNcRlIBgTlJiWxP6sPxEoEq7dvIvPJcmA0UAnJ7wdHO XGXRPEvWEkhqzlKNbkHjtkIt4FjbAJdUHQhw2zcrZ/nVFfLS3+A/nq4FvpRNMK9krT F+9k9dpWTq7a+3H1f3/7pLiVBeOg1VMLx4/J7//BMw6oRSw5t4yhDWMiVKQLWu5FFt gwMrQauE9pdcQltHZ3nPSuTh4L17WwD9QlsEnA2Uo7u9xai1HXzZ+c8X5LD5E80W6t WgV4GqIOms4DA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Nrt1y2RsGz9rxD; Tue, 10 Jan 2023 15:08:05 +0100 (CET) References: From: Guillaume Le Vaillant Date: Tue, 10 Jan 2023 13:05:02 +0000 In-reply-to: Message-ID: <87cz7mlbye.fsf@kitej> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=P3Shq+bY; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673366563; a=rsa-sha256; cv=none; b=qGDAu/OwcpbvvsfR5TTPptEyQCw4tzeptoftoh+PTeiFlyvXJQyLpl0qQlwmu/H0z0S7Rg oWQl0eGWSxP1ihct7xaji6RWwwxv/QpbuYrtFC4AHwyurYk29ayXwpHWou+IrYEICQhPv0 tM4lQ7EORk8Bc2iVgcX7TCs98yxR9zOo0lQu/wyq1TmeMSbYJHi4Yu3CT+ub2zLwJGiHmi KQDexNpekzs8VAQf+dGqb/lzPjOBsWdoIe7YRDuDX51XcPJiIdV2czo+vTXeDPw2XcKhZu WtKBZCfgufJFB22CjhiusXrXtWrip8W8rEc8TtWSpoYi8ujrpq8bV8JBzmYsNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673366563; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=0bh149eKBWRuDV8YThlEdAvxVFUxhnhYGImMRzO51A4=; b=sWvkHO8x+reG2zEfQnUbvFZ2An/rdQbAlYv5rd6N2YyUtAnOknt55YoYACwk3cgopvZs5j Ru8Zbw6POcvPSEbPQGylql8JYbHM3rcUMQoPxNynO6yr9Lmq8TD4NSL5h2itcOi945F5Hc kplkg/Z1TDznUFbvxOQAIHjeCoJkcZJf2ap/UTN4PSNSaVCebj7yhZRXkGCseHb2oQkEti nehoJNI98Ly4Do78MTBj3FYbC++82tV7vvqBoHTyFmueHQuBzSrm4FYxUZixzT4AJtV71q XpMUVScxK3KUZgAKIwPQsh7/+Iw7S3bwW1lfpR3T//bFRXcNBc+Zes9lb4ZjZw== X-Migadu-Queue-Id: 66712D84B X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=P3Shq+bY; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) X-Migadu-Spam-Score: -0.28 X-Spam-Score: -0.28 X-TUID: IeUJRI4NZGwS --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hi, The 'asd-systems' field contains the minimal subset of the ASDF systems defined by a library that, when compiled, compiles all the systems of the library. For example, the ironclad package has many subsystems: "ironclad/ciphers" "ironclad/digests" "ironclad/cipher/aes" "ironclad/cipher/threefish" "ironclad/digest/sha256" "ironclad/public-key/ed25519" ... but the 'asd-systems' field only contains "ironclad". The mcclim package also has many subsystems: "automaton" "clim" "clim-core" "clim-core/frames" "clim-core/system" "drei-mcclim" "esa-mcclim" "mcclim-backend-common" "mcclim-fonts" "slim" ... but the 'asd-systems' field only contains the top level ones, "mcclim", "clim-examples" and "clim-debugger". So you can't rely on the contents of 'asd-systems' to have a complete list of the systems defined by a library. You could get the full list by searching the for 'defsystem' forms in the sources directly, with something like: --8<---------------cut here---------------start------------->8--- find sources -name "*.asd" -exec grep "(defsystem" {} \; | cut -d ' ' -f 2 --8<---------------cut here---------------end--------------->8--- But it would only work for systems not using the package-inferred-system feature of ASDF. In my files, I found a function (I don't remember where I got it from) that can get all the dependencies of a loaded system, even the ones using package-inferred-system. Maybe it could be modified to limit the results to a specific library's source tree... --=-=-= Content-Type: application/octet-stream Content-Disposition: inline; filename=get-dependencies.lisp Content-Transfer-Encoding: base64 KGFzZGYhbG9hZC1zeXN0ZW0gOmZzZXQpCgooZGVmdW4gZ2V0LWRlcGVuZGVuY2llcyAoc3lzdGVt KQogICJSZXR1cm5zIGEgc2V0IHdpdGggYWxsIGRlcGVuZGVuY2llcyBvZiBhIGdpdmVuIHN5c3Rl bS4KICAgU3lzdGVtIHNob3VsZCBiZSBsb2FkZWQgZmlyc3QuIgogIChsYWJlbHMgKChub3JtYWxp emUgKG5hbWUpCiAgICAgICAgICAgICAoZXR5cGVjYXNlIG5hbWUKICAgICAgICAgICAgICAgKHN0 cmluZyAoc3RyaW5nLWRvd25jYXNlIG5hbWUpKQogICAgICAgICAgICAgICAoc3ltYm9sIChub3Jt YWxpemUgKHN5bWJvbC1uYW1lIG5hbWUpKSkKICAgICAgICAgICAgICAgKGxpc3QKICAgICAgICAg ICAgICAgIChsZXQgKChkZXAtdHlwZSAoZmlyc3QgbmFtZSkpCiAgICAgICAgICAgICAgICAgICAg ICAoc3VwcG9ydGVkLWRlcC10eXBlcyAobGlzdCA6dmVyc2lvbiA6ZmVhdHVyZSA6cmVxdWlyZSkp KQogICAgICAgICAgICAgICAgICAodW5sZXNzIChtZW1iZXIgZGVwLXR5cGUKICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIHN1cHBvcnRlZC1kZXAtdHlwZXMpCiAgICAgICAgICAgICAg ICAgICAgKGVycm9yICJUaGlzIGNvbXBvbmVudCBcIn5BXCIgc2hvdWxkIGhhdmUgZmlyc3QgZWxl bWVudCBmcm9tIHRoaXMgbGlzdDogfkEuIgogICAgICAgICAgICAgICAgICAgICAgICAgICBuYW1l CiAgICAgICAgICAgICAgICAgICAgICAgICAgIHN1cHBvcnRlZC1kZXAtdHlwZXMpKQogICAgICAg ICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgKG5vcm1hbGl6ZQogICAgICAgICAgICAgICAg ICAgKGNhc2UgZGVwLXR5cGUKICAgICAgICAgICAgICAgICAgICAgKDp2ZXJzaW9uIChzZWNvbmQg bmFtZSkpCiAgICAgICAgICAgICAgICAgICAgICg6ZmVhdHVyZSAodGhpcmQgbmFtZSkpCiAgICAg ICAgICAgICAgICAgICAgICg6cmVxdWlyZSAoc2Vjb25kIG5hbWUpKSkpKSkpKSkKICAgIAogICAg KGxldCAoKHByb2Nlc3NlZCAoZnNldDpzZXQpKQogICAgICAgICAgKHF1ZXVlIChmc2V0OnNldCAo bm9ybWFsaXplIHN5c3RlbSkpKSkKICAgICAgCiAgICAgIChkbyAoKGN1cnJlbnQtbmFtZSAoZnNl dDphcmIgcXVldWUpCiAgICAgICAgICAgICAgICAgICAgICAgICAoZnNldDphcmIgcXVldWUpKSkK ICAgICAgICAgICgobnVsbCBjdXJyZW50LW5hbWUpCiAgICAgICAgICAgOzsgcmV0dXJuIHJlc3Vs dAogICAgICAgICAgIHByb2Nlc3NlZCkKCiAgICAgICAgOzsgUmVtb3ZlIGN1cnJlbn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cnJlbnQtbmFtZSkpKQogICAgICAgICAgICAgICAoZGVwcyAod2hlbiBzeXN0ZW0KICAg ICAgICAgICAgICAgICAgICAgICAoYXNkZjpjb21wb25lbnQtc2lkZXdheS1kZXBlbmRlbmNpZXMg c3lzdGVtKSkpKQogICAgICAgICAgKGRvbGlzdCAoZGVwIGRlcHMpCiAgICAgICAgICAgIChsZXQg KChub3JtYWxpemVkLWRlcCAobm9ybWFsaXplIGRlcCkpKQogICAgICAgICAgICAgICh1bmxlc3Mg KG9yIChmc2V0Omxvb2t1cCBwcm9jZXNzZWQgbm9ybWFsaXplZC1kZXApCiAgICAgICAgICAgICAg ICAgICAgICAgICAgKGZzZXQ6bG9va3VwIHF1ZXVlIG5vcm1hbGl6ZWQtZGVwKSkKICAgICAgICAg ICAgICAgIChzZXRmIHF1ZXVlCiAgICAgICAgICAgICAgICAgICAgICAoZnNldDp3aXRoIHF1ZXVl IG5vcm1hbGl6ZWQtZGVwKSkpKSkpKQoKICAgICAgKHZhbHVlcyBwcm9jZXNzZWQpKSkpCgojfApE RVBFTkRFTkNJRVM+IChhc2RmOmxvYWQtc3lzdGVtIDpjbGluY2gpCkRFUEVOREVOQ0lFUz4gKGdl dC1kZXBlbmRlbmNpZXMgOmNsaW5jaCkKI3sKICAiY2ZmaSIKICAic2RsMiIKICAidWlvcCIKICAi YmFiZWwiCiAgInN3YW5rIgogICJjbGluY2giCiAgImNsLWdsdXQiCiAgImNsLWpzb24iCiAgImNs LXBwY3JlIgogICJydGctbWF0aCIKICAiY2wtb3BlbmdsIgogICJjbC1wbHVzLWMiCiAgImFsZXhh bmRyaWEiCiAgImNsLWF1dG93cmFwIgogICJnbHNsLXN5bWJvbHMiCiAgImRlZnBhY2thZ2UtcGx1 cyIKICAidHJpdmlhbC1nYXJiYWdlIgogICJ0cml2aWFsLXRpbWVvdXQiCiAgImJvcmRlYXV4LXRo cmVhZHMiCiAgInRyaXZpYWwtY2hhbm5lbHMiCiAgInRyaXZpYWwtZmVhdHVyZXMiIH0KfCMK --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCY71xOQ8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j/oaAD9Hi7gIFOPZwYWi7e8Y5TMSGAeZoxeyLSN+4JE CBw4258A/RCHTL6HI+hapEylhWPBN6jOVK9l9N2V9NnEnIpMU7L3 =tCIh -----END PGP SIGNATURE----- --==-=-=--