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: Tue, 30 May 2017 18:52:59
Message-Id: 1496170282.e297bb1001aaa9a87abb86f28c4ac786d7c97b45.floppym@gentoo
1 commit: e297bb1001aaa9a87abb86f28c4ac786d7c97b45
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 30 18:50:50 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Tue May 30 18:51:22 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e297bb10
7
8 sys-boot/systemd-boot: bump to 233
9
10 Package-Manager: Portage-2.3.6_p1, Repoman-2.3.2_p69
11
12 sys-boot/systemd-boot/Manifest | 1 +
13 .../233-Force-libsystemd-shared-to-be-static.patch | 25 +++++
14 sys-boot/systemd-boot/systemd-boot-233.ebuild | 110 +++++++++++++++++++++
15 3 files changed, 136 insertions(+)
16
17 diff --git a/sys-boot/systemd-boot/Manifest b/sys-boot/systemd-boot/Manifest
18 index e2bcea5e83a..71c131fed62 100644
19 --- a/sys-boot/systemd-boot/Manifest
20 +++ b/sys-boot/systemd-boot/Manifest
21 @@ -1,2 +1,3 @@
22 DIST systemd-231.tar.gz 4381464 SHA256 899733ad6c157cedbb89aec4efe3bc824dcfd65a1d6f6bebc7b043f7924e39b4 SHA512 199fa33a0494d1d15f7fe3c796fe14913ad386766571d4d3fbb1cb1c446e04f6d06a965213be4c594a7183e810fc2fd4804fe14f64f21b0a1278b717889811c6 WHIRLPOOL 7779291e9fb9873cb1773b8583cf6d4b7dec837363ea89c4a73c1e397a76752b66f8b57d8fc4d9cef768cc1855b5e325ad88a8a69eb5380aa924e0a6dead41b1
23 DIST systemd-232.tar.gz 4529048 SHA256 1172c7c7d5d72fbded53186e7599d5272231f04cc8b72f9a0fb2c5c20dfc4880 SHA512 5dbe52f655ec2901b1bfbb1256f83ba26bc82c13097ac9a82e4fbb97886551530f9888c369592f1b410cfff40d6d127b985533a3e29cfab5b30d18739ee5dcb1 WHIRLPOOL f2a1499584c5b5c4d9e945e45ef5e0eef2e8be77acdbd7b3b29a8c8b62dc7a10c162a856df7107c19e2eb19e63bc43a33433686472ca30909237981683cbe980
24 +DIST systemd-233.tar.gz 4660737 SHA256 8b3e99da3d4164b66581830a7f2436c0c8fe697b5fbdc3927bdb960646be0083 SHA512 5ad5329ea116d973cf67096f7e7ad28e9ea0905696e9451291f1d25e5064f4a9bfcfae87e912996c6a38397e9f4a148d4ccecfa9b70f7ecdf04deadb61784c8e WHIRLPOOL ce19f6a546b8f899cfa952e49d47f063fd29186be4a53391bc30ea2c487eb2c140a74ad843a1dc499bb61bba3e9ca055613852291e38b85af5d79c59409dc176
25
26 diff --git a/sys-boot/systemd-boot/files/233-Force-libsystemd-shared-to-be-static.patch b/sys-boot/systemd-boot/files/233-Force-libsystemd-shared-to-be-static.patch
27 new file mode 100644
28 index 00000000000..b837890f616
29 --- /dev/null
30 +++ b/sys-boot/systemd-boot/files/233-Force-libsystemd-shared-to-be-static.patch
31 @@ -0,0 +1,25 @@
32 +From 5aefd5fddd2af5f979ece96cda8ed1ab0492709c Mon Sep 17 00:00:00 2001
33 +From: Mike Gilbert <floppym@g.o>
34 +Date: Tue, 30 May 2017 14:05:41 -0400
35 +Subject: [PATCH] Force libsystemd-shared to be static
36 +
37 +---
38 + Makefile.am | 2 +-
39 + 1 file changed, 1 insertion(+), 1 deletion(-)
40 +
41 +diff --git a/Makefile.am b/Makefile.am
42 +index 2a5610740..4e95cb316 100644
43 +--- a/Makefile.am
44 ++++ b/Makefile.am
45 +@@ -1145,7 +1145,7 @@ libshared_la_LIBADD = \
46 + $(BLKID_LIBS) \
47 + $(LIBCRYPTSETUP_LIBS)
48 +
49 +-rootlibexec_LTLIBRARIES += \
50 ++noinst_LTLIBRARIES += \
51 + libsystemd-shared.la
52 +
53 + libsystemd_shared_la_SOURCES = \
54 +--
55 +2.13.0
56 +
57
58 diff --git a/sys-boot/systemd-boot/systemd-boot-233.ebuild b/sys-boot/systemd-boot/systemd-boot-233.ebuild
59 new file mode 100644
60 index 00000000000..52aa812768a
61 --- /dev/null
62 +++ b/sys-boot/systemd-boot/systemd-boot-233.ebuild
63 @@ -0,0 +1,110 @@
64 +# Copyright 1999-2017 Gentoo Foundation
65 +# Distributed under the terms of the GNU General Public License v2
66 +
67 +EAPI=6
68 +
69 +inherit autotools toolchain-funcs
70 +
71 +DESCRIPTION="UEFI boot manager from systemd (formerly gummiboot)"
72 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/"
73 +SRC_URI="https://github.com/systemd/systemd/archive/v${PV}.tar.gz -> systemd-${PV}.tar.gz"
74 +
75 +LICENSE="GPL-2 LGPL-2.1 MIT public-domain"
76 +SLOT="0"
77 +KEYWORDS="~amd64"
78 +IUSE=""
79 +
80 +COMMON_DEPEND="
81 + >=sys-apps/util-linux-2.27.1
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}"/233-Force-libsystemd-shared-to-be-static.patch
102 +)
103 +
104 +src_prepare() {
105 + default
106 + eautoreconf
107 +}
108 +
109 +src_configure() {
110 + local myeconfargs=(
111 + EFI_CC="$(tc-getPROG "EFI_CC CC" gcc)"
112 + cc_cv_CFLAGS__flto=no
113 + cc_cv_LDFLAGS__Wl__fuse_ld_gold=no
114 + --enable-blkid
115 + --enable-efi
116 + --enable-gnuefi
117 + --disable-acl
118 + --disable-apparmor
119 + --disable-audit
120 + --disable-bzip2
121 + --disable-elfutils
122 + --disable-gcrypt
123 + --disable-gnutls
124 + --disable-kmod
125 + --disable-libcryptsetup
126 + --disable-libcurl
127 + --disable-libidn
128 + --disable-lz4
129 + --disable-microhttpd
130 + --disable-myhostname
131 + --disable-pam
132 + --disable-qrencode
133 + --disable-seccomp
134 + --disable-selinux
135 + --disable-xkbcommon
136 + --disable-xz
137 + --disable-zlib
138 + )
139 + econf "${myeconfargs[@]}"
140 +}
141 +
142 +src_compile() {
143 + local targets=(
144 + bootctl
145 + man/bootctl.1
146 + man/kernel-install.8
147 + '$(bootlib_DATA)'
148 + )
149 + emake built-sources
150 + echo "gentoo: ${targets[*]}" | emake -f Makefile -f - gentoo
151 +}
152 +
153 +src_install() {
154 + local args=(
155 + DESTDIR="${D%/}"
156 +
157 + # bootctl
158 + bin_PROGRAMS=bootctl
159 + install-binPROGRAMS
160 +
161 + # kernel-install
162 + install-dist_binSCRIPTS
163 + install-dist_kernelinstallSCRIPTS
164 +
165 + man_MANS="man/bootctl.1 man/kernel-install.8"
166 + install-man1
167 + install-man8
168 +
169 + install-bootlibDATA
170 + )
171 + emake "${args[@]}"
172 + einstalldocs
173 +}