Should pkg be able to install RPMs?

Aperta
#2,177 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
c

Direzione di ricerca

Inizia confrontando il plugin libpkg-registration proposto per archivers/rpm4 con l’aggiunta dell’installazione degli RPM direttamente in pkg, incluso il supporto esistente di libarchive per l’estrazione. Il lavoro sarà completato quando sarà stato deciso un approccio per installare gli RPM in /compat/linux, gestire le dipendenze e gli script incorporati, e selezionare le categorie dei pacchetti e le fonti di download.

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

Descrizione

Many of our linux-foo ports do little else but unpack and install the prebuilt binary RPMs under /compat/linux. It'd be nice, if such simple installations could be done directly -- without each package (and its dependencies!) requiring its own port...

One way towards this goal is to add a libpkg-registration plugin to the archivers/rpm4 -- and otherwise make it usable as not just archiver, but also a package-manager (however limited) on BSD.

The other, perhaps, more straightforward, way would be to add the ability to install RPMs -- under /compat/linux -- directly to pkg itself. The libarchive is already able to extract files from the RPMs..

We'd just need to figure out details like the virtual category for such packages (rpm, linux-c7?), whether or not to execute an RPM's embedded scripts, and from where to download the requested RPMs by default.

The reward for this effort would be the eventual ability to install -- and even depend on -- most Linux RPMs without creating and maintaining a port for each. For example something like:

-RUN_DEPENDS=	linux-c7-curl>0:ftp/linux-c7-curl
+RUN_DEPENDS=	rpm/curl

Theoretically this might be done for other packaging formats -- such as .deb -- too. Practically, only the CentOS-7 RPMs dominate (as CentOS-6 used to and as CentOS-8 soon will)...

Lingua principale
C
Stelle
835
Fork
313
Merge medio
3g 7h
PR unite (30g)
6

Preparare l'ambiente

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.

Altre issue di freebsd/pkg

Tutte le issue di freebsd/pkg

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.