You are not logged in.

#1 2024-08-30 05:24:06

Doug
Member
Registered: 2024-08-30
Posts: 1

arch-install-scripts project's gitlabci error "m4: command not found"

arch-install-scripts' job url:
$ make check
  GEN      arch-chroot
/bin/sh: line 1: m4: command not found
make: *** [Makefile:29: arch-chroot] Error 127
ERROR: Job failed: exit code 1

The "make check" execute until to "$(edit)" which at the 29st line is like:

29: echo "  GEN     " arch-chroot; m4 -P arch-chroot.in >arch-chroot && chmod go-w,+x arch-chroot

Makefile url:

5: BINPROGS = \
6:	arch-chroot \
7:	genfstab \
8:	pacstrap
...
22: V_GEN = $(_v_GEN_$(V))
23: _v_GEN_ = $(_v_GEN_0)
24: _v_GEN_0 = @echo "  GEN     " $@;
25: 
26: edit = $(V_GEN) m4 -P $@.in >$@ && chmod go-w,+x $@
27:
28: arch-chroot: arch-chroot.in common
29:	$(edit)
...
43: check: all
44:	@for f in $(BINPROGS); do bash -O extglob -n $$f; done
My question wrote:

Why does this '.gitlab-ci.yml' file not modify the 14st line of  to pre-install 'm4' package to expanding macros?

14-:       - pacman --noconfirm -Syu --needed asciidoc make shellcheck
14+:       - pacman --noconfirm -Syu --needed asciidoc make shellcheck m4

.gitlab-ci.yml url:

.pacman_install:
    before_script:
        # NOTE: Install latest archlinux-keyring before upgrading system. In the
        # future this should not be needed anymore when we can guarantee a valid
        # keyring for longer:
        # https://gitlab.archlinux.org/archlinux/archlinux-keyring/-/issues/4
        - echo -e "\e[0Ksection_start:`date +%s`:pacman[collapsed=true]\r\e[0KInstalling dependencies"
        - pacman -Sy --needed --noconfirm archlinux-keyring
14:     - pacman --noconfirm -Syu --needed asciidoc make shellcheck
        - echo -e "\e[0Ksection_end:`date +%s`:pacman\r\e[0K"
...
test:
    stage: check
    extends: .pacman_install
    script:
        - make check

Last edited by Doug (2024-08-30 05:38:17)

Offline

#2 2024-08-30 10:42:45

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 657
Website

Re: arch-install-scripts project's gitlabci error "m4: command not found"

Feel free to open a MR towards the arch-install-scripts project!

Offline

Board footer

Powered by FluxBB