x11-misc/xscreensaver: drop dead prefix targets

Half the patch didn't make sense nowadays anyway as sync() was commented out.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-05-29 18:21:42 +01:00
parent fee0f673f6
commit 22193401fc
4 changed files with 1 additions and 34 deletions

View File

@@ -1,30 +0,0 @@
diff -Nru a/driver/prefsw.c b/driver/prefsw.c
--- a/driver/prefsw.c 2021-02-19 02:52:32.000000000 +0100
+++ b/driver/prefsw.c 2021-05-07 15:20:09.280321274 +0200
@@ -798,7 +798,10 @@
sure that the bits actually land on the disk right away. */
/* Update 2020: Apparently here in the future, this sometimes takes
3+ seconds, so let's not. */
+/* Interix has no sync() or alike. */
+#ifndef __INTERIX
/* sync(); */
+#endif
status = 0; /* wrote and renamed successfully! */
}
diff -Nru a/driver/setuid.c b/driver/setuid.c
--- a/driver/setuid.c 2021-02-05 16:16:23.000000000 +0100
+++ b/driver/setuid.c 2021-05-07 15:21:05.987949943 +0200
@@ -104,9 +104,12 @@
if (uid == (uid_t) -1) uid = (uid_t) -2;
errno = 0;
+
+#ifndef __INTERIX
if (setgroups_needed_p (gid) &&
setgroups (1, &gid) < 0)
sgs_errno = errno ? errno : -1;
+#endif
errno = 0;
if (setgid (gid) != 0)

View File

@@ -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=8
@@ -77,7 +77,6 @@ BDEPEND="
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/${PN}-6.01-interix.patch
"${FILESDIR}"/${PN}-5.31-pragma.patch
"${FILESDIR}"/${PN}-6.01-gentoo.patch
"${FILESDIR}"/${PN}-5.45-gcc.patch

View File

@@ -78,7 +78,6 @@ BDEPEND="
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/${PN}-6.01-interix.patch
"${FILESDIR}"/${PN}-5.31-pragma.patch
"${FILESDIR}"/${PN}-6.01-gentoo.patch
"${FILESDIR}"/${PN}-5.45-gcc.patch

View File

@@ -75,7 +75,6 @@ BDEPEND="
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/${PN}-6.01-interix.patch
"${FILESDIR}"/${PN}-5.31-pragma.patch
"${FILESDIR}"/${PN}-6.01-gentoo.patch
"${FILESDIR}"/${PN}-5.45-gcc.patch