From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4PS6Gu/6dGBm9wAAgWs5BA (envelope-from ) for ; Tue, 13 Apr 2021 03:59:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yAiJFO/6dGDwTgAAB5/wlQ (envelope-from ) for ; Tue, 13 Apr 2021 01:59:11 +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 770C72F33D for ; Tue, 13 Apr 2021 03:59:10 +0200 (CEST) Received: from localhost ([::1]:58580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lW8Kb-0005Qf-6W for larch@yhetil.org; Mon, 12 Apr 2021 21:59:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lW8KU-0005QS-Cd for bug-guix@gnu.org; Mon, 12 Apr 2021 21:59:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46869) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lW8KU-0004D2-52 for bug-guix@gnu.org; Mon, 12 Apr 2021 21:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lW8KU-00019Z-3S for bug-guix@gnu.org; Mon, 12 Apr 2021 21:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42164: Combining file-append with gexps results in incomprehensible errors Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 13 Apr 2021 01:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42164 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Received: via spool by 42164-submit@debbugs.gnu.org id=B42164.16182791344419 (code B ref 42164); Tue, 13 Apr 2021 01:59:02 +0000 Received: (at 42164) by debbugs.gnu.org; 13 Apr 2021 01:58:54 +0000 Received: from localhost ([127.0.0.1]:58415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lW8KM-00019D-61 for submit@debbugs.gnu.org; Mon, 12 Apr 2021 21:58:54 -0400 Received: from mail-qk1-f177.google.com ([209.85.222.177]:44696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lW8KK-000190-Cp for 42164@debbugs.gnu.org; Mon, 12 Apr 2021 21:58:52 -0400 Received: by mail-qk1-f177.google.com with SMTP id x11so16393062qkp.11 for <42164@debbugs.gnu.org>; Mon, 12 Apr 2021 18:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=eCP9jeo69rIjweNd18F+TZNcfwfHzM/nNvFBC/6tYKU=; b=YkjLq0tLyJWPETAJYBWCHxhgXm0At4st3wIRPsctAatHbFvm6PqPNeSNwzF7QwQUnr Lwfbb3mxigUFSHcJu1kqfX2rxwYug8Q3hHeYD/jxCmVPKLGv/jkdc8P/tHLbIv73WhXs JQ1oi8+i5vp+Chl0osmkguhf3DKJ1QEB4uoByHyVLVUAo7mgh0e/mSmoDel9wijUCT9E GcxJD5s6Y0PRwQGqpEEuviUYY9TYI9ibOBcrbKWO9i4EeBqjHOVa9mEw0pFbqmY7zH24 eyo7XaBOcTgEp3qqEDQ/TbHBjjdnmruE7oTkhL1+H+TfezcOmrwNKTbLzi9mHoOUkuiE uCTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=eCP9jeo69rIjweNd18F+TZNcfwfHzM/nNvFBC/6tYKU=; b=LzrD4UUe1VH7TItgGSQ5PNW2s02ob6SA5Hxdvl0OouGuBqA3leWi9B+7UqQOK6lOEr iyPA2suB4NyQn1/z7e+wLNAahzsaC4M4qzCRVa8W6IA0JP/sY0vVpG4DJw7GAKzULt2a ZsJtVciB/wxyn4WpL7yWXXeJ1ilNXCHPNmGqS4S4VUMc0Ii/e4FGa+2ivZrl5vfQn++u GPneKJWPkYCLcM51j/w7faoLyt5whsGNBqz+atjzMOY/EHImWdI97RT1y+hQjyfjWusB 9TLfUKVrgPB9iwG5dBkeeGp2S67QIdcc4q/PuVSgwFOGU6Vc77n5A+RBj6JudzHi5V93 coJw== X-Gm-Message-State: AOAM5311zXjAX5VZkZC4gW6Vr/k9TiUU3jeUpdVTylFekKeOziOpGjsg AJkrjzQL0U3dZX+9KfCeOX1qcmwHBGQ= X-Google-Smtp-Source: ABdhPJxbrtKfakn+RLARNuMbVM/E1XHhBowvBfCU/FEsfndCtnhQjgTCOlYTjbmsr3lSh6RRW9Rj8g== X-Received: by 2002:ae9:de42:: with SMTP id s63mr28977310qkf.83.1618279126582; Mon, 12 Apr 2021 18:58:46 -0700 (PDT) Received: from hurd (dsl-10-128-209.b2b2c.ca. [72.10.128.209]) by smtp.gmail.com with ESMTPSA id l17sm8699142qtk.60.2021.04.12.18.58.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Apr 2021 18:58:43 -0700 (PDT) From: Maxim Cournoyer References: <20200702120029.vglwgexyasdzhgll@gravity> Date: Mon, 12 Apr 2021 21:58:37 -0400 In-Reply-To: <20200702120029.vglwgexyasdzhgll@gravity> ("Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?="'s message of "Thu, 2 Jul 2020 14:00:29 +0200") Message-ID: <874kgbc5de.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 42164@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618279150; 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: content-transfer-encoding:content-transfer-encoding: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=eCP9jeo69rIjweNd18F+TZNcfwfHzM/nNvFBC/6tYKU=; b=N0Bf9qd0QYd+M92pFEsDVZwveDqCwV9Hu7W16t3iH9Vxn6vD+YiF02Z6Z3Seh0tZgUdGCH n66QSq3dl4373pNdmX920aoyW1KNfWqXT/jBWV9oNCAYcUvl9H30IiHwqWIriSmGtv6zQB 51gFt09teR0lIySaAIP4YeVIMa0ndxTWRVfu94IbHpJ4SCpz9fyK0ALBVQkK+mD5O00qRB KE+olDLtFOgsyLpNRgwIeCvD9M2MHWu1uVWHzr720KkCHruzF1Ed0x7FWxLDaZYfTjWQec DuPLEPB+g65PcD+3rcX3dp2uaCZnzh03gtJuYsmyZX73a7kiYCkZ55YjVPbxUw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618279150; a=rsa-sha256; cv=none; b=uO5r9fEwoH8ST31ymp91Kt7cnQi5X7nNhfJmP29RbiLIU4UAZLK3mmQDszRQScuwCLx6ma DsSgGe6/pcuRLGZaLwK3TOdQc0wJh24UbmSrq27hQG+kKBKEvpLrWxHzvK3rSTA7c2eQAW ZvqRF9kLggjo2fWKuciuPBL4ucvtYKiaeBiPbkxbOSLRa2loQ+/ETgDKSl6i9LrCEe+Lhi Nq3jqrIx2lRC8UnDS891KvOoyvH2Zclus35vgkdHj8qn4JxvrD+uJXixb8dQEmOfm29+Bl JZRu+ZHpxEvKlBX230bmT6F9459p3OXjzzoJp1vWJbVJKY54IoHxd7wZdVo5fQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=YkjLq0tL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Migadu-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=YkjLq0tL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Migadu-Queue-Id: 770C72F33D X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: 29+anNsVCNCk Hi Jakub! Jakub K=C4=85dzio=C5=82ka writes: > 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 #<= &gexp-input-error input: #:lib> 7f06c6b06990>> # [...] > 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. This seems to come up every time I have to specify a non-default package output; I've investigated the issue a bit and it seems to be caused by the lack of a gexp-compiler for the gexp object resulting from #$package:output, which is of type gexp-input as represented by, for example: #:tools> >From the REPL (lower-object (gexp (ungexp opendht "tools"))) $17 =3D # scheme@(gnu services jami)> ,run-in-store $17 While executing meta-command: ERROR: 1. &gexp-input-error: #:tools> 7f2db7427690> =20=20 So if we were to define/register a gexp-compiler for this kind of gexp-input, we could make it work, but I haven't yet investigated how easy/difficult that would be. Seems worthwhile though, this issue is quite annoying when attempting to work with specific outputs! Thanks for the detailed report. Maxim