Commit graph

166 commits

Author SHA1 Message Date
Niclas Zeising
e5170e15c8 MFH: r470454
x11-servers/xorg-server: Backport security fixes

Backport security fixes for CVE-2017-10971 and CVE-2017-10972 (yes, 2017).
For some reason this was not done when the vulnerabilities were documented
in VuXML, and a typo in the version range in VuXML meant that the entries
never matched.

This fixes a memory disclosure and a couple of buffer overruns.

PR:		220584
Reported by:	Vladimir Krstulja
Security:	ab881a74-c016-4e6d-9f7d-68c8e7cedafb

Approved by:	ports-secteam (riggs)
2018-05-23 16:45:36 +00:00
Alexey Dokuchaev
4438a3336a x11-servers/xorg-server: Fix dashed/dotted line rendering with GLAMOR.
When drawing dashed lines with GLAMOR, they were drawn partially or as
a regular (solid) line, depending on the OpenGL backend.  It behaved
so because screen pixmap was bound as the dash and sampling its alpha,
which is usually just 1.0 (no dashing at all).

Upstream bug:	https://bugs.freedesktop.org/show_bug.cgi?id=99708
Fixed by:	Eric Anholt (it's a pity that anholt@ no longer works
		on FreeBSD)
Silence from:	x11@
2017-11-29 07:21:04 +00:00
Koop Mast
05d144d761 Fix security issues: CVE-2017-12176 through CVE-2017-12187 in xorg-server.
Bump all the slaves due to not being sure where the shared code is used.

MFH:		2017Q4
Security:	7274e0cc-575f-41bc-8619-14a41b3c2ad0
2017-10-13 19:14:53 +00:00
Koop Mast
22f6dd2eed Fix security issues: CVE-2017-13721 and CVE-2017-13723 in xorg-server.
Bump all the slaves due to not being sure where the shared code is used.
MFH:		2017Q4
Security:	4f8ffb9c-f388-4fbd-b90f-b3131559d888
2017-10-09 19:30:27 +00:00
Jan Beich
49e8c0410b x11-servers/xorg-server: back out r445076
Requested by:	x11 (rezny)
2017-07-08 12:36:32 +00:00
Jan Beich
86dbaa26e4 x11-servers/xorg-server: close-on-exec for MIT-SHM (like Linux)
This is similar to what x11/libxshmfence already does.

MFH:		2017Q3
2017-07-05 12:41:57 +00:00
Matthew Rezny
b760897dde Revision bump of all ports with USE_GL after consolidation of mesa-libs
Approved by:	swills (mentor)
Differential Revision:	https://reviews.freebsd.org/D10845
2017-05-23 05:03:14 +00:00
Matthew Rezny
42622059b2 Explicitly disable use of udev to fix build with libudev-devd present.
Approved by:	swills (mentor)
Differential Revision:	https://reviews.freebsd.org/D9719
2017-02-22 18:52:53 +00:00
Baptiste Daroussin
d70b127b51 XWayland is an X Server running as a Wayland client, thus capable of displaying
native X11 client applications in a Wayland compositor environment.

WWW: https://wayland.freedesktop.org/xserver.html
2017-02-11 18:31:47 +00:00
Matthew Rezny
acdcc605d9 Remove post-patch cruft accidentally introduced into patch-configure files
with the previous commit. Thanks to tijl for noticing what I overlooked.

Approved by:	swills (mentor)
Differential Revision:	https://reviews.freebsd.org/D9544
2017-02-11 17:44:59 +00:00
Matthew Rezny
3f87b5cb51 Xorg-servers update to 1.18.4 with driver updates and revision bumps.
Update xf86-video-ati to 7.8.0
Update xf86-video-intel to 2.99.917.20170103
Update xf86-input-synaptics to 1.9.0
Update xf86-input-evdev to 2.10.5
Update xf86-video-r128 to 6.10.2
Update xf86-video-rendition to 4.2.6
New port: xf86-video-geode

PR:		214591,216269,214687,214593,214715,216276,216277,216278,216287,
		216288,216292,216298,214560,216299,216300,216301,216302
Approved by:	swills (mentor, portmgr)
Differential Revision:	https://reviews.freebsd.org/D9436
2017-02-11 14:17:58 +00:00
Brad Davis
9f5f43fcf8 Fix xorg-server build on arm64.
Submitted by:	andrew
Approved by:	bapt, kwm (x11)
Differential Revision:	https://reviews.freebsd.org/D8465
2016-11-07 16:33:18 +00:00
Mathieu Arnold
5b55a8a53e Fix usage of WITH_OPENSSL_BASE, WITH_OPENSSL_PORT and OPENSSL_PORT.
WITH_OPENSSL_* can't be set after bsd.port.pre.mk.
Fold all other usage into using SSL_DEFAULT == foo

PR:		210149
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	The FreeBSD Foundation, Absolight
Differential Revision:	https://reviews.freebsd.org/D6577
2016-06-16 13:23:13 +00:00
Mathieu Arnold
72ea7e696b Remove ${PORTSDIR}/ from dependencies, categories v, w, x, y, and z.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:33:55 +00:00
Koop Mast
52f474c7cb Update xorg-server to 1.17.4. 2015-10-29 23:03:33 +00:00
Koop Mast
76da779716 Unbreak the build of xorg-server 1.17.2 on arm. Apparently the 1.17 update
broke this.

Submitted by:	sbruno@
2015-10-21 21:14:39 +00:00
Koop Mast
4c670c9a31 Add missing dependancies so xephyr can be build again. [1]
Reported by:	Piotr Kubaj <pkubaj@riseup.net>
2015-10-13 11:31:40 +00:00
Antoine Brodin
3ad2ea6e69 Unbreak INDEX 2015-10-13 09:26:46 +00:00
Koop Mast
1742c4fbee Xorg-server update to 1.17.2 with related driver updates and bumps.
Update fontproto to 2.1.3.
Update libXfont to 1.5.1.
Update xf86-input-keyboard 1.8.1.
Update xf86-input-vmmouse to 13.1.0.
Update xf86-input-void to 1.4.1.
Update xf86-video-chips to 1.2.6.
Update xf86-video-cirrus to 1.5.3.
Update xf86-video-mach64 to 6.9.5.
Update xf86-video-neomagic to 1.2.9.
Update xf86-video-r128 to 6.10.0.
Update xf86-video-s3virge to 1.10.7.
Update xf86-video-savage to 2.3.8.
Update xf86-video-siliconmotion to 1.7.8.
Update xf86-video-sis to 0.10.8.
Update xf86-video-trident to 1.3.7.
Update xf86-video-vesa to 2.3.4.

* All other xf86-* drivers where bump and/or patched to allow them to
  compile and work with the new xorg-server.
* The ATI-ums driver is removed because the API it depends on was
  removed from the xorg-server.
* Add patch to sunffb to make the lack of XAA non-fatal
  (not build/run tested due to lack of hardware).
* Remove the extra patches in xorg-server for arm. The code seems to
  support it now natively. Please file a bug if this is not the case.
* Update the xorg-server support in virtualbox-ose-additions for vboxmouse. [1]

Submitted by:	jkim@ [1]
Obtained from:	Graphics devel repo
2015-10-13 07:45:08 +00:00
Dimitry Andric
6edde2ba50 Disable use of SSE instructions in Xorg's xf86SlowBcopy() function.
When such instructions are used to copy data from/to mapped video
memory, some hypervisors (e.g. KVM, Microsoft Hyper-V) can generate
SIGILL or SIGBUS exceptions, causing Xorg to crash.

Reported by:	nogcjx@fastmail.fm
Approved by:	x11 (bapt)
PR:		202643
MFH:		2015Q3
2015-09-05 11:57:51 +00:00
Jung-uk Kim
6fce017bdf Automatically load mouse integration support for VirtualBox guest. 2015-05-19 20:04:12 +00:00
Mathieu Arnold
60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00
Baptiste Daroussin
66d439f626 Disable fontpath.d support as it overwrites the default fontrootdir making non
fontconfig application like xcalc not to find their fonts

Reported by:	Jakub Lach <jakub_lach@mailplus.pl>, Stefan Thurner <stthur@gmail.com>
2015-03-22 19:49:09 +00:00
Baptiste Daroussin
a5da770e67 Make fonts repecting XDG
Xorg is now looking in ${LOCALBASE}/share/fonts by default
Xorg now accepts symlinks in etc/X11/fontpath.d (as decribed in Xserver(1))
Large cleanup on lots of font ports
All fonts are now properly dynamically generating fonts.dir and fonts.scale
instead of sometime overwriting existing ones)
All fonts are generating fontconfig's cache
Improve consistency in fonts ports
2015-03-21 23:05:19 +00:00
Koop Mast
e8e22ed74d Fix CVE-2015-0255.
Information leak in the XkbSetGeometry request of X servers.

Submitted by:	http://lists.freedesktop.org/archives/xorg/2015-February/057158.html
Obtained from:	upstream
MFH:		2015Q1
2015-02-12 19:58:41 +00:00
Alex Kozlov
b7088112c0 - Fix AutoAddDevices option when config/devd backend is used
Reported by:	Jonathan Chen <jonc@chen.org.nz>, lightside@gmx.com, many others
Approved by:	x11 (dumbbell, kwm)
2014-12-23 20:40:58 +00:00
Jean-Sébastien Pédron
91293a3505 x11-servers/xorg-server: Update to 1.14
The X.Org server has been updated to 1.14. The changes it brings are described
in a post on the Graphics team blog:
http://blogs.freebsdish.org/graphics/2014/11/19/xserver-1-14-update-ready/

The most noticable change is the DEVD input device autodetection backend
which is enabled by default, replacing the HAL backend. The keyboard
layout configuration must be migrated from HAL's .fdi files to X.Org
files. The procedure is explained in the post mentionned above.

Several ports were removed with this update, mainly because they are not
compatible with the X.Org server anymore:
    o  nvidia-driver-71
    o  nvidia-driver-96
    o  xf86-input-egalax
    o  xf86-video-newport
    o  xf86-video-tga

PR:		155696, 181660, 183478 (partially fixed), 188640, 191331
Differential Revision:	https://reviews.freebsd.org/D1337
Submitted by:	ak (most of the work on the DEVD backend), dumbbell, kwm,
		zeising
Tested by:	Many people on freebsd-x11@ and IRC
Reviewed by:	kwm, portmgr (antoine)
Approved by:	kwm, portmgr (antoine)
2014-12-19 23:03:54 +00:00
Koop Mast
1ef33079b3 Fix multiple xserver security advisories in the 1.12.4 xserver.
The patches where not ported to 1.7.7 so mark it forbidden. This version
is not default anymore and will be removed in the 1.14 update that currently
being tested.

Obtained from:	xserver upstream
MFH:		2014Q4
Security:	27b9b2f0-8081-11e4-b4ca-bcaec565249c
2014-12-10 21:35:13 +00:00
Sean Bruno
d7a36e69db Add some bits to the armv6 build to get a successful build/run on the RPi.
Not bumping the PORTREVISION as this is only applied to ARM builds.

Phabric:        https://reviews.freebsd.org/D756
PR:             181318
Submitted by:   mikael.urankar@gmail.com
Reviewed by:    kwm@
Approved by:    bdrewery (mentor)
2014-09-15 23:27:13 +00:00
Gerald Pfeifer
0abc164359 Fix the PORTREVISION bump for the lang/gcc update that went badly for
ports (x11-drivers plus graphics/libGL plus x11-servers/xorg-server)
that handle PORTREVISION in a creative manner hardly lending itself
to any form of automated bumping.

PR:		192025
Reported by:	Scott Allendorf <scott-allendorf@uiowa.edu>
2014-09-12 00:01:23 +00:00
Gerald Pfeifer
15945f8122 Update the default version of GCC in the Ports Collection from GCC 4.7.4
to GCC 4.8.3.

Part II, Bump PORTREVISIONs.

PR:		192025
Tested by:	antoine (-exp runs)
Approved by:	portmgr (implicit)
2014-09-10 20:50:31 +00:00
Baptiste Daroussin
ac725ce224 Properly reset ownership
remove now useless @exec
2014-09-03 06:16:29 +00:00
Nathan Whitehorn
8ac3b545c9 Bump XORG_REVISION to reflect changed behavior on PowerPC.
Approved by:	kwm
2014-07-29 23:07:27 +00:00
Nathan Whitehorn
c3246c7f70 mmap() /dev/mem instead of /dev/console on PowerPC. Mostly this was already
being done in libpciaccess, so this is functionally a no-op in most cases
and unifies behavior. Besides aesthetic appeal, the ability to directly mmap()
all of physical memory through /dev/console on PowerPC is about to go away
on -CURRENT, which means everything should converge on /dev/mem.

Approved by:	kwm
2014-07-29 23:00:10 +00:00
Koop Mast
eeabcd7024 x11-drivers/xf86-video-ati:
On other ARCH then i386/amd64 keep the old version. Since 7.x is KMS which
 is not available on the other ARCHS.

x11-drivers/xf86-video-nv:
 Fix nv driver on ppc.

x11-servers/xorg-server:
 In the powerpc case of NEW_XORG don't overwrite EXTRA_PATCHES.
 Patch update:
   < nathanw> it works around the change in behavior in libpciaccess that
                the PR mentions
   < nathanw> by porting the relevant code from the Linux backend

PR:		ports/188278
Submitted by:	jmmv@, nwhitehorn@
2014-05-29 19:32:08 +00:00
Koop Mast
62378ea793 Fix BadImplemented errors that happen with gdk 3.12.x and GNOME 3. [1]
Use INSTALL_TARGET=install-strip for stripping.
Allow user to package xorg-server again.

Obtained from:	debian [1]
2014-04-24 11:43:11 +00:00
Tijl Coosemans
aad09bc5e2 When linking a library libA with a library libB using libtool, if libB.la
exists, libtool will add all libraries libB.la refers to (dependency_libs
field) to the linker command line and store them in the dependency_libs
field of libA.la.  So everything that subsequently links with libA will also
link to these extra libraries.  This causes too much overlinking.

This commit modifies Mk/Uses/libtool.mk so it empties the dependency_libs
field in .la libraries during staging.  However, because .la libraries have
very limited use when dependency_libs is empty it makes sense to completely
remove them during staging.

So with this commit USES=libtool is modified to remove .la libraries and a
new form (USES=libtool:keepla) is introduced in case they need to be kept
(dependency_libs is still emptied).

PORTREVISION is bumped on all ports with USES=libtool that install .la
libraries.  Most ports are also changed to add :keepla because .la
libraries have to be kept around as long as there are dependent ports with
.la libraries that refer to them in their dependency_libs field.  In most
cases :keepla can be removed again as soon as all dependent ports that
install .la libraries have some form of USES=libtool added to their
Makefile.

PR:		ports/188759
Exp-run:	bdrewery
Approved by:	portmgr (bdrewery)
2014-04-23 13:25:16 +00:00
Niclas Zeising
39fc32e828 The FreeBSD x11@ and graphics team proudly presents
a zeising, kwm production, with help from dumbbell, bdrewery:

NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE

This update switches over to use the new xorg stack by default on FreeBSD 9
and 10 stable, on osversions where vt(9) is available.
It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in
/etc/make.conf .
FreeBSD 8-STABLE and released versions of FreeBSD still use
the old version.
A package repository with binary packages for new xorg will
be available soon.

This patch also contains updates of libxcb and related ports, pixman, as well
as some drivers and utilities.

Bump portrevisions for xf86-* ports, as well as virtualbox-ose-additions due
to xserver version change.

Apart from these updates, the way shared libraries are handled has been
changed for all xorg ports, as well as libxml2 and freetype, which means
ltverhack is gone and as a consequence shared libraries have been bumped.
The plan is that this change will make library bumps less likely in the
future.
All affected ports have had their portrevisions bumped as a consequence of
this.

Fix some issues where WITH_NEW_XORG weren't detected properly on CURRENT.

Update instructions, hardware support, and more notes can be found on
https://wiki.freebsd.org/Graphics

Thanks to:	all testers, bdrewery and the FreeBSD x11@ team
exp-run by:	bdrewery [1]
PR:		ports/187602 [1]
Approved by:	portmgr (bdrewery), core (jhb)
2014-04-16 18:28:47 +00:00
Boris Samorodov
6e0bf304bd Fix PLIST_SUB (add a space after @comment) for non-default option.
Reported and tested by:	Andrea Venturoli <ml@netfence.it>
Approved by:		x11 (kwm)
2013-12-30 11:41:18 +00:00
Niclas Zeising
47be7a61c9 Switch FreeBSD CURRENT to use the new xorg stack (WITH_NEW_XORG=) [0]
If the old xorg stack is still needed, it is possible to add WITHOUT_NEW_XORG=
to /etc/make.conf to get the old version.

Update several xorg related ports, including:
x11/libxcb 1.9.1 -> 1.9.3
graphics/libdrm 2.4.46 -> 2.4.50
x11/pixman 0.30.2 -> 0.32.4
x11/xkeyboard-config 2.9 -> 2.10.1
x11-drivers/xf86-input-keyboard 1.7.0 -> 1.8.0

Fix dissapearing cursor in xf86-video-vmware [2]

Stagify all x11@-owned ports

Bump portrevisions for xf86-* ports due to xserver version change.

Fix fallout from updates where needed.

Thanks to:	all testersi, bdrewery and the FreeBSD x11@ team
exp-run by:	bdrewery [1]
PR:		ports/184684 [1], ports/181385 [2]
Submitted by:	Douglas Carmichael <dcarmich@dcarmichael.net> [2]
Approved by:	portmgr (bdrewery), core (jhb) [0]
2013-12-16 11:11:09 +00:00
Koop Mast
61f7258c32 Fix typo.
Submitted by:	Herbert J. Skuhra <h.skuhra@gmail.com>
2013-10-24 19:50:23 +00:00
Koop Mast
785722b1cf Document xorg-server use after free CVE.
Reviewed by:	zeising@
2013-10-24 13:05:10 +00:00
Niclas Zeising
6456a79045 Fix patches. Remove two unneeded ones, and add new patches to fix sparc64.
This was missed in the mesa update.

This syncs x11-server/xorg-server with the xorg development repo

Bump portrevision again in case.
Apologies for the churn!

Obtained from:	xorg development repo
2013-09-29 23:46:47 +00:00
Niclas Zeising
23f2e96944 Fix perl dependency.
Submitted by: Barbara Guida <bar@FreeBSD.org>
2013-09-29 23:32:01 +00:00
Niclas Zeising
5a4c543c2b The FreeBSD graphics/x11 team proudly presents
a kwm, zeising production:

MESA 9.1.6

Starring:
Mesa 9.1.6, including libGL, libGLU and dri (new xorg only)
Addition of libEGL and libglesv2
KMS support for ATI graphics cards in 10-current (new xorg only)
Improved sparc64 support for new xorg. [1]
pixman 0.30.2, including shlib bump and portrevision bumps
libX11 1.6.2
Make absolute pointing devices work with x11-drivers/xf86-input-mouse
x11-drivers/xf86-video-ati 7.2.0 for 10-current (KMS aware ati driver)

Also starring:
Updates to drivers and other libraries and utilities

Additional notes:
When updating MESA related ports (libGL, dri) you need to remove old versions
first.  See UPDATING for details.

PR:		ports/181962 [2]
Submitted by:	marius [1]
		zeising [2]
Exp-run by:	bdrewery
Approved by:	portmgr (bdrewery)

Thanks to all who helped testing!
2013-09-29 17:01:41 +00:00
Baptiste Daroussin
eea5b447da Add NO_STAGE all over the place in preparation for the staging support (cat: x11-servers) 2013-09-20 23:52:24 +00:00
Niclas Zeising
c17dedd527 Plug two more use before initialized with the new x server.
Noted by:	clang
Obtained from:	xorg development repo
2013-08-14 11:58:48 +00:00
Andrej Zverev
2e118d08ae - Convert to new perl framework
Approved by:	bapt@ (x11@)
2013-08-04 15:01:34 +00:00
Niclas Zeising
927cfacb14 Enable AIGLX by default on xorg-server 1.12. (WITH_NEW_XORG)
Bump portrevision for 1.12

Obtained from:	xorg development repo
2013-06-27 18:38:27 +00:00
Niclas Zeising
c20d929bcc Readd the dix_events.c patch that was removed with the xorg update.
There have been some reports of problems with pointer focus and other
related issues in Mwm and open-motif without this patch.
Bump portrevision for old xorg.

PR:		ports/179397
Submitted by:	William Bulley <web@umich.edu>
2013-06-26 20:00:39 +00:00