summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Jäger <pascal.jaeger@leimstift.de>2022-12-07 17:18:40 +0100
committerSam James <sam@gentoo.org>2022-12-07 21:29:22 +0000
commit71ae0b143a55fd45d4fd56cff13438cdbc602089 (patch)
tree3a92098191f4f736faff6535a8bbd7fd17b9fe75 /x11-misc/xlockmore/files/xlockmore-5.71-fix-build-for-clang16.patch
parentapp-editors/bluefish: revbump, fix build for clang16 (diff)
downloadgentoo-71ae0b143a55fd45d4fd56cff13438cdbc602089.tar.gz
gentoo-71ae0b143a55fd45d4fd56cff13438cdbc602089.tar.bz2
gentoo-71ae0b143a55fd45d4fd56cff13438cdbc602089.zip
x11-misc/xlockmore: version bump to 5.71, patch
- version bump to 5.71 - patch to fix build on clang16 - add filter-lto Closes: https://bugs.gentoo.org/880909 Closes: https://bugs.gentoo.org/864761 Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de> Closes: https://github.com/gentoo/gentoo/pull/28590 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'x11-misc/xlockmore/files/xlockmore-5.71-fix-build-for-clang16.patch')
-rw-r--r--x11-misc/xlockmore/files/xlockmore-5.71-fix-build-for-clang16.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/x11-misc/xlockmore/files/xlockmore-5.71-fix-build-for-clang16.patch b/x11-misc/xlockmore/files/xlockmore-5.71-fix-build-for-clang16.patch
new file mode 100644
index 000000000000..a6bd223373b1
--- /dev/null
+++ b/x11-misc/xlockmore/files/xlockmore-5.71-fix-build-for-clang16.patch
@@ -0,0 +1,28 @@
+Clang16 will not allow assigning imcompatbile function pointer types.
+Therefore this patch adds casts to the function pointers.
+
+Bug: https://bugs.gentoo.org/880909
+This patch has been sent to upstream via mail.
+
+Pascal Jäger <pascal.jaeger@leimstift.de> (2022-12-07)
+
+--- a/xlock/vtlock_proc.c
++++ b/xlock/vtlock_proc.c
+@@ -188,7 +188,7 @@ find_x_proc(int disp_nr, dev_t lxdev, ino_t lxino)
+ lencmd = strlen(xcmd_ref);
+ if ( stat( PROCDIR, &stbuf ) == -1 ) return( (pid_t)-1 );
+ namelist = (struct dirent **) malloc(sizeof (struct dirent *));
+- if ((names = scan_dir(PROCDIR, &namelist, proc_dir_select, alphasort)) == -1 )
++ if ((names = scan_dir(PROCDIR, &namelist, proc_dir_select, (int (*)(const void *, const void *))alphasort)) == -1 )
+ {
+ free(namelist);
+ return( (pid_t)-1 );
+@@ -301,7 +301,7 @@ scan_x_fds( struct inode_ref *inotab, int ln_ttys, pid_t proc )
+
+ (void) sprintf(xfddir, PROCDIR "/%d/fd", proc);
+ namelist = (struct dirent **) malloc(sizeof (struct dirent *));
+- if (scan_dir(xfddir, &namelist, NULL, alphasort) == -1) {
++ if (scan_dir(xfddir, &namelist, NULL, (int (*)(const void *, const void *))alphasort) == -1) {
+ free(namelist);
+ return 0;
+ }