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: sys-apps/accountsservice/, sys-apps/accountsservice/files/
Date: Tue, 28 Feb 2023 03:20:33 +0000 (UTC)	[thread overview]
Message-ID: <1677554415.5fa97bca95c5a6ff2448bf1abe7ef96016d2be7a.sam@gentoo> (raw)

commit:     5fa97bca95c5a6ff2448bf1abe7ef96016d2be7a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 28 03:20:15 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Feb 28 03:20:15 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fa97bca

sys-apps/accountsservice: fix configure w/ clang 16

Signed-off-by: Sam James <sam <AT> gentoo.org>

 ....8.ebuild => accountsservice-22.08.8-r1.ebuild} |  1 +
 ...accountsservice-22.08.8-configure-clang16.patch | 33 ++++++++++++++++++++++
 2 files changed, 34 insertions(+)

diff --git a/sys-apps/accountsservice/accountsservice-22.08.8.ebuild b/sys-apps/accountsservice/accountsservice-22.08.8-r1.ebuild
similarity index 97%
rename from sys-apps/accountsservice/accountsservice-22.08.8.ebuild
rename to sys-apps/accountsservice/accountsservice-22.08.8-r1.ebuild
index 9f34a6d97636..738666099808 100644
--- a/sys-apps/accountsservice/accountsservice-22.08.8.ebuild
+++ b/sys-apps/accountsservice/accountsservice-22.08.8-r1.ebuild
@@ -51,6 +51,7 @@ RDEPEND="${CDEPEND}
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-22.04.62-gentoo-system-users.patch
+	"${FILESDIR}"/${P}-configure-clang16.patch
 )
 
 python_check_deps() {

diff --git a/sys-apps/accountsservice/files/accountsservice-22.08.8-configure-clang16.patch b/sys-apps/accountsservice/files/accountsservice-22.08.8-configure-clang16.patch
new file mode 100644
index 000000000000..939418752731
--- /dev/null
+++ b/sys-apps/accountsservice/files/accountsservice-22.08.8-configure-clang16.patch
@@ -0,0 +1,33 @@
+https://gitlab.freedesktop.org/accountsservice/accountsservice/-/commit/453f893e3c38c209ae9dff47bca74ccb33a5bd34
+
+From 453f893e3c38c209ae9dff47bca74ccb33a5bd34 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Tue, 28 Feb 2023 02:31:50 +0000
+Subject: [PATCH] meson.build: fix -Wimplicit-function-declaration in configure
+ tests for printf
+
+<stdio.h> needs to be included for printf. Newer compilers like Clang 16 make
+implicit function declarations an error by default which can cause misleading
+or incorrect configure test results.
+
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/meson.build
++++ b/meson.build
+@@ -79,6 +79,7 @@ endforeach
+ 
+ if cc.has_header_symbol('utmpx.h', 'WTMPX_FILENAME', prefix: '#define _GNU_SOURCE')
+   code = '''#define _GNU_SOURCE
++  #include <stdio.h>
+   #include <utmpx.h>
+   int main (int argc, char **argv) {
+     printf ("%s\n", WTMPX_FILENAME);
+@@ -91,6 +92,7 @@ if cc.has_header_symbol('utmpx.h', 'WTMPX_FILENAME', prefix: '#define _GNU_SOURC
+   config_h.set('PATH_WTMP', 'WTMPX_FILENAME')
+ elif cc.has_header_symbol('paths.h', '_PATH_WTMPX')
+   code = '''#include <paths.h>
++  #include <stdio.h>
+   int main (int argc, char **argv) {
+     printf ("%s\n", _PATH_WTMPX);
+     return 0;
+-- 
+GitLab


             reply	other threads:[~2023-02-28  3:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-28  3:20 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-03 11:03 [gentoo-commits] repo/gentoo:master commit in: sys-apps/accountsservice/, sys-apps/accountsservice/files/ Sam James
2023-11-24 10:58 Pacho Ramos
2023-05-05 16:24 Matt Turner
2022-01-30 20:21 Matt Turner
2021-09-05  9:06 Andreas Sturmlechner
2018-11-24 14:47 Mart Raudsepp

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=1677554415.5fa97bca95c5a6ff2448bf1abe7ef96016d2be7a.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