Conflict detection broken (for scripting)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia tracciando il solver della prima fase e la routine esistente di rilevamento dei conflitti, quindi esamina lo schema SQLite remoto relativo alle tabelle pkg_conflicts, files e directories. L’issue è completata quando le installazioni non interattive rilevano e gestiscono in modo affidabile i conflitti tra pacchetti prima del prompt della seconda fase, utilizzando un approccio basato su CONFLICTS, Makefile o MANIFEST che sia stato deciso.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I posted this on issue #231 a while back, but that ticket seems to have stagnated and is tagged as a feature request while this is actually a fairly critical bug, so I am re-creating it here with the appropriate tags
Note: This behavior has been verified with pkg version 1.10.1
Summary of the problem:
pkgnever populates the "pkg_conflicts" table within the SQLite database for a remote repository.- Due to the lack of information,
pkgcannot detect a conflict between package A (installed) and package B (requested to be installed) at the time of the request. - To work around this,
pkgdownloads the tarball and generates a conflict warning/prompt only if the tarball contains files/directories which conflict with currently-installed packages (based on the "files" table in the local database - not available in remote database).
Critical Failures/Issues:
- If the "-y" flag is supplied to
pkgfor a non-interactive install (based on a previous "-n" dry-run which did not detect/report any conflicts), then it will automatically assume "yes" for all interactive prompts, including the 2nd-stage prompt wherepkgcurrently detects conflicts. This means that conflict resolution/handling from a non-interactive use-case is completely broken at the moment (will always de-install the conflicting package(s) and replace it with the requested package).
Possible solutions:
- Make the "files" and "directories" table(s) available in the remote database and use the same conflict-detection routine we have now, but within the "first-stage" solver iteration.
- Populate the "pkg_conflicts" table within the database based upon the "CONFLICTS" fields in a port Makefile[1] or a MANIFEST file(#772).
[1] https://www.freebsd.org/doc/en/books/porters-handbook/conflicts.html
- 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