public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/moonbridge/files/, www-servers/moonbridge/
Date: Mon, 11 Jul 2022 19:27:56 +0000 (UTC)	[thread overview]
Message-ID: <1657567647.9b810c67bdeed3a2ea8ddea55034dbf7f3f33de7.tupone@gentoo> (raw)

commit:     9b810c67bdeed3a2ea8ddea55034dbf7f3f33de7
Author:     brahmajit das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Mon Jul 11 19:24:41 2022 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Jul 11 19:27:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b810c67

www-servers/moonbridge: Fix building on musl. Include fcntl

It is explicitely required to include fcntl.h in musl.
Else we get F_SETFD, FD_CLOEXEC undefined errors.

Closes: https://bugs.gentoo.org/828671

Signed-off-by: brahmajit das <brahmajit.xyz <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/26352
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 www-servers/moonbridge/files/moonbridge-1.0.1-fcntl.patch | 14 ++++++++++++++
 www-servers/moonbridge/moonbridge-1.0.1.ebuild            |  5 ++++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/www-servers/moonbridge/files/moonbridge-1.0.1-fcntl.patch b/www-servers/moonbridge/files/moonbridge-1.0.1-fcntl.patch
new file mode 100644
index 000000000000..2a1d15b09238
--- /dev/null
+++ b/www-servers/moonbridge/files/moonbridge-1.0.1-fcntl.patch
@@ -0,0 +1,14 @@
+#It is explicitely required to include fcntl.h in musl.
+#Else we get F_SETFD, FD_CLOEXEC undefined errors.
+#
+#Closes: https://bugs.gentoo.org/828671
+--- a/moonbridge.c
++++ b/moonbridge.c
+@@ -36,6 +36,7 @@
+ #include <getopt.h>
+ #include <sys/file.h>
+ #include <syslog.h>
++#include <fcntl.h>
+ #if defined(__FreeBSD__) || __has_include(<libutil.h>)
+ #include <libutil.h>
+ #endif

diff --git a/www-servers/moonbridge/moonbridge-1.0.1.ebuild b/www-servers/moonbridge/moonbridge-1.0.1.ebuild
index 93fb08c942b9..c718ae8e1f34 100644
--- a/www-servers/moonbridge/moonbridge-1.0.1.ebuild
+++ b/www-servers/moonbridge/moonbridge-1.0.1.ebuild
@@ -27,7 +27,10 @@ BDEPEND="sys-devel/pmake
 
 S="${WORKDIR}"/${MYP}
 
-PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+PATCHES=(
+    "${FILESDIR}"/${P}-gentoo.patch
+    "${FILESDIR}"/${P}-fcntl.patch
+)
 
 DOCS=( README reference.txt )
 


             reply	other threads:[~2022-07-11 19:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-11 19:27 Alfredo Tupone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-02-20  7:40 [gentoo-commits] repo/gentoo:master commit in: www-servers/moonbridge/files/, www-servers/moonbridge/ Alfredo Tupone
2024-01-22 21:21 Alfredo Tupone
2021-04-18  8:33 Alfredo Tupone

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=1657567647.9b810c67bdeed3a2ea8ddea55034dbf7f3f33de7.tupone@gentoo \
    --to=tupone@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