Skip to content

Ports: Can't ensure_new_config_sub, git.savannah.gnu.org is a bit flakeyΒ #26864

Description

@oskar-skog
user@serenity-builder:~/serenity/Ports/zsh$ SERENITY_ARCH=riscv64 ./package.sh
=> Installing dependencies of zsh...
=> Fetching zsh...
[zsh/fetch] /home/user/serenity/Ports/zsh/zsh-5.9.tar.xz already exists
[zsh/fetch] + tar -xf /home/user/serenity/Ports/zsh/zsh-5.9.tar.xz (nocd)
[zsh/fetch] + touch .zsh-5.9.tar.xz_extracted
=> Patching zsh...
[zsh/patch_internal] + patch -p1
[zsh/patch_internal] patching file Src/zsh_system.h
[zsh/patch_internal] Hunk #1 succeeded at 539 (offset -17 lines).
[zsh/patch_internal] + touch .0001-Let-zsh-define-the-rlimit-constants.patch_applied
=> Configuring zsh...
[zsh/ensure_new_config_sub] + grep -q serenity config.sub
[zsh/ensure_new_config_sub] + do_download_file https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub config.sub false
[zsh/ensure_new_config_sub] Downloading URL: https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
[zsh/ensure_new_config_sub] /usr/bin/curl
[zsh/ensure_new_config_sub] + curl https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub -L -o config.sub (nocd)
[zsh/ensure_new_config_sub]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[zsh/ensure_new_config_sub]                                  Dload  Upload   Total   Spent    Left  Speed
100   178  100   178    0     0    306      0 --:--:-- --:--:-- --:--:--   306
  # hangs here for a while
100   161  100   161    0     0      1      0  0:02:41  0:02:00  0:00:41    39
[zsh/pre_configure] + ./Util/preconfig
[zsh/pre_configure] cd . && ./.preconfig
[zsh/configure] + ./configure --host=riscv64-serenity
[zsh/configure] configuring for zsh 5.9
[zsh/configure] configure: error: cannot run /bin/bash ./config.sub
Error in step zsh/configure (status=2)
user@serenity-builder:~/serenity/Ports/zsh$

config.sub

<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>freenginx/1.30.1</center>
</body>
</html>

I think detecting the error and retrying a few times automatically would be a nice feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions