From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 59BD21382C5 for ; Sun, 11 Mar 2018 03:27:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 691BCE0844; Sun, 11 Mar 2018 03:27:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2FF3DE0844 for ; Sun, 11 Mar 2018 03:27:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A0E83335C30 for ; Sun, 11 Mar 2018 03:27:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 33A1623F for ; Sun, 11 Mar 2018 03:27:25 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1520738770.208664c8fc8d374e5aefae4f50cf88f87ae67ff7.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/systemd/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/systemd/systemd-238-r1.ebuild sys-apps/systemd/systemd-238.ebuild sys-apps/systemd/systemd-9999.ebuild X-VCS-Directories: sys-apps/systemd/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 208664c8fc8d374e5aefae4f50cf88f87ae67ff7 X-VCS-Branch: master Date: Sun, 11 Mar 2018 03:27:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f57e8e9b-e033-4030-844f-8a513fa82588 X-Archives-Hash: 6dcb0694cf65306d1637b5dc9d1194aa commit: 208664c8fc8d374e5aefae4f50cf88f87ae67ff7 Author: Mike Gilbert gentoo org> AuthorDate: Sun Mar 11 03:26:10 2018 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Sun Mar 11 03:26:10 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=208664c8 sys-apps/systemd: fix file collisions with sysv-utils disabled Closes: https://bugs.gentoo.org/650160 Package-Manager: Portage-2.3.24, Repoman-2.3.6_p81 .../systemd/{systemd-238.ebuild => systemd-238-r1.ebuild} | 14 ++++---------- sys-apps/systemd/systemd-9999.ebuild | 14 ++++---------- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/sys-apps/systemd/systemd-238.ebuild b/sys-apps/systemd/systemd-238-r1.ebuild similarity index 97% rename from sys-apps/systemd/systemd-238.ebuild rename to sys-apps/systemd/systemd-238-r1.ebuild index 00e28112485..d32d1e9d3d3 100644 --- a/sys-apps/systemd/systemd-238.ebuild +++ b/sys-apps/systemd/systemd-238-r1.ebuild @@ -302,17 +302,11 @@ multilib_src_install_all() { einstalldocs dodoc "${FILESDIR}"/nsswitch.conf - if use sysv-utils; then - local app - for app in halt poweroff reboot runlevel shutdown telinit; do - dosym ../bin/systemctl /sbin/${app} - done - dosym ../lib/systemd/systemd /sbin/init - else - # we just keep sysvinit tools, so no need for the mans - rm "${ED%/}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \ - || die + if ! use sysv-utils; then + rm "${ED%/}"/sbin/{halt,init,poweroff,reboot,runlevel,shutdown,telinit} || die + rmdir "${ED%/}"/sbin || die rm "${ED%/}"/usr/share/man/man1/init.1 || die + rm "${ED%/}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 || die fi # Preserve empty dirs in /etc & /var, bug #437008 diff --git a/sys-apps/systemd/systemd-9999.ebuild b/sys-apps/systemd/systemd-9999.ebuild index 60dd1f8efd1..6c34c1b92a0 100644 --- a/sys-apps/systemd/systemd-9999.ebuild +++ b/sys-apps/systemd/systemd-9999.ebuild @@ -300,17 +300,11 @@ multilib_src_install_all() { einstalldocs dodoc "${FILESDIR}"/nsswitch.conf - if use sysv-utils; then - local app - for app in halt poweroff reboot runlevel shutdown telinit; do - dosym ../bin/systemctl /sbin/${app} - done - dosym ../lib/systemd/systemd /sbin/init - else - # we just keep sysvinit tools, so no need for the mans - rm "${ED%/}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \ - || die + if ! use sysv-utils; then + rm "${ED%/}"/sbin/{halt,init,poweroff,reboot,runlevel,shutdown,telinit} || die + rmdir "${ED%/}"/sbin || die rm "${ED%/}"/usr/share/man/man1/init.1 || die + rm "${ED%/}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 || die fi # Preserve empty dirs in /etc & /var, bug #437008