From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 8G8LNUcwrWX7TwAA62LTzQ:P1 (envelope-from ) for ; Sun, 21 Jan 2024 15:55:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 8G8LNUcwrWX7TwAA62LTzQ (envelope-from ) for ; Sun, 21 Jan 2024 15:55:03 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=M3Mw6mUD; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705848903; a=rsa-sha256; cv=none; b=HoeIggVgtSwEmmoATF91kgb1D9ZYCaXX0ZwFYxAgXVNsomF2QJyWMcsBKwvgc4Pd3OiFq0 me7+VwrSdl96AEwcp3sFS0A/E+gvKuR4AuOElHp2ZwowNqDJ4dZoaONhOSC7cXo0Fk0UyI k32zaAPuhxuu2a31WS7rtWU7Euq9YCaO067OCVMNUMe6Pl53kBR8urIFMtu201S/e/jVI4 cc/AE7PuRmQ6L8WB0+IhIozWcOjqsovgvQu5OUv5NxkPWwdW4jMhB6XarUR0HYog97zGgG U/1TBLCAvz9rhZUZqx/fZCOK+Xco8lllao1Bb/unU6qQw0FSdjDBrPlCR3955g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=M3Mw6mUD; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705848903; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=hYP/N1R70XoG5JwHpNWQGdu+AEJ383+BJ8kJzkCsR2Y=; b=bnZ8ewv+Fr4QQD1xDhiLPoqUavW2DR5yX01d3zUeGnqTPe1/ERu+jQcIoP1V/8lTgRXvvq WOf9BhBT6zFW8puft6xrl3LlFVsMkFbjhD9BcAnrqRfSh11dxW0baXY6iHBP/9VratJ4vM fOtvlBaqGERg/BYYkMgvQMkWVWsuj/2zV539Ro5gPd69VbQaWk/nntxV0sIEyXCPJXTvJ0 SY9qUFqYoihfhczK5W5+e63u2idEObkUvKfXj57woKvsaxHmzvq01jr3yB4yKRDUnU9bIz 3cfbUwVWryQ7qnRxm5OAjWa+h75izIVf29+b8Z5tQY1NT6qDuKSWeB7pJROhMQ== 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 A62FB742F9 for ; Sun, 21 Jan 2024 15:55:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRZDi-00075x-RZ; Sun, 21 Jan 2024 09:54:46 -0500 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 1rRZDg-00075h-BZ for help-guix@gnu.org; Sun, 21 Jan 2024 09:54:45 -0500 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rRZDe-00065F-Gm for help-guix@gnu.org; Sun, 21 Jan 2024 09:54:44 -0500 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-50e7af5f618so2461645e87.1 for ; Sun, 21 Jan 2024 06:54:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705848881; x=1706453681; darn=gnu.org; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=hYP/N1R70XoG5JwHpNWQGdu+AEJ383+BJ8kJzkCsR2Y=; b=M3Mw6mUDXsKKvpT7i14HSJhxdOhwOttLCmvTDxpCYTFpvEr3eQE/IAvS6uOM0XHEyB gQJ5vGGiJQpLxPwGtaRl4v+RtEYbPXUPvu45yhCcGDdnue0c2JriQb9tZucuQn9FLWiw hXsI0OBrdnQe5kMdjikJmZ3r25ov4U+4qTZJbVJY2xr9b5lA0JBoygxqhXNrRLkdLbt3 aRau+Qef9nnBmGYmDad+oGiZ/tGzq1zkMP772NsRvMEAlssHYa/Sz0DcMw+dlv0Vd6Eg 3gp+oIvZGZJcc04p2HoK9ywoycpdHeBQBjh2aOVa7SyXHZP+P4Rh9wYcm7LbcFCGjnm7 IQ6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705848881; x=1706453681; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hYP/N1R70XoG5JwHpNWQGdu+AEJ383+BJ8kJzkCsR2Y=; b=d6QKy2VKBC59e74FgNfX6nID1+yTaS+GrMM2jMt9Kpg9zsDL17ImK/Moq59NxFxyEN Dh1knqpXya5AEE1qcjukt1/G+sHA9UpnfxcI8/JQeKa7sItcIFcof3E3IgR8sHjesWkT P1uJOs1BXyksUMwpbErg9HgwUIuqdmUwN0X77VmlND41dktp+6UFrxAFp5gayOxN0JC+ 3IXOvTPpXQpugOAS6rYpa4s/m1JT4hPLCz3Z/oHmjwe1crcCbXm+zH0zql8GeE9zmiIM rYUPjj4VXUshJUwpR4Pcvs5tVobT8LZqnlnvS2GYbDtW9Bvs6DmvZf4MDdzUV2g+YnLs h+1w== X-Gm-Message-State: AOJu0Ywks7L7k/YdH4EdPUTV1UMhEnhUavuss3YpUKJFN1vaIqMVeUsX OZ6mSenkyOOU+ad5Ura71vJjDTJerUV3X+hbhSnTriX1CigM/lDBr40uCGFv X-Google-Smtp-Source: AGHT+IER4P1WcvzlZ8KcRlyY+pptVqJFdduCNaUzoSUmc5wa32InXROdOYBcIbssST8HHYX+K960eA== X-Received: by 2002:a05:6512:114c:b0:50e:d71a:ebd0 with SMTP id m12-20020a056512114c00b0050ed71aebd0mr1277259lfg.40.1705848880530; Sun, 21 Jan 2024 06:54:40 -0800 (PST) Received: from localhost (78.79-160-60.customer.lyse.net. [79.160.60.78]) by smtp.gmail.com with ESMTPSA id f9-20020a193809000000b0050eca2a50f9sm1677243lfa.277.2024.01.21.06.54.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 06:54:39 -0800 (PST) References: <87il3pg34z.fsf@yoga.mail-host-address-is-not-set> <87sf2qydct.fsf@lease-up.com> User-agent: mu4e 1.10.8; emacs 30.0.50 From: Lars Rustand To: help-guix@gnu.org Cc: Felix Lechner Subject: Re: Help packaging network-manager-sstp and sstp-client Date: Sun, 21 Jan 2024 15:40:02 +0100 In-reply-to: <87sf2qydct.fsf@lease-up.com> Message-ID: <87il3md9ec.fsf@yoga.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=rustand.lars@gmail.com; helo=mail-lf1-x12d.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, T_SCC_BODY_TEXT_LINE=-0.01 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: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -9.98 X-Migadu-Queue-Id: A62FB742F9 X-Migadu-Spam-Score: -9.98 X-TUID: rO/472MckJY2 Felix Lechner writes: > Hi Lars, > > I would use something like this [1] > > (arguments > (list > #:phases > #~(modify-phases %standard-phases > (add-before 'configure 'provide-shell > (lambda _ > (setenv "CONFIG_SHELL" (which "sh"))))))) > (native-inputs (list bash)) > > although the (which "sh") is kind of lazy and should probably be > replaced by something like > > #$(file-append bash "/bin/sh") > > Kind regards > Felix > > [1] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/config_002estatus-Invocation.html Thanks Felix, I tried your suggestion (with the file-append instead of which), but it still fails the same way. I tried building with `--keep-failed` and checked the contents of `environment-variables`, but the variable is not inside this file. Maybe the setenv is only taking effect inside the added phase and is not propagated to the configure phase? Also, I thought the gnu-build-system should already take care of setting this variable? From the below output I can see that it is at least set correctly for network-manager-sstp, which uses an almost identical package definition. Lars Rustand writes: > And network-manager-sstp fails with: > > checking for find... yes > ./configure: line 13451: syntax error near unexpected token `fcntl.h' > ./configure: line 13451: ` fcntl.h' > error: in phase 'configure': uncaught exception: > %exception #<&invoke-error program: "/gnu/store/m6c5hgqg569mbcjjbp8l8m7q82ascpdl-bash-5.1.16/bin/bash" arguments: ("./configure" "CONFIG_SHELL=/gnu/store/m6c5hgqg569mbcjjbp8l8m7q82ascpdl-bash-5.1.16/bin/bash" "SHELL=/gnu/store/m6c5hgqg569mbcjjbp8l8m7q82ascpdl-bash-5.1.16/bin/bash" "--prefix=/gnu/store/rly5wz0vmbfawl7xiwdkgphsjwz8lgzm-network-manager-sstp-1.3.2" "--enable-fast-install" "--build=x86_64-unknown-linux-gnu") exit-status: 2 term-signal: #f stop-signal: #f> > phase `configure' failed after 1.5 seconds > command "/gnu/store/m6c5hgqg569mbcjjbp8l8m7q82ascpdl-bash-5.1.16/bin/bash" "./configure" "CONFIG_SHELL=/gnu/store/m6c5hgqg569mbcjjbp8l8m7q82ascpdl-bash-5.1.16/bin/bash" "SHELL=/gnu/store/m6c5hgqg569mbcjjbp8l8m7q82ascpdl-bash-5.1.16/bin/bash" "--prefix=/gnu/store/rly5wz0vmbfawl7xiwdkgphsjwz8lgzm-network-manager-sstp-1.3.2" "--enable-fast-install" "--build=x86_64-unknown-linux-gnu" failed with status 2