From eedc8deda6d12b9e02f97c44dc16e95680e14c3e Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Tue, 27 Dec 2022 20:30:13 +0100 Subject: [PATCH] sys-apps/file-5.44: add build patch for Solaris Signed-off-by: Fabian Groffen --- sys-apps/file/file-5.44.ebuild | 1 + .../file/files/file-5.44-limits-solaris.patch | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 sys-apps/file/files/file-5.44-limits-solaris.patch diff --git a/sys-apps/file/file-5.44.ebuild b/sys-apps/file/file-5.44.ebuild index 41f62b904bd3f..e300174f860d3 100644 --- a/sys-apps/file/file-5.44.ebuild +++ b/sys-apps/file/file-5.44.ebuild @@ -54,6 +54,7 @@ BDEPEND+=" PATCHES=( "${FILESDIR}/file-5.39-portage-sandbox.patch" #713710 #728978 "${FILESDIR}/file-5.40-seccomp-fstatat64-musl.patch" #789336, not upstream yet + "${FILESDIR}/file-5.44-limits-solaris.patch" # not upstream yet ) src_prepare() { diff --git a/sys-apps/file/files/file-5.44-limits-solaris.patch b/sys-apps/file/files/file-5.44-limits-solaris.patch new file mode 100644 index 0000000000000..7a04535577b4f --- /dev/null +++ b/sys-apps/file/files/file-5.44-limits-solaris.patch @@ -0,0 +1,19 @@ +softmagic: include limits.h for UINT_MAX usage + +Platforms like Solaris need this to compile. + +Bug: https://bugs.astron.com/view.php?id=413 +Signed-off-by: Fabian Groffen + +--- a/src/softmagic.c ++++ b/src/softmagic.c +@@ -42,6 +42,7 @@ + #include + #include + #include ++#include + #include "der.h" + + file_private int match(struct magic_set *, struct magic *, file_regex_t **, size_t, + +