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)
- 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
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)
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)
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 [*]
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)
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.
- 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
- 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
- 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
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
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
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)
- 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]
- 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
- 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
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)
- 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
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
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
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@