From owner-freebsd-current@freebsd.org Mon May 15 14:15:44 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5741ED6DE33 for ; Mon, 15 May 2017 14:15:44 +0000 (UTC) (envelope-from jbtakk@iherebuywisely.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 439B81E97 for ; Mon, 15 May 2017 14:15:44 +0000 (UTC) (envelope-from jbtakk@iherebuywisely.com) Received: by mailman.ysv.freebsd.org (Postfix) id 3F4D4D6DE2D; Mon, 15 May 2017 14:15:44 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3EE0DD6DE2C; Mon, 15 May 2017 14:15:44 +0000 (UTC) (envelope-from jbtakk@iherebuywisely.com) Received: from aibo.runbox.com (aibo.runbox.com [91.220.196.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 055911E93; Mon, 15 May 2017 14:15:43 +0000 (UTC) (envelope-from jbtakk@iherebuywisely.com) Received: from [10.9.9.127] (helo=rmmprod05.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1dAGFh-0005Wk-Eh; Mon, 15 May 2017 15:41:33 +0200 Received: from mail by rmmprod05.runbox with local (Exim 4.86_2) (envelope-from ) id 1dAGFh-0001jh-7M; Mon, 15 May 2017 15:41:33 +0200 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [Authenticated user (846156)] by runbox.com with http (RMM6); Mon, 15 May 2017 13:41:33 GMT From: "Jeffrey Bouquet" Reply-To: To: "current" CC: "ports" , "timothy.bouquet" Subject: [RFC] rename nvidia-driver port binaries [ and other comments] Date: Mon, 15 May 2017 06:41:33 -0700 (PDT) X-Mailer: RMM6 Message-Id: X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 May 2017 14:15:44 -0000 Just had a unique to me, unbootable backup [beside the point, just a sidebar comment... ] quandry dealing with the nvidia-driver update that mesa-libs needed. [ or was appurtenant to it, unsure... ] 12.0 - CURRENT [ my previous 'saves' -- files to consult... were in .jpg, so no avail f= or me to peruse as I was in the terminal ] Lessons I learned, maybe [RFC] rename nvidia-driver.ko to include its version, for instance nvidia-= modeset-37539.ko which would make one's diagnosis a fix easier.=20 [suggestions] ... Document that the kernel will load a /boot/modules/_nvidia.ko if you'd = thus made it 'unavailable' ... document better that one can load nvidia[modeset] later than /boot/load= er.conf [cli, rc.conf...] [ mini 'what fixed it for you ' and/or stalled the same ...=20 ]=20 ... I had a make.conf in place, 'trapping' a make -DMAKE_JOBS_UNSAFE=3Dyes CC=3D".../clang39" [and the other two...= ] install in failure ... I had no clue if Xorg was at fault, and luckily did not have to rebuild. ... I had no access to the forums, as the desktop could not be loaded [yet] ... I had to do strings nvidia.ko |grep 26 [39] | less to detect the not us= able module numbers, THUS THE REQ FOR RENAME of the nvidia.ko binary [vs port] to include it= s 5 digit number as above. ... I was taken aback by the less infomative this client has the .39 but the module has the .26 ...=20 specifically stating which file/port/kernel module the 'client' refers = to and which specific modules 'this module' was referring to. Unknown if t= hat is fixable here in a .c, .h , or is closed-source upstream in nvidia [corp = ] where we can ask them to be more specific or code in some more verbose error message= s. ... Relieved I did not have to rebuild Xorg nor the kernel, just move file= s out of the way and do a simple rebuild of the nvidia-driver. [... Not relieved that the nvidia-driver needed install during the mesa-lib= reshuffle, maybe did not need to be, just a hazy recollection on my part. So ignore this= little bit ] ... All in all a learning experience. Howsoever, I would like this nvidia = stuff to be put eventuall in /usr/src/UPDATING so the half or third of persons who run into this yea= rly will have a more authoritative flowchart of sorts to determine the next course of action. something like if ... this thta if... this that if ... this that OTOH... error message... a... you may need to... ... error message ... r... you may need to... ... And it would have maybe saved a bit of time here, and I would almost i= f eventually possible be sure to copy /usr/src/UPDATING to /usr/ports/x11/nvidia-dr= iver for more easy access if the desktop was broken.... Apologies for the hurried post. Indeed, I have tasked myself to write it up= here locally [ still in scribbled notations...] so I can forestall/fix more quic= kly this error the next time. also... Running late in other personal matters, and out of time. Respectfully.. J. Bouquet=20=