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: app-editors/xvile/files/, app-editors/xvile/
Date: Tue, 15 Nov 2022 02:22:25 +0000 (UTC)	[thread overview]
Message-ID: <1668478128.4d3d40a29078d1796ed26b83d5a823155a5ce015.sam@gentoo> (raw)

commit:     4d3d40a29078d1796ed26b83d5a823155a5ce015
Author:     Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
AuthorDate: Sun Nov 13 14:05:40 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Nov 15 02:08:48 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d3d40a2

app-editors/xvile: fix build for clang16

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

Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de>
Closes: https://github.com/gentoo/gentoo/pull/28255
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/xvile-9.8w-fix-build-for-clang16.patch   | 27 ++++++++++++++++++++++
 .../{xvile-9.8w.ebuild => xvile-9.8w-r1.ebuild}    |  2 ++
 2 files changed, 29 insertions(+)

diff --git a/app-editors/xvile/files/xvile-9.8w-fix-build-for-clang16.patch b/app-editors/xvile/files/xvile-9.8w-fix-build-for-clang16.patch
new file mode 100644
index 000000000000..df5b6d605054
--- /dev/null
+++ b/app-editors/xvile/files/xvile-9.8w-fix-build-for-clang16.patch
@@ -0,0 +1,27 @@
+Clang16 will not allow implicit function pointer types by default.
+
+Bug: https://bugs.gentoo.org/880941
+Upstream Bug report and patch: https://savannah.nongnu.org/bugs/index.php?63356
+
+Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
+
+--- a/x11.c
++++ b/x11.c
+@@ -2259,7 +2259,7 @@ x_preparse_args(int *pargc, char ***pargv)
+     if (isEmpty(xvile_class))
+ 	xvile_class = MY_CLASS;
+ 
+-    XtSetErrorHandler(initial_error_handler);
++    XtSetErrorHandler((__attribute__((noreturn)) XtErrorHandler)runtime_error_handler);
+     memset(cur_win, 0, sizeof(*cur_win));
+     cur_win->top_widget = XtVaAppInitialize(&cur_win->app_context,
+ 					    xvile_class,
+@@ -2269,7 +2269,7 @@ x_preparse_args(int *pargc, char ***pargv)
+ 					    Nval(XtNgeometry, NULL),
+ 					    Nval(XtNinput, TRUE),
+ 					    NULL);
+-    XtSetErrorHandler(runtime_error_handler);
++    XtSetErrorHandler((__attribute__((noreturn)) XtErrorHandler)runtime_error_handler);
+     dpy = XtDisplay(cur_win->top_widget);
+ 
+     XtVaGetValues(cur_win->top_widget,

diff --git a/app-editors/xvile/xvile-9.8w.ebuild b/app-editors/xvile/xvile-9.8w-r1.ebuild
similarity index 94%
rename from app-editors/xvile/xvile-9.8w.ebuild
rename to app-editors/xvile/xvile-9.8w-r1.ebuild
index 2d85fe5b7359..081a230fd55d 100644
--- a/app-editors/xvile/xvile-9.8w.ebuild
+++ b/app-editors/xvile/xvile-9.8w-r1.ebuild
@@ -29,6 +29,8 @@ DEPEND="${RDEPEND}
 	sys-devel/flex"
 BDEPEND="virtual/pkgconfig"
 
+PATCHES=( "${FILESDIR}/${P}"-fix-build-for-clang16.patch )
+
 S="${WORKDIR}"/${MY_P}
 
 src_configure() {


             reply	other threads:[~2022-11-15  2:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-15  2:22 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-09-05 20:22 [gentoo-commits] repo/gentoo:master commit in: app-editors/xvile/files/, app-editors/xvile/ Tim Harder

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=1668478128.4d3d40a29078d1796ed26b83d5a823155a5ce015.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