sys-apps/iucode_tool: Sync with Gentoo

It's from Gentoo commit 7d2c2b61259608ceeef2b9e4713ea55e12ed6519.
This commit is contained in:
Krzesimir Nowak 2022-08-23 16:25:49 +02:00
parent 32f4e13473
commit b4ddc5080d
3 changed files with 26 additions and 6 deletions

View File

@ -0,0 +1,10 @@
Fixes build on musl.
--- a/iucode_tool.c
+++ b/iucode_tool.c
@@ -29,6 +29,7 @@
#include <assert.h>
#include <argp.h>
#include <dirent.h>
+#include <limits.h>
#include <time.h>
#include <cpuid.h>

View File

@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors # Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI="7" EAPI="7"
@ -10,6 +10,12 @@ SRC_URI="https://gitlab.com/iucode-tool/releases/raw/master/${PN/_/-}_${PV}.tar.
LICENSE="GPL-2" LICENSE="GPL-2"
SLOT="0" SLOT="0"
KEYWORDS="-* amd64 x86" KEYWORDS="-* amd64 x86"
IUSE=""
RDEPEND="elibc_musl? ( sys-libs/argp-standalone )"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${PN/_/-}-${PV}" S="${WORKDIR}/${PN/_/-}-${PV}"
PATCHES=(
"${FILESDIR}"/${PN}-2.3.1-limits-include.patch
)

View File

@ -5,4 +5,8 @@
<email>base-system@gentoo.org</email> <email>base-system@gentoo.org</email>
<name>Gentoo Base System</name> <name>Gentoo Base System</name>
</maintainer> </maintainer>
<upstream>
<remote-id type="gitlab">iucode-tool/iucode-tool</remote-id>
<remote-id type="gitlab">iucode-tool/releases</remote-id>
</upstream>
</pkgmetadata> </pkgmetadata>