Commit graph

181 commits

Author SHA1 Message Date
Alexey Dokuchaev
84bdb03933 Update NVidia driver long lived branch to version 346.47. 2015-03-02 17:00:32 +00:00
Alexey Dokuchaev
591510fe07 - Move mainstream version to 346.xx (update to 346.35) and create another
legacy slave port `x11/nvidia-driver-340'; update top comment accordingly
- No longer explicitly advertise brokenness for ${OSVERSION} > 1000041 and
  ${NVVERSION} <= 71.08615 combination: not only old legacy ports recently
  had been removed, but frankly users of those old gfx cards should either
  not be running FreeBSD 10.x or totally rely on self-support, thus making
  this BROKEN statement merely an annoyance for them (other checks for some
  older driver versions still remain as being functional)
- Change CONFLICTS to CONFLICTS_INSTALL (honestly, this change *should* be
  no-op since CONFLICTS should be installation-time conflicts in the first
  place, but adhere to this stupidity of the framework for the time being)
2015-02-03 16:18:34 +00:00
Alexey Dokuchaev
13f6cfec88 - Update mainstream version to 340.76
- The d_thread_t typedef is a compatibility shim to support FreeBSD 4.X:
  plans are to remove it in FreeBSD 11.X, so prepare for that in advance

PR:		196693
Submitted by:	jhb
2015-01-29 14:35:36 +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
Alexey Dokuchaev
a46dd58605 Adjust version check to unbreak the build of 304.xx branch.
Reported by:	Walter Schwarzenfeld
2014-12-14 11:08:25 +00:00
Alexey Dokuchaev
6e6976f466 Update NVidia drivers (long lived branch and legacy 304.xx branch) to their
most recent versions that have CVE-2014-8298 vulnerability fixed.

Security:	fdf72a0e-8371-11e4-bc20-001636d274f3
2014-12-14 09:51:10 +00:00
Koop Mast
5c3b6d77f9 Fix libEGL and libGLESv2 conflict between libEGL/libglesv2 and the
nvidia-driver port in the same fashion it was done as the conflict
with the libGL port.

Mesa ports:
Add pkg-[de]install scripts to handle the symlinks in the libEGL
  and libglesv2 port.
Move pkg-[de]install scripts of libGL out of files/
Put the real mesa libraries into lib/.mesa so we don't have each
  port create a directory for it own use.

Nvidia-driver:
Only apply the libEGL.so and libGLESv2.so alternative install
  directory if nvidia-driver actually ships them. Copied from
  PR submitter, since it was much cleaner then my initial attempt.
Make pkg-install script check if the nvidia-driver port installed
  the libEGL/libglesv2 libraries and only then make the symlinks.
  This should allow the script to work with the slave ports which
  don't install these libraries.
Make the pkg-deinstall script check if the mesa version of
 the libEGL/libGLESv2 libraries are installed before trying to
 recreate the symlinks of those ports.

PR:		194924
Submitted by:	Gerard Seibert <gerard_seibert@outlook.com>
Approved by:	portmgr (angrybapt)
2014-11-27 13:14:04 +00:00
Alexey Dokuchaev
126c2c66ba - Stop trying to adopt cap_rights_t type change in FreeBSD src SVN r255219
as recent driver versions are already account for it; this unbreaks the
  build for 304.xx branch [*]
- Simplify patching for stack buffer overflow in nvidia_sysctl_bus_type():
  NVidia really screwed up fixing it since it was reported.  Originally,
  they were sprintf(bus_type, "PCI-E")ing to a 4-character buffer allocated
  on stack (304.88 and earlier); later they've replaced the buffer with a
  char * pointer, but left one sprintf() into it (304.108 and above, up to
  304.121); then finally fixed it for real in 304.123.  Given versions are
  only for 304.xx branch; others retained the same bugs during this time
  frame.  Fix it across the gang by simply extending bus_type[4] (if found)
  to eight bytes instead of employing complex NVVERSION checks: this should
  now be no-op for newer versions, but good enough for older ones (e.g. for
  173.14.35, 96.xx, and 71.xx)

PR:	194866, 194958 [*]
2014-11-15 16:45:10 +00:00
Alexey Dokuchaev
ce17015e99 Fix distinfo for i386 flavor of version 304.123 of the driver.
PR:	194890
2014-11-10 00:00:02 +00:00
Alexey Dokuchaev
adfa6917d0 Update two most recent branches of nVidia drivers to versions 340.46
and 304.123.
2014-11-05 17:00:29 +00:00
Alexey Dokuchaev
ee1f9b3e01 - Finish conversion of NVVERSION to float (left-pad minor < 99 with zero
to allow version comparison); now we're safe until minor wraps to 1000
- Augment a comment about NVVERSION and reword PAE option description
- Make `update-distinfo' target more robust (by respecting ARCH_SUFX)
2014-11-02 21:32:46 +00:00
Alexey Dokuchaev
d7408d53e6 Switch NVVERSION (internal variable derived from DISTVERSION) to float, in
order to handle version numbers where minor version can exceed 99; integer
scheme was breaking NVVERSION monotonicity and comparability in this case.

While here, put back the comment removed in r327777 for no apparent reason.
2014-11-02 12:11:17 +00:00
Baptiste Daroussin
8b1bb2e6bb Avoid using @cwd
nuke @dirrm
2014-10-27 16:39:10 +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
Marius Strobl
b4449fb54a Fix two issues with r354638:
- Use MACHINE_CPUARCH rather than MACHINE_ARCH. While the former technically
  is more correct it unfortunately doesn't exist in stable/8, yet, and using
  the latter actually doesn't make a difference for i386.
- Allow to build nvidia-driver on OSVERSION > 1000052 with the LINUX option
  enabled.

Reported by:	swills
2014-05-21 10:32:46 +00:00
Marius Strobl
773fd2d837 - Update nvidia-driver to 331.67.
- For i386, allow to build the non-legacy NVIDIA drivers with PAE support
  via an option, defaulting to disabled. This is tricky in two ways. First
  off, while their binary part is PAE-capable since around version 285,
  their build glue and wrapper only partially is. Second, for modules
  built along the kernel, enabled PAE support would be picked up via the
  generated opt_global.h from KERNBUILDDIR, which isn't available when
  compiling modules stand-alone. Nevertheless, these source modifications
  are modeled in a way so they also do the right thing when integrating a
  nvidia-driver module into a kernel build.

Approved by:	maintainer timeout (2 weeks)
Sponsored by:   Bally Wulff Games & Entertainment GmbH
2014-05-20 13:23:15 +00:00
Alexey Dokuchaev
bcabde21fe - Update long lived branch to version 331.49
- Provide a convenience target to merge new hash and size with existing
  distinfo: first, redefine DISTINFO_FILE (so that prerequisite target
  `makesum' would not overwrite existing distinfo file), then prepend
  relevant SHA256 and SIZE lines with tilde (~) to cope with join(1)'s
  requirement for sorted lines, truncate the old values thereof, join(1)
  two files so new lines are nicely placed just where intended, finally
  removing hackish tildes (improvements to this quick and dirty approach
  are very welcome)
- Remove no longer relevant (and now somewhat confusing) comment in the
  `pre-install' target after the port was staged
- Fix two identical typos (paqe -> page) in comments while I'm here

Tested by:	dhw
2014-03-04 06:20:41 +00:00
Alexey Dokuchaev
a7cfe935cf - Unbreak the build of 173.14.xx legacy version on recent -CURRENT, and
use more accurate OSVERSION value in the check (1000000 -> 1000041)
- Fix regression introduced in r342061, when <bsd.port.options.mk> was
  included before OPTIONS definitions
- Rename patches to get rid of those ugly double underscores (yuck!)
- Wrap couple of overly long lines after STAGEDIR conversion in r342050
- Create `drivers' and `extensions' directories in pre-install, not in
  pre-su-install: no longer needed for stagified port
- Fix regex when patching lib/Makefile for WITHOUT_LINUX handling, and
  improve nearby expressions while here as well
2014-02-27 07:50:03 +00:00
Baptiste Daroussin
99c6d2802f OSVERSION cannot be tested without a bsd.port.*.mk included before 2014-01-31 20:08:07 +00:00
Rene Ladan
59289cf450 - Stagify
- Mark -71 and -173 broken on FreeBSD 10+, they do not build there
- Remove check for FreeBSD 7.2-

Approved by:	portmgr (infrastructure blanket)
2014-01-31 17:59:24 +00:00
Alexey Dokuchaev
7e0f7983de Update to version 331.20. 2013-12-26 06:42:43 +00:00
Alexey Dokuchaev
977adbb583 In sight of upcoming update, do some cleaning: convert to Uses=kmod and then
do not explicitly set SSP_UNSAFE and augment CATEGORIES; also sort pkg-plist.
2013-12-25 16:24:37 +00:00
Baptiste Daroussin
db5320be85 Add NO_STAGE all over the place in preparation for the staging support (cat: x11) 2013-09-20 23:43:19 +00:00
Bryan Drewery
c93dfc2e9f SSP support has been added to ports with WITH_SSP for i386 and amd64
on FreeBSD 10, and amd64 on earlier versions.

SSP_UNSAFE is added to disable in a port if it fails to build, but
this should only be used in rare circumstances such as kernel modules.
Otherwise, the port may just be failing due to lack of respecting
LDFLAGS.

On FreeBSD 10, this uses an ldscript in /usr/lib/libc.so to pull in
libssp_nonshared.a to address issues linking on i386 [1].

On earlier FreeBSD versions the WITH_SSP knob will add -lssp_nonshared
to LDFLAGS on i386. This is not needed on amd64. However, several hundred
ports do not currently respect LDFLAGS, so this support is disabled currently
as it causes build failures if a dependency is looking for the stack_chk
symbols.

Many thanks to jlh@ for this as he had many years of patience in getting
all of the necessary pieces [1][2] in.

[1] http://svnweb.freebsd.org/base/head/lib/libc/libc.ldscript?revision=251668&view=markup

PR:		ports/138228 [2]
Submitted by:	jlh (bsd.ssp.mk based on)
Reviewed by:	bapt
With hat:	portmgr
exp-runs done:	37 over a month on 91i386,91amd64,10i386,10amd64
2013-09-20 12:54:54 +00:00
Alexey Dokuchaev
bc07c5867d - Unbreak on recent -CURRENT (after r255426): vm_map_find() now takes 10
(ten) arguments rather than 9 (nine)
- Adjust OSVERSION check of the previous patch, after properly bumped by
  pjd@ in r255305

PR:	ports/181972
2013-09-12 07:16:29 +00:00
Alexey Dokuchaev
e4fc09f30f Unbreak the build on recent -CURRENT (after cap_rights_t type was changed
from uint64_t to a structure in r255219).

PR:	ports/181840
2013-09-06 05:07:15 +00:00
Alexey Dokuchaev
c520e24c87 Fix NVidia drivers correctly after KVA space allocation API changes in
recent -CURRENT (after r254025).  Previously it would immediately core
dump upon loading of nvidia.ko.

PR:		ports/181144 (fix suggested in the audit trail)
Reviewed by:	jhb
Timeout from:	jeff (no cookie)
2013-08-20 03:21:50 +00:00
Alexey Dokuchaev
e2b3af7853 - Unbreak the build on recent -CURRENT after r254025 [1]
- Respect custom SRC_BASE (e.g. when set in /etc/make.conf) [2]
- Few non-functional changes (mostly comments; particularly, restore hint
  about MASTER_SITE_SUBDIR, bogusly changed by yours truly in r315754)

PR:	ports/181118 [1]
	ports/176733 [2]
2013-08-08 04:39:00 +00:00
Alexey Dokuchaev
63986910ed - Update NVidia driver to the latest LTS stable version, 319.32
- Only offer FREEBSD_AGP option when it is actually supported
- Use new syntax for specifying LIB_DEPENDS
- Buffer overflow in nvidia_sysctl_bus_type() was fixed in 319.23
2013-08-07 09:35:04 +00:00
Alexey Dokuchaev
ac39d3261d - Fix stack buffer overflow in nvidia_sysctl_bus_type()
- While here, install nvidia-bug-report.sh per popular demand and assume
  that everyone now has sed(1) that supports "addr1,+N" range syntax
- Spell X as X11 in port description

Submitted by:	glebius
2013-04-25 02:52:29 +00:00
Alexey Dokuchaev
f4de7e7414 Update NVidia drivers vulnerable to GPU driver ARGB cursor buffer overflow
in "NoScanout" mode.

Security:	CVE-2013-0131
Approved by:	portmgr (bapt)
2013-04-08 13:41:57 +00:00
Alexey Dokuchaev
11ad8e8aa4 - Convert recent patches against -CURRENT to sed(1) invocations that work for
all driver ports, including legacy ones, with correct OSVERSION checks
- Retouch some comments while here

PR:		ports/177459
Submitted by:	bf
Approved by:	portmgr (miwi)
2013-04-07 15:21:50 +00:00
Sean Bruno
794fdc1d52 Resolve current build breakage on head for the nvidia driver via this nice
handy patch from dhw@ :-)

Shoveled in via src commit bit, after some discussions in #bsdports

PR:		ports/176980
Submitted by:	dhw@
Reviewed by:	miwi@
Approved by:	nobody in particular
Obtained from:	dogfood
MFC after:	2 weeks
2013-03-16 07:29:53 +00:00
Alexey Dokuchaev
b1c0b5f73f Update the commentary. 2013-02-16 15:12:56 +00:00
Alexey Dokuchaev
e156014580 - Update mainstream driver version to 310.32, the latest to date
- Unbreak the build on recent -CURRENT (after SVN r246085) [*]
- Move 304.xx driver version to yet another legacy port

PR:		ports/176146 [*]
Submitted by:	bf
2013-02-16 14:09:17 +00:00
Alexey Dokuchaev
a3db6a2df7 Update to version 304.64. While as of yesterday this version is technically
legacy per nVidia, retain it for a while until the dust settles and new long
lived branch version 310.19 can be declared stable.

Feature safe:	yes
2012-11-16 18:11:43 +00:00
Alexey Dokuchaev
07d3a11c93 Update mainstream driver to version 304.60.
Feature safe:	yes
2012-10-29 02:47:21 +00:00
Alexey Dokuchaev
39c1c6f78c - Update long lived branch driver to version 304.51
- Mention DOCS option in OPTIONS_DEFINE
2012-09-29 04:18:01 +00:00
Alexey Dokuchaev
278e8e6785 Trim Makefile header for NVidia drivers, and move advisory comment about
legacy drivers to the top, where is suits better.
2012-09-27 16:50:19 +00:00
Alexey Dokuchaev
195d110c64 Fix the problem that PKGVERSION for 173.14.xx legacy driver went backwards
when it was updated to .35 on the 12th.  That moment, it kept PORTREVISION
1 from the master port.  When the master port was updated and PORTREVISION
removed on the 22nd, PKGVERSION of nvidia-driver-173 went backwards as its
PORTREVISION dropped from 1 to 0.  While I am at it, provide a comments in
all makefiles that keeping PORTREVISION setting (even when it is seemingly
zero) is important.

Reported by:	erwin
2012-09-25 15:23:14 +00:00
Alexey Dokuchaev
4f1027b6be - Update 96.43.xx legacy driver to version 96.43.23, which brings support
for X.Org xserver versions 1.11 and 1.12
- Fix one occurrence of LINUX option check (was broken in r304591) [1]

Noticed by:	bland [1]
2012-09-23 14:04:51 +00:00
Alexey Dokuchaev
e1f9709bbe - Drop useless quotes when assigning PREFIX (values with spaces are handled
correctly nonetheless)
- Fix SVN properties to have FreeBSD keyword expanded
2012-09-23 12:37:34 +00:00
Alexey Dokuchaev
4e01b9dd5e - After conversion to new OPTIONS framework, adjust pkg-message accordingly
- Check for DOCS in PORT_OPTIONS instead of NOPORTDOCS while here
2012-09-23 11:48:06 +00:00
Alexey Dokuchaev
17201c47f8 Update mainstream driver to version 304.43. 2012-09-22 17:01:58 +00:00
Eitan Adler
34df9e45d9 Convert to OptionsNG
Approved by:	danfe (maintainer)
2012-09-20 19:13:15 +00:00
Alexey Dokuchaev
e6d16fe34c - Revert patch for CVE-2012-0946 to its original form and apply both CVE
patches when needed, for clarity's sake
- Touch some comments in Makefile while here (purely cosmetic)
2012-09-16 09:24:14 +00:00
Alexey Dokuchaev
4b376e2c92 - Update legacy 173.14.xx series driver to version 173.14.35 and provide a
patch for CVE-2012-4225 for this version
- Augment security patch for CVE-2012-0946 to cover CVE-2012-4225 as well
  for the benefit of really old legacy drivers
2012-09-12 07:14:34 +00:00
Alexey Dokuchaev
0edc8aa613 Unbreak installation of legacy drivers. 2012-09-12 05:04:20 +00:00
Koop Mast
04a589dee4 Solve libGL.so and libglx.so conflict situation between libGL, xorg-server and
the nvidia-driver. Install the libraries in port specific directories.
Use pkg-install and pkg-deinstall scripts to update the hardlinks to the
default locations of these files.

While here clean up some @dirrmtry lines in xorg-server plist for directories
that aren.t created by xorg-server.

Motivator:	pkgng
Inspiration:	irc, freebsd-x11@ mailinglist discussion (sorry can't find it
		anymore to give credit the people)
Reviewed by:	danfe@ (for nvidia parts), bapt@
Approved by:	danfe@ (for nvidia parts)
With hat:	x11@
2012-08-31 15:44:41 +00:00
Alexey Dokuchaev
696f22416b Update nVidia driver to the latest long lived branch version, 295.71
Security:	http://nvidia.custhelp.com/app/answers/detail/a_id/3140
2012-08-08 12:13:18 +00:00