Package Details: hid-nintendo-dkms 3.0-2

Git Clone URL: (read-only, click to copy)
Package Base: hid-nintendo-dkms
Description: hid-nintendo Driver (DKMS)
Upstream URL:
Licenses: GPLv2
Provides: hid-nintendo
Submitter: nicman23
Maintainer: nicman23
Last Packager: nicman23
Votes: 4
Popularity: 0.028074
First Submitted: 2020-03-26 15:52
Last Updated: 2020-09-05 13:45

Latest Comments

ISSOtm commented on 2020-09-05 19:26

I tried building in the same directory that built the 2.0 release, and it errored: cp: will not overwrite just-created '/aur/hid-nintendo-dkms/pkg/hid-nintendo-dkms/usr/src/hid-nintendo-3.0/dkms.conf' with 'dkms-hid-nintendo-3.0/dkms.conf' (and 2 more similar ones)

I believe line 21 is to blame: replacing it with cp -r dkms-hid-nintendo-${pkgver}/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/ fixed that problem for me.

Additionally, according to the red warning box on the wiki, overriding the name to include the package's name as well would be a better idea.

And finally, thanks, I can finally use my Pro Controller on my laptop! :)

nicman23 commented on 2020-06-10 19:33

@Celti mb it was from when i packaged it just for me. one it pulls the release tar.gz

Celti commented on 2020-06-10 05:32

Packages with unversioned git sources should have a -git suffix and a pkgver() function, and as previously mentioned packages with any git sources need git as a makedepend.

bscubed commented on 2020-05-31 02:57

@nicman23 as @D1SoveR mentioned, could you please update the PKGBUILD pkgrel? It's quite annoying constantly showing one package to update in my AUR helper.

D1SoveR commented on 2020-04-29 14:58

Note on small discrepancy: .SRCINFO lists pkgrel as 2, whereas PKGBUILD lists it as 1. This leads to AUR helpers repeatedly marking the package for update as the built version looks like it's behind the one available in AUR.

ruy16109 commented on 2020-04-17 22:47

Since this package has a git source, it should have a make dependency for git which it currently doesn't.

Grimish commented on 2020-04-17 21:50

Like previous comments stated Do your git clone; Edit the dkms.conf replace the two 'MAKE' & 'CLEAN' lines with:

MAKE="make -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build/src modules"

CLEAN="make -C $kernel_source_dir M+$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build/src clean"

Pacman the built package in and viola!

chrhasse commented on 2020-04-10 05:34

The included dkms.conf fails to compile the module the first time for me with a custom kernel. Make indicates a success, but dkms says it failed.

$ sudo dkms install hid-nintendo/1.0 -k 5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f        

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j16 KERNELRELEASE=5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f -C /usr/lib/modules/5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f/build M=/usr/src/hid-nintendo-1.0/src/ modules...
Error!  Build of hid-nintendo.ko failed for: 5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/hid-nintendo/1.0/build/ for more information.

$ cat make.log 
DKMS make.log for hid-nintendo-1.0 for kernel 5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f (x86_64)
Thu 09 Apr 2020 10:33:02 PM CDT
make: Entering directory '/usr/lib/modules/5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f/build'
  CC [M]  /usr/src/hid-nintendo-1.0/src//hid-nintendo.o
  MODPOST 1 modules
  CC [M]  /usr/src/hid-nintendo-1.0/src//hid-nintendo.mod.o
  LD [M]  /usr/src/hid-nintendo-1.0/src//hid-nintendo.ko
make: Leaving directory '/usr/lib/modules/5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f/build'

After that if I try to run sudo dkms install hid-nintendo/1.0 -k 5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f again it installs properly. though if I run sudo dkms remove hid-nintendo/1.0 -k 5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f it will fail again on the first attempt. Changing the included dkms.conf to

MAKE="make -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build/src modules"
CLEAN="make -C $kernel_source_dir M+$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build/src clean"

to match how it is in the git source fixes the issue entirely.