commit:     b91cfbd5648d0b1a9d9532e52bc6d701921dc621
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 26 00:11:22 2023 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Jan 26 00:12:48 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b91cfbd5

sys-apps/baselayout: create fhs compatible symlinks in the ebuild

This needs to happen so that we own the symlinks.

Bug: https://bugs.gentoo.org/648880
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 sys-apps/baselayout/baselayout-9999.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys-apps/baselayout/baselayout-9999.ebuild 
b/sys-apps/baselayout/baselayout-9999.ebuild
index a5cb994667ce..de1e77f28689 100644
--- a/sys-apps/baselayout/baselayout-9999.ebuild
+++ b/sys-apps/baselayout/baselayout-9999.ebuild
@@ -259,6 +259,12 @@ src_install() {
                DESTDIR="${ED}" \
                install
 
+       # FHS compatibility symlinks
+       dosym ../proc/self/mounts /etc/mtab
+       dosym ../run /var/run
+       dosym ../run/lock /var/lock
+       dosym ../var/tmp /usr/tmp
+
        if [[ ${CHOST} == *-darwin* ]] ; then
                # add SDK path which contains development manpages
                echo "MANPATH=${EPREFIX}/MacOSX.sdk/usr/share/man" \

Reply via email to