public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/file/files/, sys-apps/file/
Date: Tue, 27 Dec 2022 19:30:57 +0000 (UTC)	[thread overview]
Message-ID: <1672169452.eedc8deda6d12b9e02f97c44dc16e95680e14c3e.grobian@gentoo> (raw)

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 <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,
+
+


             reply	other threads:[~2022-12-27 19:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-27 19:30 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-12-28  4:04 [gentoo-commits] repo/gentoo:master commit in: sys-apps/file/files/, sys-apps/file/ Sam James
2023-10-19 18:09 Mike Gilbert
2023-01-13 16:47 Sam James
2023-01-11 21:40 Sam James
2022-11-19 23:37 Sam James
2021-07-18 17:46 Mike Gilbert
2021-04-23 19:11 Mike Gilbert
2021-03-31  8:03 Lars Wendler
2021-03-11 16:46 Sam James
2020-09-07 16:56 Mike Gilbert
2020-06-24  9:27 Lars Wendler
2019-10-27  0:41 Thomas Deutschmann
2018-11-27 14:38 Lars Wendler
2018-07-19 16:12 Thomas Deutschmann
2017-01-17 16:23 Lars Wendler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1672169452.eedc8deda6d12b9e02f97c44dc16e95680e14c3e.grobian@gentoo \
    --to=grobian@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox