FreeBSD Bugzilla – Attachment 197552 Details for
Bug 231765
graphics/wayland: fix build with mips, mips64, powerpc64
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
wayland.patch (text/plain), 2.65 KB, created by
Piotr Kubaj
on 2018-09-27 17:59:26 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2018-09-27 17:59:26 UTC
Size:
2.65 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 480800) >+++ Makefile (working copy) >@@ -12,10 +12,6 @@ > LICENSE= MIT > LICENSE_FILE= ${WRKSRC}/COPYING > >-BROKEN_mips= fails to compile: tests/test-runner.c:349: undefined reference to prctl >-BROKEN_mips64= fails to compile: tests/test-runner.c:349: undefined reference to prctl >-BROKEN_powerpc64= fails to compile: tests/test-runner.c:349: undefined reference to prctl >- > LIB_DEPENDS= libexpat.so:textproc/expat2 \ > libffi.so:devel/libffi \ > libepoll-shim.so:devel/libepoll-shim >@@ -24,7 +20,8 @@ > > WITH_DEBUG= 1 > >-USES= autoreconf gmake libtool localbase pathfix pkgconfig tar:xz >+USES= autoreconf gnome gmake libtool localbase pathfix pkgconfig \ >+ tar:xz > USE_GNOME= libxslt:build > USE_LDCONFIG= yes > GNU_CONFIGURE= yes >Index: files/patch-tests_test-runner.c >=================================================================== >--- files/patch-tests_test-runner.c (revision 480806) >+++ files/patch-tests_test-runner.c (working copy) >@@ -84,7 +84,7 @@ > pid = fork(); > if (pid == -1) { > perror("fork"); >-@@ -312,7 +339,7 @@ is_debugger_attached(void) >+@@ -312,14 +339,13 @@ is_debugger_attached(void) > _exit(1); > if (!waitpid(-1, NULL, 0)) > _exit(1); >@@ -93,7 +93,14 @@ > ptrace(PTRACE_DETACH, ppid, NULL, NULL); > _exit(0); > } else { >-@@ -346,17 +373,19 @@ int main(int argc, char *argv[]) >+ close(pipefd[0]); >+ >+ /* Enable child to ptrace the parent process */ >+- rc = prctl(PR_SET_PTRACER, pid); >+ if (rc != 0 && errno != EINVAL) { >+ /* An error prevents us from telling if a debugger is attached. >+ * Instead of propagating the error, assume no debugger present. >+@@ -346,17 +372,19 @@ int main(int argc, char *argv[]) > const struct test *t; > pid_t pid; > int total, pass; >@@ -116,7 +123,7 @@ > if (is_debugger_attached()) { > leak_check_enabled = 0; > timeouts_enabled = 0; >-@@ -364,7 +393,17 @@ int main(int argc, char *argv[]) >+@@ -364,7 +392,17 @@ int main(int argc, char *argv[]) > leak_check_enabled = !getenv("WAYLAND_TEST_NO_LEAK_CHECK"); > timeouts_enabled = !getenv("WAYLAND_TEST_NO_TIMEOUTS"); > } >@@ -134,7 +141,7 @@ > if (argc == 2 && strcmp(argv[1], "--help") == 0) > usage(argv[0], EXIT_SUCCESS); > >-@@ -395,7 +434,8 @@ int main(int argc, char *argv[]) >+@@ -395,7 +433,8 @@ int main(int argc, char *argv[]) > if (pid == 0) > run_test(t); /* never returns */ > >@@ -144,7 +151,7 @@ > stderr_set_color(RED); > fprintf(stderr, "waitid failed: %m\n"); > stderr_reset_color(); >-@@ -426,6 +466,25 @@ int main(int argc, char *argv[]) >+@@ -426,6 +465,25 @@ int main(int argc, char *argv[]) > > break; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231765
: 197552