Commit graph

167 commits

Author SHA1 Message Date
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
Alexey Dokuchaev
87a52efaf4 - Update the driver to the latest long lived branch version, 295.59
- Replace deprecated PATCHDIR reference with more appropriate FILESDIR
- Remove old comment about inconsistencies in nVidia release numbers

PR:	ports/169186 (version update)
2012-06-28 03:36:52 +00:00
Alexey Dokuchaev
dbacad32ae Provide home-made patch for legacy nVidia drivers against recent arbitrary
memory access vulnerability.  While affected underlying code is very similar
in all released drivers, and they all are technically exploitable the same
way, the exploit relies on hardware that is not present in GPUs older than
NV50/G80, hence versions starting from 100.14.03 must be patched.

That said, while the patch does apply to all legacy versions, port revision
bump makes sense only for 173.14.xx series (as 96.43.xx and 71.86.xx do not
hardware exploit relies upon).

Discussed with:	Christian Zander
Security:	CVE-2012-0946
2012-05-10 11:22:00 +00:00
Alexey Dokuchaev
122ea7d170 Update to version 295.49, which had:
- Added support for GeForce GTX 690 GPU
- Fixed a problem where starting, stopping, and moving OpenGL application
  windows was very slow on Quadro FX 4600, Quadro FX 5600, GeForce 8800 GTX,
  GeForce 8800 GTS, and GeForce 8800 Ultra
- Fixed an OpenGL performance regression which affected Geforce 6 and Geforce
  7 series integrated GPUs

PR:	ports/167619
2012-05-10 03:15:38 +00:00
Alexey Dokuchaev
164d168dbc - Update to version 295.40
- Touch some comments

Security:	CVE-2012-0946
2012-04-22 15:04:57 +00:00
Alexey Dokuchaev
dd04f6bf09 Unbreak on 7.X where sed(1) does not support "addr1,+N" ranges yet (was added
by brian@ in SVN r192732 on 2009-05-25).

Reported by:	erwinmail
Pointy hat to:	danfe (for not running 7.X tinderbuild)
2012-02-11 09:11:02 +00:00
Alexey Dokuchaev
546e878c52 PAE kernels are incompatible with legacy drivers only (for a while now), so
adjust pkg-message accordingly.

Discussed with:	Christian Zander from nVidia
2012-02-02 18:30:28 +00:00
Alexey Dokuchaev
10557f2321 X11BASE has been deprecated for a long time now, and is going to be dropped
from `Mk/bsd.port.mk' soon.  Account for it and pass it to make environment
locally as nVidia driver code still uses it.

PR:		ports/161558
Submitted by:	eadler (PR), crees (nvidia-driver patch)
Feature safe:	yes
2011-12-02 02:29:08 +00:00
Alexey Dokuchaev
f273d6785e Unbreak legacy (pre-195.22) drivers build on 9.X after SVN r225617 by kmacy@.
PR:		ports/161839
Submitted by:	Barry Tigner
2011-11-08 06:22:02 +00:00
Alexey Dokuchaev
a8416cc8ea Update to version 285.05.09, which should remedy system hangs people were
reporting with 280.13.
2011-10-11 14:59:02 +00:00
Alexey Dokuchaev
a3a84e2385 - Update NVidia drivers to their corresponding latest versions
- Apply a workaround to fix the build on recent -CURRENT after fget(9) KPI
  was changed in r224778 (affects the driver since version 195.22)
2011-08-31 12:30:24 +00:00
Alexey Dokuchaev
86560de87a - Fix the build against Clang (also GCC with -Wformat-security, see PR
ports/157255)
- Drop long gone ports from CONFLICTS line and refine some comments
  while I'm here

Submitted by:	Garrett Cooper (modified)
2011-07-06 09:59:58 +00:00
Alexey Dokuchaev
176c86edee Unbreak on -CURRENT after r221320.
Reported by:	several
Submitted by:	Pan Tsu
2011-05-23 07:14:50 +00:00
Alexey Dokuchaev
8bb1cc999d - Update corresponding NVidia drivers to versions 270.41.19 and 173.14.30
- Turn formal requirement for X server into explicit dependency and bump
  port revisions in nvidia-driver-96 and nvidia-driver-71 accordingly
- Remove NO_PACKAGE; along with previous change, this enables us to build
  nvidia-driver packages
- Try to rely a little less on the assumption that PREFIX == LOCALBASE and
  explicitly create ${PREFIX}/${MODULESDIR}/extensions directory
- Fix pkg-plist issue when both lib/xorg/modules/extensions/libglx.so and
  lib/libGL.so.1 handling worked for installation from the port, but was
  insufficient for the package

Special thanks to ale@ for proposing pkg-plist fix and patiently waiting
for me to realize it is indeed correct.

PR:	ports/152400
2011-05-21 14:04:48 +00:00
Alexey Dokuchaev
cf70c31620 Add license information.
PR:	ports/152400 (part of)
2011-04-07 08:14:57 +00:00