Add Gentoo Portage host configuration

This commit is contained in:
wfalkowski committed 2026-10-15 21:54:34 +00:00
1 parent d40cb10f21
commit b19d64a282
57 files changed
+23234 -2

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
# BEGIN managed Portage Btrfs snapshots
# Portage invokes these phase hooks after package post-install and post-remove.
# This is one snapshot per changed package, not one per emerge command.
post_pkg_postinst() {
/usr/local/libexec/portage-btrfs-snapshot install "${CATEGORY:-unknown}" "${PF:-unknown}" "${ROOT:-/}" "${EROOT:-/}" || \
printf '!!! Btrfs snapshot failed after installing %s/%s.\n' "${CATEGORY:-unknown}" "${PF:-unknown}" >&2
}
post_pkg_postrm() {
/usr/local/libexec/portage-btrfs-snapshot remove "${CATEGORY:-unknown}" "${PF:-unknown}" "${ROOT:-/}" "${EROOT:-/}" || \
printf '!!! Btrfs snapshot failed after removing %s/%s.\n' "${CATEGORY:-unknown}" "${PF:-unknown}" >&2
}
# END managed Portage Btrfs snapshots
if [ "${PN}" = "firefox" ]; then
export RUSTFLAGS="${RUSTFLAGS} -C target-feature=-crt-static"
fi