Bug 253285 - x11/nvidia-driver not PREFIX-safe
Summary: x11/nvidia-driver not PREFIX-safe
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-06 05:52 UTC by Mikhail Teterin
Modified: 2021-08-02 23:56 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (danfe)
kbowling: merge-quarterly+


Attachments
vulkan icd cleanup (2.56 KB, patch)
2021-06-29 15:16 UTC, Alex S
iwtcex: maintainer-approval? (danfe)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Teterin freebsd_committer freebsd_triage 2021-02-06 05:52:35 UTC
My PREFIX is /opt, and most of the files are staged correctly -- under work/stage/opt -- except:

share/vulkan/icd.d/nvidia_icd.json
share/vulkan/implicit_layer.d/nvidia_layers.json

For some reason, the above two end up under work/stage/usr/local/
Comment 1 david 2021-02-08 18:10:01 UTC
I see similar results for a machine where I do not change PREFIX, but where I have:

PORTSDIR=/common/ports
Comment 2 Alex S 2021-06-29 15:16:58 UTC
Created attachment 226115 [details]
vulkan icd cleanup

I don't know about "most files" being staged correctly, but here is the patch fixing an annoying inconsistency between vulkan and egl icd parts of this port.
Comment 3 commit-hook freebsd_committer freebsd_triage 2021-08-02 23:17:54 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ec9fff767494883b0dc6b677c9a00a516f9df045

commit ec9fff767494883b0dc6b677c9a00a516f9df045
Author:     Alex S <iwtcex@gmail.com>
AuthorDate: 2021-08-02 23:13:40 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2021-08-02 23:13:40 +0000

    x11/nvidia-driver: make vulkan PREFIX safe

    PR:             253285
    Reported by:    mi
    Approved by:    danfe (maintainer)

 x11/nvidia-driver/Makefile                         |  9 +++++---
 .../460-patch-lib-libGLX_nvidia-Makefile (gone)    | 27 ----------------------
 2 files changed, 6 insertions(+), 30 deletions(-)
Comment 4 Kevin Bowling freebsd_committer freebsd_triage 2021-08-02 23:18:44 UTC
Thanks for your contribution!
Comment 5 commit-hook freebsd_committer freebsd_triage 2021-08-02 23:19:56 UTC
A commit in branch 2021Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2dd724a0cab2d45321ac5ade9517b4464ef1b440

commit 2dd724a0cab2d45321ac5ade9517b4464ef1b440
Author:     Alex S <iwtcex@gmail.com>
AuthorDate: 2021-08-02 23:13:40 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2021-08-02 23:18:09 +0000

    x11/nvidia-driver: make vulkan PREFIX safe

    PR:             253285
    Reported by:    mi
    Approved by:    danfe (maintainer)

    (cherry picked from commit ec9fff767494883b0dc6b677c9a00a516f9df045)

 x11/nvidia-driver/Makefile                         |  9 +++++---
 .../460-patch-lib-libGLX_nvidia-Makefile (gone)    | 27 ----------------------
 2 files changed, 6 insertions(+), 30 deletions(-)