Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • D devtools
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
    • Locked files
  • Issues 57
    • Issues 57
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 28
    • Merge requests 28
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch LinuxArch Linux
  • devtools
  • Merge requests
  • !169

check if the autodetected architectures are valid.

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Christian Heusel requested to merge gromit/devtools:build-arch-autodetection into master Jun 15, 2023
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1

Currently when building a package from the AUR using pkgctl the following error can arise:

$ pkgctl build --repo extra teleport-bin
==> Building teleport-bin
  ->   repo: extra
  ->   arch: armv7h aarch64 x86_64
  -> worker: chris-2
==> Building teleport-bin for [extra] (armv7h)
/usr/local/share/devtools/lib/build/build.sh: line 401: extra-armv7h-build: command not found

This is only a problem when using the autodetection, as the --arch option will reject wrong args:

$ pkgctl build --arch armv7h --repo extra teleport-bin
==> ERROR: invalid architecture: armv7h

This MR just also applies this logic to the autodetected arches and skips anything that is not a valid arch array with a warning:

$ pkgctl build --repo extra teleport-bin
==> Building teleport-bin
==> WARNING: invalid architecture, not building for: armv7h
==> WARNING: invalid architecture, not building for: aarch64
  ->   repo: extra
  ->   arch: x86_64
  -> worker: chris-2
==> Building teleport-bin for [extra] (x86_64)

Maybe this can also be part of the next bugfix release (Version %v1.0.3) as its just a small change.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: build-arch-autodetection