Multi repo: add option to include/exclude packages
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
Direzione di ricerca
Inizia leggendo la gestione esistente di più repository e il risolutore delle dipendenze/conflitti. Traccia il funzionamento attuale dell’idoneità dei pacchetti del repository e della selezione delle versioni, quindi definisci come includepkgs ed excludepkgs specifici per repository debbano influire su tutte le operazioni. Il lavoro è completato quando le opzioni funzionano per i casi FreeBSD, 3rd-party e repository proprio senza compromettere la risoluzione delle dipendenze.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
It would be very useful if pkg would provide an option to include or exclude certain packages when using multiple repositories. For example:
FreeBSD: {
priority: 0,
excludepkgs: 'apache24,dovecot,haproxy,postfix',
}
3rd-party: {
priority: 1,
includepkgs: 'mysqlwsrep57-server,galera26',
}
OwnRepo: {
priority: 2,
enabled: yes,
}
This example demonstrates my main use-cases:
- I want to use the FreeBSD repository for most packages. But some packages must be excluded, because I need them with different build options. Even if the FreeBSD repository provides newer versions of these packages, they must be ignored.
- I want to use a 3rd-party repo, but only for a small subset of packages. All other packages in this repository must be ignored.
- And I want to use my own repository for packages that are build with custom build options.
This example is derived from the options currently available in DNF/YUM, see YUM.CONF(5):
includepkgs
Include packages of this repository, specified by a name or a glob and separated by a comma, in all
operations. Inverse of excludepkgs, DNF will exclude any package in the repository that doesn't match
this list. This works in conjunction with excludepkgs and doesn't override it, so if you 'excludep‐
kgs=*.i386' and 'includepkgs=python*' then only packages starting with python that do not have an i386
arch will be seen by DNF in this repo. Can be disabled using --disableexcludes command line switch.
Defaults to [].
excludepkgs
Exclude packages of this repository, specified by a name or a glob and separated by a comma, from all
operations. Can be disabled using --disableexcludes command line switch. Defaults to [].
I think adding these options would make the multi-repo feature more usable. Currently my own packages are always replaced with the versions from the FreeBSD repository when there is a newer version available. Having the includepkg and excludepkg options would make this very easy to achieve. On Rocky/Redhat Linux these options make it very easy for a lot repositories from many sources to co-exist without troubles.
On the other hand this may be another challenge for the dependency/conflict resolver, but that's probably a good thing and would allow to further improve it. :)
- Lingua principale
- C
- Stelle
- 835
- Fork
- 313
- Merge medio
- 3g 7h
- PR unite (30g)
- 6
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di freebsd/pkg
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 13 giorni
-
DBMS_UTILITY.FORMAT_ERROR_STACK exceeds the 2000-byte limitForse già presa @coder999o l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
zephyrproject-rtos/zephyr#127560 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
area-VM-meta-mono untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
tetragon-info.json btf_fname doesn't record the BTF file the agent usesForse già presa @bar234 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno