Bug 287268 - [NEW PORT] x11/nvidia-driver-devel, x11/linux-nvidia-libs-devel, graphics/nvidia-drm[,510,515,61,66]-kmod-devel: Add new port
Summary: [NEW PORT] x11/nvidia-driver-devel, x11/linux-nvidia-libs-devel, graphics/nvi...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kevin Bowling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-03 14:57 UTC by Tomoaki AOKI
Modified: 2025-06-23 22:25 UTC (History)
2 users (show)

See Also:
kbowling: maintainer-feedback+


Attachments
Add *-devel versions of nvidia drivers (12.75 KB, patch)
2025-06-03 14:57 UTC, Tomoaki AOKI
no flags Details | Diff
Patch to add *-devel versions of nvidia drivers (v2) (13.65 KB, patch)
2025-06-08 13:20 UTC, Tomoaki AOKI
no flags Details | Diff
Patch to add *-devel versions of nvidia drivers (v3) (13.65 KB, patch)
2025-06-17 09:33 UTC, Tomoaki AOKI
no flags Details | Diff
Patch to add *-devel versions of nvidia drivers 575.64 (13.60 KB, patch)
2025-06-22 02:52 UTC, Tomoaki AOKI
junchoon: maintainer-approval? (x11)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomoaki AOKI 2025-06-03 14:57:23 UTC
Created attachment 260932 [details]
Add *-devel versions of nvidia drivers

These ports provides supports for New Feature Branch (NFB) of upstream
nvidia drivers like existing legacy branches of ports.

In some cases, supports for cutting edge GPUs are provided via
NFB of driver packages or Beta branch of drivers.

As Beta Branch of drivers cannot be recommended widely, we decided to
add support for NFB as *-devel version.

This new *-devel versions tracks the latest non-Beta versions
regardless it's NFB or Production Branch of drivers.
This is because, in some cases, major version of Production Branch
of drivers are bumped to larger than the one for corresponding
NFB.

So depending on the timing, *-devel 100% matches non-devel
master ports except for its package name.

Our upgrading policies are:
  1. Start investigating whether some additional works are
     needed to build/install/run or not when new Beta is
     found to be released upstream.

  2. If any additional works were needed and done, upgrade
     master ports below without updating version nor PORTREVISION
     of master ports below.

       x11/nvidia-driver
       x11/linux-nvidia-libs
       graphics/nvidia-drm-*-kmod

     and as needed, graphics/nvidia-drm-kmod/Makefile.common
     would be updated, too.

  3. Once findng new NFB is released upstream, bump versions of
     *-devel. Step 2 would "usually" ease this work unless Beta
     is skipped or last-minutes breaking changes are introduced.

  4. Once finding new Production Branch is released upstream,
     bump versions of master ports.

  5. Once finding any of Legacy Branch of driver is released
     upstream, upgrade corresponding legacy ports.
     This could need some additional work, because updated
     version could incorporate patches from our ports.

Note that graphics/nvidia-drm-*-kmod does NOT support any of
exisiting legacy versions, as they don't yet have codes to
support these ports.
Comment 1 Tomoaki AOKI 2025-06-03 15:02:28 UTC
Review on Phablicator would be opened after seeing no more unhooking/re-hooking to categories graphics and x11 seems to happen to avoid unwanted frequent rebases.
Comment 2 Tomoaki AOKI 2025-06-05 09:22:19 UTC
Opened review on Phablicator as Differential Revison D50697.
  https://reviews.freebsd.org/D50697
Comment 3 Tomoaki AOKI 2025-06-08 13:20:33 UTC
Created attachment 261091 [details]
Patch to add *-devel versions of nvidia drivers (v2)

Sync with updated patch at review D50697.
Simplified CONFLICTS_INSTALL lines.
While here, added missing CONFLICTS_INSTALL line for x11/linux-nvidia-libs.
Comment 4 Tomoaki AOKI 2025-06-17 09:33:52 UTC
Created attachment 261334 [details]
Patch to add *-devel versions of nvidia drivers (v3)

Rebase after upgrading of graphics/drm-515-kmod to drm_v5.15.160_4 at commit d7a1f45acaef32b98399a28ab5be5307d1186026.
Comment 5 Tomoaki AOKI 2025-06-22 02:52:13 UTC
Created attachment 261473 [details]
Patch to add *-devel versions of nvidia drivers 575.64

Upgraded to new NFB 575.64.
While here, rebase after upgrading of graphics/drm-510-kmod to drm_v5.10.163_8 at commit ports 408bc22ceb8f1971abdb5271decf4275a7af9d8f.
Comment 6 commit-hook freebsd_committer freebsd_triage 2025-06-22 09:57:10 UTC
A commit in branch main references this bug:

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

commit c7cde11f842b33bb36b85b91400bec795430c421
Author:     Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
AuthorDate: 2025-06-22 07:09:11 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2025-06-22 09:56:05 +0000

    x11/nvidia-driver-devel, x11/linux-nvidia-libs-devel, graphics/nvidia-drm[,510,515,61,66]-kmod-devel: Add new ports

    Add *-devel versions of nvidia drivers

    These ports provides supports for New Feature Branch (NFB) of upstream
    nvidia drivers like existing legacy branches of ports.

    In some cases, supports for cutting edge GPUs are provided via
    NFB of driver packages or Beta branch of drivers.

    As Beta Branch of drivers cannot be recommended widely, we decided to
    add support for NFB as *-devel version.

    This new *-devel versions tracks the latest non-Beta versions
    regardless it's NFB or Production Branch of drivers.
    This is because, in some cases, major version of Production Branch
    of drivers are bumped to larger than the one for corresponding
    NFB.

    So depending on the timing, *-devel 100% matches non-devel
    master ports except for its package name.

    Our upgrading policies are:

     1. Start investigating whether some additional works are needed to
     build/install/run or not when new Beta is found to be released
     upstream.

     2. If any additional works were needed and done, upgrade master ports
     below without updating version nor PORTREVISION of master ports below.

        x11/nvidia-driver x11/linux-nvidia-libs graphics/nvidia-drm-*-kmod

     and as needed, graphics/nvidia-drm-kmod/Makefile.common would be
     updated, too.

     3. Once findng new NFB is released upstream, bump versions of *-devel.
     Step 2 would "usually" ease this work unless Beta is skipped or
     last-minutes breaking changes are introduced.

     4. Once finding new Production Branch is released upstream, bump
     versions of master ports.

     5. Once finding any of Legacy Branch of driver is released upstream,
     upgrade corresponding legacy ports. This could need some additional
     work, because updated version could incorporate patches from our ports.

    Note that graphics/nvidia-drm-*-kmod does NOT support any of
    exisiting legacy versions, as they don't yet have codes to
    support these ports.

    PR:             287268
    Differential Revision:  https://reviews.freebsd.org/D50697

 graphics/Makefile                                 |  5 +++++
 graphics/nvidia-drm-510-kmod-devel/Makefile (new) |  7 +++++++
 graphics/nvidia-drm-510-kmod-devel/distinfo (new) |  5 +++++
 graphics/nvidia-drm-510-kmod/Makefile             |  2 +-
 graphics/nvidia-drm-515-kmod-devel/Makefile (new) |  7 +++++++
 graphics/nvidia-drm-515-kmod-devel/distinfo (new) |  5 +++++
 graphics/nvidia-drm-515-kmod/Makefile             |  2 +-
 graphics/nvidia-drm-61-kmod-devel/Makefile (new)  |  7 +++++++
 graphics/nvidia-drm-61-kmod-devel/distinfo (new)  |  5 +++++
 graphics/nvidia-drm-61-kmod/Makefile              |  2 +-
 graphics/nvidia-drm-66-kmod-devel/Makefile (new)  |  7 +++++++
 graphics/nvidia-drm-66-kmod-devel/distinfo (new)  |  5 +++++
 graphics/nvidia-drm-66-kmod/Makefile              |  2 +-
 graphics/nvidia-drm-kmod-devel/Makefile (new)     |  8 ++++++++
 graphics/nvidia-drm-kmod/Makefile                 | 10 ++++++----
 graphics/nvidia-drm-kmod/Makefile.common          |  7 ++++++-
 x11/Makefile                                      |  2 ++
 x11/linux-nvidia-libs-devel/Makefile (new)        |  8 ++++++++
 x11/linux-nvidia-libs-devel/distinfo (new)        |  3 +++
 x11/linux-nvidia-libs/Makefile                    |  4 +++-
 x11/nvidia-driver-devel/Makefile (new)            |  8 ++++++++
 x11/nvidia-driver-devel/distinfo (new)            |  3 +++
 x11/nvidia-driver/Makefile                        |  2 +-
 23 files changed, 105 insertions(+), 11 deletions(-)
Comment 7 Tomoaki AOKI 2025-06-22 10:53:00 UTC
(In reply to commit-hook from comment #6)
Confirmed. Thanks!