mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
Backport the -j1 added in ce0d6536cc59402682b39018e70014612c729148 to 22.03.00. Closes: https://bugs.gentoo.org/870109 Signed-off-by: Sam James <sam@gentoo.org>
57 lines
1.1 KiB
Bash
57 lines
1.1 KiB
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools
|
|
|
|
DESCRIPTION="Firmware Test Suite"
|
|
HOMEPAGE="https://wiki.ubuntu.com/Kernel/Reference/fwts https://kernel.ubuntu.com/git/hwe/fwts.git"
|
|
SRC_URI="https://launchpad.net/ubuntu/+archive/primary/+files/${PN}_${PV}.orig.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
DEPEND="dev-libs/glib:2
|
|
>=dev-libs/json-c-0.10-r1
|
|
dev-libs/libbsd
|
|
dev-libs/libpcre
|
|
sys-apps/dmidecode
|
|
sys-apps/dtc
|
|
sys-apps/pciutils
|
|
sys-power/iasl
|
|
sys-power/pmtools
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND="virtual/pkgconfig"
|
|
|
|
S=${WORKDIR}
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${P}-slibtool.patch" # 780372
|
|
"${FILESDIR}/${P}-werror.patch"
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
sed -e 's:/usr/bin/lspci:'$(type -p lspci)':' \
|
|
-e 's:/usr/sbin/dmidecode:'$(type -p dmidecode)':' \
|
|
-e 's:/usr/bin/iasl:'$(type -p iasl)':' \
|
|
-i src/lib/include/fwts_binpaths.h || die
|
|
|
|
eautoreconf
|
|
}
|
|
|
|
src_compile() {
|
|
# https://github.com/fwts/fwts/issues/7 (bug #870109)
|
|
emake -j1 --shuffle=none
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
find "${ED}" -name '*.la' -delete || die
|
|
}
|