Package Details: xone-dkms-git 0.3.r0.g8311a25-2

Git Clone URL: https://aur.archlinux.org/xone-dkms-git.git (read-only, click to copy)
Package Base: xone-dkms-git
Description: Modern Linux driver for Xbox One and Xbox Series X|S controllers
Upstream URL: https://github.com/medusalix/xone
Licenses: GPL2
Conflicts: xone-dkms, xow
Provides: xone-dkms
Submitter: mkopec
Maintainer: mkopec
Last Packager: mkopec
Votes: 11
Popularity: 1.17
First Submitted: 2021-07-01 19:03 (UTC)
Last Updated: 2022-06-27 19:40 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Pinned Comments

mkopec commented on 2022-06-28 21:04 (UTC)

Notice: The update to v0.3 split the dongle firmware into a separate package xone-dongle-firmware. This package conflicts with the previous version of the xone package, causing conflicts during update using certain AUR helpers:

error: failed to commit transaction (conflicting files)
xone-dongle-firmware: /usr/lib/firmware/xow_dongle.bin exists in filesystem (owned by xone-dkms)
Errors occurred, no packages were upgraded.
 -> exit status 1

The recommended course of action is to first uninstall xone-dkms-git, and then install the updated version which will pull in xone-dongle-firmware as a dependency.

Sorry for the breakage everyone, let's hope it doesn't again.

Latest Comments

yjun commented on 2024-04-13 15:15 (UTC) (edited on 2024-04-13 15:16 (UTC) by yjun)

Hi, maybe placing the xone-blacklist.conf file in the /usr/lib/udev/rules.d/ directory would be a better option for packaging, similar to what has been done in xone-dkms. [xone release v0.2](https://aur.archlinux.org/cgit/aur.git/commit/?h=xone-dkms&id=473ef84f8950a2b24faaa9fca23bbf19863ba765]

https://wiki.archlinux.org/title/Udev#About_udev_rules

udev rules written by the administrator go in /etc/udev/rules.d/, their file name has to end with .rules. The udev rules shipped with various packages are found in /usr/lib/udev/rules.d/

Lawstorant commented on 2023-08-10 17:12 (UTC)

Gyus, stop e-mailing the maintainer. The package works ob the newset kernels so there's nothing to do, espiecially as this is just a git package. If you have any issues, report an issue in the original repository

electricprism commented on 2023-05-08 05:00 (UTC)

git cherry-pick -n 6b745b72e4259b19d7548a2ce440bcfddbf6f506

Fixes this for Linux 6.3 as per https://github.com/medusalix/xone/pull/21

So then the full PKGBUILD looks like:

# Maintainer: Michał Kopeć <michal@nozomi.space>
# Contributor: Michał Kopeć <michal@nozomi.space>

_pkgname=xone
pkgname=xone-dkms-git
pkgver=0.3.r0.g8311a25
pkgrel=2
pkgdesc='Modern Linux driver for Xbox One and Xbox Series X|S controllers'
arch=('x86_64')
url='https://github.com/medusalix/xone'
license=('GPL2')
depends=('dkms'
                 'xone-dongle-firmware')
makedepends=('git')
conflicts=('xone-dkms'
                   'xow')
provides=('xone-dkms')
source=("git+https://github.com/medusalix/xone.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "${srcdir}/${_pkgname}"

  git cherry-pick -n 6b745b72e4259b19d7548a2ce440bcfddbf6f506

  find . -type f \( -name 'dkms.conf' -o -name '*.c' \) -exec sed -i "s/#VERSION#/$pkgver/" {} +
  echo 'ccflags-y += -DDEBUG' >> "Kbuild"

  echo "* Copying module into /usr/src..."
  install -dm755 "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
  cp -r ${srcdir}/$_pkgname/* "${pkgdir}/usr/src/${_pkgname}-${pkgver}"

  echo "* Blacklisting xpad module..."
  install -D -m 644 install/modprobe.conf "${pkgdir}/etc/modprobe.d/xone-blacklist.conf"
}

Worked for me on 6.3.1-zen1-1-zen

mkopec commented on 2022-06-28 21:04 (UTC)

Notice: The update to v0.3 split the dongle firmware into a separate package xone-dongle-firmware. This package conflicts with the previous version of the xone package, causing conflicts during update using certain AUR helpers:

error: failed to commit transaction (conflicting files)
xone-dongle-firmware: /usr/lib/firmware/xow_dongle.bin exists in filesystem (owned by xone-dkms)
Errors occurred, no packages were upgraded.
 -> exit status 1

The recommended course of action is to first uninstall xone-dkms-git, and then install the updated version which will pull in xone-dongle-firmware as a dependency.

Sorry for the breakage everyone, let's hope it doesn't again.

mkopec commented on 2022-03-14 09:12 (UTC)

@parkerlreed Right. Updated

parkerlreed commented on 2022-03-11 03:20 (UTC)

The xone-get-firmware.sh script is not run as part of the postinst like the normal package (And not included in the install)

bezirg commented on 2022-01-04 13:41 (UTC)

@mkopec I think /usr/lib/modprobe.d/ is a better directory for placing xone-blacklist.conf than /etc/modprobe.d/.

mkopec commented on 2021-09-01 17:30 (UTC)

You're right. I added the line to this package and to the non-git version. Thank you.

xexaxo commented on 2021-09-01 14:07 (UTC)

makedepends=('git') is needed to build the package properly.

See the Guidelines on the wiki