25.12: noarch packages are not installable on architectures without an arch index

Aperta
#3 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
shell
Ambito
devops

Direzione di ricerca

Start by reading the deploy step that builds signed APK indexes and the README architecture table; the issue does not name their file paths. Check how the 25.12 package architectures are obtained and how noarch packages are included. Done means every supported architecture has a signed index containing the newest noarch packages, and the README shows their 25.12 availability.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

On OpenWrt 25.12, the noarch packages (ucode-utest, ucode-docopt, owrtfetch, wgpathd, …) can only be installed on x86_64, aarch64_generic and aarch64_cortex-a53, even though they run on any architecture.

apk reads the index at 25.12/<arch>/APKINDEX.tar.gz, where <arch> is apk --print-arch. The deploy step builds an index for each directory under 25.12/ and adds the noarch/ packages to each one. But those per-arch directories only exist because luci-sso publishes builds for those three architectures. On any other router there is no index:

$ for a in x86_64 aarch64_generic aarch64_cortex-a53 mipsel_24kc mips_24kc arm_cortex-a7_neon-vfpv4; do
    curl -s -o /dev/null -w "$a %{http_code}\n" https://m00qek.github.io/packages.ucode.dev/25.12/$a/APKINDEX.tar.gz; done
x86_64 200
aarch64_generic 200
aarch64_cortex-a53 200
mipsel_24kc 404
mips_24kc 404
arm_cortex-a7_neon-vfpv4 404

So on, for example, a mipsel_24kc router, apk update fails for this repository and apk add ucode-utest finds nothing. The 24.10 (opkg) feed doesn't have this problem, because it uses a single root Packages index.

Suggested fix

Build a signed 25.12/<arch>/APKINDEX.tar.gz for every package architecture of OpenWrt 25.12, not only for the directories that already exist. An architecture with no arch-specific packages would get an index that lists just the newest noarch/ packages. The architecture list could be hard-coded or taken from the 25.12 release's packages/ directory listing.

The README's architecture table could then list noarch (any) for these packages on 25.12, the way it shows all for 24.10.

Lingua principale
Shell
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.