Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/vboot-utils/
Date: Thu, 03 Jan 2019 23:50:25
Message-Id: 1546559408.a599090d15353f23b20fab94cdbbdedffcfbc4aa.zmedico@gentoo
1 commit: a599090d15353f23b20fab94cdbbdedffcfbc4aa
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 3 23:02:45 2019 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 3 23:50:08 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a599090d
7
8 sys-boot/vboot-utils: version bump to 72_p20181229 with openssl-1.1 support
9
10 Reported-by: Harri Nieminen <moiman <AT> posteo.net>
11 Closes: https://bugs.gentoo.org/673954
12 Package-Manager: Portage-2.3.53, Repoman-2.3.12
13 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
14
15 sys-boot/vboot-utils/Manifest | 1 +
16 .../vboot-utils/vboot-utils-72_p20181229.ebuild | 98 ++++++++++++++++++++++
17 2 files changed, 99 insertions(+)
18
19 diff --git a/sys-boot/vboot-utils/Manifest b/sys-boot/vboot-utils/Manifest
20 index de1ea2d3981..7a88e037d44 100644
21 --- a/sys-boot/vboot-utils/Manifest
22 +++ b/sys-boot/vboot-utils/Manifest
23 @@ -1 +1,2 @@
24 DIST vboot-utils-59_p20170413.tar.xz 18431260 BLAKE2B 73853f92c5855a1fbcad55c696414317f46a06a69901529dd6da19be2abe4ca0337cf20dddc4f84f1d2a99357bb2f01df115b7d16c45f9af62dcd1b833580d46 SHA512 f92b9aed7a52ac7bab49b624725d4963564a22a03741619ad4ef1bc0a1fdee5123c68f3dad5bef9fb033f94f2a9ae99478c16386758fe4667a361bc91dda8048
25 +DIST vboot-utils-72_p20181229.tar.xz 18489004 BLAKE2B 444eb0bc2c571ad79d26d473da724016d6d041207beaae161f6c1155768ff9d0b1c8b7b070b828083cc1396266cc77175a75e8067ce22613c75b4d77780dda75 SHA512 41df034dc5498bcbec0d49a472331ceb2fbc2eb3b4173d5c56e920d65ae485382b3d811e5f2c13cf45a1b05a5d6a24197924fa1c76ada9c3aac14fa3c4c363fe
26
27 diff --git a/sys-boot/vboot-utils/vboot-utils-72_p20181229.ebuild b/sys-boot/vboot-utils/vboot-utils-72_p20181229.ebuild
28 new file mode 100644
29 index 00000000000..3469619cf31
30 --- /dev/null
31 +++ b/sys-boot/vboot-utils/vboot-utils-72_p20181229.ebuild
32 @@ -0,0 +1,98 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit eutils toolchain-funcs
39 +
40 +# This is the latest commit in the latest branch.
41 +GIT_SHA1="a32c930e8c46424a3bba3c296fd78b3e60f50aeb"
42 +
43 +DESCRIPTION="Chrome OS verified boot tools"
44 +HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform/vboot_reference/ http://dev.chromium.org/chromium-os/chromiumos-design-docs/verified-boot"
45 +# Can't use gitiles directly until b/19710536 is fixed.
46 +#SRC_URI="https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+archive/${GIT_SHA1}.tar.gz -> ${P}.tar.gz"
47 +SRC_URI="mirror://gentoo/${P}.tar.xz
48 + https://dev.gentoo.org/~zmedico/dist/${P}.tar.xz"
49 +
50 +LICENSE="BSD"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
53 +IUSE="libressl minimal static"
54 +
55 +LIB_DEPEND="
56 + dev-libs/libyaml:=[static-libs(+)]
57 + app-arch/xz-utils:=[static-libs(+)]"
58 +LIB_DEPEND_MINIMAL="
59 + !libressl? ( dev-libs/openssl:0=[static-libs(+)] )
60 + libressl? ( dev-libs/libressl:0=[static-libs(+)] )
61 + sys-apps/util-linux:=[static-libs(+)]
62 + dev-libs/libzip:=[static-libs(+)]"
63 +RDEPEND="!static? (
64 + ${LIB_DEPEND_MINIMAL//\[static-libs(+)]}
65 + !minimal? ( ${LIB_DEPEND//\[static-libs(+)]} )
66 + )"
67 +DEPEND="${RDEPEND}
68 + static? (
69 + ${LIB_DEPEND_MINIMAL}
70 + !minimal? ( ${LIB_DEPEND} )
71 + )
72 + app-crypt/trousers"
73 +
74 +S=${WORKDIR}
75 +
76 +src_prepare() {
77 + default
78 + sed -i \
79 + -e 's:${DESTDIR}/\(bin\|${LIBDIR}\):${DESTDIR}/usr/\1:g' \
80 + -e 's:${DESTDIR}/default:${DESTDIR}/etc/default:g' \
81 + -e 's:${TEST_INSTALL_DIR}/bin:${TEST_INSTALL_DIR}/usr/bin:' \
82 + -e '/cgpt -D 358400/d' \
83 + Makefile || die
84 + sed -e 's:^BIN_DIR=${BUILD_DIR}/install_for_test/bin:BIN_DIR=${BUILD_DIR}/install_for_test/usr/bin:' \
85 + -i tests/common.sh || die
86 + sed -e "s:/mnt/host/source/src/platform/vboot_reference:${S}:" \
87 + -i tests/futility/expect_output/* || die
88 +}
89 +
90 +_emake() {
91 + local arch=$(tc-arch)
92 + emake \
93 + V=1 \
94 + QEMU_ARCH= \
95 + ARCH=${arch} \
96 + HOST_ARCH=${arch} \
97 + LIBDIR="$(get_libdir)" \
98 + DEBUG_FLAGS= \
99 + WERROR= \
100 + MINIMAL=$(usev minimal) \
101 + STATIC=$(usev static) \
102 + $(usex elibc_musl HAVE_MUSL=1 "") \
103 + "$@"
104 +}
105 +
106 +src_compile() {
107 + tc-export CC AR CXX PKG_CONFIG
108 + _emake TEST_BINS= all
109 +}
110 +
111 +src_test() {
112 + _emake runtests
113 +}
114 +
115 +src_install() {
116 + _emake DESTDIR="${ED}" install
117 +
118 + insinto /usr/share/vboot/devkeys
119 + doins tests/devkeys/*
120 +
121 + insinto /usr/include/vboot
122 + doins host/include/* \
123 + firmware/include/gpt.h \
124 + firmware/include/tlcl.h \
125 + firmware/include/tss_constants.h
126 +
127 + dolib.a build/libvboot_host.a
128 +
129 + dodoc README
130 +}