From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uJe3KrzM/V7rXQAA0tVLHw (envelope-from ) for ; Thu, 02 Jul 2020 12:02:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cAuVJrzM/V4jFQAAB5/wlQ (envelope-from ) for ; Thu, 02 Jul 2020 12:02:04 +0000 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 DF5FE9401CF for ; Thu, 2 Jul 2020 12:02:03 +0000 (UTC) Received: from localhost ([::1]:60406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqxuj-0005iI-Ge for larch@yhetil.org; Thu, 02 Jul 2020 08:02:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqxtm-00055d-Pw for bug-guix@gnu.org; Thu, 02 Jul 2020 08:01:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42949) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jqxtm-0002JG-GN for bug-guix@gnu.org; Thu, 02 Jul 2020 08:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jqxtm-00057s-EX for bug-guix@gnu.org; Thu, 02 Jul 2020 08:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42164: Combining file-append with gexps results in incomprehensible errors Resent-From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 02 Jul 2020 12:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42164 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 42164@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159369125119679 (code B ref -1); Thu, 02 Jul 2020 12:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Jul 2020 12:00:51 +0000 Received: from localhost ([127.0.0.1]:54495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jqxtb-00057L-Bh for submit@debbugs.gnu.org; Thu, 02 Jul 2020 08:00:51 -0400 Received: from lists.gnu.org ([209.51.188.17]:57386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jqxtV-00057B-Om for submit@debbugs.gnu.org; Thu, 02 Jul 2020 08:00:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqxtV-0004xY-0d for bug-guix@gnu.org; Thu, 02 Jul 2020 08:00:45 -0400 Received: from pat.zlotemysli.pl ([37.59.186.212]:58614) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqxtS-0001up-3D for bug-guix@gnu.org; Thu, 02 Jul 2020 08:00:44 -0400 Received: (qmail 26689 invoked by uid 1009); 2 Jul 2020 14:00:32 +0200 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25860. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.060242 secs); 02 Jul 2020 12:00:32 -0000 Received: from unknown (HELO gravity) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with SMTP; 2 Jul 2020 14:00:31 +0200 Date: Thu, 2 Jul 2020 14:00:29 +0200 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Message-ID: <20200702120029.vglwgexyasdzhgll@gravity> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wv3iondptoveb6kp" Content-Disposition: inline Received-SPF: none client-ip=37.59.186.212; envelope-from=kuba@kadziolka.net; helo=pat.zlotemysli.pl X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/02 08:00:32 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -2.61 X-TUID: ab7geb80FWAe --wv3iondptoveb6kp Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Consider this minimal operating-system definition: (use-modules (gnu)) (use-package-modules gcc) (operating-system (host-name "test") (timezone "UTC") (bootloader (bootloader-configuration (bootloader grub-efi-bootloader) (target "/boot/efi"))) (file-systems (cons* (file-system (device (file-system-label "root")) (mount-point "/") (type "ext4")) %base-file-systems)) (packages '()) (services (cons* (service special-files-service-type `(("/lib64" ,(directory-union "rustup-libs" (list (file-append glibc "/lib") (file-append #~#$gcc:lib "/lib"))))= )) %base-services))) I would expect this way of specifying a specific output of a package to work, but it results in the following error: ice-9/boot-9.scm:1515:18: object is not an exception of the right type #<&g= exp-input-error input: #:lib> 7f06c6b06990>> # This also happens when I omit the directory-union: (service special-files-service-type `(("/lib64" ,(file-append #~#$gcc:lib "/lib")))) What *does* work, is this variant with string-append: (service special-files-service-type `(("/lib64" ,#~(string-append #$gcc:lib "/lib")))) However, using it in the directory-union breaks again: (service special-files-service-type `(("/lib64" ,(directory-union "rustup-libs" (list (file-append glibc "/lib") #~(string-append #$gcc:lib "/lib"))= )))) ERROR: In procedure opendir: Wrong type (expecting string): (string-append "/gnu/store/mdxmdhrlkgdik6ay9= pzmmy8mjcbibpwb-gcc-7.5.0-lib" "/lib") builder for `/gnu/store/p5hf7hqxn35fgsb75s5i7326vyzb8jkr-rustup-libs.drv' f= ailed with exit code 1 I have figured out that the following does work: (service special-files-service-type `(("/lib64" ,#~(directory-union "rustup-libs" (list (string-append #$glibc "/lib") (string-append #$gcc:lib "/lib"))= )))) However, I would expect the other variants to work as well. The documentation and error messages are lacking in this regard. Regards, Jakub K=C4=85dzio=C5=82ka --wv3iondptoveb6kp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE5Xa/ss9usT31cTO54xWnWEYTFWQFAl79zF0ACgkQ4xWnWEYT FWRBAxAA0rX9+b79yvNhYWwxykCeKv2rd1YxjyEvkQdfNJ1ZUbaVORbc5AhOWrum QBe/74r5HM6Hgt6KHEDRtI3FIR7hAQ+6ufz6w5RkVCiO/pLq3iin6kg/9neDwxVC F6Mo4WXu8bQRg7QUIGTxEwpyrwq2qYYGtNn9FQ5eYxQnx8uziDWOid1N5GPQIWyq jMWBHtMyDbw7F3AYFYh913NV3qPYMym4uKWMHazpBAwf3gF1+o4xnUu1G8MDfSWT k/TvNUNWYNuI7JTvrcmb/i/A0bkCSFgKUMvlqeoyPpwmM1SSjz59/tYZv6xzWrXB Zgp7+f6ksREpIbcs5EMkg1XG9IYXLG/B7HIYHWoV/mAvXA6f3t21q+FoPKfOrwrz bDSkuB1+ZhI8JLFvpC/YQ1a5qKz8pGGsPvcxZ2cqU83eFRIZdWDKXfsObewnjTaF BpqNdIV3WXH97PF7z65dFWc9fG+95IoeLfcZw9YqXt49+45XbzQA1+gkMrAdRY4o 9sdjwCMI/lxppHeUxJn/bHlQx/a6GX9EMHl9VlPYgIUICtPSIQyHw4KB4g3f8fee sUhMOuAYA+6i32P5erRraaaqK/7KUcJm0r1e/0xOJAdtaOeXzia99+6Mj+f6Tcc1 Vru+BWD6SVSwjaY6OgPFjjI8jIcFBdf2frxiwE0+wBArth6hM54= =Ppg3 -----END PGP SIGNATURE----- --wv3iondptoveb6kp--