Commit Graph

1201 Commits

Author SHA1 Message Date
stsp
cd197cfa4b Disable the shader cache in Mesa on powerpc. Its implementation uses gcc
atomic builtins on a 64 bit integer which is not supported on 32 bit powerpc.
Makes 3D work again on a PowerBook G4 with an ATI RV350 video card.
tweak and ok jsg@
2017-01-21 11:23:09 +00:00
jsg
97409b6e84 Merge Mesa 13.0.3 2017-01-19 05:53:24 +00:00
jsg
6d4ad6fa4b Import Mesa 13.0.3 2017-01-19 05:38:52 +00:00
matthieu
63b8ae5245 Install new available config files, missed in fontconfig update.
Pointed out by Nils Reusse <n.reusse@hxgn.net>. Thanks.
2017-01-16 22:43:49 +00:00
dcoppa
7a54dc44dc Update to freetype-doc-2.7.1 2017-01-13 11:48:20 +00:00
dcoppa
8c605c12ec Update to FreeType-2.7.1
i386 bulk build by sthen@
amd64 bulk build by naddy@

OK matthieu@
2017-01-13 11:19:58 +00:00
jsg
c503a0e73b Use the unlocked atomic path in Mesa when just __arm__ is defined and
don't assume the builtin atomics are present with __ARM_ARCH_6__ and later
as base gcc with -march=armv6 doesn't have them.
2016-12-31 08:21:39 +00:00
matthieu
1b36c1832c Update to libXpm 3.5.12 2016-12-16 07:28:34 +00:00
jsg
54858cb19b disable additional rules to regen sources when xxd is not found
Found the hard way by Mark Patruck and naddy.  Didn't encounter it here
with a post import build for reasons unknown.
2016-12-11 16:03:25 +00:00
jsg
2047dff595 disable additional rules to regen sources when python is not found
After a cvs import timestamps change which triggers rules that attempt
to call python to regenerate files.  When python is not found this
generates empty files that override those from the distfile, breaking
the build.

When building inside xenocara python is never found as the pkg paths
are not searched.
2016-12-11 10:03:01 +00:00
jsg
e2d9807505 Merge Mesa 13.0.2 2016-12-11 08:53:19 +00:00
jsg
a53e30e01d Import Mesa 13.0.2 2016-12-11 08:25:29 +00:00
jsg
e6d0e0383c Drop the local diff to avoid calling drm set/drop master ioctls,
the kernel implements these as noops now.
2016-12-02 05:41:52 +00:00
jsg
339adf1110 Implement an OpenBSD specific codepath for drmGetDevice
The existing code walks all of /dev looking for different types of drm
nodes.  We just have primary nodes and can directly map the minor number
to a path.

ok kettenis@
2016-11-25 23:58:13 +00:00
jsg
06724bcd2a Implement drmParsePciBusInfo for OpenBSD by using the new
DRM_IOCTL_GET_PCIINFO ioctl.

ok kettenis@
2016-11-25 23:52:06 +00:00
jsg
68ce36bfe8 Implement drmParsePciDeviceInfo for OpenBSD by using the new
DRM_IOCTL_GET_PCIINFO ioctl.

ok kettenis@
2016-11-25 23:48:50 +00:00
jsg
ed28609b08 Implement drmParseSubsystemType for OpenBSD.
Always return DRM_BUS_PCI for now.  No non-pci drm drivers are in the
kernel and this is unlikely to change anytime soon as the existing ones
aren't permissively licensed.

ok kettenis@
2016-11-25 23:44:40 +00:00
jsg
038e48492e Implement drmGetMinorNameForFD for systems without sysfs by adapting
drm_get_device_name_for_fd() from the Mesa loader.

ok kettenis@
2016-11-25 23:41:29 +00:00
tb
750df2fcc6 Fix a copy-paste error that resulted in the parent directory being
chowned instead of only the symlink.

no objections matthieu
2016-11-19 08:45:51 +00:00
jsg
b2fcf88635 Merge libdrm 2.4.73 2016-11-19 05:45:00 +00:00
jsg
90bdad6ae7 Import libdrm 2.4.73 2016-11-19 05:36:14 +00:00
jasper
617afc97af enter xcb-util-xrm/ 2016-11-07 19:31:57 +00:00
jasper
86496c1007 add generated autoconf bits 2016-11-07 19:25:35 +00:00
jasper
1a446edaa5 remove unneeded bits 2016-11-07 19:22:59 +00:00
jasper
44c5a3cdf0 add xcb-util-xrm-1.0
ok matthieu@
2016-11-07 19:20:35 +00:00
matthieu
055e2cd049 Update to xcb-util-cursor to 0.1.3.
This will give applications using this library the same X cursor search path
as the ones that use the legacy libXcursor.
2016-11-03 13:11:40 +00:00
matthieu
21f674944e Update to libXvMC 1.0.10 2016-11-03 12:22:54 +00:00
matthieu
b5b7504b4d Update to libXv 1.0.11 2016-11-03 11:00:48 +00:00
matthieu
ffec5e9271 Update to libXrender 0.9.10 2016-11-03 10:55:16 +00:00
matthieu
20bda1d576 Update to libXrandr 1.5.1 2016-11-03 10:47:58 +00:00
matthieu
47423fcb03 Update to libXfixes 5.0.3 2016-11-03 10:30:05 +00:00
matthieu
20a75c6d0f Update to libX11 1.6.4 2016-11-03 10:21:30 +00:00
matthieu
4c3f151ece Remove stale files 2016-11-03 10:19:11 +00:00
matthieu
0e759a72d7 Update to libXi 1.7.8 2016-11-03 09:28:22 +00:00
matthieu
9a2b6d095b regen 2016-11-02 18:32:01 +00:00
matthieu
9f1ad92005 add Makefile.bsd-wrapper 2016-11-02 18:29:23 +00:00
matthieu
981fa8b5d2 Patch from upstreams to actually let this build 2016-11-02 18:28:30 +00:00
matthieu
0ed8a296d0 Import libXfont2 version 2.0.1 2016-11-02 18:05:49 +00:00
dcoppa
91c5ab3b87 Update to freetype-doc-2.7 2016-10-29 12:07:21 +00:00
dcoppa
737706040f Update to FreeType 2.7
Now Subpixel hinting, also known as ClearType hinting, is enabled
by default.

OK matthieu@
2016-10-28 21:41:14 +00:00
jsg
46fe26bc0b binutils on powerpc now ignores --gc-sections. Remove the local patch
to avoid using it on powerpc from Mesa.

Tested by matthieu@ on macppc.
2016-10-23 06:16:03 +00:00
jsg
512a658c47 Merge libdrm 2.4.71 2016-10-16 06:11:11 +00:00
jsg
d855f0143e Import libdrm 2.4.71 2016-10-16 06:01:17 +00:00
matthieu
fd18c20e72 regen 2016-10-11 22:14:30 +00:00
matthieu
c9d0110642 Force AM_MAINTAINER_MODE in all Xenocara packages built by autotools
This prevents autotools to try to rebuild themselve automagically
if configure.ac, Makefile.am or a few other have more recent time
stamps than the generated files.

It will allows to get rid of the NO_REORDER mechanism that touches
files in the source tree to ensure nothing gets rebuilt.
2016-10-11 21:54:35 +00:00
matthieu
d9fc70eb7c Remove the global 'make includes' step from 'make build'.
This is no longer needed and gets in the way of tightening
permission used during build. ok and suggestions natano@
2016-10-10 13:34:43 +00:00
matthieu
178fb5f1c1 Move headers files to 'GL/' so that the library can be built
without installed headers.
2016-10-10 13:27:14 +00:00
natano
6c14b73344 ks_tables.h is always considered out of date due to the forced rebuild
of the makekeys util. This means it's also rebuilt during install. First
as root during build, later by the BUILDUSER during release, which won't
be able to rewrite it, because it's now owned by root. With this result:

	override rw-r--r--  root/wheel for ks_tables.h?


One step closer towards noperm release builds for xenocara.

ok matthieu
2016-10-08 21:51:47 +00:00
matthieu
dde5cc23a3 Put back the NOPROFILE= that I accidentally removed in previous commit 2016-10-08 19:29:18 +00:00
matthieu
dd04a74464 use the pkg-config support from bsd.xorg.mk to handle
libGLw and libepoxy .pc files rather than manually generating them
as root in postinstall. Spotted by natano@ ok natano@.
2016-10-08 19:09:34 +00:00
matthieu
f8928160a7 Fix package version in fontconfig.pc 2016-10-08 14:09:10 +00:00
matthieu
e61292a300 Avoid buffer underflow on empty strings.
If an empty string is received from an x-server, do not underrun the
buffer by accessing "rep.nameLen - 1" unconditionally, which could end
up being -1.

From Tobias Stoeckmann / X.Org security advisory Oct 4, 2016
2016-10-04 15:11:05 +00:00
matthieu
1e4e5956d0 Protocol handling issues in libXv
The Xv query functions for adaptors and encodings suffer from out of boundary
accesses if a hostile X server sends a maliciously crafted response.

A previous fix already checks the received length against fixed values but
ignores additional length specifications which are stored inside the received
data.

These lengths are accessed in a for-loop. The easiest way to guarantee a
correct processing is by validating all lengths against the remaining size
left before accessing referenced memory.

This makes the previously applied check obsolete, therefore I removed it.

From Tobias Stoeckmann / X.Org security advisory Oct 4, 2016
2016-10-04 15:09:40 +00:00
matthieu
ce0f69616f Out of boundary access and endless loop in libXtst
A lack of range checks in libXtst allows out of boundary accesses.
The checks have to be done in-place here, because it cannot be done
without in-depth knowledge of the read data.

If XRecordStartOfData, XRecordEndOfData, or XRecordClientDied
without a client sequence have attached data, an endless loop would
occur. The do-while-loop continues until the current index reaches
the end. But in these cases, the current index would not be
incremented, leading to an endless processing.

From Tobias Stoeckmann / X.Org security advisory Oct 4, 2016
2016-10-04 15:08:08 +00:00
matthieu
26cabdb32f Validate lengths while parsing server data.
Individual lengths inside received server data can overflow
the previously reserved memory.

It is therefore important to validate every single length
field to not overflow the previously agreed sum of all invidual
length fields.

From Tobias Stoeckmann / X.Org security advisory Oct 4, 2016
2016-10-04 15:05:13 +00:00
matthieu
9f957a9f79 Avoid OOB write in XRenderQueryFilters
The memory for filter names is reserved right after receiving the reply.
After that, filters are iterated and each individual filter name is
stored in that reserved memory.

The individual name lengths are not checked for validity, which means
that a malicious server can reserve less memory than it will write to
during each iteration.

From Tobias Stoeckmann / X.Org security advisory Oct 4, 2016
2016-10-04 15:03:48 +00:00
matthieu
aebb61b811 Avoid out of boundary accesses on illegal responses
The responses of the connected X server have to be properly checked
to avoid out of boundary accesses that could otherwise be triggered
by a malicious server.

From Tobias Stoeckmann / X.Org security advisory Oct 4, 2016
2016-10-04 15:02:31 +00:00
matthieu
342b1570d2 Properly validate server responses
By validating length fields from server responses, out of boundary
accesses and endless loops can be mitigated.

From Tobias Stoeckmann / X.Org security advisory Oct 4, 2016
2016-10-04 15:01:03 +00:00
matthieu
269364ad66 Integer overflow on illegal server response
The 32 bit field "rep.length" is not checked for validity, which allows
an integer overflow on 32 bit systems.

A malicious server could send INT_MAX as length, which gets multiplied
by the size of XRectangle. In that case the client won't read the whole
data from server, getting out of sync.

From Tobias Stoeckmann / X.Org security advisory Oct 4, 2016
2016-10-04 14:59:47 +00:00
matthieu
89e55bbf5a Validation of server responses in XGetImage()
Check if enough bytes were received for specified image type and
geometry. Otherwise GetPixel and other functions could trigger an
out of boundary read later on.
From Tobias Stoeckmann / X.Org security advisory Oct 4, 2016
2016-10-04 14:58:26 +00:00
matthieu
bd2560e2ec The validation of server responses avoids out of boundary accesses.
From Tobias Stoeckmann / Xorg Securiry adrvisory Oct 4, 2016.
2016-10-04 14:56:37 +00:00
matthieu
c542153d63 revert pixman-vmx.c to the version of pixman-0.32.8.
gcc 4.2 is not able to compile the new version.
XXX switch back to 0.34 once macppc switches to clang.
2016-10-03 06:57:44 +00:00
matthieu
71be0511eb Fix installation of libXaw.so.15.0 link. 2016-10-02 19:11:16 +00:00
matthieu
321b9b9f5f regen 2016-10-02 17:17:04 +00:00
matthieu
b0eedeca6e Handle the libXaw.so.xx.y symlink in afterinstall: in Makefile.bsd-wrapper
No more diffs with upstreams in autoconf files;
owneship of links for non-root/noperm installs is handled too.
2016-10-02 17:16:31 +00:00
matthieu
f086547c98 regen 2016-10-02 10:30:28 +00:00
matthieu
d9e10c2579 Remove local patch for platforms without shared libs 2016-10-02 10:30:06 +00:00
matthieu
99edbe0a23 Reduce diffs with upstreams 2016-10-02 10:00:36 +00:00
tb
da27f01d12 Set owner and group of the XScreenSaver(3) manpage symlink.
Needed for noperm release.

ok matthieu
2016-10-02 09:28:53 +00:00
tb
c3666a91f0 chown -h symbolic links in conf.d. Needed for noperm release.
There are a few remaining symlinks that will be fixed later.

ok matthieu
2016-10-02 09:19:28 +00:00
matthieu
cb8938ecc4 Update to pixman 0.34.0. 2016-10-01 10:17:43 +00:00
matthieu
02593ff9e1 pixman: upstreams tarballs contain an empty ChangeLog.
So remove what we have here. Less gratuitous local changes.
2016-09-25 10:31:16 +00:00
matthieu
3e22cb884a Update to libXfont 1.5.2 2016-09-02 11:00:05 +00:00
matthieu
778b53e347 Update to xcb-proto/libxcb 1.12. "Just commit it" naddy@ 2016-09-02 10:09:43 +00:00
jsg
e0e6b146d2 remove sparc 2016-09-01 10:37:40 +00:00
deraadt
1667ad0b71 extra space 2016-08-09 19:40:13 +00:00
matthieu
6219851df2 Update to fontconfig 2.12.1.
Tested by krw@, dcoppa@, ok dcoppa@.
2016-08-09 18:57:41 +00:00
tedu
1cfa6ba9b5 just dump the major. freetype changes probably extend beyond just the
obviously visible symbol additions.
2016-08-09 17:41:23 +00:00
dcoppa
739881e349 Re-add binary files using 'cvs add -kb' 2016-08-09 08:16:45 +00:00
dcoppa
662d4e30c2 Remove binary files 2016-08-09 08:13:56 +00:00
dcoppa
1d43045a90 Update to freetype-doc-2.6.5 2016-08-09 07:53:52 +00:00
dcoppa
7513b427d4 Update to FreeType 2.6.5
ok matthieu@
2016-08-09 07:16:08 +00:00
matthieu
0d928c6a2e Update to libXi 1.7.6 2016-08-06 09:56:28 +00:00
matthieu
7a95b9000b Update to libXfixes 5.0.2. No functional changes. 2016-08-06 09:51:36 +00:00
kettenis
4159a76ad9 Disable the code that allocates W|X memory. There is fallback code that
gets used if allocating W|X memory fails, which is probably a bit slower.
However, that is much better than commit a W^X violation which currently
gets you killed.

ok jca@
2016-07-25 20:12:06 +00:00
dcoppa
84ff959861 Update to freetype-doc-2.6.3 2016-05-30 08:28:23 +00:00
dcoppa
bd5c5e0b0d "javascript" renamed to "js" 2016-05-30 08:22:54 +00:00
dcoppa
fc2035f145 "javascript" renamed to "js" 2016-05-30 08:22:04 +00:00
dcoppa
558b65489d bump freetype major 2016-05-29 12:29:25 +00:00
dcoppa
04fa58073a Bump following freetype update.
Suggested by sthen@

ok sthen@, naddy@, matthieu@
2016-05-29 11:59:59 +00:00
dcoppa
ebfdec871f Update to FreeType 2.6.3
ok sthen@, naddy@, matthieu@
2016-05-29 11:57:09 +00:00
jsg
363dd58b73 Merge Mesa 11.2.2 2016-05-29 10:40:19 +00:00
jsg
f8d9379ca7 Import Mesa 11.2.2 2016-05-29 10:11:54 +00:00
kettenis
3c6443a9bb Make sure we authenticate before calling loader_get_driver_for_fd(). This
function invokes some drm ioctls that require the client to be authenticated.

tested by espie@
ok jsg@
2016-04-20 12:23:56 +00:00
jsg
b96f098cef remove XENOCARA_BUILD_PIXMAN all platforms now build pixman 2016-04-01 03:15:15 +00:00
jsg
92b7ec9f80 Merge libdrm 2.4.67 2016-03-20 10:41:29 +00:00
jsg
b8626cd659 Import libdrm 2.4.67 2016-03-20 10:19:44 +00:00
jsg
d29159d31f test some more __ARM_ARCH_* builtin defines 2016-03-18 14:38:03 +00:00
matthieu
fc89427fc0 Enable atomics operations for fontconfig on mips64 and mips64el.
ok kettenis@
2016-03-13 20:23:35 +00:00
okan
27f67406f3 Remove support vax and XENOCARA_HAVE_SHARED_LIBS scaffolding.
ok matthieu@
2016-03-11 13:09:42 +00:00
matthieu
06764a7ecd Update to libXrandr 1.5.0 2016-03-06 13:37:21 +00:00
jsg
dfa30dc686 Back out rev 1.3 and use __sync builtins on alpha. gcc no longer
triggers an ICE with p_atomic_cmpxchg/__sync_val_compare_and_swap.

Tested by matthieu.
2016-02-28 04:44:02 +00:00
matthieu
688f9b80ed On alpha with -O2 gcc gets an ICE on 2 files.
With help of jsg@
2016-02-20 10:49:47 +00:00
matthieu
ea648fa9c3 alpha lacks p_atomic_cmpxchg() switch to non atomic ops 2016-02-20 10:48:24 +00:00
jsg
ff4b8fa034 Don't depend on indirect inclusion to pick up endian.h and define
BYTE_ORDER.  Tested by and ok visa@ mpi@
2016-02-19 04:57:02 +00:00
jsg
347afd8071 Disable another make rule requiring python that could trigger if the
timestamps are wrong.  We always want to use the generated sources
provided with Mesa releases.  Encountered by tobias.
2016-02-18 13:57:22 +00:00
jsg
9eeb07a50d Merge Mesa 11.0.9 2016-01-24 01:21:23 +00:00
jsg
f83fcc6f8e Import Mesa 11.0.9 2016-01-24 00:59:28 +00:00
jsg
8d4acd4c62 Disable reading of drirc files by default so chromium processes
with OpenGL contexts can drop the ability to read files.

Diff from robert@ with a comment added.

ok robert@ deraadt@
2016-01-07 23:41:25 +00:00
dcoppa
8b6c7dfac5 Sync freetype-doc with freetype, i.e. update freetype-doc to
ver. 2.6.2

ok matthieu@
2016-01-02 16:30:55 +00:00
jsg
8f9a563a62 Merge libdrm 2.4.65 2015-12-27 09:16:53 +00:00
jsg
0733b38856 Import libdrm 2.4.65 2015-12-27 08:58:00 +00:00
dcoppa
1cd20ba8aa Remove bogus file.
ok matthieu@
2015-12-25 19:06:01 +00:00
matthieu
8f7e2085cc Do no overwrite the installed Unix ftconfig.h with the ANSI one.
ok dcoppa@
2015-12-25 11:54:40 +00:00
jsg
a06be69de2 Merge Mesa 11.0.8 2015-12-23 13:43:05 +00:00
jsg
9efbf61fd8 Import Mesa 11.0.8
This seems to fix some of the problems with clutter/gnome reported to
occur on r600 with 11.0.6
2015-12-23 13:18:51 +00:00
jsg
e9f73a2005 remove now unused local build system for Mesa 2015-12-23 05:06:01 +00:00
jsg
bf795ce77a Build the gallium software rasteriser (softpipe). This avoids a problem
mpi found where the r300 driver would not load on macppc due to an
undefined drisw_create_screen symbol.

The code related to that symbol was removed sometime after Mesa 11.0
branched.

Initial diff from and ok mpi@
2015-12-20 12:31:01 +00:00
jsg
1ff7fe0da7 Set the configure option to enable floating point textures.
While the i965 driver enables support unconditionally other drivers
such as r600 require this before they will claim to support OpenGL 3.x
2015-12-20 12:15:55 +00:00
dcoppa
eebe821214 Bugfixing update to freetype-2.6.2
Tested on amd64, i386, macppc, sparc64, loongson and compile-tested
on arm by matthieu@
Also tested in a ports bulk build by naddy@

OK matthieu@
2015-12-07 09:34:02 +00:00
kettenis
b31a77d567 On i386, compile with -march=i586. The i965 driver requires 64-bit atomic
operations and older CPUs lack the needed instructions.  The hardware
supported by that driver will never be used together those older CPUs.
This might mean that even the software rasterizer doesn't work anymore on
those.  But they're so slow that you probably wouldn't want to anyway.

ok jsg@
2015-11-26 19:05:49 +00:00
jsg
45966989b6 Switch to Mesa 11.0.6 built with autoconf instead of a set of a custom
makefiles.  Thanks to Emil Velikov for removing requirements on gnu make
upstream and sorting out a bunch of other things to make this possible.
2015-11-22 07:57:10 +00:00
jsg
987bf76a95 regen 2015-11-22 07:14:29 +00:00
jsg
a8524181dd Disable the bison/lex/python rules to regenerate sources that were
included in the tarball.

cvs import seems to have changed timestamps of files which caused
these rules to trigger and the build to fail.
2015-11-22 06:57:53 +00:00
jsg
88d4ee1fc0 disable --gc-sections on ppc to avoid an ld 2.17 segfault 2015-11-22 03:13:27 +00:00
jsg
3204a661ed add a makefile for xenocara 2015-11-22 03:11:30 +00:00
jsg
61bd9e6bfc provide an unlocked atomic fallback path
sparc < v9, hppa, sh, arm < v6 don't provide these builtins
and we don't have kernel assistance to fake them currently.
2015-11-22 03:08:22 +00:00
jsg
4f35c98dd8 don't install /etc/drirc it's just a bunch of workarounds for closed
linux programs
2015-11-22 03:05:02 +00:00
jsg
0ecb55906d don't try to symlink files that don't exist 2015-11-22 03:01:23 +00:00
jsg
0cd8e2ac98 dlopen libGL.so not libGL.so.1 2015-11-22 02:58:43 +00:00
jsg
7966c15bd5 remove the hard requirement of llvm for gallium on i386/amd64 2015-11-22 02:55:55 +00:00
jsg
1fe54f218f import Mesa 11.0.6 2015-11-22 02:36:47 +00:00
naddy
5a22aec1bc Don't enable 10-autohint.conf by default. It causes problems with
xterm -fa mono (underscores disappearing because the glyph exceeds
the cell size), matthieu@ can't remember why he enabled it, and it's
not enabled by default anywhere else.  ok matthieu@
2015-10-23 12:29:31 +00:00
dcoppa
f3fdd101b8 Zap bogus RCS strings 2015-10-20 08:10:21 +00:00
sthen
b8f08254ee bump freetype minor; the update adds new functions. spotted by naddy@,
"Please go ahead and commit the minor bump" dcoppa@
2015-10-19 12:23:39 +00:00
dcoppa
45d32bf5f0 Update to freetype-2.6.1
OK matthieu@

Bulk build by naddy@, thanks!
2015-10-19 07:51:34 +00:00
matthieu
4aca9982ea Update to pixman 0.32.8. 2015-10-01 06:21:38 +00:00
dcoppa
50d60107cf Crank minor for libxcb
ok matthieu@
2015-09-30 09:14:26 +00:00
jsg
a74e8629b1 regen 2015-08-28 14:25:40 +00:00
jsg
06524d56f2 The libdrm autoconf test for atomics uses __sync_val_compare_and_swap with
the address of a function argument which triggers a gcc ICE on sparc64
resulting in libdrm_radeon not being built as reported by naddy.

kettenis pointed out that while other architectures probably spill the
argument onto the stack this is likely not the case on register window
architectures like SPARC and suggested passing a pointer as an argument
instead which avoids the ICE and allows the drm libraries requiring
atomics to build on sparc64 again.

ok kettenis@ matthieu@
2015-08-28 14:25:03 +00:00
matthieu
12f3f3cac2 Gallium drivers also need -I${X11BASE}/include/libdrm now 2015-08-22 21:55:33 +00:00
jsg
2f795be262 use the drm headers from libdrm not the kernel 2015-08-22 00:50:54 +00:00
jsg
b7e5d17b94 regen 2015-08-22 00:36:45 +00:00
jsg
d4c79ffe1f Merge libdrm 2.4.64. This changes the build to using the upstream
auto* build system and installing/using a libdrm specific set of drm
headers.  Thanks to Emil Velikov for removing the GNU makeisms
upstream.
2015-08-22 00:30:35 +00:00
jsg
9c6fecc40b Import libdrm 2.4.64 2015-08-21 23:55:36 +00:00
jsg
08aef340aa update to libepoxy 1.3.1
ok aja@
2015-08-20 03:10:38 +00:00
matthieu
597512ebad Start at libOSMesa.so.8.0 to avoid having a smaller revision than
the one build from the autotools build system.
2015-08-19 23:01:13 +00:00
matthieu
650f911f00 Enable the build of libOSMesa. Ports will need it soon.
tested by juanfra@ ok jsg@
2015-08-19 23:00:12 +00:00
mpi
1bea96e4e1 Build r300g and r600g on macppc and sparc64.
ok jsg@
2015-07-29 05:49:16 +00:00
matthieu
6780260a4f Clean up and fix make depend. 2015-07-19 10:39:19 +00:00
jsg
4cadc17f75 update to libdrm 2.4.62 2015-07-15 23:19:17 +00:00
kettenis
2f4347932e Only include <sys/memrange.h> on i386/amd64 as it really isi
architecture-specific.  This prevents us from trying to establish
write-combining mappings on other architectures, which in turn makes
non-kms pci video drivers work again on those platforms.

ok mlarkin@
2015-07-07 12:52:54 +00:00
kettenis
94e6ae1917 Fix typo/pasto in previous commit; request write combining mapping when it
is actually requested and not for every writable mapping.
2015-07-06 12:49:35 +00:00
dcoppa
9b54f82656 Update to FreeType 2.6
OK matthieu@
2015-06-28 08:27:43 +00:00
kettenis
d324f4a41d Attempt to establish a write combining mapping instead of relying on mttrs.
Setting the mttrs failson my thinkpad x1 rev 3, making the xorg-video-vesa
driver painfully slow.  This makes the machine somewhat usable.

ok mpi@
2015-06-24 19:26:20 +00:00
matthieu
eb9a486a3e No NEWS is good NEWS - remove a bunch of files not present upstreams anymore 2015-05-10 09:51:55 +00:00
matthieu
70076ba3b1 remove useless diffs with upstream 2015-05-10 09:39:35 +00:00
matthieu
f8db8710b5 update to libxkbfile 1.0.9 2015-05-10 09:32:36 +00:00
matthieu
c7a38f5d4d update to libpciaccess 0.13.4 2015-05-10 09:31:51 +00:00
matthieu
ca29790bc7 Update to libfontenc 1.1.3 2015-05-10 09:27:16 +00:00
matthieu
364407971f Update to libXt 1.1.5 2015-05-10 09:26:33 +00:00
matthieu
5a65a1959d Update to libXrender 0.9.9 2015-05-10 09:25:49 +00:00
matthieu
0bb09a17e1 Update to libXaw 1.0.13 2015-05-10 09:24:43 +00:00
matthieu
88ff9b4f37 update to libFS 1.0.7 2015-05-10 09:23:34 +00:00
miod
c65edaf7e7 sparc needs big PIC 2015-04-22 17:31:47 +00:00
ajacoutot
a4f6b02a50 Hook up libepoxy.
committing on behalf of jsg@
2015-04-15 09:39:53 +00:00
jsg
6a30333192 Add libepoxy a library for handling gl/glx/egl function pointer management.
This is needed by glamor egl in the xserver which is in turn needed
to get acceleration with some hardware on xf86-video-ati.

Worked on during s2k15.  Glamor is not yet enabled in the xserver,
but adding this now as libepoxy recently showed up in ports.

The libepoxy port will be removed and ports will transition to
this version.  The xenocara version will be enabled when we're
ready to transition.
2015-04-15 07:58:58 +00:00
matthieu
8252bb00ee update to libX11 1.6.3 2015-04-06 20:57:55 +00:00
matthieu
2093a99a43 Update to libXdmcp 1.1.2 2015-04-06 13:43:52 +00:00
matthieu
593800b416 Update to libXvMC 1.0.9 2015-04-06 13:33:24 +00:00
matthieu
f76404a620 update to libXxf86vm 1.1.4 2015-04-06 13:27:36 +00:00
matthieu
b16ff86102 Update to xcb-util-keysyms 0.4.0 2015-04-06 12:39:42 +00:00
matthieu
a625cf28cc Update to xcb-util-image 0.4.0 2015-04-06 12:39:04 +00:00
matthieu
f17e0a8651 Update to xcb-util 0.4.0 2015-04-06 12:38:11 +00:00
matthieu
ed91ece414 Make cleandir also remove the built 'fonts.conf' file. 2015-04-05 16:05:34 +00:00
ajacoutot
c269e943e2 Move the default fontpath from /usr/local/lib/X11/fonts to
/usr/local/share/fonts to match XDG_DATA_DIR (where Desktop tools will look for
by default).

discussed with sthen@ and matthieu@
ok sthen@
2015-03-31 09:42:56 +00:00
dcoppa
4b34d0f021 Minor update to xcb-util-cursor-0.1.2
ok matthieu@
2015-03-30 07:16:53 +00:00
jsg
766592491f update to libdrm 2.4.60 2015-03-26 06:00:06 +00:00
matthieu
9b9b8ffe5b Update to libXfont 1.5.1.
Contains fixes for following issues:
CVE-2015-1802: bdfReadProperties: property count needs range check
CVE-2015-1803: bdfReadCharacters: bailout if a char's bitmap cannot be read
CVE-2015-1804: bdfReadCharacters: ensure metrics fit into xCharInfo struct
2015-03-17 20:42:25 +00:00
jsg
f149319ba0 Only build the gallium radeon winsys on i386/amd64 as
those are the only archs that currently use gallium radeon drivers.

It should build anywhere that has the libdrm radeon headers
installed.  And while that should really be everywhere it
isn't at the moment and won't be for release.

It isn't clear why the radeon winsys in Mesa 10.4 didn't have
the same problem.

Found the hard way by todd@ on alpha.
2015-02-23 23:39:27 +00:00
jsg
f62222a305 Backport support for GLX_MESA_query_renderer for non Intel drivers.
This is desirable as the chromium port now uses this extension to
obtain pci vendor/device ids for use in feature/extension blacklists.

Prompted by a mail from byrnet@, tested on r600g by krw@

The newly added os_get_total_physical_memory() was passing the length of
a pointer rather than the type which made the sysctl call fail on
non 64 bit archs.  And it was passing the wrong pointer for the result.
Fixes for these problems have been submitted back upstream.
2015-02-22 09:30:33 +00:00
jsg
82481235fe use .PATH to work around symlinks in dist tarball 2015-02-21 00:39:06 +00:00
jsg
a3c5584b37 switch back to Mesa 10.2
With 10.4.3 gpu compositing on chromium would result in a black window
on older Intel parts (ie x60s with 945gm) and at least some discrete
Radeon parts.  These problems do not seem to occur on recent Intel
parts, though those have coherent memory and hardware contexts.

It isn't clear what changes in Mesa are involved in the problem
though it also occurs with the 10.3 branch.
2015-02-20 23:31:04 +00:00
jsg
9bd5aba6bb update to libdrm 2.4.59 2015-02-07 01:34:35 +00:00
matthieu
87c098c895 Update to libxcb and xcb-proto 1.11.
Tested on a bulk ports build by naddy@.
Lots of churn due to white-space and comments changes in generated code.
2015-01-26 21:32:10 +00:00
jsg
5f55a0a16b Mesa 10.4.3 2015-01-25 15:09:12 +00:00
dcoppa
57be036a1d Bugfixing update to freetype-2.5.5
ok matthieu@
2015-01-10 17:17:22 +00:00
matthieu
936b4cf06e Fix bad merges. 2015-01-01 17:37:52 +00:00
dcoppa
8a4a3c138b Zap some bogus RCS strings added by accident because of CVS keyword
expansion
2014-12-27 18:43:15 +00:00
dcoppa
62705531f4 Update to freetype-2.5.4
ports bulk build by landry@

OK matthieu@
2014-12-26 17:52:34 +00:00
schwarze
01412a19db fix wrong name in .TH, NAME, and SYNOPSIS (obviously bad pastos...)
ok matthieu@
2014-12-09 09:29:52 +00:00
matthieu
6d1b4b2eb2 Update to libXi 1.7.4 2014-09-28 17:22:58 +00:00
matthieu
e67f24e53d Update to libXext 1.3.3 2014-09-28 17:18:23 +00:00
matthieu
3d0a879628 Update to xtrans 1.3.5 2014-09-28 16:56:06 +00:00
kettenis
bbd5563373 Add -DHAVE_LIBDRM to CPPFLAGS when approriate.
ok jsg@
2014-09-28 12:53:26 +00:00
jsg
4727f64aaf Match the behaviour of Mesa when built by autoconf and link
libEGL against libgbm and libglapi.

The libgbm requirement comes from the drm EGL backend that was
enabled with the 10.2.3 update.

ok matthieu@ kettenis@
2014-09-28 11:02:37 +00:00
matthieu
afc8fcf86c I forgot to merge config.h.in in the update to libxcb 1.10.
noticed by and ok kettenis@
2014-09-27 20:04:32 +00:00
matthieu
e4c13334f7 Missed file in libXfont 1.5.0 update 2014-09-27 17:43:02 +00:00
matthieu
e4967fc3e9 Update to libXfont 1.5.0
Tested together with xserver 1.16.1 by naddy@, jsg@ & kettenis@
2014-09-27 17:42:14 +00:00
kettenis
eb9a95d64d Use PCIOCREADMASK to size the PCI BARs. This makes more parts of libpciaccess
usable when machdep.allowaperture is zero.

ok matthieu@
2014-09-27 08:56:18 +00:00
jsg
b222fe706e Mesa 10.2.7 2014-09-07 15:32:18 +00:00
matthieu
17de6442e2 Fix the HAVE_UUID_CREATE code now that its gets used:
- fix temp declaration
- use snprintf instread of strcpy()
2014-08-31 17:57:40 +00:00
matthieu
ec589d938f Install relative symlinks in conf.d. Noticed by ajacoutot@ 2014-08-31 13:50:27 +00:00
jsg
4d28f01d0c update to libdrm 2.4.56 2014-08-14 04:00:28 +00:00
matthieu
7afaae9fe9 Install resource files in /usr/X11R6/share/X11/app-defaults
/etc/X11/app-defaults stays 1st in the libXt search path so, people
and ports can put customized versions there if needed.
If you didn't customize the versions in /etc/X11/app-defaults, they
should be removed to avoid future issues when one file changes.

discussed at g2k14 and ok ajacoutot@
2014-08-13 21:02:16 +00:00
jsg
c63c2890f1 calloc the pci_sys struct before probing for PCI.
As the functions check if the member pointers are NULL but not the
pointer to the struct itself.

Reworked version of a diff from ratchov@ who created it to prevent a
xserver crash on zaurus where there is no PCI.

'looks ok' matthieu@, ok deraadt@
2014-08-06 17:00:09 +00:00
matthieu
aefac52141 Update to pixman 0.32.6 2014-07-20 19:22:20 +00:00
jsg
7eba4784b6 Mesa git no longer includes Intel AUB definitions,
instead it uses the libdrm definitions.

Install the AUB header so this will work.
2014-07-19 17:06:47 +00:00
jsg
92dd606da1 use CPPFLAGS instead of CFLAGS for additional defines/includes 2014-07-17 13:53:23 +00:00
matthieu
bdc9f3dd53 Move the logic that says that the openchrome driver requires librm
to the drivers Makefile, and don't build it if the user choose not
to build libdrm.
2014-07-14 19:06:02 +00:00
matthieu
e52b740c0e Update to libXft 2.3.2 2014-07-12 10:10:57 +00:00
matthieu
5a14c2ef39 Update to libICE 1.0.9 2014-07-12 09:49:11 +00:00
jsg
128505aa0d gallium/targets/{r300,r600,radeonsi}/dri/drm_target.c is now a symlink to
gallium/targets/{r300,r600,radeonsi}/common/drm_target.c in the Mesa source
but cvs import ignores symlinks.

Change the directory we search for drm_target.c in to deal with this.
2014-07-10 08:44:00 +00:00
jsg
ea95abebcf Mesa 10.2.3 2014-07-09 21:32:40 +00:00
nick
a870156568 fix for man pages -- per roff(7), .so should be based in the parent man
page directory.  fixes the following X man 3 pages:
  XTestCompareCurrentCursorWithWindow.man
  XTestCompareCursorWithWindow.man XTestDiscard.man
  XTestFakeButtonEvent.man XTestFakeKeyEvent.man
  XTestFakeMotionEvent.man XTestFakeRelativeMotionEvent.man
  XTestGrabControl.man XTestSetGContextOfGC.man
  XTestSetVisualIDOfVisual.man
2014-06-20 00:38:53 +00:00
matthieu
9364b9c909 Uodate to xcb-util-renderutil 0.3.9 2014-06-15 09:00:40 +00:00
matthieu
4bd039500e Update to libXfont 1.4.8 2014-05-18 12:13:54 +00:00
matthieu
b4cc09fbf4 Update to fontconfig 2.11.1. Tested by shadchin@ 2014-05-18 10:33:03 +00:00
matthieu
05ed5123d1 Security fixes from X.Org Advisory:
X Font Service Protocol & Font metadata file handling issues in libXfont
May 13, 2014

- CVE-2014-0209: integer overflow of allocations in font metadata file parsing

    When a local user who is already authenticated to the X server adds
    a new directory to the font path, the X server calls libXfont to open
    the fonts.dir and fonts.alias files in that directory and add entries
    to the font tables for every line in it.  A large file (~2-4 gb) could
    cause the allocations to overflow, and allow the remaining data read
    from the file to overwrite other memory in the heap.

    Affected functions: FontFileAddEntry(), lexAlias()

- CVE-2014-0210: unvalidated length fields when parsing xfs protocol replies

    When parsing replies received from the font server, these calls do not
    check that the lengths and/or indexes returned by the font server are
    within the size of the reply or the bounds of the memory allocated to
    store the data, so could write past the bounds of allocated memory when
    storing the returned data.

    Affected functions: _fs_recv_conn_setup(), fs_read_open_font(),
    fs_read_query_info(), fs_read_extent_info(), fs_read_glyphs(),
    fs_read_list(), fs_read_list_info()

- CVE-2014-0211: integer overflows calculating memory needs for xfs replies

    These calls do not check that their calculations for how much memory
    is needed to handle the returned data have not overflowed, so can
    result in allocating too little memory and then writing the returned
    data past the end of the allocated buffer.

    Affected functions: fs_get_reply(), fs_alloc_glyphs(),
    fs_read_extent_info()

Reported by Ilja van Sprundel of IOActive
Fixes by Alan Coopersmith of Oracle
2014-05-13 19:09:22 +00:00
jsg
7391d4da2b update to libdrm 2.4.54
ok matthieu@
2014-05-13 05:44:06 +00:00
matthieu
3be5e5d5ea Update to libXi 1.7.2.
Tested by ajacoutot@ against gnome.
2014-05-09 19:55:33 +00:00
matthieu
a88567318b Update to libFS 1.0.6. 2014-05-03 19:33:59 +00:00
jsg
3caad18866 sync LLVM_VERSION with the llvm port. 2014-04-20 10:58:20 +00:00
dcoppa
bd97a70148 unbreak: le32toh() is letoh32() here.
ok matthieu@
2014-04-15 10:23:27 +00:00
matthieu
aa0c7c0d3e Update list of xcb libs to build 2014-04-14 19:33:09 +00:00
matthieu
ad0e152808 Import xcb-util-wm 0.4.1 2014-04-14 19:31:46 +00:00
matthieu
bb22f1b693 Update xcb-util-renderutil 0.3.8 2014-04-14 19:30:59 +00:00
matthieu
f5afeffdb0 Import xcb-util-keysyms 0.3.9 2014-04-14 19:30:20 +00:00
matthieu
6f298b56b1 Import xcb-util-image 0.3.9 2014-04-14 19:29:32 +00:00
matthieu
497c9caab2 Import xcb-util-cursor 0.1.1 2014-04-14 19:28:44 +00:00
matthieu
7283b34154 Update xcb-utils to 0.3.9. Tested by naddy@, shadchin@ and ajacoutot@
who I forgot to thank for testing libxcb-1.10 too.
2014-04-14 19:26:35 +00:00
matthieu
778645a09b Update build system and generated files for libxcb 1.10. 2014-04-14 19:20:17 +00:00
matthieu
35be34cf37 Update to xtrans 1.3.4 2014-04-13 11:57:04 +00:00
jsg
41460e9da0 update to libdrm 2.4.53
For us the only code change is some new radeon_drm.h defines
as the xf86drmMode.c change is ifdef __FreeBSD__.
2014-04-11 06:15:17 +00:00
kettenis
de0199f63b Increase the send buffer for UNIX sockets to be at least 64k such that large
sends (for example, XGetImage() replies in the X server) happen at non-glacial
speeds.  Makes Firefox useable again on web pages with large images.  Already
pushed upstream.

ok matthieu@
2014-03-31 12:09:00 +00:00
matthieu
d7ab44da6c Revert previous. This was not part of our local changes and the
commit wasn't approved. The correct fix is in ../../Makefile
2014-03-15 18:09:43 +00:00
matthieu
e95d5fc7c6 Fix freetype-config after update to freetype 2.5.3. reported by nigel@ 2014-03-15 18:02:09 +00:00
dcoppa
ab67cce656 (re)fix freetype-config too.
Spotted by nigel@
2014-03-15 17:27:50 +00:00
jsg
fd836bcc99 update to libdrm 2.4.52
ok matthieu@
2014-03-15 05:05:55 +00:00
dcoppa
c9a482a02a Revert to the freetype2.pc we had before.
There were local changes and I accidentally removed them.

ok matthieu@

Sorry for breaking the xenocara tree!
2014-03-14 20:41:41 +00:00
dcoppa
6842467b3b Security/bugfixing update to freetype-2.5.3, featuring a fix for a
vulnerability in the CFF driver (CVE-2014-2240) and assorted minor
fixes.

ok matthieu@
2014-03-14 08:17:59 +00:00
kettenis
833d4245d3 We don't need the VGA arbiter if direct hardware access has been disabled.
ok matthieu@
2014-02-20 21:29:07 +00:00
matthieu
44a7f0fe9b type1cid.c appears twice in sources lists for no reason. Noticed by miod@ 2014-02-16 08:10:36 +00:00
kettenis
6dbbb49403 If opening /dev/pciN read-write fails, try opening it read-only. This allows
X to run with machdep.allowaperture=0 on inteldrm(4) and radeondrm(4).

ok matthieu@
2014-02-15 09:48:07 +00:00
jsg
b2251fdbcd Mesa 9.2.5 2014-01-19 03:20:40 +00:00
jsg
dbee37c000 Update libdrm to 2.4.51.
ok mpi@ kettenis@
2014-01-18 08:29:32 +00:00
matthieu
02fca8e3e4 Update to freetype 2.5.2.
With help for handling ports breakage from at least landry@, naddy@,
ajacoutot@, jasper@, and dcoppa@. Thanks to all.

Need an up to date /etc/mtree/BSD.x11.dist (from a base system build)
before building.
2014-01-12 15:08:24 +00:00
miod
f4d0252ced m68k needs libGL compiled with -fPIC 2014-01-11 12:39:14 +00:00
matthieu
4d9b427baa Update to libXfont 1.4.7. Include fix for CVE-2013-6462.
unlimited sscanf overflows stack buffer in bdfReadCharacters
2014-01-07 20:42:20 +00:00
matthieu
c5ffd11875 MFC: Use FT_*_H macros instead of including <freetype/*.h>
freetype moved its headers around in 2.5.1.
2014-01-03 13:01:26 +00:00