- 18 Jun, 2018 3 commits
-
-
Pekka Paalanen authored
This has been copied from https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/tree/CONTRIBUTING?id=eccae1360d6d01e73c6af2bd97122cef708207ef and slightly edited to better with Wayland and Weston. The intention is to make it easier to give out commit access to new people, let them know what is expected of them, and help the community to grow. Hopefully this will in time improve the patch review throughput and timeliness. The original text was introduced in https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/commit/CONTRIBUTING?id=0350f0e7f6a0e07281445fc3082aa70419f4aac7 Signed-off-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by:
Matheus Santana <embs@cin.ufpe.br> Reviewed-by:
Daniel Stone <daniels@collabora.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Derek Foreman <derek.foreman.samsung@gmail.com>
-
Pekka Paalanen authored
This sets up the standards for patch review, and defines when a patch can be merged. I believe these are the practises we have been using already for a long time, now they are just written down explicitly. It's not an exhaustive list of criteria and likely cannot ever be, but it should give a good idea of what level of review we want to have. It has been written in general terms, so that we can easily apply the same text not just to Wayland, but also Weston and other projects as necessary. This addition is not redundant with https://wayland.freedesktop.org/reviewing.html . The web page is a friendly introduction and encouragement for people to get involved. The guidelines here are more specific and aimed for people who seek commit rights or maintainership. Signed-off-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by:
Matheus Santana <embs@cin.ufpe.br> Reviewed-by:
Daniel Stone <daniels@collabora.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Derek Foreman <derek.foreman.samsung@gmail.com>
-
Currently we issue both check and distcheck, as reportedly there has been cases in the past one works, while the other doesn't. Yet we only collect the check artefacts (test logs). Correct that, by picking the distcheck ones as well. Note: the build-*/wayland*/ directory is purged by distcheck if it runs successfully. Signed-off-by:
Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
- 14 Jun, 2018 2 commits
-
-
Pekka Paalanen authored
Format for nice viewing through Gitlab. Conduct and Licensing were raised to first level headings as they are not technical guidelines for contributing patches. It's nice to use the first level headings more. Reformat patchwork link and add Xorg patchwork link for Xwayland. v2: Unfortunately Gitlab harcodes a tab character to mean 4 spaces, so we cannot reasonably spell the coding style examples correctly. Hence, tab characters have been replaced with eight spaces so that they at least look right in both the file and through gitlab web UI. Signed-off-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by:
Daniel Stone <daniels@collabora.com>
-
Pekka Paalanen authored
Gitlab expects a CONTRIBUTING.md in the root directory, so move our guide there. Conversion to proper markup is a follow-up patch. Signed-off-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by:
Daniel Stone <daniels@collabora.com>
-
- 11 Jun, 2018 1 commit
-
-
Update bug and Git URLs for GitLab; the site has also been served over HTTPS for quite some time. Signed-off-by:
Daniel Stone <daniels@collabora.com> Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
- 07 Jun, 2018 2 commits
-
-
It's already possible to reference foreign interfaces, so it should also be possible to reference foreign enums. Signed-off-by:
Simon Ser <contact@emersion.fr> Reviewed-by:
Silvan Jegen <s.jegen@gmail.com> Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
Daniel Stone authored
Add a GitLab CI configuration which tests building, 'make check', and 'make distcheck' of the tree inside a Debian Stretch container. The choice of distribution base was arbitrary and may easily be changed. When commits are pushed to upstream, the commits will run this CI pipeline to run these tests, and capture the result as an artifact bundle, including the compiled binaries and full test suite logs. Results can be seen at: https://gitlab.freedesktop.org/wayland/wayland/pipelines/ Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
- 20 Apr, 2018 4 commits
-
-
Ongy authored
[Derek Foreman <derekf@osg.samsung.com> moved this into resources-test] Reviewed-by:
Derek Foreman <derekf@osg.samsung.com>
-
Derek Foreman authored
In the past much code (weston, efl/enlightenment, mutter) has freed structures containing wl_listeners from destroy handlers without first removing the listener from the signal. As the destroy notifier only fires once, this has largely gone unnoticed until recently. Other code does not (Qt, wlroots) - and removes itself from the signal before free. If somehow a destroy signal is listened to by code from both kinds of callers, those that free will corrupt the lists for those that don't, and Bad Things will happen. To avoid these bad things, remove every item from the signal list during destroy emit, and put it in a list all its own. This way whether the listener is removed or not has no impact on the following emits. Signed-off-by:
Derek Foreman <derekf@osg.samsung.com> Reviewed-by:
Simon Ser <contact@emersion.fr> Reviewed-by:
Markus Ongyerth <wl@ongy.net>
-
Derek Foreman authored
For years it's been common practice to free the object containing the wl_listener inside resource destruction notifiers, but not remove the listener from the list. That is: It's been safe to assume (when only one listener is present) that the wl_listener will never be touched again, since this is a destruction callback. Recently some patches were reviewed that made some positive changes to our internal signal handling code, but would've violated this assumption, and changed free()d memory in several existing compositors (weston, mutter, enlightenment). Since the breakage was extremely subtle, codify this assumption in a test case (thus promoting it to an ABI promise). Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by:
Markus Ongyerth <wl@ongy.net> Signed-off-by:
Derek Foreman <derekf@osg.samsung.com>
-
Dipen Somani authored
commit 3cddb3c6 casted len to an unsigned value to compare to sizeof results. However, wl_connection_read() can fail, setting errno to EAGAIN and returning a value of -1. When cast to an unsigned type this leads to a loop condition of true when it should be false. Signed-off-by:
Dipen Somani <dipen.somani@samsung.com> Signed-off-by:
Derek Foreman <derekf@osg.samsung.com> Reviewed-by:
Derek Foreman <derekf@osg.samsung.com>
-
- 09 Apr, 2018 2 commits
-
-
Derek Foreman authored
-
Derek Foreman authored
-
- 02 Apr, 2018 2 commits
-
-
Derek Foreman authored
-
Emil Velikov authored
Instruct git go ignore the file, in case we've done an in-tree build. Cc: Derek Foreman <derekf@osg.samsung.com> Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Derek Foreman <derekf@osg.samsung.com>
-
- 20 Mar, 2018 1 commit
-
-
Daniel Stone authored
Rather than a hard-coded list of platform symbols, just ignore anything prefaced with an underscore. This fixes breakage on ARM, which declares several slightly different platform symbols to x86. Signed-off-by:
Daniel Stone <daniels@collabora.com> Fixes: 21b1f22e ("wayland-egl: enhance the symbol test") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105620 Cc: Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Derek Foreman <derekf@osg.samsung.com>
-
- 19 Mar, 2018 7 commits
-
-
Derek Foreman authored
-
Daniel Stone authored
The previous rewrite of the wayland-egl ABI checker introduced checks for removed symbols as well as added symbols, but broke some failure conditions. Add an explict return-code variable set in failure paths, rather than chaining or conditions. If we cannot find the binary or nm, we regard this as an error condition, rather than test failure. v2: Don't test if we can execute $NM. Signed-off-by:
Daniel Stone <daniels@collabora.com> Reported-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk> Fixes: 21b1f22e ("wayland-egl: enhance the symbol test") Cc: Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Daniel Stone authored
A previous patch used $NM as an environment variable, but this was only set as a make variable. Make sure it is passed through from make to the environment we use to run tests. v2: Quote argument when passing to shell. Signed-off-by:
Daniel Stone <daniels@collabora.com> Reported-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk> Fixes: 6903e4d5 ("wayland-egl: use correct `nm` path when cross-compiling") Cc: Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Quentin Glidic <sardemff7+git@sardemff7.net>
-
Seems like I was overoptimistic with my earlier assumption, namely: "... 17.3.x should be the last version that ships the library." Mesa 18.0.0 and its wayland-egl is about to be released any time soon, so bump the number since it must no be smaller. As soon as we get a wayland release I'll drop the Mesa copy but for now. Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Daniel Stone <daniels@collabora.com>
-
The current test had a few fall-outs: - it was checking only for T (.text) symbols - did not consider symbol removal Fix that by fetching all the symbols and doing a bidirectional check - for added and removed symbols. Error out with informative message for each case. v2: Rebase on top of $NM patch. Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Daniel Stone <daniels@collabora.com>
-
Based on a similar patch (in Mesa) by Eric Engestrom. v2: Rebase on top of $NM patch v3: Rebase Reviewed-by: Eric Engestrom <eric@engestrom.ch> (v1) Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Daniel Stone <daniels@collabora.com>
-
Earlier commit changed to passing the binary name as env. variable introducing a typo. That went unnoticed, since we do not check if the file is present or not. Cc: Pukka Paalanen <ppaalanen@gmail.com> Cc: Daniel Stone <daniels@collabora.com> Fixes: 85cb5ed6 ("wayland-egl-symbols-check: pass the DSO name via the build system") Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
- 16 Mar, 2018 1 commit
-
-
One should always be using the shared libraries. Spotted while going through the Debian packaing. Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net> Acked-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
- 15 Mar, 2018 1 commit
-
-
Pekka Paalanen authored
SEGV and ABRT by default cause a core dump, which may create a file, launch crash handlers, and so on. sanity-test has 21 processes that are expected to crash like this. Disable core dumps on them all. I counted 21 entries in coredumpctl list, while only 16 functions needed patching. After this patch no entries appear in coredumpctl list. Signed-off-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by:
Daniel Stone <daniels@collabora.com>
-
- 07 Mar, 2018 2 commits
-
-
Derek Foreman authored
previous commit, a9187853 added a trailing { on a line it shouldn't have, and I pushed without building first. Signed-off-by:
Derek Foreman <derekf@osg.samsung.com>
-
Derek Foreman authored
commit 239ba393 which was intended to stop leaking fds in events for zombie objects didn't notice that passing 0 to wl_connection_close_fds_in() would still close fds. Test the fd count before calling. Signed-off-by:
Derek Foreman <derekf@osg.samsung.com> Reviewed-by:
Daniel Stone <daniels@collabora.com>
-
- 26 Feb, 2018 2 commits
-
-
Derek Foreman authored
-
Pekka Paalanen authored
Commit e501230d "scanner: Fix broken private-code generation" changed the scanner output without updating the reference output for scanner tests. Update the reference data. This fixes 'make check'. Signed-off-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by:
Derek Foreman <derekf@osg.samsung.com>
-
- 23 Feb, 2018 2 commits
-
-
Derek Foreman authored
Missing a closing bracket. Reviewed-by:
Daniel Stone <daniels@collabora.com>
-
Inspired by Heiko Becker and Eric's work in libdrm and Mesa respectively. Cc: Eric Engestrom <eric.engestrom@imgtec.com> Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Daniel Stone <daniels@collabora.com>
-
- 22 Feb, 2018 4 commits
-
-
First one is deprecated in favour of the second option. The latter is newly introduced and annotates the generated symbols accordingly. v2: Don't introduce small-public-code.c - reuse small-code.c (Pekka) Cc: Pekka Paalanen <ppaalanen@gmail.com> Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by:
Derek Foreman <derekf@osg.samsung.com>
-
A more generic way to evaluating various attributes, __has_attribute is available with gcc, clang, even the Oracle/Sun compiler. Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by:
Derek Foreman <derekf@osg.samsung.com>
-
The core wayland interfaces are public, via the libwayland-server and libwayland-client DSOs. Hence use "public-code" cmdline option, instead of the deprecated code". As the host wayland-scanner may not know about the new option, use the legacy "code". Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by:
Derek Foreman <derekf@osg.samsung.com>
-
The options are used to indicate how the code will be used - will it be public, as part of a DSO or private. In nearly every instance, people want to use the latter. One noticeable exception is the wayland libraries. They provide the base marshalling protocol that everyone uses. The option "code" was deprecated in favour of "public-code" with a warning message produced to guide people. Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by:
Derek Foreman <derekf@osg.samsung.com>
-
- 16 Feb, 2018 1 commit
-
-
v2: Rebase, address wayland-client-uninstalled Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com> (v1)
-
- 15 Feb, 2018 1 commit
-
-
Like the similar wl_log() message further into this function that was fixed in commit 2fc248dc this should be printing the sender_id saved earlier instead of *p. Since p is incremented during the loop it would not only print an incorrect object id, it could read past the end of the array. Signed-off-by:
Derek Foreman <derekf@osg.samsung.com> Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
- 09 Feb, 2018 2 commits
-
-
private is a reserved keyword in C++. Thus if one is to have a backend driver written in said language build will fail as below: .../wayland-egl-backend.h:56:8: expected unqualified-id before ‘private’ Rename it to driver_private and update the test. NOTE: version bump is not required since: - this is a pure API change, ABI is identical - hardware drivers already require [minor] changes to move to the upstream wayland-egl-backend.h Cc: Arnaud Vrac <rawoul@gmail.com> Cc: Miguel A . Vico <mvicomoya@nvidia.com> Suggested-by:
Arnaud Vrac <rawoul@gmail.com> Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Miguel A Vico Moya <mvicomoya@nvidia.com>
-
Now we have all the wayland-egl bits in a single place. Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Arnaud Vrac <avrac@freebox.fr>
-