help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help packaging network-manager-sstp and sstp-client


From: Lars Rustand
Subject: Re: Help packaging network-manager-sstp and sstp-client
Date: Sun, 21 Jan 2024 15:40:02 +0100
User-agent: mu4e 1.10.8; emacs 30.0.50

Felix Lechner <felix.lechner@lease-up.com> 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 <rustand.lars@gmail.com> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]