From unknown Sun Aug 17 01:49:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36504: asdf build system: Add support for component-less .asd Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 04 Jul 2019 17:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36504 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 36504@debbugs.gnu.org Cc: Katherine Cox-Buday , Andy Patterson X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15622616227045 (code B ref -1); Thu, 04 Jul 2019 17:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jul 2019 17:33:42 +0000 Received: from localhost ([127.0.0.1]:51860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj5c6-0001pY-4U for submit@debbugs.gnu.org; Thu, 04 Jul 2019 13:33:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:42618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj5c4-0001pR-3U for submit@debbugs.gnu.org; Thu, 04 Jul 2019 13:33:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55581) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj5c2-0003PP-EC for bug-guix@gnu.org; Thu, 04 Jul 2019 13:33:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hj5c0-0002vu-Pa for bug-guix@gnu.org; Thu, 04 Jul 2019 13:33:37 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:55947) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hj5c0-0002sJ-It for bug-guix@gnu.org; Thu, 04 Jul 2019 13:33:36 -0400 X-Originating-IP: 92.169.116.127 Received: from bababa (lfbn-1-4117-127.w92-169.abo.wanadoo.fr [92.169.116.127]) (Authenticated sender: pierre@atlas.engineer) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 7A042FF806; Thu, 4 Jul 2019 17:33:23 +0000 (UTC) From: Pierre Neidhardt Date: Thu, 04 Jul 2019 19:33:23 +0200 Message-ID: <8736jlu2l8.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.70.183.199 X-Spam-Score: -1.1 (-) 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: -2.1 (--) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I've just packaged sbcl-trivia (hooray!), which implied packaging the component-less trivia.trivial subsystem. If you look at the package definition, I had to do this in order to compile successfully: =2D-8<---------------cut here---------------start------------->8--- (replace 'create-asd-file (lambda* (#:key outputs inputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (lib (string-append out "/lib/sbcl")) (level2 (assoc-ref inputs "trivia.level2"))) (mkdir-p lib) (install-file "trivia.trivial.asd" lib) ;; XXX: This .asd does not have any component and the build ;; system fails to work in this case. We should update the ;; build system to handle component-less .asd. ;; TODO: How do we append to file in Guile? It seems that ;; (open-file ... "a") gets a "Permission denied". (substitute* (string-append lib "/trivia.trivial.asd") (("\"\\)") (string-append "\") (progn (asdf/source-registry:ensure-source-registry) (setf (gethash \"trivia.level2\" asdf/source-registry:*source-registry*) #p\"" level2 "/share/common-lisp/sbcl-bundle-systems/tr= ivia.level2.asd\"))")))))) =2D-8<---------------cut here---------------end--------------->8--- Basically our build system fails when the .asd has no component, which is done sometime in Common Lisp packages where a system is only used as an indirection of a union of other systems. I suggest we update `make-asd-file' file in `lisp-utils.scm' to take that into account. Thoughts? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl0eOGMACgkQm9z0l6S7 zH8aRgf+Ju9JeaWxP9NtTcY3JNDopyfDrQiSb/kQJVtUwPK07Xuggj00jdKBwQfJ x5OpryOsTxM/JgJbf1Q03MFZ4zdPXGIkVm7RLfiuy27JN5gfOYn/y97lcSH/8fJK TksnJg/bhtCyTXCA2lQ1LBK3sMaHcS4kCw5VaOn0JbcPe3qAI2OrloqSnhypfBBw KnVQbdaiffWocBDNsvwufqYqP+r0KsTKScueq8zkG0q9zsYZWudEHD8dlfn6tKrH k7R+/ejaXAoXtkBNEDM/jM848yZ2yiAZkOtISk6YWXW8MHOXhI9G8eVGB0R4VGa8 YfAYn6TlsCHRaNXYwSzTg0aeEzNxqw== =lKoy -----END PGP SIGNATURE----- --=-=-=-- From unknown Sun Aug 17 01:49:47 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Pierre Neidhardt Subject: bug#36504: closed (Re: [bug#36504] asdf build system: Add support for component-less .asd) Message-ID: References: <87czzwb3m0.fsf@yamatai> <8736jlu2l8.fsf@ambrevar.xyz> X-Gnu-PR-Message: they-closed 36504 X-Gnu-PR-Package: guix Reply-To: 36504@debbugs.gnu.org Date: Sun, 29 Nov 2020 15:11:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1606662662-15196-1" This is a multi-part message in MIME format... ------------=_1606662662-15196-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #36504: asdf build system: Add support for component-less .asd which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 36504@debbugs.gnu.org. --=20 36504: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36504 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1606662662-15196-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 36504-done) by debbugs.gnu.org; 29 Nov 2020 15:11:01 +0000 Received: from localhost ([127.0.0.1]:52234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjOLs-0003wk-O8 for submit@debbugs.gnu.org; Sun, 29 Nov 2020 10:11:00 -0500 Received: from mout01.posteo.de ([185.67.36.65]:35425) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjOLp-0003wN-UC for 36504-done@debbugs.gnu.org; Sun, 29 Nov 2020 10:10:58 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 48E99160064 for <36504-done@debbugs.gnu.org>; Sun, 29 Nov 2020 16:10:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1606662651; bh=6on+XOI8dF6k5Z5v7vJw4gTZYm9z7Jes3EIAzUQqqSE=; h=From:To:Cc:Subject:Date:From; b=DAtxpAxxc6OG0oua4SRxJaoG7SMV/DDesAxyvz+eDfROYoQQVdfDSk9cF4LjFvOsW lmDZhgnKUaHxEEMknBJPob1asdc0uKTOe6QA5KpywWBmjpWAlhSpZBU74xn6PggoWI HnbXltFnbdOPO30KqOHWACvQcQ81m0+0J0QIKyCgk6zziV9jSV0Iho5jejtd9huL45 KkLtsrmNHjyXceo72rJEVmZtavUgIL2FWepMP1VawdQzUelo6Wt552NUcuWlTphdgi BeTWr8AEi2ovby9gfqKPUCwgIKsMcAoCLYvG60wluSO/3QLOwIx9tBPB7c9a0tRKu9 +GN6D6Ix89IDg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CkWyf26Q0z6tmL; Sun, 29 Nov 2020 16:10:49 +0100 (CET) User-agent: mu4e 1.4.13; emacs 27.1 From: Guillaume Le Vaillant To: Pierre Neidhardt Subject: Re: [bug#36504] asdf build system: Add support for component-less .asd Date: Sun, 29 Nov 2020 16:10:47 +0100 Message-ID: <87czzwb3m0.fsf@yamatai> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36504-done Cc: 36504-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: -3.3 (---) --=-=-= Content-Type: text/plain This is now fixed in the master branch (since 4dadb4977908028bb0651d43ed4813cc988db92d). --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCX8O59w8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j86JwD+KTdW7RqaTOBl8cS2DTtwsMyhDWDVXB02TwEX hDyiADsA/jZ1NtHsjkLEFtB8zKAnPNffZ2ylb4VhLKT340dUuRgN =FPoQ -----END PGP SIGNATURE----- --=-=-=-- ------------=_1606662662-15196-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Jul 2019 17:33:42 +0000 Received: from localhost ([127.0.0.1]:51860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj5c6-0001pY-4U for submit@debbugs.gnu.org; Thu, 04 Jul 2019 13:33:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:42618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj5c4-0001pR-3U for submit@debbugs.gnu.org; Thu, 04 Jul 2019 13:33:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55581) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj5c2-0003PP-EC for bug-guix@gnu.org; Thu, 04 Jul 2019 13:33:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hj5c0-0002vu-Pa for bug-guix@gnu.org; Thu, 04 Jul 2019 13:33:37 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:55947) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hj5c0-0002sJ-It for bug-guix@gnu.org; Thu, 04 Jul 2019 13:33:36 -0400 X-Originating-IP: 92.169.116.127 Received: from bababa (lfbn-1-4117-127.w92-169.abo.wanadoo.fr [92.169.116.127]) (Authenticated sender: pierre@atlas.engineer) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 7A042FF806; Thu, 4 Jul 2019 17:33:23 +0000 (UTC) From: Pierre Neidhardt To: bug-guix@gnu.org Subject: asdf build system: Add support for component-less .asd Date: Thu, 04 Jul 2019 19:33:23 +0200 Message-ID: <8736jlu2l8.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.70.183.199 X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit Cc: Katherine Cox-Buday , Andy Patterson 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: -2.1 (--) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I've just packaged sbcl-trivia (hooray!), which implied packaging the component-less trivia.trivial subsystem. If you look at the package definition, I had to do this in order to compile successfully: =2D-8<---------------cut here---------------start------------->8--- (replace 'create-asd-file (lambda* (#:key outputs inputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (lib (string-append out "/lib/sbcl")) (level2 (assoc-ref inputs "trivia.level2"))) (mkdir-p lib) (install-file "trivia.trivial.asd" lib) ;; XXX: This .asd does not have any component and the build ;; system fails to work in this case. We should update the ;; build system to handle component-less .asd. ;; TODO: How do we append to file in Guile? It seems that ;; (open-file ... "a") gets a "Permission denied". (substitute* (string-append lib "/trivia.trivial.asd") (("\"\\)") (string-append "\") (progn (asdf/source-registry:ensure-source-registry) (setf (gethash \"trivia.level2\" asdf/source-registry:*source-registry*) #p\"" level2 "/share/common-lisp/sbcl-bundle-systems/tr= ivia.level2.asd\"))")))))) =2D-8<---------------cut here---------------end--------------->8--- Basically our build system fails when the .asd has no component, which is done sometime in Common Lisp packages where a system is only used as an indirection of a union of other systems. I suggest we update `make-asd-file' file in `lisp-utils.scm' to take that into account. Thoughts? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl0eOGMACgkQm9z0l6S7 zH8aRgf+Ju9JeaWxP9NtTcY3JNDopyfDrQiSb/kQJVtUwPK07Xuggj00jdKBwQfJ x5OpryOsTxM/JgJbf1Q03MFZ4zdPXGIkVm7RLfiuy27JN5gfOYn/y97lcSH/8fJK TksnJg/bhtCyTXCA2lQ1LBK3sMaHcS4kCw5VaOn0JbcPe3qAI2OrloqSnhypfBBw KnVQbdaiffWocBDNsvwufqYqP+r0KsTKScueq8zkG0q9zsYZWudEHD8dlfn6tKrH k7R+/ejaXAoXtkBNEDM/jM848yZ2yiAZkOtISk6YWXW8MHOXhI9G8eVGB0R4VGa8 YfAYn6TlsCHRaNXYwSzTg0aeEzNxqw== =lKoy -----END PGP SIGNATURE----- --=-=-=-- ------------=_1606662662-15196-1--