From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eJZHJ2hDX2N8VgAAbAwnHQ (envelope-from ) for ; Mon, 31 Oct 2022 04:39:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iBxNJ2hDX2PfLgAAauVa8A (envelope-from ) for ; Mon, 31 Oct 2022 04:39:20 +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 680DD17471 for ; Mon, 31 Oct 2022 04:39:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opLdS-0005wr-Mr; Sun, 30 Oct 2022 23:38:50 -0400 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 1opLdQ-0005vP-N1 for help-guix@gnu.org; Sun, 30 Oct 2022 23:38:48 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opLdP-0000wM-26 for help-guix@gnu.org; Sun, 30 Oct 2022 23:38:48 -0400 Received: by mail-wm1-x32f.google.com with SMTP id l16-20020a05600c4f1000b003c6c0d2a445so7269120wmq.4 for ; Sun, 30 Oct 2022 20:38:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=MNnK7GVVivcEtVUhKPhGR2Ck4/TxtF8T6L4SO6S0FAc=; b=m0ZLShGJ02oqRyXqrmz/PbC10VhzjEZqT/H3Mv1I2bo3EvOgAiuQpTRFozNO++Q6oO kPGQ5ktOco36PnuxfUeKUy10z+6gsQXljptUlcPzxiQPR8W/2uHbzCAYDg3DigOTN2CU ErUjFDNXhNg63Vs8JUrMkSgANlpvcI4UatVcx1YhmouO8F6gvijMLeeiuGiUWowZfBHc sacq/6y/ZA1wvY5+XhT1fbzl2IkxQs/dOrQ6TLDOGqqv13cYQDRK6ZL6CA+BJrTB816/ msq582jJOzF2Cml3AVgdLMpcpG9aHBHZfC5+lPIGtLJBegl52HmZqvbGLq6hj2PH4ruw G3Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=MNnK7GVVivcEtVUhKPhGR2Ck4/TxtF8T6L4SO6S0FAc=; b=ztpNi8Wn+ffKSf4hy4ICKJvSuu5UKg2PH9wBsme3M1E1QIj1RuSh42dPa/T+GPedwc QhlcWe/m56XQJkLPgz6vpj9TAwP9/Y/B2ChgVIX+RljxaKIydRyKYWxG0eLhZpz6JHIs AvsanTiQpf3K3KujftyAUYntnQr1aZLuKTIzdiqXWUUj+otmjhJu13C6wzGzH/vfLybe Y4HCAflIxqJcyhM3ueMur4cpW7s2h4gqFqQuhPF94tuCvCn57ZRIttJUdfZs/vL2OQjo s5J8xalnHknhv+OgUOYXd1zQNSIg2APUxCWisqzulcLI4jcBuYuIwVdjockzYwFi3dD2 yfuA== X-Gm-Message-State: ACrzQf39JHcGXXyyu6GfqAPKvaAmBiFWeu64QFr8a9GFANnqxBOQDN7d x9/05sQDVN/KFbvSqzcJsBETxvDaGGebNDO1IbKoF60wCkk= X-Google-Smtp-Source: AMsMyM73OD+/8n45K4EPesx3MpqozgWJbouUWwJYMwL8OMdUiSk1R3pinM4DMSW62qZsk+/eHZnT3D+FnJLa9e+R97A= X-Received: by 2002:a1c:25c1:0:b0:3cf:4dc4:5a97 with SMTP id l184-20020a1c25c1000000b003cf4dc45a97mr14839532wml.147.1667187523215; Sun, 30 Oct 2022 20:38:43 -0700 (PDT) MIME-Version: 1.0 From: Milind Kamble Date: Sun, 30 Oct 2022 22:38:31 -0500 Message-ID: Subject: Seeking help to create link to libstdc++.so in /lib64 To: help-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=milind.b.kamble@gmail.com; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Help-Guix" Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667187560; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=MNnK7GVVivcEtVUhKPhGR2Ck4/TxtF8T6L4SO6S0FAc=; b=BTa1re0wNXcoZP447kRzXcLbcaPVV1MCsDbSoAJ1TeAMx/BQFV2bdEhrLv6AJdxauJnXSA jK56nDQFfQG4raZEpNGCK4LMOJYaHMWiwVwuG8Bw4B0yYrUTFgrK+bukFE9ktxaKZlxxxl hvYztp3/1dMHbSZWRXUO77qbrWQFNEzoq+aLxgLjwSCDOdq7QLJbkFutUejnZBDujle31I It6LDyVfr2gs0RN/NRyBYvaWpvtu9nz5b1F2CE2fb0xuATAJH6tkV29hUCC965B+rQX+cX +0bYsd5sMjjvfqnkVeMbZeiAo6UT4J+T/+rZ6hHVaP0UmaDQb12q+L2qFEQO4A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667187560; a=rsa-sha256; cv=none; b=RJVtZLSs9eP/jyfEM3+agJNI+vsuESUucdNB+iasisJbOa+T3yqW+B+DsL9jTZhcMZGHQa KTykiMxcY05fpLKfKW2Fdxw+75hhp04kA69H/38nJ/z3pMDraYX5W7Ks4QmuFgJYh4NTmn KauB61TyP51y7rk7sfsfrL9QAMYgZg0wCB3x52LMviIFRqPQ9r2mqZetY2hJ+/3Bueh4IB 81hf2Xypy9Yp7lfolUr29X/SVCyy7CSSiyXzYpbcw+WsIDecJ6ka9cLJfWLauCjlqfBJ+S j1KDT2DHgdOKq5TukEr9F4m5fsuI9Sa9MpyePNWNs7Ay1rsnDg2g6/lHFqk5Og== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=m0ZLShGJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.46 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=m0ZLShGJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 680DD17471 X-Spam-Score: -5.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: YfV2GhMZqYAs Hello, I want to create a link in /lib64 that points to libstdc++.so. That target file is present in the gcc:lib package (not in the gcc:out). Following the recommendation in Guix info manual (Base Services), I have used the following construct in my operating-system spec: (operating-system ;; snip other stuff (services (list ;; snip other stuff (extra-special-file "/lib64/libstdc++.so.6" (file-append gcc "/lib/libstdc++.so.6"))))) This creates the link to /gnu/store/somehash-gcc-10.3.0/lib/libstdc++.so.6 which is a broken link because libstdc++.so.6 is available in gcc:lib and not gcc:out I am unable to specify (file-append gcc:lib "/lib/libstdc++.so.6") because guile complains that gcc:lib is unbound I understand it is hacky to create link in /lib64/ and the purer solution is to port the desired app into a guix package. But I don't have the expertise to craft a package definition yet. I am trying to use the Deskreen app for screen sharing, which is available as an AppImage. I have managed to run the AppImage by crafting my LD_LIBRARY_PATH and "patchelf --set-interpreter" of the AppImage binary and wanted to make these links in /lib64 where the AppImage expects it's shared libraries. Rather than getting a recommendation to not create the link, I would like to know what syntax change will achieve the desired outcome in the operating-system spec. This will help me learn the nuances and concepts of gexp. If instead of file-append, I use string-append like this: #~(string-append $#gcc:lib "/lib/libstdc++.so.6") it works to the extent that gcc:lib is expanded correctly, but then activate-service.scm script contains (activate-special-files (quote (("/lib64/libstdc++.so.6" (string-append "/gnu/store/6d0pl5khj08j3c2619jnypc8bznspgx8-gcc-10.3.0-lib" "/lib/libstdc++.so.6"))))) and which results in an error: wrong type (expecting string): (string-append "/gnu/store//gnu/store/6d0pl5khj08j3c2619jnypc8bznspgx8-gcc-10.3.0.lib" "/lib/libstdc++.so.6") So string-append needs to get evaluated in host side before dispatch to the guix daemon Any help would be educative and appreciated. Thanks, Milind Kamble