From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OCHrFb8kE2RtPgAASxT56A (envelope-from ) for ; Thu, 16 Mar 2023 15:16:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kJiyFb8kE2QxXQAAauVa8A (envelope-from ) for ; Thu, 16 Mar 2023 15:16:31 +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 0CB4312DE1 for ; Thu, 16 Mar 2023 15:16:31 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=worcester-edu.20210112.gappssmtp.com header.s=20210112 header.b=etE1+IKF; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678976191; 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=9FUnYql8Hdzh13IPiJEG3JFMBo5ROATE4afAuL13JKU=; b=ULnLfl3o1Ig+UdKgdXY+E0d+3xr3OmwUR+JE3hEwIunBtbASF7B4Mcz/qBGD54JCAtwU51 /AAh63AjOk14C8cZQLeKtodSqdTi5ori4m09sCFsfTW6OYZfyX2MiBjCiIAnMh0WSKrTRa VKf7em14MgNek0yOpbbBQ6snY1U79tna0wcXken+Shj+qw1EMspkinpRsju9+kbl31p05Q /5a+QMmSBn9YRDpb1X1IwEMPrNzNnpmm1IFllAgCP/nlXSlUmWzIweYKPwGVGdaRXiyF9B SX3z6WJ5Lgl6EE+wAJcTvdL5r9dniBp/aRDFY/JGrKBzTgM6ifQS1nsNZehNCw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=worcester-edu.20210112.gappssmtp.com header.s=20210112 header.b=etE1+IKF; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678976191; a=rsa-sha256; cv=none; b=GTfA+buxImeliNS80dVLt4FP1BJe7dZFFdzryVQq/RY/JXwPGHOwUJx+eOklw6wjVmi3TP tyZwatvTaSQKv3JQc7hy9WcBVTbOZKhXJmuPRtWLOJKOTRtq+CHPilfG4QAP7+3ZlnYWYe lDRzVmrMtkugLowUXaLJTHbPE9CMZIM7dEbJMhvAZ5GfNDwVrUDkRK9tpZrywwpy1czSsb mAJxyXo8xqnz9fi5uiMKnLmK4qW/jpoy7TQ4/UOGM0QLrmNGYI+BUW6l1pSs1N3gNgERmm DjXxIYWF4jMKfuZso97nRbwU84oueq2+rEL8XUUnLfZSimeD1Qay8WYuvfm8PQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pcoOo-0002Jr-HW; Thu, 16 Mar 2023 10:16:10 -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 1pcoOm-0002JX-6B for help-guix@gnu.org; Thu, 16 Mar 2023 10:16:08 -0400 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pcoOj-00015y-18 for help-guix@gnu.org; Thu, 16 Mar 2023 10:16:07 -0400 Received: by mail-qt1-x833.google.com with SMTP id h19so1831183qtn.1 for ; Thu, 16 Mar 2023 07:16:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=worcester-edu.20210112.gappssmtp.com; s=20210112; t=1678976163; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=9FUnYql8Hdzh13IPiJEG3JFMBo5ROATE4afAuL13JKU=; b=etE1+IKFRKX6JhEuQvLl0Y6ipiPn8IqC/n+inb2UUBfc31VLxS8MxfZO5mFjovTQWb 4/MHUb72+DtvTN8nP4XOICn0G/3b5ZtYu1GCJaoblCvz89RCfbrmufxaqc5l1PJ6JENi 8J0RNns54VCoOrkVtToykf4LxLtkJWk0RNnvv29aW4ePDtaiqyWWcMroaPu0/fqQeoGw NBJegGYKsl1j9NpZOfEwYDwwqflgVOtHu/KBtMw3A7eCalan6eZYxdWw3U5WYSJr7aRO BPqaMljHOJb2Zq/j3zvBn4fFX0wU8up9S5NTLbNi2yT0xkIMCCsCMkQ/Dohv6rwjHEuy PCBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678976163; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9FUnYql8Hdzh13IPiJEG3JFMBo5ROATE4afAuL13JKU=; b=f0j5Zfh6IYd7ZemAlzik1sUxauxlZJmKfZ6si0x5CKism8p9aZAmh18KLALCXUOvtT AqaKoWkfYOXljICfqR2nOG7NIhI5Ht7wRkzgts48tAIrQCQiXULLeODg5zwnQ5PYbuat OO174kMiV5XY0orJiu3LxefWBCpkLkngwnH2dP9vp8kS8My7nW5Eww2+04hKms1/s4qd 3q+NWCsPKHElL6j7X42+m1GjYGlFNb0au+YcxStIxNWGStF1T1etjU54PhowdOc5wfTm Mz1WJm8nYaAcH/Mr37xyGb2GsRa/ASLgbzR/EbLNF1sY6jzL4yRiL41HcZU2XL++07IU 5rUQ== X-Gm-Message-State: AO0yUKWxpHhQ3N9lKUbBtmNO4PBCMxdLqEHlyOUF62GVkXeDEyDYXVwp XhLKk74inJcH6vmfAwSKIo0xy/C2hiQXv8vnbzzeiytsy0UqxFfHS5s= X-Google-Smtp-Source: AK7set+qccelgUL8ehOerwfnVvCyZDJ0tN249jxAS6YGzWyR4ew7cwn7kGb+vPddQQqbSYzfisSQtmRhMaVZmyhzJ5w= X-Received: by 2002:ac8:5a4a:0:b0:3d9:d44:3c4d with SMTP id o10-20020ac85a4a000000b003d90d443c4dmr247521qta.1.1678976163271; Thu, 16 Mar 2023 07:16:03 -0700 (PDT) MIME-Version: 1.0 From: "Thompson, David" Date: Thu, 16 Mar 2023 10:15:52 -0400 Message-ID: Subject: Issue with 'guix shell' for Guile projects on non-Guix distros To: help-guix Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::833; envelope-from=dthompson2@worcester.edu; helo=mail-qt1-x833.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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: X-Migadu-Queue-Id: 0CB4312DE1 X-Spam-Score: -11.16 X-Migadu-Spam-Score: -11.16 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: Wkq1SihGRdfp Hey everyone, At Spritely we've run into a situation where 'guix shell' doesn't "just work" for setting up a development environment and we're wondering about the best way to fix it. We're experiencing this issue with our guile-goblins project currently, but this appears to be a more general problem that likely affects most projects that use Guile's guile.m4 autoconf code. Here's the context: Someone wants to build guile-goblins from a Git checkout using their non-Guix, FHS distro. However, they happen to have Guile 3 installed to /usr via the host distro's package manager. They install Guix, run 'guix shell', then './bootstrap.sh' and that all works fine. Then they run './configure' and this happens: $ ./configure checking for a BSD-compatible install... /gnu/store/w7ag4ilvb6inp9vc71dxzmdkz738m37w-profile/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /gnu/store/w7ag4ilvb6inp9vc71dxzmdkz738m37w-profile/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for pkg-config... /gnu/store/w7ag4ilvb6inp9vc71dxzmdkz738m37w-profile/bin/pkg-config checking pkg-config is at least version 0.9.0... yes configure: checking for guile 3.0 configure: found guile 3.0 checking for guile-3.0... /usr/bin/guile-3.0 checking for Guile version >= 3.0... 3.0.7 checking for guild-3.0... /gnu/store/w7ag4ilvb6inp9vc71dxzmdkz738m37w-profile/bin/guild checking for guile-config-3.0... no checking for Guile site directory... /gnu/store/cnfsv9ywaacyafkqdqsv2ry8f01yr7a9-guile-3.0.7/share/guile/site/3.0 checking for Guile site-ccache directory using pkgconfig... /gnu/store/cnfsv9ywaacyafkqdqsv2ry8f01yr7a9-guile-3.0.7/lib/guile/3.0/site-ccache checking for Guile extensions directory... /gnu/store/cnfsv9ywaacyafkqdqsv2ry8f01yr7a9-guile-3.0.7/lib/guile/3.0/extensions checking if (fibers) is available... no configure: error: required guile module not found: (fibers) The most important line above is: checking for guile-3.0... /usr/bin/guile-3.0 Guile's guile.m4 code checks for a 'guile-3.0' executable *before* checking for a 'guile' executable. Guix's Guile package only provides 'guile', but the host distro provides 'guile-3.0'. Unfortunately, the build environment ends up as a mix of host distro and Guix things which eventually proves fatal to the build. As a workaround, I am considering adding a package to our manifest.scm file that symlinks 'guile' to 'guile-3.0', 'guild' to 'guild-3.0', etc. so that they take priority over the host executables. Internally, we are tracking this issue here: https://gitlab.com/spritely/guile-goblins/-/issues/84 Has anyone encountered something like this before? If so, how did you deal with it? Should something be changed in Guix itself to avoid this issue altogether? - Dave