mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
sys-apps/file-5.44: add build patch for Solaris
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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 <grobian@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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user