Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys-apps/debianutils: Introduce USE=systemd-boot #13879

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions profiles/arch/riscv/package.use.mask
@@ -1,6 +1,10 @@
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Michał Górny <mgorny@gentoo.org> (2019-12-05)
# sys-apps/systemd not keyworded here.
sys-apps/debianutils systemd-boot

# Sergei Trofimovich <slyfox@gentoo.org> (2019-12-02)
# dev-util/systemtap is not keyworded on riscv
sys-libs/glibc systemtap
Expand Down
1 change: 1 addition & 0 deletions profiles/features/prefix/package.use.mask
Expand Up @@ -9,6 +9,7 @@ gnome-base/gnome-extra-apps share
# avoid sys-apps/systemd
net-analyzer/wireshark sdjournal
sys-apps/dbus-broker launcher
sys-apps/debianutils systemd-boot
www-servers/uwsgi uwsgi_plugins_systemd_logger

# Benda Xu <heroxbd@gentoo.org> (2016-07-28)
Expand Down
1 change: 1 addition & 0 deletions profiles/features/selinux/package.use.mask
Expand Up @@ -32,6 +32,7 @@ x11-terms/gnome-terminal gnome-shell
x11-themes/arc-theme gnome-shell
x11-themes/zukitwo gnome-shell
net-wireless/bluez user-session
sys-apps/debianutils systemd-boot

# Jason Zaman <perfinion@gentoo.org> (2019-12-01)
# SELinux userspace 3.0 dropped python2.7 support
Expand Down
15 changes: 12 additions & 3 deletions sys-apps/debianutils/debianutils-4.9.ebuild
Expand Up @@ -12,7 +12,10 @@ SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.xz"
LICENSE="BSD GPL-2 SMAIL"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x86-linux"
IUSE="+installkernel static"
IUSE="+installkernel split-usr static systemd-boot"

# this is for kernel-install script, so [gnuefi] not necessary
RDEPEND="systemd-boot? ( || ( sys-apps/systemd sys-apps/systemd-boot ) )"

PATCHES=( "${FILESDIR}"/${PN}-3.4.2-no-bs-namespace.patch )

Expand All @@ -24,15 +27,21 @@ src_configure() {
src_install() {
into /
dobin tempfile run-parts
if use installkernel ; then
if use systemd-boot ; then
dodir /sbin
dosym ../$(usex split-usr 'usr/' '')bin/kernel-install \
/sbin/installkernel
elif use installkernel ; then
dosbin installkernel
fi

into /usr
dosbin savelog

doman tempfile.1 run-parts.8 savelog.8
use installkernel && doman installkernel.8
if use installkernel && ! use systemd-boot; then
doman installkernel.8
fi
cd debian || die
dodoc changelog control
keepdir /etc/kernel/postinst.d
Expand Down
2 changes: 2 additions & 0 deletions sys-apps/debianutils/metadata.xml
Expand Up @@ -7,5 +7,7 @@
</maintainer>
<use>
<flag name='installkernel'>Install /sbin/installkernel script (for Linux)</flag>
<flag name='systemd-boot'>Symlink /sbin/installkernel to kernel-install,
to make kernel's "make install" facilitate systemd-boot layout</flag>
</use>
</pkgmetadata>