Page MenuHomePhabricator

[lima-kilo,misctools] no arm64 version for mac-os based installations
Closed, ResolvedPublicBUG REPORT

Description

the recent installation of misctool by taavi seems to be the culprit.
The bigger issue is that dev.svc.toolforge.org/repo does seem to support arm64 arch.

Logs:

raymondndibe@lima-kilo:/Users/raymondndibe/Desktop/lima-kilo$ cat /etc/apt/sources.list.d/tools.list
deb [trusted=yes] https://deb.svc.toolforge.org/repo bookworm-tools main
raymondndibe@lima-kilo:/Users/raymondndibe/Desktop/lima-kilo$ sudo apt update
...
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'https://deb.svc.toolforge.org/repo bookworm-tools InRelease' doesn't support architecture 'arm64'

raymondndibe@lima-kilo:/Users/raymondndibe/Desktop/lima-kilo$ sudo apt install misctools
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package misctools
raymondndibe@lima-kilo:/Users/raymondndibe/Desktop/lima-kilo$ sudo nano /etc/apt/sources.list.d/tools.list
raymondndibe@lima-kilo:/Users/raymondndibe/Desktop/lima-kilo$ cat /etc/apt/sources.list.d/tools.list
deb [trusted=yes arch=amd64,arm64] https://deb.svc.toolforge.org/repo bookworm-tools main
raymondndibe@lima-kilo:/Users/raymondndibe/Desktop/lima-kilo$ sudo apt update
...
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'https://deb.svc.toolforge.org/repo bookworm-tools InRelease' doesn't support architecture 'arm64'
raymondndibe@lima-kilo:/Users/raymondndibe/Desktop/lima-kilo$ sudo apt install misctools
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package misctools

Details

Related Changes in Gerrit:
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
functional-tests: add misctools-cli test definitionrepos/cloud/toolforge/toolforge-deploy!874dcaroadd_misctoolsmain
debian-builder-bullseye: add missing packages for arm64repos/cloud/cicd/gitlab-ci!65dcarofix_aarch_bullseyemain
builder: allow specifying the archrepos/cloud/cicd/gitlab-ci!64dcaroenable_custom_archmain
[lima-kilo.toolforge] ensure use of amd64 archrepos/cloud/toolforge/lima-kilo!249raymond-ndibeensure_use_of_amd64_archmain
Customize query in GitLab

Event Timeline

dcaro renamed this task from lima-kilo failing on macos to [lima-kilo,misctools] no arm64 version for mac-os based installations.Jun 30 2025, 1:01 PM

Yep, the issue is that misctools has some compiled binaries (take) that will need to be recompiled for each arch, maybe we can build that in a different way.

Change #1166830 had a related patch set uploaded (by David Caro; author: David Caro):

[cloud/wmcs-cookbooks@main] toolforge.component.deploy: support multiarch packages

https://gerrit.wikimedia.org/r/1166830

Change #1167551 had a related patch set uploaded (by David Caro; author: David Caro):

[operations/puppet@production] aptly: add arm64 arch support

https://gerrit.wikimedia.org/r/1167551

Mentioned in SAL (#wikimedia-cloud) [2025-07-09T09:40:33Z] <dcaro> added arch arm64 to jessie-tools repo (T398016)

Change #1167551 merged by David Caro:

[operations/puppet@production] aptly: add arm64 arch support

https://gerrit.wikimedia.org/r/1167551

Mentioned in SAL (#wikimedia-cloud) [2025-07-09T09:55:24Z] <dcaro> adding arch arm64 to all toolforge repos (T398016)

For the record, I used this to add the extra arch to the aptly published repos without falling into the removal of packages issue

root@tools-services-06:~# repo=bullseye-tools; aptly -architectures="arm64,amd64,all" -skip-signing -origin=Wikimedia -label=$repo-backup -distribution=$repo-backup -component=main publish repo $repo && aptly publish list && aptly publish drop $repo && aptly -architectures="arm64,amd64,all" -skip-signing -origin=Wikimedia -label=$repo -distribution=$repo -component=main publish repo $repo && aptly publish update -skip-signing -architectures=arm64,amd64,all $repo && echo "OK                       " && aptly drop $repo-backup && aptly publish list && aptly repo show $repo

Split:

root@tools-services-06:~# repo=bullseye-tools; \
    aptly -architectures="arm64,amd64,all" -skip-signing -origin=Wikimedia -label=$repo-backup -distribution=$repo-backup -component=main publish repo $repo \
    && aptly publish list \
    && aptly publish drop $repo \
    && aptly -architectures="arm64,amd64,all" -skip-signing -origin=Wikimedia -label=$repo -distribution=$repo -component=main publish repo $repo \
    && aptly publish update -skip-signing -architectures=arm64,amd64,all $repo \
    && echo "OK                         " \
    && aptly drop $repo-backup \
    && aptly publish list \
    && aptly repo show $repo

All the repos now support all the arches:

root@tools-services-06:~# aptly publish list
Published repositories:
  * ./bookworm-tools (origin: Wikimedia, label: bookworm-tools) [all, amd64, arm64] publishes {main: [bookworm-tools]}
  * ./bookworm-toolsbeta (origin: Wikimedia, label: bookworm-toolsbeta) [all, amd64, arm64] publishes {main: [bookworm-toolsbeta]}
  * ./bullseye-tools (origin: Wikimedia, label: bullseye-tools) [all, amd64, arm64] publishes {main: [bullseye-tools]: Toolforge packages for Debian 11 (Bullseye)}
  * ./bullseye-toolsbeta (origin: Wikimedia, label: bullseye-toolsbeta) [all, amd64, arm64] publishes {main: [bullseye-toolsbeta]: Toolforge beta packages for Debian 11 (Bullseye)}
  * ./buster-tools (origin: Wikimedia, label: buster-tools) [all, amd64, arm64] publishes {main: [buster-tools]}
  * ./buster-toolsbeta (origin: Wikimedia, label: buster-toolsbeta) [all, amd64, arm64] publishes {main: [buster-toolsbeta]}
  * ./jessie-tools (origin: Wikimedia, label: jessie-tools) [all, amd64, arm64] publishes {main: [jessie-tools]: Toolforge packages for Debian 8 (Jessie)}
  * ./stretch-tools (origin: Wikimedia, label: stretch-tools) [all, amd64, arm64] publishes {main: [stretch-tools]: Toolforge packages for Debian 9 (Stretch)}
  * ./stretch-toolsbeta (origin: Wikimedia, label: stretch-toolsbeta) [all, amd64, arm64] publishes {main: [stretch-toolsbeta]}

The new package has been released, @Raymond_Ndibe when you have time, can you rebuild your lima-kilo and check if it works now?

Change #1166830 merged by jenkins-bot:

[cloud/wmcs-cookbooks@main] toolforge.component.deploy: support multiarch packages

https://gerrit.wikimedia.org/r/1166830

dcaro changed the task status from Open to In Progress.Jul 10 2025, 12:24 PM
dcaro closed this task as Resolved.
dcaro moved this task from Next Up to In Review on the Toolforge (Toolforge iteration 21) board.
dcaro moved this task from In Review to Done on the Toolforge (Toolforge iteration 21) board.