From c5283d322accc6097afec74eab24550829788bab Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 23 Mar 2018 04:19:44 +0000 Subject: gentoo resync : 23.03.2018 --- sys-apps/baselayout/Manifest | 2 +- sys-apps/baselayout/baselayout-9999.ebuild | 58 +++++++++++++++++------------- 2 files changed, 34 insertions(+), 26 deletions(-) (limited to 'sys-apps/baselayout') diff --git a/sys-apps/baselayout/Manifest b/sys-apps/baselayout/Manifest index a83d219a0c5c..0cd7ced4b3b4 100644 --- a/sys-apps/baselayout/Manifest +++ b/sys-apps/baselayout/Manifest @@ -1,4 +1,4 @@ DIST baselayout-2.4.1.tar.bz2 31307 BLAKE2B da26f7fbeefa5efecb6e5d9ded6c2bf3148cd1fcfc6ebb86535f5a9c086c4bb55f6a8420a3c0d0f7008251637f3e4653db875ec427745d039f753008d2f21be2 SHA512 e505ad81834aafb574ffee9bc1fce216c1c8c7fa11b0095580f87a37e4b9efb057ee78db7cd5affc64f05d5dd0592c671304414c119b37d86dfaa1e7b84ce7c1 EBUILD baselayout-2.4.1-r2.ebuild 8573 BLAKE2B 1ae0257d233a4ee8a6351cd501bd3516b0c3c3a6e306d3b01fd45db29b4a932214dfe4989d23f397733eefd02c72f58bb726bdcfce975a58a0541f7fe71b4671 SHA512 cdd4f344d072851848c6e512bc3c47f1225d49b2077dbd3af45caf1f4e8d6d9d112a315b034a2237f8cf7bcadd5585cd3fc55489a085bb744130c0d37d2d7662 -EBUILD baselayout-9999.ebuild 8278 BLAKE2B 881c1c977e016d92fb97a44818e1f0d0226c9c4f576b55b9f75ba0ff95633ff33e05764eb9fc60d9f52ff2939374934e6fe46881cc97d5b814a1b5e5977035b2 SHA512 ee1ab4d87039d4c732c5d8cd85f9aa91c4b979cd68e925da2b3a9e99e9b95202ed98aa4b787fde83916e8fb56d9c65f2753c8bec57ba61f20e32e5a504d8c0a4 +EBUILD baselayout-9999.ebuild 8737 BLAKE2B e20a3bcf2bfa5b88a2b2fc857c3d532c9f17905264cdf56d1cb711ead535798b7994c40be17044e87464fe6d95d312c31d7c1cfc0d5967792e666818e866adf3 SHA512 fd0a56d5bf3c1c56f211ecd7d303c6d71da1b164d30926848445d73590a5ff25faf23e71543b167c730cc1b4156be65f43679208dab2bc6680a5102799ea5a6a MISC metadata.xml 447 BLAKE2B 8d2a924108bc62d05d6324741f3f5b008ce6a5197b5615c2a798dfda5bfccffc1b489139d41f59668298bb5947c25be4c08d818499008d188544706f53c8af0b SHA512 df8ef8945e71112074f70af3fb2ffc0d83ffd0b25827f802b96924436b6a7f184ffcfef495d543bddc3007e7a1ea5429ca696e2ad6dfb09a0541e504f7d135d1 diff --git a/sys-apps/baselayout/baselayout-9999.ebuild b/sys-apps/baselayout/baselayout-9999.ebuild index 20a7143a7421..cef8791471ae 100644 --- a/sys-apps/baselayout/baselayout-9999.ebuild +++ b/sys-apps/baselayout/baselayout-9999.ebuild @@ -7,7 +7,6 @@ inherit multilib versionator prefix DESCRIPTION="Filesystem baselayout and init scripts" HOMEPAGE="https://www.gentoo.org/" - if [[ ${PV} = 9999 ]]; then EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/${PN}.git" inherit git-r3 @@ -18,7 +17,11 @@ fi LICENSE="GPL-2" SLOT="0" -IUSE="usrmerge kernel_linux" +IUSE="build kernel_FreeBSD kernel_linux usrmerge" + +pkg_setup() { + multilib_layout +} # Create our multilib dirs - the Makefile has no knowledge of this multilib_layout() { @@ -27,13 +30,12 @@ multilib_layout() { libdirs=$(get_all_libdirs) : ${libdirs:=lib} # it isn't that we don't trust multilib.eclass... - [ -z "${def_libdir}" ] && - die "your DEFAULT_ABI=$DEFAULT_ABI appears to be invalid" + [ -z "${def_libdir}" ] && die "your DEFAULT_ABI=$DEFAULT_ABI appears to be invalid" # figure out which paths should be symlinks and which should be directories local dirs syms exp d for libdir in ${libdirs} ; do - if ! use usrmerge; then + if ! use usrmerge ; then exp=( {,usr/,usr/local/}${libdir} ) else exp=( {usr/,usr/local/}${libdir} ) @@ -60,7 +62,7 @@ multilib_layout() { # setup symlinks and dirs where we expect them to be; do not migrate # data ... just fall over in that case. local prefix prefix_lst - if ! use usrmerge; then + if ! use usrmerge ; then prefix_lst="${EROOT}"{,usr/,usr/local/} else prefix_lst="${EROOT}"{usr/,usr/local/} @@ -123,7 +125,7 @@ multilib_layout() { fi fi done - if use usrmerge; then + if use usrmerge ; then for libdir in ${libdirs}; do if [[ ! -e "${EROOT}${libdir}" ]]; then ln -s usr/"${libdir}" "${EROOT}${libdir}" @@ -132,15 +134,24 @@ multilib_layout() { fi } -pkg_setup() { - multilib_layout -} - pkg_preinst() { # This is written in src_install (so it's in CONTENTS), but punt all # pending updates to avoid user having to do etc-update (and make the # pkg_postinst logic simpler). rm -f "${EROOT}"/etc/._cfg????_gentoo-release + + # We need to install directories and maybe some dev nodes when building + # stages, but they cannot be in CONTENTS. + # Also, we cannot reference $S as binpkg will break so we do this. + multilib_layout + if use build ; then + if ! use usrmerge ; then + emake -C "${ED}/usr/share/${PN}" DESTDIR="${EROOT}" layout + else + emake -C "${ED}/usr/share/${PN}" DESTDIR="${EROOT}" layout-usrmerge + fi + fi + rm -f "${ED}"/usr/share/${PN}/Makefile } src_prepare() { @@ -170,22 +181,15 @@ src_prepare() { } src_install() { - if ! use usrmerge; then - emake \ - OS=$(usex kernel_FreeBSD BSD Linux) \ - DESTDIR="${ED}" \ - layout - else - emake \ - OS=$(usex kernel_FreeBSD BSD Linux) \ - DESTDIR="${ED}" \ - layout-usrmerge - fi emake \ OS=$(usex kernel_FreeBSD BSD Linux) \ DESTDIR="${ED}" \ install dodoc ChangeLog + + # need the makefile in pkg_preinst + insinto /usr/share/${PN} + doins Makefile } pkg_postinst() { @@ -245,10 +249,14 @@ pkg_postinst() { fi for x in ${REPLACING_VERSIONS}; do - if ! version_is_at_least 2.4 ${v}; then + if ! version_is_at_least 2.4 ${x}; then ewarn "After updating ${EROOT}etc/profile, please run" - ewarn "env-update and . /etc/profile" - break + ewarn "env-update && . /etc/profile" + fi + + if ! version_is_at_least 2.5 ${x}; then + ewarn "Please run env-update then log out and back in to" + ewarn "update your path." fi done -- cgit v1.2.3