diff options
author | 2020-01-12 16:40:39 -0800 | |
---|---|---|
committer | 2020-01-12 17:07:44 -0800 | |
commit | 5e25b4aa1598f53a0712d6229df67f5564687285 (patch) | |
tree | a1c122b83f8a8d6a767c9cf4d71ecbadfc4d4593 /sys-boot/vboot-utils/vboot-utils-80_p20200108.ebuild | |
parent | sci-astronomy/stellarium: stable 0.19.3 for ppc, bug #705294 (diff) | |
download | gentoo-5e25b4aa1598f53a0712d6229df67f5564687285.tar.gz gentoo-5e25b4aa1598f53a0712d6229df67f5564687285.tar.bz2 gentoo-5e25b4aa1598f53a0712d6229df67f5564687285.zip |
sys-boot/vboot-utils: Bump to version 80_p20200108
Closes: https://bugs.gentoo.org/688396
Closes: https://bugs.gentoo.org/687820
Closes: https://bugs.gentoo.org/678594
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'sys-boot/vboot-utils/vboot-utils-80_p20200108.ebuild')
-rw-r--r-- | sys-boot/vboot-utils/vboot-utils-80_p20200108.ebuild | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/sys-boot/vboot-utils/vboot-utils-80_p20200108.ebuild b/sys-boot/vboot-utils/vboot-utils-80_p20200108.ebuild new file mode 100644 index 000000000000..41a810546177 --- /dev/null +++ b/sys-boot/vboot-utils/vboot-utils-80_p20200108.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +# Can't use gitiles directly until b/19710536 is fixed. +# This is the name of the latest release branch. +#RELEASE="release-R80-12739.B" +# This is the latest commit in the release-R80-12739.B branch. +#GIT_SHA1="236bd46bfb59f0262dcb1771a108ebb5e90df578" + +DESCRIPTION="Chrome OS verified boot tools" +HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform/vboot_reference/ https://dev.chromium.org/chromium-os/chromiumos-design-docs/verified-boot" +# Can't use gitiles directly until b/19710536 is fixed. +#SRC_URI="https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+archive/refs/heads/${RELEASE}.tar.gz -> ${P}.tar.gz" +#SRC_URI="https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+archive/${GIT_SHA1}.tar.gz -> ${P}.tar.gz" +SRC_URI="mirror://gentoo/${P}.tar.xz + https://dev.gentoo.org/~zmedico/dist/${P}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86" +IUSE="libressl +libzip minimal static" + +LIB_DEPEND=" + dev-libs/libyaml:=[static-libs(+)] + app-arch/xz-utils:=[static-libs(+)]" +LIB_DEPEND_MINIMAL=" + elibc_musl? ( sys-libs/fts-standalone:=[static-libs(+)] ) + !libressl? ( dev-libs/openssl:0=[static-libs(+)] ) + libressl? ( dev-libs/libressl:0=[static-libs(+)] ) + libzip? ( dev-libs/libzip:=[static-libs(+)] ) + sys-apps/util-linux:=[static-libs(+)]" +RDEPEND="!static? ( + ${LIB_DEPEND_MINIMAL//\[static-libs(+)]} + !minimal? ( ${LIB_DEPEND//\[static-libs(+)]} ) + )" +DEPEND="${RDEPEND} + static? ( + ${LIB_DEPEND_MINIMAL} + !minimal? ( ${LIB_DEPEND} ) + ) + app-crypt/trousers" +BDEPEND="virtual/pkgconfig" + +S=${WORKDIR} + +PATCHES=( + # Bug #687820 + "${FILESDIR}"/${PN}-80-musl-fts.patch +) + +src_prepare() { + default + + # Bug #687008 + if ! use libzip; then + sed -e 's|^\(LIBZIP_VERSION :=\).*|\1|' -i Makefile || die + fi + + sed -i \ + -e 's:${DESTDIR}/\(bin\|include\|${LIBDIR}\|share\):${DESTDIR}/usr/\1:g' \ + -e 's:${DESTDIR}/default:${DESTDIR}/etc/default:g' \ + -e 's:${TEST_INSTALL_DIR}/bin:${TEST_INSTALL_DIR}/usr/bin:' \ + Makefile || die + sed -e 's:^BIN_DIR=${BUILD_DIR}/install_for_test/bin:BIN_DIR=${BUILD_DIR}/install_for_test/usr/bin:' \ + -i tests/common.sh || die +} + +_emake() { + local arch=$(tc-arch) + emake \ + V=1 \ + QEMU_ARCH= \ + ARCH=${arch} \ + HOST_ARCH=${arch} \ + LIBDIR="$(get_libdir)" \ + DEBUG_FLAGS= \ + WERROR= \ + MINIMAL=$(usev minimal) \ + STATIC=$(usev static) \ + $(usex elibc_musl HAVE_MUSL=1 "") \ + "$@" +} + +src_compile() { + tc-export CC AR CXX PKG_CONFIG + _emake FUZZ_TEST_BINS= TEST_BINS= all +} + +src_test() { + _emake runtests +} + +src_install() { + _emake DESTDIR="${ED}" install install_dev + + insinto /usr/share/vboot/devkeys + doins tests/devkeys/* + + dodoc README +} |