AUR 1.1.1-1 clevo-xsm-wmi package won't build

Issue #14 resolved
temp created an issue

When I try to install the version of clevo-xsm-wmi that is on AUR, it fails as shown:

==> Downloading clevo-xsm-wmi PKGBUILD from AUR...
x .SRCINFO
x PKGBUILD
x clevo-xsm-wmi.install
clevo-xsm-wmi 1.1-1  (2016-10-14 18:11)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> clevo-xsm-wmi dependencies:
 - linux-headers (already installed) [makedepend]


==> Edit clevo-xsm-wmi.install ? [Y/n] ("A" to abort)
==> -------------------------------------------------
==> n

==> Continue building clevo-xsm-wmi ? [Y/n]
==> ---------------------------------------
==> y

==> Building and installing package
==> Making package: clevo-xsm-wmi 1.1-1 (Mon Oct 24 21:02:05 MST 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading clevo-xsm-wmi-1.1.src.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15355  100 15355    0     0  13107      0  0:00:01  0:00:01 --:--:-- 13101
==> Validating source files with sha256sums...
    clevo-xsm-wmi-1.1.src.tar.gz ... Passed
==> Extracting sources...
  -> Extracting clevo-xsm-wmi-1.1.src.tar.gz with bsdtar
==> Starting build()...
make -C /lib/modules/4.7.10-1-MANJARO/build M=/tmp/yaourt-tmp-gabrielle/aur-clevo-xsm-wmi/src/lynthium-clevo-xsm-wmi-6bfe9fe44e04/module modules
make[1]: Entering directory '/usr/lib/modules/4.7.10-1-MANJARO/build'
make[1]: *** No rule to make target 'modules'.  Stop.
make[1]: Leaving directory '/usr/lib/modules/4.7.10-1-MANJARO/build'
make: *** [Makefile:7: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build clevo-xsm-wmi.
==> Restart building clevo-xsm-wmi ? [y/N]
==> --------------------------------------
==> 

I am trying the manual build with the instructions on the project home page here to see if I can get it to build and install that way.

Would it be possible to have an uninstall script at some point? I've currently just been trying to track down the files that get installed when I move to newer kernels which isn't too much of an issue but an uninstall script or list of where everything installs to would be helpful.

Comments (5)

  1. temp reporter

    Tried building and installing it based on the instructions on the front page but it fails with the error below. I was able to get the previous version to build with those directions.

    lynthium-clevo-xsm-wmi-6bfe9fe44e04]$ cd module && make && sudo make install
    make -C /lib/modules/4.7.10-1-MANJARO/build M=/home/gabrielle/Downloads/lynthium-clevo-xsm-wmi-6bfe9fe44e04/module modules
    make[1]: Entering directory '/usr/lib/modules/4.7.10-1-MANJARO/build'
    make[1]: *** No rule to make target 'modules'.  Stop.
    make[1]: Leaving directory '/usr/lib/modules/4.7.10-1-MANJARO/build'
    make: *** [Makefile:7: all] Error 2
    
  2. Arnoud Willemsen

    The error given means it can't find the kernel headers. Do you have 'linux-headers' installed? Or if you use a custom/lts/etc kernel the appropriate kernel-headers package for it.

  3. temp reporter

    I was missing the headers. I forgot about them. They're installed now. I previously had this installed manually but would like to switch to the version that is on AUR. It's giving this new error which I'm guessing is due to me missing a few files when I was trying to remove the version that I built based on the instructions here. Should I just go delete the file it mentions so it doesn't conflict?:

    ==> Downloading clevo-xsm-wmi PKGBUILD from AUR...
    
    looking for conflicting packages...
    
    Packages (1) clevo-xsm-wmi-1.1-1
    
    Total Installed Size:  0.04 MiB
    
    :: Proceed with installation? [Y/n] y
    (1/1) checking keys in keyring                                     [#####################################] 100%
    (1/1) checking package integrity                                   [#####################################] 100%
    (1/1) loading package files                                        [#####################################] 100%
    (1/1) checking for file conflicts                                  [#####################################] 100%
    error: failed to commit transaction (conflicting files)
    clevo-xsm-wmi: /etc/modules-load.d/clevo-xsm-wmi.conf exists in filesystem
    Errors occurred, no packages were upgraded.
    

    and this for the utility

    error: failed to commit transaction (conflicting files)
    clevo-xsm-wmi-util: /usr/bin/clevo-xsm-wmi exists in filesystem
    clevo-xsm-wmi-util: /usr/lib/systemd/system/clevo-xsm-wmi.service exists in filesystem
    Errors occurred, no packages were upgraded.
    

    Edit: Deleting all the mentioned conflicts fixed it and it installed. Edit 2: It works perfectly now. The service and module load perfectly now on this P670RPG. I had never been able to get the service loading until that last fix for issue 12 was added. And now that the package manager installed it, removeable will be simple if needed. Great project! This report can be closed.

  4. Arnoud Willemsen

    Glad to see it worked out. Those three files are the ones you install manually if you follow the readme, so it's safe to delete them without worries.

  5. Log in to comment