Skip to content

Conversation

llfw
Copy link
Contributor

@llfw llfw commented Sep 15, 2025

Add support for system triggers installed in /usr/share/pkg/triggers, not under PREFIX. This will be used for the FreeBSD base system.

@llfw
Copy link
Contributor Author

llfw commented Sep 15, 2025

related: https://reviews.freebsd.org/D52564

@arrowd
Copy link
Contributor

arrowd commented Sep 16, 2025

Can't hold myself from a little bikeshedding - maybe call these things "base triggers" and "localbase triggers"? Or would that be too FreeBSD-specific?

@bapt
Copy link
Member

bapt commented Sep 16, 2025

we should turn the triggers_dir into an array like every path

@llfw
Copy link
Contributor Author

llfw commented Sep 16, 2025

we should turn the triggers_dir into an array like every path

that seems reasonable and would also address Gleb's comment, i'll rework the patch.

Add support for system triggers installed in /usr/share/pkg/triggers,
not under PREFIX.  This will be used for the FreeBSD base system.

For compatibility, keep the existing trigger config PKG_TRIGGERS_DIR,
but turn it into a list and add /usr/share/pkg/triggers to the
default value.
@bapt
Copy link
Member

bapt commented Sep 18, 2025

Thanks! I should have implemented triggers this way day 1

@bapt bapt merged commit 7831a19 into freebsd:main Sep 18, 2025
6 checks passed
@llfw llfw deleted the systriggers branch September 18, 2025 07:24
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.

3 participants