diff options
author | William Hubbs <williamh@gentoo.org> | 2023-01-27 15:45:26 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2023-01-27 15:47:45 -0600 |
commit | 89e1ff1e114d9b8f2aff054f3d7ddc4e40af1512 (patch) | |
tree | e18402d1480d9775d1d479f74a15ddfe6f30de81 /sys-apps/baselayout | |
parent | dev-java/jctools-core: Stabilize 4.0.1 ppc64, #892243 (diff) | |
download | gentoo-89e1ff1e114d9b8f2aff054f3d7ddc4e40af1512.tar.gz gentoo-89e1ff1e114d9b8f2aff054f3d7ddc4e40af1512.tar.bz2 gentoo-89e1ff1e114d9b8f2aff054f3d7ddc4e40af1512.zip |
sys-apps/baselayout: abort if /var/run or /var/lock need to be migrated
Check to see if /var/run or /var/lock are not symlinks and abort if this
is the case. since this version of baselayout claims ownership of these
symlinks.
Closes: https://bugs.gentoo.org/892267
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'sys-apps/baselayout')
-rw-r--r-- | sys-apps/baselayout/baselayout-2.11.ebuild | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-apps/baselayout/baselayout-2.11.ebuild b/sys-apps/baselayout/baselayout-2.11.ebuild index a5cb994667ce..f5fe6bb8aa50 100644 --- a/sys-apps/baselayout/baselayout-2.11.ebuild +++ b/sys-apps/baselayout/baselayout-2.11.ebuild @@ -21,6 +21,20 @@ IUSE="build +split-usr" RDEPEND="!sys-apps/baselayout-prefix" +pkg_pretend() { + local stop + if [[ ! -L "${EROOT}"/var/run ]]; then + eerror "${EROOT}/var/run must be a symlink to ${EROOT}/run" + stop=1 + fi + if [[ ! -L "${EROOT}"/var/lock ]]; then + eerror "${EROOT}/var/lock must be a symlink to ${EROOT}/run/lock" + stop=1 + fi + [[ -n ${stop} ]] && + die "please fix this before emerging baselayout" +} + pkg_setup() { multilib_layout } |