Bug 176733 - x11/nvidia-driver does not honor SRC_BASE from /etc/make.conf
Summary: x11/nvidia-driver does not honor SRC_BASE from /etc/make.conf
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-07 16:50 UTC by Hiren Panchasara
Modified: 2013-08-08 05:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hiren Panchasara 2013-03-07 16:50:00 UTC
I have my source tree checked out at different location than /usr/src. In this case, nvidia.ko generated from x11/nvidia-driver cannot be loaded. 

On kldload nvidia, I get:

KLD nvidia.ko: depends on kernel - not available or version mismatch
linker_load_file: Unsupported file type

Looking at logs of port-building, it seemed that it was linking against /usr/src.
I updated /etc/make.conf with "SRC_BASE=/new/base/location" but it did not help and it was still linking with the old base i.e. /usr/src

Explicitly symlinking /usr/src to new base location fixed the issue.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-08 00:00:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->danfe

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alexey Dokuchaev freebsd_committer freebsd_triage 2013-08-08 05:43:51 UTC
State Changed
From-To: open->closed

Fixed in r324376, thanks for the report!