commit: eedc8deda6d12b9e02f97c44dc16e95680e14c3e Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Tue Dec 27 19:30:13 2022 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Tue Dec 27 19:30:52 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eedc8ded
sys-apps/file-5.44: add build patch for Solaris Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> sys-apps/file/file-5.44.ebuild | 1 + sys-apps/file/files/file-5.44-limits-solaris.patch | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/sys-apps/file/file-5.44.ebuild b/sys-apps/file/file-5.44.ebuild index 41f62b904bd3..e300174f860d 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 000000000000..7a04535577b4 --- /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 <grob...@gentoo.org> + +--- a/src/softmagic.c ++++ b/src/softmagic.c +@@ -42,6 +42,7 @@ + #include <ctype.h> + #include <stdlib.h> + #include <time.h> ++#include <limits.h> + #include "der.h" + + file_private int match(struct magic_set *, struct magic *, file_regex_t **, size_t, + +