diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-09-04 19:38:59 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-09-04 19:38:59 +0000 |
commit | 4968e62c6a8b9b4843788b38b229796bcfbc130d (patch) | |
tree | f2931ca574a64ebe5b5413df82bb4d0e1d5e8680 /sys-apps | |
parent | =app-text/jasperreports-1.0.1 (diff) | |
download | gentoo-2-4968e62c6a8b9b4843788b38b229796bcfbc130d.tar.gz gentoo-2-4968e62c6a8b9b4843788b38b229796bcfbc130d.tar.bz2 gentoo-2-4968e62c6a8b9b4843788b38b229796bcfbc130d.zip |
Wrap symlink creation like we do with dir creation so readonly file systems dont cause emerge to abort #103618.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/baselayout/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/baselayout/baselayout-1.11.13-r1.ebuild | 23 | ||||
-rw-r--r-- | sys-apps/baselayout/baselayout-1.12.0_pre8-r2.ebuild | 23 |
3 files changed, 36 insertions, 17 deletions
diff --git a/sys-apps/baselayout/ChangeLog b/sys-apps/baselayout/ChangeLog index a30353a66e8f..ebb6ca08a934 100644 --- a/sys-apps/baselayout/ChangeLog +++ b/sys-apps/baselayout/ChangeLog @@ -1,10 +1,15 @@ # ChangeLog for sys-apps/baselayout # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/ChangeLog,v 1.274 2005/09/04 17:19:55 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/ChangeLog,v 1.275 2005/09/04 19:38:59 vapier Exp $ # See the gentoo-src rc-scripts ChangeLog for up-to-date release information: # http://www.gentoo.org/cgi-bin/viewcvs.cgi/rc-scripts/ChangeLog?rev=HEAD&cvsroot=gentoo-src&content-type=text/vnd.viewcvs-markup + 04 Sep 2005; Mike Frysinger <vapier@gentoo.org> + baselayout-1.11.13-r1.ebuild, baselayout-1.12.0_pre8-r2.ebuild: + Wrap symlink creation like we do with dir creation so readonly file systems + dont cause emerge to abort #103618. + *baselayout-1.12.0_pre8-r2 (04 Sep 2005) 04 Sep 2005; Martin Schlemmer <azarah@gentoo.org> diff --git a/sys-apps/baselayout/baselayout-1.11.13-r1.ebuild b/sys-apps/baselayout/baselayout-1.11.13-r1.ebuild index 79f7b72d55a0..7cb037ec06d7 100644 --- a/sys-apps/baselayout/baselayout-1.11.13-r1.ebuild +++ b/sys-apps/baselayout/baselayout-1.11.13-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.11.13-r1.ebuild,v 1.1 2005/08/23 23:53:30 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.11.13-r1.ebuild,v 1.2 2005/09/04 19:38:59 vapier Exp $ inherit flag-o-matic eutils toolchain-funcs multilib @@ -115,12 +115,18 @@ EOF # aren't listed in CONTENTS, unfortunately. unkdir() { einfo "Running unkdir to workaround bug 9849" - find ${D} -depth -type d -exec rmdir {} \; 2>/dev/null + find "${D}" -depth -type d -exec rmdir {} \; 2>/dev/null if [[ $? == 127 ]]; then ewarn "Problem running unkdir: find command not found" fi } +# Same as kdir above, but for symlinks #103618 +ksym() { + echo "ln -s '$1' '${ROOT}/$2' &> /dev/null || ewarn ' unable to symlink $2 to $1' " \ + >> "${D}"/usr/share/baselayout/mklinks.sh +} + src_install() { local dir libdirs libdirs_env rcscripts_dir @@ -226,14 +232,14 @@ src_install() { # Ugly compatibility with stupid ebuilds and old profiles symlinks if [[ ${SYMLINK_LIB} == "yes" ]] ; then rm -r "${D}"/{lib,usr/lib,usr/local/lib} &> /dev/null - dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /lib - dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/lib - dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/local/lib + ksym $(get_abi_LIBDIR ${DEFAULT_ABI}) /lib + ksym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/lib + ksym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/local/lib fi # FHS compatibility symlinks stuff - dosym /var/tmp /usr/tmp - dosym share/man /usr/local/man + ksym /var/tmp /usr/tmp + ksym share/man /usr/local/man # # Setup files in /etc @@ -407,7 +413,8 @@ pkg_postinst() { einfo "Creating directories and .keep files." einfo "Some of these might fail if they're read-only mounted" einfo "filesystems, for example /dev or /proc. That's okay!" - source ${ROOT}/usr/share/baselayout/mkdirs.sh + source "${ROOT}"/usr/share/baselayout/mkdirs.sh + source "${ROOT}"/usr/share/baselayout/mklinks.sh # This could be done in src_install, which would have the benefit of # (1) devices.tar.bz2 would show up in CONTENTS diff --git a/sys-apps/baselayout/baselayout-1.12.0_pre8-r2.ebuild b/sys-apps/baselayout/baselayout-1.12.0_pre8-r2.ebuild index 0422813f5042..9a868de53cdd 100644 --- a/sys-apps/baselayout/baselayout-1.12.0_pre8-r2.ebuild +++ b/sys-apps/baselayout/baselayout-1.12.0_pre8-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.12.0_pre8-r2.ebuild,v 1.1 2005/09/04 17:19:55 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.12.0_pre8-r2.ebuild,v 1.2 2005/09/04 19:38:59 vapier Exp $ inherit flag-o-matic eutils toolchain-funcs multilib @@ -123,12 +123,18 @@ EOF # aren't listed in CONTENTS, unfortunately. unkdir() { einfo "Running unkdir to workaround bug 9849" - find ${D} -depth -type d -exec rmdir {} \; 2>/dev/null + find "${D}" -depth -type d -exec rmdir {} \; 2>/dev/null if [[ $? == 127 ]]; then ewarn "Problem running unkdir: find command not found" fi } +# Same as kdir above, but for symlinks #103618 +ksym() { + echo "ln -s '$1' '${ROOT}/$2' &> /dev/null || ewarn ' unable to symlink $2 to $1' " \ + >> "${D}"/usr/share/baselayout/mklinks.sh +} + src_install() { local dir libdirs libdirs_env rcscripts_dir @@ -234,14 +240,14 @@ src_install() { # Ugly compatibility with stupid ebuilds and old profiles symlinks if [[ ${SYMLINK_LIB} == "yes" ]] ; then rm -r "${D}"/{lib,usr/lib,usr/local/lib} &> /dev/null - dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /lib - dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/lib - dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/local/lib + ksym $(get_abi_LIBDIR ${DEFAULT_ABI}) /lib + ksym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/lib + ksym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/local/lib fi # FHS compatibility symlinks stuff - dosym /var/tmp /usr/tmp - dosym share/man /usr/local/man + ksym /var/tmp /usr/tmp + ksym share/man /usr/local/man # # Setup files in /etc @@ -415,7 +421,8 @@ pkg_postinst() { einfo "Creating directories and .keep files." einfo "Some of these might fail if they're read-only mounted" einfo "filesystems, for example /dev or /proc. That's okay!" - source ${ROOT}/usr/share/baselayout/mkdirs.sh + source "${ROOT}"/usr/share/baselayout/mkdirs.sh + source "${ROOT}"/usr/share/baselayout/mklinks.sh # This could be done in src_install, which would have the benefit of # (1) devices.tar.bz2 would show up in CONTENTS |