public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/rdesktop/, net-misc/rdesktop/files/
Date: Sat, 22 Apr 2023 16:54:22 +0000 (UTC)	[thread overview]
Message-ID: <1682182251.8c4b2ca299d38a6389a34ec33d16ab0602d33ef0.sam@gentoo> (raw)

commit:     8c4b2ca299d38a6389a34ec33d16ab0602d33ef0
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 22 16:50:51 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 22 16:50:51 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c4b2ca2

net-misc/rdesktop: fix configure w/ clang 16

Closes: https://bugs.gentoo.org/900310
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/rdesktop-1.9.0-configure-clang16.patch   | 28 ++++++++++++++++++++++
 ...op-1.9.0-r2.ebuild => rdesktop-1.9.0-r3.ebuild} |  3 ++-
 2 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/net-misc/rdesktop/files/rdesktop-1.9.0-configure-clang16.patch b/net-misc/rdesktop/files/rdesktop-1.9.0-configure-clang16.patch
new file mode 100644
index 000000000000..7222fdbb1e46
--- /dev/null
+++ b/net-misc/rdesktop/files/rdesktop-1.9.0-configure-clang16.patch
@@ -0,0 +1,28 @@
+https://bugs.gentoo.org/900310
+https://github.com/rdesktop/rdesktop/pull/407
+
+From 0a38f855c2f6bb197539fbb9ec0ce5a97775a178 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Tue, 18 Apr 2023 09:55:39 +0200
+Subject: [PATCH] configure.ac: Fix statvfs64 check for C99 compatibility
+
+C99 does not support implicit ints and implicit function declarations
+(such as exit here).  Avoid them, so that the configure check does
+not fail unconditionally with such compilers.
+--- a/configure.ac
++++ b/configure.ac
+@@ -668,12 +668,13 @@ if test $space = no; then
+   # SVR4
+   AC_CACHE_CHECK([statvfs64 function (SVR4)], fu_cv_sys_stat_statvfs64,
+   [AC_TRY_RUN([
++#include <stdlib.h>
+ #if defined(HAVE_UNISTD_H)
+ #include <unistd.h>
+ #endif
+ #include <sys/types.h>
+ #include <sys/statvfs.h>
+-  main ()
++  int main (void)
+   {
+     struct statvfs64 fsd;
+     exit (statvfs64 (".", &fsd));

diff --git a/net-misc/rdesktop/rdesktop-1.9.0-r2.ebuild b/net-misc/rdesktop/rdesktop-1.9.0-r3.ebuild
similarity index 95%
rename from net-misc/rdesktop/rdesktop-1.9.0-r2.ebuild
rename to net-misc/rdesktop/rdesktop-1.9.0-r3.ebuild
index 4d21768aeb01..c62a294dd291 100644
--- a/net-misc/rdesktop/rdesktop-1.9.0-r2.ebuild
+++ b/net-misc/rdesktop/rdesktop-1.9.0-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -50,6 +50,7 @@ PATCHES=(
 	"${FILESDIR}"/${PN}-1.8.3-xrandr_configure.patch
 	"${FILESDIR}"/${P}-rdssl_rkey_get_exp_mod.patch
 	"${FILESDIR}"/${P}-gssapi-check.patch
+	"${FILESDIR}"/${P}-configure-clang16.patch
 )
 
 DOCS=( doc/ChangeLog doc/HACKING doc/TODO doc/keymapping.txt )


             reply	other threads:[~2023-04-22 16:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-22 16:54 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-06-14 10:39 [gentoo-commits] repo/gentoo:master commit in: net-misc/rdesktop/, net-misc/rdesktop/files/ Bernard Cafarelli
2021-06-14 10:39 Bernard Cafarelli
2021-05-01 18:07 Sam James
2020-01-17 14:42 Bernard Cafarelli
2015-11-10 13:01 Bernard Cafarelli
2015-09-14  9:52 Bernard Cafarelli

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=1682182251.8c4b2ca299d38a6389a34ec33d16ab0602d33ef0.sam@gentoo \
    --to=sam@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