Few patches from Ravenports for DragonFly BSD support

2019-01-20 Thread Leonid Bobrov
From 660f1a59a0ff09f1c21e97087b713d6751e3de10 Mon Sep 17 00:00:00 2001 From: Leonid Bobrov Date: Sun, 20 Jan 2019 07:33:46 +0200 Subject: [PATCH] Few patches from Ravenports for DragonFly BSD support Taken from https://github.com/jrmarino/ravensource/tree/master/bucket_D7/wayland/patches

[PATCH v6 4/6] server: add *BSD credentials support

2019-02-25 Thread Leonid Bobrov
From: Vadim Zhukov Co-authored-by: Koop Mast Signed-off-by: Leonid Bobrov --- configure.ac | 3 +++ src/wayland-server.c | 35 +++ src/wayland-shm.c| 10 ++ 3 files changed, 48 insertions(+) diff --git a/configure.ac b/configure.ac index

[PATCH v6 5/6] tests: add OS-specific tracing to runner

2019-02-25 Thread Leonid Bobrov
From: Vadim Zhukov Co-authored-by: Koop Mast Signed-off-by: Leonid Bobrov --- configure.ac| 3 +++ tests/test-runner.c | 22 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c5ead62..a60a927 100644

[PATCH v6 1/6] tests: use /dev/fd to count open fds

2019-02-25 Thread Leonid Bobrov
From: Johannes Lundberg *BSD don't have /proc/self/fd, they use /dev/fd instead. At Linux /dev/fd is a symlink to /proc/self/fd Signed-off-by: Leonid Bobrov --- tests/test-helpers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-helpers.c b/tests/test

[PATCH v6 6/6] configure: detect libdl and librt

2019-02-25 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 6 +++--- configure.ac | 6 ++ m4/weston.m4 | 37 + 3 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 m4/weston.m4 diff --git a/Makefile.am b/Makefile.am index f47d055..489f581 100644

[PATCH v6 2/6] tests: support waitpid

2019-02-25 Thread Leonid Bobrov
From: Vadim Zhukov *BSD don't have waitid() Co-authored-by: Koop Mast Signed-off-by: Leonid Bobrov --- configure.ac| 4 tests/test-compositor.c | 25 +++-- tests/test-runner.c | 29 - 3 files changed, 55 insertions(+), 3

[PATCH v6 3/6] shm: use workaround if mremap is not available

2019-02-25 Thread Leonid Bobrov
From: Imre Vadász Signed-off-by: Leonid Bobrov --- configure.ac | 4 src/wayland-shm.c | 30 ++ 2 files changed, 34 insertions(+) diff --git a/configure.ac b/configure.ac index c0f1c37..dcefc78 100644 --- a/configure.ac +++ b/configure.ac @@ -65,6 +65,10

[PATCH v7 3/6] shm: use workaround if mremap is not available

2019-02-25 Thread Leonid Bobrov
From: Imre Vadász Signed-off-by: Imre Vadász Signed-off-by: Leonid Bobrov --- configure.ac | 4 src/wayland-shm.c | 30 ++ 2 files changed, 34 insertions(+) diff --git a/configure.ac b/configure.ac index c0f1c37..dcefc78 100644 --- a/configure.ac +++ b

[PATCH v7 6/6] configure: detect libdl and librt

2019-02-25 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 6 +++--- configure.ac | 6 ++ m4/weston.m4 | 37 + 3 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 m4/weston.m4 diff --git a/Makefile.am b/Makefile.am index f47d055..489f581 100644

[PATCH v7 2/6] tests: support waitpid

2019-02-25 Thread Leonid Bobrov
From: Vadim Zhukov *BSD don't have waitid() Co-authored-by: Koop Mast Signed-off-by: Vadim Zhukov Signed-off-by: Koop Mast Signed-off-by: Leonid Bobrov --- configure.ac| 4 tests/test-compositor.c | 25 +++-- tests/test-runner.c | 29

[PATCH v7 4/6] server: add *BSD credentials support

2019-02-25 Thread Leonid Bobrov
From: Vadim Zhukov Co-authored-by: Koop Mast Signed-off-by: Vadim Zhukov Signed-off-by: Koop Mast Signed-off-by: Leonid Bobrov --- configure.ac | 3 +++ src/wayland-server.c | 35 +++ src/wayland-shm.c| 10 ++ 3 files changed, 48

[PATCH v7 5/6] tests: add OS-specific tracing to runner

2019-02-25 Thread Leonid Bobrov
From: Vadim Zhukov Co-authored-by: Koop Mast Signed-off-by: Vadim Zhukov Signed-off-by: Koop Mast Signed-off-by: Leonid Bobrov --- configure.ac| 3 +++ tests/test-runner.c | 22 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/configure.ac b

[PATCH v7 1/6] tests: use /dev/fd to count open fds

2019-02-25 Thread Leonid Bobrov
From: Johannes Lundberg *BSD don't have /proc/self/fd, they use /dev/fd instead. At Linux /dev/fd is a symlink to /proc/self/fd Signed-off-by: Johannes Lundberg Signed-off-by: Leonid Bobrov --- tests/test-helpers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v8 3/6] shm: use workaround if mremap is not available

2019-02-27 Thread Leonid Bobrov
From: Imre Vadász Signed-off-by: Leonid Bobrov --- configure.ac | 4 src/wayland-shm.c | 30 ++ 2 files changed, 34 insertions(+) diff --git a/configure.ac b/configure.ac index c0f1c37..dcefc78 100644 --- a/configure.ac +++ b/configure.ac @@ -65,6 +65,10

[PATCH v8 4/6] server: add *BSD credentials support

2019-02-27 Thread Leonid Bobrov
From: Vadim Zhukov Co-authored-by: Koop Mast Signed-off-by: Leonid Bobrov --- configure.ac | 3 +++ src/wayland-server.c | 35 +++ src/wayland-shm.c| 10 ++ 3 files changed, 48 insertions(+) diff --git a/configure.ac b/configure.ac index

[PATCH v8 1/6] tests: use /dev/fd to count open fds

2019-02-27 Thread Leonid Bobrov
*BSD don't have /proc/self/fd, they use /dev/fd instead. At Linux /dev/fd is a symlink to /proc/self/fd Signed-off-by: Leonid Bobrov --- tests/test-helpers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-helpers.c b/tests/test-helpers.c index b2189d8

[PATCH v8 5/6] tests: add OS-specific tracing to runner

2019-02-27 Thread Leonid Bobrov
From: Vadim Zhukov Co-authored-by: Koop Mast Signed-off-by: Leonid Bobrov --- configure.ac| 3 +++ tests/test-runner.c | 22 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c5ead62..a60a927 100644

[PATCH v8 6/6] configure: detect libdl and librt

2019-02-27 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 6 +++--- configure.ac | 6 ++ m4/weston.m4 | 37 + 3 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 m4/weston.m4 diff --git a/Makefile.am b/Makefile.am index f47d055..489f581 100644

[PATCH v8 2/6] tests: support waitpid

2019-02-27 Thread Leonid Bobrov
From: Vadim Zhukov *BSD don't have waitid() Co-authored-by: Koop Mast Signed-off-by: Leonid Bobrov --- configure.ac| 4 tests/test-compositor.c | 25 +++-- tests/test-runner.c | 29 - 3 files changed, 55 insertions(+), 3

Re: [PATCH v8 2/6] tests: support waitpid

2019-03-04 Thread Leonid Bobrov
You know, I think this whole patch is silly, because waitid() is part of POSIX, FreeBSD and NetBSD implement it while OpenBSD and DragonFly BSD don't. I'll ask OpenBSD upstream to merge NetBSD's implementation and DragonFly BSD upstream to merge FreeBSD's implementation. OpenBSD aims

tests: fix main symbol duplication

2019-02-07 Thread Leonid Bobrov
From b00351a95d98e4ecc8efe9c7f1e5c56e79fe5f9f Mon Sep 17 00:00:00 2001 From: Leonid Bobrov Date: Thu, 7 Feb 2019 18:02:57 +0200 Subject: [PATCH] tests: fix main symbol duplication So far I got these errors before patching: libtool: link: cc -o .libs/headers-test -pthread -Wall -Wextra -Wno

Re: tests: fix main symbol duplication

2019-02-08 Thread Leonid Bobrov
On Fri, Feb 08, 2019 at 12:09:09PM +0200, Pekka Paalanen wrote: > Hi Leonid, > Hi Pekka, > your approach to fix these issues looks good to me, and the commit > message explains everything I could ask for, except for maybe > mentioning that the linker is one from OpenBSD, was it? > >

Re: tests: fix main symbol duplication

2019-02-08 Thread Leonid Bobrov
On Fri, Feb 08, 2019 at 12:51:23PM +0200, Pekka Paalanen wrote: > Weird indeed. Did you manually edit the patch, or copy & paste it? > Copied & pasted it, next time I'll include them in MIME > > I don't know how to do that, besides I have no intention to license code > > I submit, so you are

Support OpenBSD

2019-02-08 Thread Leonid Bobrov
From 6b2cd23b0681a7ad253201071d243cbefc1bc0aa Mon Sep 17 00:00:00 2001 From: Leonid Bobrov Date: Thu, 7 Feb 2019 18:02:57 +0200 Subject: [PATCH 1/8] tests: fix main symbol duplication So far I got these errors before patching: libtool: link: cc -o .libs/headers-test -pthread -Wall -Wextra -Wno

[PATCH 8/8] configure: detect libdl and librt

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 6 +++--- configure.ac | 16 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 426e20a..b973cbe 100644 --- a/Makefile.am +++ b/Makefile.am @@ -71,7 +71,7 @@ nodist_include_HEADERS

[PATCH 5/8] core: support kqueue

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 3 +- configure.ac | 19 +- doc/doxygen/Makefile.am | 3 +- src/{event-loop.c => event-loop-epoll.c} | 4 + src/event-loop-kqueue.c |

[PATCH 1/8] tests: fix main symbol duplication

2019-02-08 Thread Leonid Bobrov
o:(main) >>> defined at test-runner.c:377 >>> (/tmp/obj/wayland-1.16.0/wayland-1.16.0/tests/test-runner.c:377) >>>test-runner.o:(.text+0x250) in archive >>> /tmp/obj/wayland-1.16.0/build-amd64/.libs/libtest-runner.a This commit fixes all of that

[PATCH 3/8] server: add *BSD credentials support.

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- configure.ac | 3 ++ src/wayland-server.c | 46 ++ src/wayland-shm.c| 92 +++- 3 files changed, 140 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 912330e

[PATCH 4/8] gitignore: ignore *.orig files generated by patch(1)

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index eadea12..8d2c614 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ *.trs *.tar.xz *~ +*.orig *-test .libs .dirstamp -- 2.20.1

[PATCH 7/8] tests: support waitpid()

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- configure.ac| 7 ++ tests/test-compositor.c | 23 +++-- tests/test-runner.c | 55 ++--- 3 files changed, 80 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 941749d

[PATCH 6/8] client: define EPROTO if it's not defined

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- src/wayland-client.h | 4 1 file changed, 4 insertions(+) diff --git a/src/wayland-client.h b/src/wayland-client.h index 9f70fa3..524f79d 100644 --- a/src/wayland-client.h +++ b/src/wayland-client.h @@ -36,6 +36,10 @@ #ifndef WAYLAND_CLIENT_H #define

[PATCH 2/8] tests: use *BSD replacement for /proc

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 2 +- configure.ac | 12 tests/test-helpers.c | 33 - 3 files changed, 45 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index cce4d73..52c7895 100644

[PATCH 5/6] core: support kqueue

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 3 +- configure.ac | 19 +- doc/doxygen/Makefile.am | 3 +- src/{event-loop.c => event-loop-epoll.c} | 4 + src/event-loop-kqueue.c |

[PATCH 3/6] client: define EPROTO if it's not defined

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- src/wayland-client.h | 4 1 file changed, 4 insertions(+) diff --git a/src/wayland-client.h b/src/wayland-client.h index 9f70fa3..690c446 100644 --- a/src/wayland-client.h +++ b/src/wayland-client.h @@ -39,4 +39,8 @@ #include "wayland-client-c

[PATCH 4/6] tests: use *BSD replacement for /proc

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 3 ++- configure.ac | 12 tests/test-helpers.c | 31 ++- 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 489f581..8a6fa6e 100644

[PATCH 6/6] core: define SO_PEERCRED if it's not defined

2019-02-08 Thread Leonid Bobrov
--- src/wayland-os.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland-os.h b/src/wayland-os.h index 321e34d..28e3350 100644 --- a/src/wayland-os.h +++ b/src/wayland-os.h @@ -41,6 +41,9 @@ wl_os_queue_create_cloexec(void); int wl_os_accept_cloexec(int sockfd, struct sockaddr

[PATCH 2/6] configure: detect libdl and librt

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 8 configure.ac | 16 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index cce4d73..489f581 100644 --- a/Makefile.am +++ b/Makefile.am @@ -71,7 +71,7 @@ nodist_include_HEADERS

[PATCH 1/6] tests: fix main symbol duplication

2019-02-08 Thread Leonid Bobrov
o:(main) >>> defined at test-runner.c:377 >>> (/tmp/obj/wayland-1.16.0/wayland-1.16.0/tests/test-runner.c:377) >>>test-runner.o:(.text+0x250) in archive >>> /tmp/obj/wayland-1.16.0/build-amd64/.libs/libtest-runner.a This commit fixes all of that

[PATCH 5/9] core: support kqueue

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 3 +- configure.ac | 19 +- doc/doxygen/Makefile.am | 3 +- src/{event-loop.c => event-loop-epoll.c} | 4 + src/event-loop-kqueue.c |

[PATCH 3/9] client: define EPROTO if it's not defined

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- src/wayland-client.h | 4 1 file changed, 4 insertions(+) diff --git a/src/wayland-client.h b/src/wayland-client.h index 9f70fa3..690c446 100644 --- a/src/wayland-client.h +++ b/src/wayland-client.h @@ -39,4 +39,8 @@ #include "wayland-client-c

[PATCH 4/9] tests: use *BSD replacement for /proc

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 1 + configure.ac | 12 tests/test-helpers.c | 31 ++- 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 489f581..435957f 100644

[PATCH 8/9] server: add *BSD credentials support

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- configure.ac | 3 +++ src/wayland-server.c | 35 +++ src/wayland-shm.c| 10 ++ 3 files changed, 48 insertions(+) diff --git a/configure.ac b/configure.ac index 3c227a2..15535ff 100644 --- a/configure.ac +++ b

[PATCH 1/9] tests: fix main symbol duplication

2019-02-08 Thread Leonid Bobrov
o:(main) >>> defined at test-runner.c:377 >>> (/tmp/obj/wayland-1.16.0/wayland-1.16.0/tests/test-runner.c:377) >>>test-runner.o:(.text+0x250) in archive >>> /tmp/obj/wayland-1.16.0/build-amd64/.libs/libtest-runner.a This commit fixes all of that

[PATCH 9/9] tests: add OS-specific tracing to runner

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- configure.ac| 3 +++ tests/test-runner.c | 22 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 15535ff..40cbd08 100644 --- a/configure.ac +++ b/configure.ac @@ -101,6 +101,9

[PATCH 6/9] core: define SO_PEERCRED if it's not defined

2019-02-08 Thread Leonid Bobrov
--- src/wayland-os.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland-os.h b/src/wayland-os.h index 321e34d..28e3350 100644 --- a/src/wayland-os.h +++ b/src/wayland-os.h @@ -41,6 +41,9 @@ wl_os_queue_create_cloexec(void); int wl_os_accept_cloexec(int sockfd, struct sockaddr

[PATCH 7/9] tests: support waitpid()

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- configure.ac| 4 tests/test-compositor.c | 25 +++-- tests/test-runner.c | 29 - 3 files changed, 55 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 8563968

[PATCH 2/9] configure: detect libdl and librt

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 8 configure.ac | 16 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index cce4d73..489f581 100644 --- a/Makefile.am +++ b/Makefile.am @@ -71,7 +71,7 @@ nodist_include_HEADERS

[PATCH v2 4/9] tests: use *BSD replacement for /proc

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 1 + configure.ac | 12 tests/test-helpers.c | 31 ++- 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 489f581..435957f 100644

[PATCH v2 2/9] configure: detect libdl and librt

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 6 +++--- configure.ac | 16 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index f47d055..489f581 100644 --- a/Makefile.am +++ b/Makefile.am @@ -71,7 +71,7 @@ nodist_include_HEADERS

[PATCH v2 9/9] tests: add OS-specific tracing to runner

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- configure.ac| 3 +++ tests/test-runner.c | 22 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 15535ff..40cbd08 100644 --- a/configure.ac +++ b/configure.ac @@ -101,6 +101,9

[PATCH v2 7/9] tests: support waitpid()

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- configure.ac| 4 tests/test-compositor.c | 25 +++-- tests/test-runner.c | 29 - 3 files changed, 55 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 8563968

[PATCH v2 6/9] core: define SO_PEERCRED if it's not defined

2019-02-08 Thread Leonid Bobrov
--- src/wayland-os.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland-os.h b/src/wayland-os.h index 321e34d..28e3350 100644 --- a/src/wayland-os.h +++ b/src/wayland-os.h @@ -41,6 +41,9 @@ wl_os_queue_create_cloexec(void); int wl_os_accept_cloexec(int sockfd, struct sockaddr

[PATCH v2 5/9] core: support kqueue

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 3 +- configure.ac | 19 +- doc/doxygen/Makefile.am | 3 +- src/{event-loop.c => event-loop-epoll.c} | 4 + src/event-loop-kqueue.c |

[PATCH v2 1/9] tests: fix main symbol duplication

2019-02-08 Thread Leonid Bobrov
o:(main) >>> defined at test-runner.c:377 >>> (/tmp/obj/wayland-1.16.0/wayland-1.16.0/tests/test-runner.c:377) >>>test-runner.o:(.text+0x250) in archive >>> /tmp/obj/wayland-1.16.0/build-amd64/.libs/libtest-runner.a This commit fixes all of th

[PATCH v2 3/9] client: define EPROTO if it's not defined

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- src/wayland-client.h | 4 1 file changed, 4 insertions(+) diff --git a/src/wayland-client.h b/src/wayland-client.h index 9f70fa3..690c446 100644 --- a/src/wayland-client.h +++ b/src/wayland-client.h @@ -39,4 +39,8 @@ #include "wayland-client-c

[PATCH v2 8/9] server: add *BSD credentials support

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- configure.ac | 3 +++ src/wayland-server.c | 35 +++ src/wayland-shm.c| 10 ++ 3 files changed, 48 insertions(+) diff --git a/configure.ac b/configure.ac index 3c227a2..15535ff 100644 --- a/configure.ac +++ b

[PATCH v3 10/10] shm: use workaround if mremap() is not available

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- configure.ac | 4 src/wayland-shm.c | 30 ++ 2 files changed, 34 insertions(+) diff --git a/configure.ac b/configure.ac index 40cbd08..f49ca24 100644 --- a/configure.ac +++ b/configure.ac @@ -104,6 +104,10 @@ AC_SUBST

[PATCH v3 05/10] core: support kqueue

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 3 +- configure.ac | 19 +- doc/doxygen/Makefile.am | 3 +- src/{event-loop.c => event-loop-epoll.c} | 4 + src/event-loop-kqueue.c |

[PATCH v3 07/10] tests: support waitpid()

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- configure.ac| 4 tests/test-compositor.c | 25 +++-- tests/test-runner.c | 29 - 3 files changed, 55 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 8563968

[PATCH v3 06/10] core: define SO_PEERCRED if it's not defined

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- src/wayland-os.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland-os.h b/src/wayland-os.h index 321e34d..28e3350 100644 --- a/src/wayland-os.h +++ b/src/wayland-os.h @@ -41,6 +41,9 @@ wl_os_queue_create_cloexec(void); int wl_os_accept_cloexec

[PATCH v3 03/10] client: define EPROTO if it's not defined

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- src/wayland-client.h | 4 1 file changed, 4 insertions(+) diff --git a/src/wayland-client.h b/src/wayland-client.h index 9f70fa3..690c446 100644 --- a/src/wayland-client.h +++ b/src/wayland-client.h @@ -39,4 +39,8 @@ #include "wayland-client-c

[PATCH v3 08/10] server: add *BSD credentials support

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- configure.ac | 3 +++ src/wayland-server.c | 35 +++ src/wayland-shm.c| 10 ++ 3 files changed, 48 insertions(+) diff --git a/configure.ac b/configure.ac index 3c227a2..15535ff 100644 --- a/configure.ac +++ b

[PATCH v3 04/10] tests: use *BSD replacement for /proc

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 1 + configure.ac | 12 tests/test-helpers.c | 31 ++- 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 489f581..435957f 100644

[PATCH v3 01/10] tests: fix main symbol duplication

2019-02-08 Thread Leonid Bobrov
o:(main) >>> defined at test-runner.c:377 >>> (/tmp/obj/wayland-1.16.0/wayland-1.16.0/tests/test-runner.c:377) >>>test-runner.o:(.text+0x250) in archive >>> /tmp/obj/wayland-1.16.0/build-amd64/.libs/libtest-runner.a This commit fixes all of th

[PATCH v3 02/10] configure: detect libdl and librt

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 6 +++--- configure.ac | 16 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index f47d055..489f581 100644 --- a/Makefile.am +++ b/Makefile.am @@ -71,7 +71,7 @@ nodist_include_HEADERS

[PATCH v3 09/10] tests: add OS-specific tracing to runner

2019-02-08 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- configure.ac| 3 +++ tests/test-runner.c | 22 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 15535ff..40cbd08 100644 --- a/configure.ac +++ b/configure.ac @@ -101,6 +101,9

[PATCH v4 05/10] core: support kqueue

2019-02-09 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 3 +- configure.ac | 19 +- doc/doxygen/Makefile.am | 3 +- src/{event-loop.c => event-loop-epoll.c} | 6 +- src/event-loop-kqueue.c |

[PATCH v4 04/10] tests: use *BSD replacement for /proc

2019-02-09 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 1 + configure.ac | 12 tests/test-helpers.c | 31 ++- 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 489f581..435957f 100644

[PATCH v4 09/10] tests: add OS-specific tracing to runner

2019-02-09 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- configure.ac| 3 +++ tests/test-runner.c | 22 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 15535ff..40cbd08 100644 --- a/configure.ac +++ b/configure.ac @@ -101,6 +101,9

[PATCH v4 01/10] tests: fix main symbol duplication

2019-02-09 Thread Leonid Bobrov
o:(main) >>> defined at test-runner.c:377 >>> (/tmp/obj/wayland-1.16.0/wayland-1.16.0/tests/test-runner.c:377) >>>test-runner.o:(.text+0x250) in archive >>> /tmp/obj/wayland-1.16.0/build-amd64/.libs/libtest-runner.a This commit fixes all of th

[PATCH v4 08/10] server: add *BSD credentials support

2019-02-09 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- configure.ac | 3 +++ src/wayland-server.c | 35 +++ src/wayland-shm.c| 10 ++ 3 files changed, 48 insertions(+) diff --git a/configure.ac b/configure.ac index 3c227a2..15535ff 100644 --- a/configure.ac +++ b

[PATCH v4 10/10] shm: use workaround if mremap() is not available

2019-02-09 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- configure.ac | 4 src/wayland-shm.c | 30 ++ 2 files changed, 34 insertions(+) diff --git a/configure.ac b/configure.ac index 40cbd08..f49ca24 100644 --- a/configure.ac +++ b/configure.ac @@ -104,6 +104,10 @@ AC_SUBST

[PATCH v4 07/10] tests: support waitpid()

2019-02-09 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- configure.ac| 4 tests/test-compositor.c | 25 +++-- tests/test-runner.c | 29 - 3 files changed, 55 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 8563968

[PATCH v4 02/10] configure: detect libdl and librt

2019-02-09 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- Makefile.am | 6 +++--- configure.ac | 16 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index f47d055..489f581 100644 --- a/Makefile.am +++ b/Makefile.am @@ -71,7 +71,7 @@ nodist_include_HEADERS

[PATCH v4 03/10] client: define EPROTO if it's not defined

2019-02-09 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- src/wayland-client.h | 4 1 file changed, 4 insertions(+) diff --git a/src/wayland-client.h b/src/wayland-client.h index 9f70fa3..690c446 100644 --- a/src/wayland-client.h +++ b/src/wayland-client.h @@ -39,4 +39,8 @@ #include "wayland-client-c

[PATCH v4 06/10] core: define SO_PEERCRED if it's not defined

2019-02-09 Thread Leonid Bobrov
Signed-off-by: Leonid Bobrov --- src/wayland-os.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland-os.h b/src/wayland-os.h index 321e34d..28e3350 100644 --- a/src/wayland-os.h +++ b/src/wayland-os.h @@ -41,6 +41,9 @@ wl_os_queue_create_cloexec(void); int wl_os_accept_cloexec

Re: Few patches from Ravenports for DragonFly BSD support

2019-01-24 Thread Leonid Bobrov
On Thu, Jan 24, 2019 at 12:53:28PM +0200, Pekka Paalanen wrote: > Hi, > > you need to split this into logical patches, each patch doing one > logical thing. It is not the same as one patch per file. Each patch > needs to have a commit message explaining why the patch was written, > and so on.

[PATCH v5 01/11] tests: fix main symbol duplication

2019-02-13 Thread Leonid Bobrov via wayland-devel
o:(main) >>> defined at test-runner.c:377 >>> (/tmp/obj/wayland-1.16.0/wayland-1.16.0/tests/test-runner.c:377) >>>test-runner.o:(.text+0x250) in archive >>> /tmp/obj/wayland-1.16.0/build-amd64/.libs/libtest-runner.a This commit fixes all of th

[PATCH v5 02/11] configure: detect libdl and librt

2019-02-13 Thread Leonid Bobrov via wayland-devel
Signed-off-by: Leonid Bobrov --- Makefile.am | 6 +++--- configure.ac | 16 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index f47d055..489f581 100644 --- a/Makefile.am +++ b/Makefile.am @@ -71,7 +71,7 @@ nodist_include_HEADERS

[PATCH v5 09/11] shm: use workaround if mremap() is not available

2019-02-13 Thread Leonid Bobrov via wayland-devel
Signed-off-by: Leonid Bobrov --- configure.ac | 4 src/wayland-shm.c | 30 ++ 2 files changed, 34 insertions(+) diff --git a/configure.ac b/configure.ac index 19ac93c..65cc543 100644 --- a/configure.ac +++ b/configure.ac @@ -95,6 +95,10 @@ AC_SUBST(RT_LIBS

[PATCH v5 06/11] tests: support waitpid()

2019-02-13 Thread Leonid Bobrov via wayland-devel
Signed-off-by: Leonid Bobrov --- configure.ac| 4 tests/test-compositor.c | 25 +++-- tests/test-runner.c | 29 - 3 files changed, 55 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index cf8d82d

[PATCH v5 04/11] core: add kqueue support

2019-02-13 Thread Leonid Bobrov via wayland-devel
Signed-off-by: Leonid Bobrov --- Makefile.am | 3 +- configure.ac | 23 +- doc/doxygen/Makefile.am | 3 +- src/{event-loop.c => event-loop-epoll.c} | 6 +- src/event-loop-kqueue.c |

[PATCH v5 03/11] client: define EPROTO if it's not defined

2019-02-13 Thread Leonid Bobrov via wayland-devel
Signed-off-by: Leonid Bobrov --- src/wayland-client.h | 4 1 file changed, 4 insertions(+) diff --git a/src/wayland-client.h b/src/wayland-client.h index 9f70fa3..690c446 100644 --- a/src/wayland-client.h +++ b/src/wayland-client.h @@ -39,4 +39,8 @@ #include "wayland-client-c

[PATCH v5 05/11] core: define SO_PEERCRED if it's not defined

2019-02-13 Thread Leonid Bobrov via wayland-devel
Signed-off-by: Leonid Bobrov --- src/wayland-os.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland-os.h b/src/wayland-os.h index 86685e0..08b38bd 100644 --- a/src/wayland-os.h +++ b/src/wayland-os.h @@ -41,6 +41,9 @@ wl_os_event_create_cloexec(void); int wl_os_accept_cloexec

[PATCH v5 07/11] server: add *BSD credentials support

2019-02-13 Thread Leonid Bobrov via wayland-devel
Signed-off-by: Leonid Bobrov --- configure.ac | 2 ++ src/wayland-server.c | 35 +++ src/wayland-shm.c| 10 ++ 3 files changed, 47 insertions(+) diff --git a/configure.ac b/configure.ac index 414bc92..b8f30e4 100644 --- a/configure.ac +++ b

[PATCH v5 10/11] tests: use OpenBSD replacement for proc

2019-02-13 Thread Leonid Bobrov via wayland-devel
Signed-off-by: Leonid Bobrov --- Makefile.am | 1 + configure.ac | 12 tests/test-helpers.c | 33 +++-- 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 6eefc73..44b58c4 100644

[PATCH v5 08/11] tests: add OS-specific tracing to runner

2019-02-13 Thread Leonid Bobrov via wayland-devel
Signed-off-by: Leonid Bobrov --- configure.ac| 3 +++ tests/test-runner.c | 22 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b8f30e4..19ac93c 100644 --- a/configure.ac +++ b/configure.ac @@ -92,6 +92,9 @@ RT_LIBS

[PATCH v5 11/11] tests: use fdescfs at *BSD to count fds

2019-02-13 Thread Leonid Bobrov via wayland-devel
Signed-off-by: Leonid Bobrov --- tests/test-helpers.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/test-helpers.c b/tests/test-helpers.c index f0c5b28..137c0b8 100644 --- a/tests/test-helpers.c +++ b/tests/test-helpers.c @@ -47,6 +47,11 @@ #else