View previous topic :: View next topic |
Author |
Message |
FilthyPitDog Apprentice
Joined: 12 Jan 2021 Posts: 186 Location: South Pacific
|
Posted: Sun Apr 10, 2022 8:50 am Post subject: [Solved] sys-kernel/xow |
|
|
Im trying to emerge sys-kernel/xow - https://github.com/medusalix/xow via guru overlay but im having issues
make: *** [Makefile:32: dongle/dongle.o] Error 1
make: *** [Makefile:32: dongle/mt76.o] Error 1
* ERROR: sys-kernel/xow-0.5::guru failed (compile phase):
* emake failed
Code: | emerge --info '=sys-kernel/xow-0.5::guru'
Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.1, glibc-2.34-r10, 5.17.1-gentoo-r1 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-5.17.1-gentoo-r1-x86_64-AMD_Ryzen_7_2700_Eight-Core_Processor-with-glibc2.34
KiB Mem: 32865672 total, 17632580 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Thu, 07 Apr 2022 06:15:01 +0000
Head commit of repository gentoo: 7708bc2bcce6fff4010601254e2411a98741252a
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils: 1.3.3::gentoo
app-shells/bash: 5.1_p16::gentoo
dev-java/java-config: 2.3.1::gentoo
dev-lang/perl: 5.34.0-r6::gentoo
dev-lang/python: 2.7.18_p14::gentoo, 3.8.13::gentoo, 3.9.9-r1::gentoo, 3.10.2_p1::gentoo
dev-lang/rust: 1.59.0::gentoo
dev-util/cmake: 3.22.2::gentoo
dev-util/meson: 0.60.3::gentoo
sys-apps/baselayout: 2.7-r3::gentoo
sys-apps/openrc: 0.44.10::gentoo
sys-apps/sandbox: 2.29::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake: 1.16.4::gentoo
sys-devel/binutils: 2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang: 13.0.1::gentoo
sys-devel/gcc: 11.2.1_p20220115::gentoo
sys-devel/gcc-config: 2.5-r1::gentoo
sys-devel/libtool: 2.4.6-r6::gentoo
sys-devel/lld: 13.0.1::gentoo
sys-devel/llvm: 13.0.1::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.17::gentoo (virtual/os-headers)
sys-libs/glibc: 2.34-r10::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync2.ca.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-metamanifest: yes
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 24
bobwya
location: /var/lib/layman/bobwya
sync-type: laymansync
sync-uri: https://github.com/bobwya/miscellaneous_ebuilds.git
masters: gentoo
priority: 50
guru
location: /var/lib/layman/guru
sync-type: laymansync
sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
masters: gentoo
priority: 50
menelkir
location: /var/lib/layman/menelkir
sync-type: laymansync
sync-uri: https://gitlab.com/menelkir/gentoo-overlay.git
masters: gentoo
priority: 50
pf4public
location: /var/lib/layman/pf4public
sync-type: laymansync
sync-uri: https://github.com/PF4Public/gentoo-overlay.git
masters: gentoo
priority: 50
steam-overlay
location: /var/lib/layman/steam-overlay
sync-type: laymansync
sync-uri: https://github.com/anyc/steam-overlay.git
masters: gentoo
priority: 50
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver1 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=znver1 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=znver1 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver1 -O2 -pipe"
GENTOO_MIRRORS="http://gentoo.gossamerhost.com http://gentoo.mirrors.tera-byte.com/ http://mirrors.aliyun.com/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j13"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt dbus declarative dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gtk4 gui iconv icu ipv6 jpeg kde kwallet lcms libglvnd libnotify libtirpc lm-sensors mad mng mp3 mp4 mpeg mtp multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf plasma png policykit ppds pulseaudio qml qt4 qt5 readline samba sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis vulkan widgets wxwidgets x x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS |
/var/tmp/portage/sys-kernel/xow-0.5/temp/build.log > https://hastebin.skyra.pw/raw/coqaracayi
Should I file a bug report? If so where?
Last edited by FilthyPitDog on Mon Apr 11, 2022 2:28 am; edited 2 times in total |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3875
|
Posted: Sun Apr 10, 2022 3:47 pm Post subject: |
|
|
Plz try with this patch
https://github.com/medusalix/xow/commit/99100fb52953e0218bc140bb04febd8ae51b1506
You can download the patch by
Code: |
wget -O xow-gcc11.patch https://github.com/medusalix/xow/commit/99100fb52953e0218bc140bb04febd8ae51b1506.patch
|
This is how you create the patch
Code: |
mkdir -p /etc/portage/patches/sys-kernel/xow-0.5
cat >> /etc/portage/patches/sys-kernel/xow-0.5/xow-gcc11.patch << EOF
diff --git a/utils/bytes.h b/utils/bytes.h
index bc92a51..8bcc50e 100644
--- a/utils/bytes.h
+++ b/utils/bytes.h
@@ -18,6 +18,7 @@
#pragma once
+#include <cstddef>
#include <cstdint>
#include <vector>
#include <array>
EOF
|
or just enter the above xow-0.5 directory and download the patch with wget
then
reemerge xow _________________
|
|
Back to top |
|
|
FilthyPitDog Apprentice
Joined: 12 Jan 2021 Posts: 186 Location: South Pacific
|
Posted: Sun Apr 10, 2022 10:33 pm Post subject: |
|
|
alamahant wrote: | or just enter the above xow-0.5 directory and download the patch with wget
then reemerge xow |
Thank you this worked!
Code: | >>> Installing (1 of 1) sys-kernel/xow-0.5::guru
* checking 5 files for package collisions
>>> Merging sys-kernel/xow-0.5 to /
--- /bin/
>>> /bin/xow
--- /lib/
--- /lib/udev/
--- /lib/udev/rules.d/
>>> /lib/udev/rules.d/99-xow.rules
--- /etc/
--- /etc/systemd/
--- /etc/systemd/system/
>>> /etc/systemd/system/xow.service
--- /etc/modprobe.d/
>>> /etc/modprobe.d/xow-blacklist.conf
--- /etc/modules-load.d/
>>> /etc/modules-load.d/xow-uinput.conf
>>> sys-kernel/xow-0.5 merged.
>>> Regenerating /etc/ld.so.cache...
>>> Recording sys-kernel/xow in "world" favorites file... |
Is this just for systemd? Is there not support for OpenRC.. Dang...
Hmm I found this https://github.com/kapsh/xow/commit/fc635669fae589c3b6259fee1edce1e6ac6d71e5 but not sure how to use it... |
|
Back to top |
|
|
FilthyPitDog Apprentice
Joined: 12 Jan 2021 Posts: 186 Location: South Pacific
|
Posted: Sun Apr 10, 2022 10:48 pm Post subject: |
|
|
alamahant wrote: | What is the output of
Code: |
cat /etc/systemd/system/xow.service
|
|
Thanks so much so helping me out.
Code: | cat /etc/systemd/system/xow.service
[Unit]
Description=Xbox One Wireless Dongle Driver
[Service]
Type=idle
ExecStart=/bin/xow
DynamicUser=true
Restart=on-success
# Uncomment the following line to enable compatibility mode
# Environment="XOW_COMPATIBILITY=1"
[Install]
WantedBy=multi-user.target |
|
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2702
|
Posted: Sun Apr 10, 2022 10:49 pm Post subject: |
|
|
fwiw xow shouldn't really be used anymore, it's replaced by:
https://github.com/medusalix/xone
Unsure if anyone made an ebuild yet though (haven't checked, I have an xbox one controller dongle but I use normal bluetooth with xpadneo instead). |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3875
|
Posted: Sun Apr 10, 2022 11:01 pm Post subject: |
|
|
I am not sure if it will work but try this
Code: |
wget -O xow-openrc.patch https://github.com/kapsh/xow/commit/fc635669fae589c3b6259fee1edce1e6ac6d71e5.patch
|
Put it also in the above directory and reemerge. _________________
|
|
Back to top |
|
|
FilthyPitDog Apprentice
Joined: 12 Jan 2021 Posts: 186 Location: South Pacific
|
Posted: Sun Apr 10, 2022 11:11 pm Post subject: |
|
|
alamahant wrote: | I am not sure if it will work but try this
Code: |
wget -O xow-openrc.patch https://github.com/kapsh/xow/commit/fc635669fae589c3b6259fee1edce1e6ac6d71e5.patch
|
Put it also in the above directory and reemerge. |
Hmm this failed
Code: | >>> Emerging (1 of 1) sys-kernel/xow-0.5::guru
* xow-0.5.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ]
* xow-firmware.cab BLAKE2B SHA512 size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking xow-0.5.tar.gz to /var/tmp/portage/sys-kernel/xow-0.5/work
>>> Unpacking xow-firmware.cab to /var/tmp/portage/sys-kernel/xow-0.5/work
unpack xow-firmware.cab: file format not recognized. Ignoring.
>>> Source unpacked in /var/tmp/portage/sys-kernel/xow-0.5/work
>>> Preparing source in /var/tmp/portage/sys-kernel/xow-0.5/work/xow-0.5 ...
* ===========================================================================================================================================================
* Applying user patches from /etc/portage/patches ...
* Applying xow-gcc11.patch ... [ ok ]
* Applying xow-openrc.patch ...
patching file Makefile
Hunk #1 FAILED at 44.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
patching file install/openrc/conf
patching file install/openrc/init.in [ !! ]
* ERROR: sys-kernel/xow-0.5::guru failed (prepare phase):
* patch -p1 failed with /etc/portage/patches/sys-kernel/xow-0.5/xow-openrc.patch
*
* Call stack:
* ebuild.sh, line 127: Called src_prepare
* environment, line 493: Called default
* phase-functions.sh, line 858: Called default_src_prepare
* phase-functions.sh, line 923: Called __eapi6_src_prepare
* environment, line 193: Called eapply_user
* environment, line 421: Called eapply '/etc/portage/patches/sys-kernel/xow-0.5/xow-openrc.patch'
* environment, line 384: Called _eapply_patch '/etc/portage/patches/sys-kernel/xow-0.5/xow-openrc.patch'
* environment, line 322: Called __helpers_die 'patch -p1 failed with /etc/portage/patches/sys-kernel/xow-0.5/xow-openrc.patch'
* isolated-functions.sh, line 112: Called die
* The specific snippet of code:
* die "$@" |
Maybe I just need to wait until someone makes an ebuild of xone like Ionen suggested? |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3875
|
Posted: Sun Apr 10, 2022 11:41 pm Post subject: |
|
|
In the commit you provided use the second and third stanzas.
Second goes to /etc/conf.d
Third to /etc/init.d
Plz in 3rd remember to use
/bin/xow
in
command="#BINDIR#/xow"
Play with it until you get it right.
You can also run
xow --help
to see more running options and modify accordingly.
_________________
|
|
Back to top |
|
|
FilthyPitDog Apprentice
Joined: 12 Jan 2021 Posts: 186 Location: South Pacific
|
Posted: Mon Apr 11, 2022 2:06 am Post subject: |
|
|
alamahant wrote: | In the commit you provided use the second and third stanzas.
Second goes to /etc/conf.d
Third to /etc/init.d
Plz in 3rd remember to use
/bin/xow
in
command="#BINDIR#/xow"
Play with it until you get it right.
You can also run
xow --help
to see more running options and modify accordingly.
|
I apologise but I dont quite understand... I am to edit the commit I provided? I just dont know what parts of the commit to edit...
Sorry for the newb questions... |
|
Back to top |
|
|
FilthyPitDog Apprentice
Joined: 12 Jan 2021 Posts: 186 Location: South Pacific
|
Posted: Mon Apr 11, 2022 2:24 am Post subject: |
|
|
Got it I was over thinking it lol
Stanza 2 > /etc/conf.d/xow
Stanza 3 > /etc/init.d/xow
chmod 755 /etc/init.d/xow
Code: | ➜ rc-service xow start
* Caching service dependencies ... [ ok ]
* Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/xow start
* Starting xow ...
* start-stop-daemon: fopen `/run/xow.pid': No such file or directory
* Detaching to start `/bin/xow' ... |
Code: | ➜ rc-update add xow default
* service xow added to runlevel default |
Code: | ➜ cat /var/log/xow.log
2022-04-10 19:21:46 INFO - xow ©Severin v. W.
2022-04-10 19:21:46 INFO - Waiting for device...
2022-04-10 19:21:47 INFO - Wireless address: 62:45:b5:0b:eb:bb
2022-04-10 19:21:47 INFO - Dongle initialized
2022-04-10 19:22:17 INFO - Controller '1' connected
2022-04-10 19:22:17 INFO - Device announced, product id: 02ea
2022-04-10 19:22:17 INFO - Serial number: 02600279777628
2022-04-10 19:22:21 INFO - Battery level: 2 |
Thank you!! All works as intended now |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|