Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/systemd-boot/files/, sys-boot/systemd-boot/
Date: Mon, 20 Nov 2017 19:14:32
Message-Id: 1511205247.b0b74ce3b8aa90a952db8dd1062e4a0a9865f3b6.floppym@gentoo
1 commit: b0b74ce3b8aa90a952db8dd1062e4a0a9865f3b6
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 20 19:10:55 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 20 19:14:07 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0b74ce3
7
8 sys-boot/systemd-boot: bump to 235
9
10 Closes: https://bugs.gentoo.org/638238
11 Package-Manager: Portage-2.3.14_p5, Repoman-2.3.6
12
13 sys-boot/systemd-boot/Manifest | 1 +
14 .../systemd-boot/files/235-libshared-static.patch | 24 +++++
15 sys-boot/systemd-boot/systemd-boot-235.ebuild | 108 +++++++++++++++++++++
16 3 files changed, 133 insertions(+)
17
18 diff --git a/sys-boot/systemd-boot/Manifest b/sys-boot/systemd-boot/Manifest
19 index 5848388fa13..25ff219e75d 100644
20 --- a/sys-boot/systemd-boot/Manifest
21 +++ b/sys-boot/systemd-boot/Manifest
22 @@ -1 +1,2 @@
23 DIST systemd-233.tar.gz 4660737 SHA256 8b3e99da3d4164b66581830a7f2436c0c8fe697b5fbdc3927bdb960646be0083 SHA512 5ad5329ea116d973cf67096f7e7ad28e9ea0905696e9451291f1d25e5064f4a9bfcfae87e912996c6a38397e9f4a148d4ccecfa9b70f7ecdf04deadb61784c8e WHIRLPOOL ce19f6a546b8f899cfa952e49d47f063fd29186be4a53391bc30ea2c487eb2c140a74ad843a1dc499bb61bba3e9ca055613852291e38b85af5d79c59409dc176
24 +DIST systemd-235.tar.gz 6586406 SHA256 25811f96f5a027bf2a4c9383495cf5b623e385d84da31e473cf375932b3e9c52 SHA512 243f2eb5340fa37dd1286eaa63e83387bda9e03953af266cd6196a37535a13491482caf14c6ab10608bba4ed23b6c41923608e52017e0c26988ed72ddd2b9993 WHIRLPOOL 05e50b31f7b3b1cd756abd1580dddae0e114953857564133784fc43b9ecd0e203ee534aaf76531ca7af5c43b03b9b73c6cbbbb1caf5afb17502555cc52fe06cd
25
26 diff --git a/sys-boot/systemd-boot/files/235-libshared-static.patch b/sys-boot/systemd-boot/files/235-libshared-static.patch
27 new file mode 100644
28 index 00000000000..2a0bf678539
29 --- /dev/null
30 +++ b/sys-boot/systemd-boot/files/235-libshared-static.patch
31 @@ -0,0 +1,24 @@
32 +--- a/meson.build
33 ++++ b/meson.build
34 +@@ -1505,9 +1505,8 @@ if conf.get('ENABLE_EFI') == 1 and conf.get('HAVE_BLKID') == 1
35 + exe = executable('bootctl',
36 + 'src/boot/bootctl.c',
37 + include_directories : includes,
38 +- link_with : [libshared],
39 ++ link_with : [libshared_static],
40 + dependencies : [libblkid],
41 +- install_rpath : rootlibexecdir,
42 + install : true)
43 + public_programs += [exe]
44 + endif
45 +diff --git a/src/shared/meson.build b/src/shared/meson.build
46 +index 883821352..b560e65c9 100644
47 +--- a/src/shared/meson.build
48 ++++ b/src/shared/meson.build
49 +@@ -157,5 +157,6 @@ libshared_static = static_library(
50 + libshared_name,
51 + shared_sources,
52 + basic_sources,
53 ++ libsystemd_internal_sources,
54 + include_directories : includes,
55 + dependencies : libshared_deps)
56
57 diff --git a/sys-boot/systemd-boot/systemd-boot-235.ebuild b/sys-boot/systemd-boot/systemd-boot-235.ebuild
58 new file mode 100644
59 index 00000000000..ff86b01e755
60 --- /dev/null
61 +++ b/sys-boot/systemd-boot/systemd-boot-235.ebuild
62 @@ -0,0 +1,108 @@
63 +# Copyright 1999-2017 Gentoo Foundation
64 +# Distributed under the terms of the GNU General Public License v2
65 +
66 +EAPI=6
67 +
68 +inherit meson toolchain-funcs
69 +
70 +DESCRIPTION="UEFI boot manager from systemd (formerly gummiboot)"
71 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/"
72 +SRC_URI="https://github.com/systemd/systemd/archive/v${PV}.tar.gz -> systemd-${PV}.tar.gz"
73 +
74 +LICENSE="GPL-2 LGPL-2.1 MIT public-domain"
75 +SLOT="0"
76 +KEYWORDS="~amd64"
77 +IUSE=""
78 +RESTRICT="test"
79 +
80 +COMMON_DEPEND="
81 + >=sys-apps/util-linux-2.30
82 +"
83 +DEPEND="${COMMON_DEPEND}
84 + app-text/docbook-xml-dtd:4.2
85 + app-text/docbook-xml-dtd:4.5
86 + app-text/docbook-xsl-stylesheets
87 + dev-libs/libxslt:0
88 + >=dev-util/intltool-0.50
89 + dev-util/gperf
90 + >=sys-boot/gnu-efi-3.0.2
91 + sys-libs/libcap
92 + virtual/pkgconfig
93 +"
94 +RDEPEND="${COMMON_DEPEND}
95 + !sys-apps/systemd
96 +"
97 +
98 +S="${WORKDIR}/systemd-${PV}"
99 +
100 +PATCHES=(
101 + "${FILESDIR}/235-libshared-static.patch"
102 +)
103 +
104 +src_configure() {
105 + local emesonargs=(
106 + -D blkid=true
107 + -D efi=true
108 + -D gnu-efi=true
109 + -D efi-cc="$(tc-getCC)"
110 + -D efi-ld="$(tc-getLD)"
111 +
112 + -D acl=false
113 + -D apparmor=false
114 + -D audit=false
115 + -D bzip2=false
116 + -D elfutils=false
117 + -D gcrypt=false
118 + -D gnutls=false
119 + -D kmod=false
120 + -D libcryptsetup=false
121 + -D libcurl=false
122 + -D libidn=false
123 + -D libidn2=false
124 + -D libiptc=false
125 + -D lz4=false
126 + -D microhttpd=false
127 + -D myhostname=false
128 + -D pam=false
129 + -D qrencode=false
130 + -D seccomp=false
131 + -D selinux=false
132 + -D xkbcommon=false
133 + -D xz=false
134 + )
135 + meson_src_configure
136 +}
137 +
138 +set_efi_arch() {
139 + case "$(tc-arch)" in
140 + amd64) efi_arch=x64 ;;
141 + arm) efi_arch=arm ;;
142 + arm64) efi_arch=aa64 ;;
143 + x86) efi_arch=x86 ;;
144 + esac
145 +}
146 +
147 +src_compile() {
148 + local efi_arch
149 + set_efi_arch
150 + local targets=(
151 + bootctl
152 + man/bootctl.1
153 + man/kernel-install.8
154 + src/boot/efi/linux${efi_arch}.efi.stub
155 + src/boot/efi/systemd-boot${efi_arch}.efi
156 + )
157 + eninja -C "${BUILD_DIR}" "${targets[@]}" || die
158 +}
159 +
160 +src_install() {
161 + local efi_arch
162 + set_efi_arch
163 + dobin "${BUILD_DIR}"/bootctl src/kernel-install/kernel-install
164 + doman "${BUILD_DIR}"/man/{bootctl.1,kernel-install.8}
165 + exeinto usr/lib/kernel/install.d
166 + doexe src/kernel-install/{50-depmod,90-loaderentry}.install
167 + insinto usr/lib/systemd/boot/efi
168 + doins "${BUILD_DIR}"/src/boot/efi/{linux${efi_arch}.efi.stub,systemd-boot${efi_arch}.efi}
169 + einstalldocs
170 +}