FS#46223 - [nvidia] Suggestions on the new PKGBUILD
Attached to Project:
Arch Linux
Opened by Tom Yan (tom.ty89) - Tuesday, 08 September 2015, 04:00 GMT
Last edited by Felix Yan (felixonmars) - Thursday, 10 September 2015, 10:07 GMT
Opened by Tom Yan (tom.ty89) - Tuesday, 08 September 2015, 04:00 GMT
Last edited by Felix Yan (felixonmars) - Thursday, 10 September 2015, 10:07 GMT
|
Details
1. eval "sed -i 's/__VERSION_STRING/${pkgver}/'
dkms.conf"
The `eval` seems quite unnecessary. I think `sed -i "s/__VERSION_STRING/${pkgver}/" dkms.conf` (double quotes instead of single quotes) will do. 2. __JOBS I wonder if it would be nice to directly sed the original __JOBS to `nproc`. The current way doesn't seem to make a point while dkms.conf is not in the backup array (i.e. if users aren't suppose to change it, why make it explicit?) |
This task depends upon
Closed by Felix Yan (felixonmars)
Thursday, 10 September 2015, 10:07 GMT
Reason for closing: Implemented
Thursday, 10 September 2015, 10:07 GMT
Reason for closing: Implemented
sed -i 's/__DKMS_MODULES//' dkms.conf
sed -i '$iBUILT_MODULE_NAME[0]="nvidia"\
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"\
BUILT_MODULE_NAME[1]="nvidia-uvm"\
DEST_MODULE_LOCATION[1]="/kernel/drivers/video"' dkms.conf
make the conf look more neat.
dkms.conf (0.7 KiB)
https://projects.archlinux.org/svntogit/packages.git/tree/trunk/nv-drm-343.36.patch?h=packages/nvidia