Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] lib: don't allow xbps self-update to bypass integrity checks #597

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oreo639
Copy link
Member

@oreo639 oreo639 commented Apr 15, 2024

cc: @Duncaen

Right now, this is just a dumb implementation of the fix to get feedback, this does not currently remove the xbps_autoupdate() mechanism.
Ofc if you prefer to go a different route (e.g. static linking) please let me know.

You can test this using libhelloworld and test1 from #580 and then having xbps depends on libhelloworld>=<helloworld_version> where helloworld_version would be 1 for the first build and 2 for the second ofc.

Closes: #592

This reverts 83ade39.

In the past, self-updates mandated that only xbps and its dependencies can be
updated if an xbps update is avaliable.

As updating dependencies may break their depndents, xbps used
XBPS_FLAG_FORCE_REMOVE_REVDEPS in order to bypass integrety checks when using
xbps-install -u xbps.

This can result in circumstances where the the system is rendered inoperable
due to missing or mismatched dependencies of core system packages (e.g. PAM).

Remove the auto-update mechanism until a better designed system can be
implemented.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

xbps-install -u xbps may leave system in an unusable state
1 participant