Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
krnowak committed Aug 27, 2024
1 parent a3d61af commit e4fe1e7
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,13 @@ pkg_preinst() {
for sym in "${!EXTRA_SYMS[@]}" ; do
ln -sfT "${EXTRA_SYMS[$sym]}" "${EROOT}/usr/lib/debug/${sym}"
done

# The default passwd/group files must exist for some ebuilds
touch "${ED}/etc/"{group,gshadow,passwd,shadow}
chmod 640 "${ED}/etc/"{gshadow,shadow}
}

pkg_postinst() {
# The default passwd/group files must exist in the SDK for some ebuilds
if use cros_host; then
touch "${ROOT}/etc/"{group,gshadow,passwd,shadow}
chmod 640 "${ROOT}/etc/"{gshadow,shadow}
fi
# compat symlink for packages that haven't migrated to gentoo-functions
local func=../../lib/gentoo/functions.sh
if [[ "$(readlink "${ROOT}/etc/init.d/functions.sh")" != "${func}" ]]; then
Expand Down

0 comments on commit e4fe1e7

Please sign in to comment.