27 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
99669c96be gitlab CI: add pipeline for building against various Xserver releases
Adding a gitlab pipeline building this driver against Xserver major releases
since 1.18, including current master branch, on Debian as well as FreeBSD.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-10 09:26:12 +02:00
Enrico Weigelt, metux IT consult
ef211c19d8 gitlab CI: common scripts for driver builds
Adding a bunch of common scripts for building xorg drivers on different
platforms (for now Debian and FreeBSD) against different server versions.

Also designed to be executed locally (eg. within a VM), so one doesn't
always have to employ f.d.o gitlab.

For now, these are synced manually across various driver repos, until we've
found a viable solution for a central place.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-10 09:26:09 +02:00
Enrico Weigelt, metux IT consult
ec4bc6b8e9 fix FTBS on bool
Fix name clash between stdbool.h and xf86str.h

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vbox/-/merge_requests/9>
xlibre-xf86-video-vbox-1.0.1.1
2024-06-06 18:34:34 +02:00
Enrico Weigelt, metux IT consult
4653800f83 drop dead code on unset VBOXVIDEO_13
This symbol always had been defined, so that code pathes were never used.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vbox/-/merge_requests/8>
2024-05-23 20:45:46 +02:00
Enrico Weigelt, metux IT consult
2b58792ee1 drop dead code on unset PCIACCESS
This symbol always had been defined, so that code pathes were never used.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vbox/-/merge_requests/8>
2024-05-23 20:45:03 +02:00
Enrico Weigelt, metux IT consult
e32915d577 drop compat for ancient xserver versions
We're relying on at least 1.18 now.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vbox/-/merge_requests/8>
2024-05-23 20:45:01 +02:00
Enrico Weigelt, metux IT consult
3a236502cf bump minimal xorg version to 1.18
1.18 was released a decade ago, so it seems reasonable stop supporting
older ones.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vbox/-/merge_requests/8>
2024-05-14 16:21:31 +02:00
Enrico Weigelt, metux IT consult
f8104222eb use XNFstrdup() instead of xnfstrdup
xnfstrdup is just an alias for XNFstrdup() that doesn't seem to serve
any practical purpose, so it can go away once all drivers stopped using it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vbox/-/merge_requests/7>
2024-05-10 11:04:15 +02:00
Enrico Weigelt, metux IT consult
8767af9961 use XNFcallocarray() instead of xnfcalloc macro
xnfcalloc is just an alias for XNFcallocarray() that doesn't seem to serve
any practical purpose, so it can go away once all drivers stopped using it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vbox/-/merge_requests/7>
2024-05-08 17:26:33 +02:00
Alan Coopersmith
208421df7c xf86-video-vboxvideo 1.0.1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-video-vboxvideo-1.0.1
2024-03-24 13:32:01 -07:00
Alan Coopersmith
b66441a27f Fix builds with C23 compilers
Relies on C99 & later stdbool.h header to avoid making our own
definitions of bool, true, & false that C23 already defines for us.

./VBoxVideoIPRT.h:35:5: error: expected identifier before ‘false’
   35 |     false = 0,
      |     ^~~~~
./VBoxVideoIPRT.h:37:3: error: expected ‘;’, identifier or ‘(’ before ‘bool’
   37 | } bool;
      |   ^~~~
./VBoxVideoIPRT.h:37:3: warning: useless type name in empty declaration

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-03-11 18:48:41 -07:00
Alan Coopersmith
006126987b COPYING: include all three MIT/X11 license variants from source files
Different source files have slightly different variants of the MIT/X11
license in, so include all three in the COPYING file.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-16 14:48:15 -08:00
Alan Coopersmith
9684853f46 Stop building helpers.c
Clears -Wmissing-prototypes warning for every function in it,
none of which are referenced in any other file.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-16 14:48:15 -08:00
Alan Coopersmith
42e39d102f Fix 142 instances of -Wredundant-decls warning for RTASSERTVAR
./VBoxVideoIPRT.h:77:16: warning: redundant redeclaration of ‘RTASSERTVAR’ [-Wredundant-decls]
   77 |     extern int RTASSERTVAR[1] __attribute__((__unused__)), \
      |                ^~~~~~~~~~~
./VBoxVideoIPRT.h:80:5: note: in expansion of macro ‘AssertCompile’
   80 |     AssertCompile(sizeof(type) == (size))
      |     ^~~~~~~~~~~~~
./VBoxVideoIPRT.h:73:12: note: previous declaration of ‘RTASSERTVAR’ with type ‘int[1]’
   73 | extern int RTASSERTVAR[1];
      |            ^~~~~~~~~~~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-16 14:48:15 -08:00
Alan Coopersmith
5abe92c24f Quiet -Wredundant-decls from xorg/os.h fallbacks for new libc functions
The Xorg headers provide their own versions of strlcat, strlcpy, and
timingsafe_memcmp for platforms that don't have them in libc yet, but
rely on configure to set HAVE_* defines to determine if they should be
defined in the headers.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-16 14:46:33 -08:00
Alan Coopersmith
bc4fa3b99e Silence some standard X.Org warnings that cause too much noise
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-16 14:32:09 -08:00
Alan Coopersmith
293a6b927b Add X.Org's standard C warning flags to AM_CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-16 13:43:53 -08:00
Alan Coopersmith
8dc8094c36 configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOL
AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008,
so it's time to rely on it.

Clears autoconf warnings:

configure.ac:44: warning: The macro 'AC_PROG_LIBTOOL' is obsolete.
configure.ac:44: You should run autoupdate.
aclocal.m4:3515: AC_PROG_LIBTOOL is expanded from...
configure.ac:44: the top level

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-16 13:41:57 -08:00
Alan Coopersmith
1a950f1e3e gitlab CI: ensure libtool is installed in build container
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-07 09:09:32 -07:00
Alan Coopersmith
a3da399dfc gitlab CI: stop requiring Signed-off-by in commits
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-17 11:22:40 -07:00
Alan Coopersmith
fa736a8e3e gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-29 16:15:55 -08:00
Alan Coopersmith
479aa89713 Fix spelling/wording issues
Found by using:
    codespell --builtin clear,rare,usage,informal,code,names

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-29 16:15:02 -08:00
Alan Coopersmith
450a7a11f4 Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-29 15:51:16 -08:00
Alan Coopersmith
4f3a2bea25 Update configure.ac bug URL for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-12-07 19:19:02 -08:00
Alan Coopersmith
8b88ebfb43 Update README for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18 16:42:19 -08:00
Michael Thayer
948bc1ae04 vboxvideo 1.0.0 xf86-video-vboxvideo-1.0.0 2017-11-28 11:58:30 +01:00
Michael Thayer
ab07f97612 Initial commit. 2017-10-14 10:23:47 +02:00