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

Automatically Generate autorm Scripts to Properly Handle Purging Behaviors #45

Open
ZeroAurora opened this issue Feb 26, 2025 · 0 comments

Comments

@ZeroAurora
Copy link
Member

ZeroAurora commented Feb 26, 2025

Currently, most packages don't have autorm script populated in AOSC. This don't match the behavior of common dpkg distributions like Debian, where build scripts will generate post-removal scripts for maintainance.

One example is that in common dpkg distributions, dh_installdebconf will automatically insert debconf db_purge commands for packages having config to purge the debconf database when a package is purged. In AOSC we don't have this behavior, causing incomplete configuration cleaning when, for example, oma purge.

This is an example from an existing Debian installation:

# Automatically added by dh_installdebconf/13.24.1
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
fi
# End automatically added section

Same as above, many other debhelper scripts insert corresponding purging behaviors in package building process. AOSC doesn't use debhelper and build process is done in autobuild, so this should be handled properly.

@ZeroAurora ZeroAurora changed the title Automatically Generate autorm Scripts for Packages with config to Purge debconf Database Automatically Generate autorm Scripts to Properly Handle Purging Behaviors Feb 26, 2025
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

No branches or pull requests

1 participant