`preserve=yes` needs to skip remove scriptlets.
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- c
- Área
- cli, operating-systems
Línea de trabajo
Start by reviewing the preserve=yes handling in xbps-remove and the behavior introduced by commit c11dba09d7389896cd50f35bf57150542a707da. Trace both remove and purge scriptlet stages, then verify that preserved packages skip removal scriptlets while retaining the existing kernel-safety behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
In https://github.com/void-linux/xbps/commit/c11dba09d7389896cd50f35bf57150542a707da5 the behavior of preserve=yes packages was changed to behave the same on explicit removal and update, in both cases files are now preserved. This is done so that xbps-remove does not circumvent vkpurge and its "is this kernel booted" check before uninstalling the kernel files.
But currently the remove scripts still run on explicit removal, instead the remove script should probably be completely skipped if the package was build with preserve=yes.
There is currently two stages in the remove scriptlets, remove and purge, they usually just run one after another and don't really have any use. I thought about removing the purge stage before, because every extra script execution just adds overhead without any real benefit.
It might make sense to to keep both stages and make use of that differentiation for the preserve=yes scripts, but I'm not convinced that it would actually be beneficial, especially because preserve=yes is really only used for kernels.
- Lenguaje dominante
- C
- Estrellas
- 1.2k
- Forks
- 152
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de void-linux/xbps
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
void-linux/xbps#475 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
void-linux/xbps#701 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
void-linux/xbps#700 ·
-
xbps-query -RX repository overridesPosiblemente ocupada @outofsyncrs la tomó hace 33 días. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
void-linux/xbps#696 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
void-linux/xbps#695 · 7 comentarios ·
Todos los issues de void-linux/xbps
Issues similares
-
initramfs: -type f (#18686) skips the libcurl.so.4 symlink, libcurl no longer copied into initramfsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
UNIVERSE-HPC/course-material#283 ·
-
bug C/C++ code
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
webarkit/WebARKitLib#85 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día