From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: bug#32769: Packaging Next browser (Common Lisp) [work in progress] Date: Thu, 11 Oct 2018 12:44:43 +0200 Message-ID: <87sh1cu5ic.fsf@ambrevar.xyz> References: <87va6a7x9l.fsf@ambrevar.xyz> <20181011031649.5863f9a8@mailservices.uwaterloo.ca> <87va68uatd.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAYSs-0005d4-7b for bug-guix@gnu.org; Thu, 11 Oct 2018 06:45:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAYSk-0001ou-9b for bug-guix@gnu.org; Thu, 11 Oct 2018 06:45:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:39961) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAYSk-0001oe-5E for bug-guix@gnu.org; Thu, 11 Oct 2018 06:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gAYSj-0002ab-W3 for bug-guix@gnu.org; Thu, 11 Oct 2018 06:45:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87va68uatd.fsf@ambrevar.xyz> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Andy Patterson Cc: 32769@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable You were right, this was the issue. I've posted a patch upstream, it shoul= d be fixed soon. Now Next compiles. Hurray!!! :D There is one last step though: the .asd bunble works, but not the "build-program". See the wip-nextbrowser for what I've tried. I've re-used the code from Stumpwm. I narrowed down the issue to the "generate-executable" function: =2D-8<---------------cut here---------------start------------->8--- define* (generate-executable out-file #:key dependencies dependency-prefixes entry-program type #:allow-other-keys) "Generate an executable by using asdf operation TYPE, containing whithin = the image all DEPENDENCIES, and running ENTRY-PROGRAM in the case of an executable. Link in any asd files from DEPENDENCY-PREFIXES to ensure references to those libraries are retained." let* ((bin-directory (dirname out-file)) (name (basename out-file))) (mkdir-p bin-directory) (with-directory-excursion bin-directory (generate-executable-wrapper-system name dependencies) (generate-executable-entry-point name entry-program)) ... =2D-8<---------------cut here---------------end--------------->8--- The problem is that Next's system is called "next/gtk", but we cannot use t= hat as an out-file. If I use something else, say "next", then compilation fails with =2D-8<---------------cut here---------------start------------->8--- Component :NEXT not found, required by # =2D-8<---------------cut here---------------end--------------->8--- I guess there is a flaw in the logic here. The system name should be #:asd-system-name and not (name (basename out-file)) What shall we do? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlu/KZsACgkQm9z0l6S7 zH8oVwgAhblptWhgLpVnW9+gu4wsaecbHdzliU+5ogyDBUmo/ikvKnLy/mCcLaum tTDzV0N4eRsv34Fjorj4ogRO6NOacwPE7ylkfPA+ROQ3Fcm3FvUNNALd/IeSVkCl iQa054LZ1oGfzPOaaqrRLzFSLL/m3aLFVvgPPg746Ty4kwUmO+a1FykdSRllpOuK N5sUiwUVLmtk7NERk7xj3jM9O0ubVBPKIgxonWjmi1sZtzD3CspBEVxYLvHAIOwP jhklWMiSd5oF0mk1dSEyHSHDlwPOiDDuX9aEJ3tyL5pC7oNiFhOgd1lVthfmKGZJ IwEj3xt7fcUyQOce9mlkIupa2xkU7Q== =61Hg -----END PGP SIGNATURE----- --=-=-=--