unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: Lars Rustand <rustand.lars@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Help packaging network-manager-sstp and sstp-client
Date: Tue, 23 Jan 2024 09:23:44 +0200	[thread overview]
Message-ID: <Za9pgA15K-v0jFQp@3900XT> (raw)
In-Reply-To: <87il3pg34z.fsf@yoga.mail-host-address-is-not-set>

[-- Attachment #1: Type: text/plain, Size: 2022 bytes --]

On Fri, Jan 19, 2024 at 08:26:23AM +0100, Lars Rustand wrote:
> 
> Hello, I'm trying to package network-manager-sstp (and its dependency
> sstp-client), but I'm running into a weird error. I'm sure it is a very
> easy problem to solve for someone with a little more experience with the
> build-system.
> 
> From what I can tell these packages should be fairly standard autotools
> projects, but I have no real experience in using autotools neither in
> Guix packages nor elsewhere so I don't know what I'm doing here.
> 
> I would greatly appreciate it if someone could help me take a look at
> the packages and help me build them successfully.
> 
> sstp-client is failing with the following error:
> 
> --8<---------------cut here---------------start------------->8---
> ./autogen.sh: ./configure: /bin/sh: bad interpreter: No such file or directory
> error: in phase 'bootstrap': uncaught exception:
> %exception #<&invoke-error program: "./autogen.sh" arguments: () exit-status: 126 term-signal: #f stop-signal: #f>
> phase `bootstrap' failed after 5.6 seconds
> command "./autogen.sh" failed with status 126
> --8<---------------cut here---------------end--------------->8---
> 
> Which is weird, since /bin/sh does exist, but it should also have been
> told to use something else I think.

Looking at the source code¹ it looks like the included autoconf script
tries to execute configure.  This doesn't work because between the
bootstrap phase and the configure phase we have a phase to adjust the
locations of /bin/sh and other binaries.  I'd suggest overriding the
'bootstrap phase with something like:

(replace 'bootstrap
  (lambda _
    (invoke "autoconf" "-vfi")))

¹ https://gitlab.com/sstp-project/sstp-client/-/blob/master/autogen.sh?ref_type=heads#L19


-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2024-01-23  7:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-19  7:26 Help packaging network-manager-sstp and sstp-client Lars Rustand
2024-01-21  7:25 ` Marek Paśnikowski
2024-01-21 14:23 ` Felix Lechner via
2024-01-21 14:40   ` Lars Rustand
2024-01-21 16:03     ` Felix Lechner via
2024-01-21 14:50   ` Clément Lassieur
2024-01-21 15:37   ` Clément Lassieur
2024-01-21 16:00     ` Felix Lechner via
2024-01-23  7:23 ` Efraim Flashner [this message]
2024-01-24 21:34   ` Lars Rustand
2024-01-28 17:42     ` Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Za9pgA15K-v0jFQp@3900XT \
    --to=efraim@flashner.co.il \
    --cc=help-guix@gnu.org \
    --cc=rustand.lars@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).