This is because ${ROOT} already ends with a "/", then, proper elog should be: "${ROOT}etc/portage/postsync.d/q-reinitialize has been installed for convenience" instead of: "${ROOT}/etc/portage/postsync.d/q-reinitialize has been installed for convenience" And: "If you wish for it to be automatically run at the end of every --sync simply chmod +x ${ROOT}etc/portage/postsync.d/q-reinitialize" instead of: "If you wish for it to be automatically run at the end of every --sync simply chmod +x ${ROOT}/etc/portage/postsync.d/q-reinitialize" Thanks Reproducible: Always
Does $ROOT always end with a slash even on prefix systems for instance? One can workaround this by using someting like this: ${ROOT%/}/etc/portage/postsync.d/q-reinitialize This removes a trailing slash from the variable if there is one.
ROOT is no longer in pkg_postinst