User:Keks24/drafts/way-cooler
From Gentoo Wiki
< User:Keks24 | drafts
Jump to:navigation
Jump to:search
The official page can be found here.
Everything below is outdated!
##################################################################################### # build from source (source: https://crates.io/crates/way-cooler#build-from-source) # ##################################################################################### dependencies 1. wayland: including the server and client libraries 2. dbus: an interprocess communication (IPC) system for software applications 3. wlc (deprecated): https://github.com/Cloudef/wlc 4. rust/cargo: the package manager / build system used by rust 5. cairo: a vector graphics library with cross-device output support gdk-pixbuf: lua 5.3.x: libxcb: future 1. wlroots will be used instead of wlc: https://github.com/swaywm/wlroots optional weston: the init file defaults to using weston-terminal as the default terminal emulator way-cooler-bg: background client wc-grab: screenshot client wc-lock: lockscreen client installation $ cargo install way-cooler ################################################################################# # [1] install "dev-libs/wayland" (source: https://wiki.gentoo.org/wiki/Wayland) # ################################################################################# 1. add the use flags "wayland" and "-X" to "/etc/portage/make.conf" USE="wayland -X" 2. install "dev-libs/wayland" $ emerge --ask dev-libs/wayland These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] dev-libs/wayland-1.16.0 USE="-doc -static-libs" Would you like to merge these packages? [Yes/No] ############################### # [2] install "sys-apps/dbus" # ############################### 1. append the follwing use flags to "/etc/portage/make.conf" USE="dbus" 2. recompile all packages which depend on "dbus" $ emerge --ask --changed-use --deep @world 2.1. install "sys-apps/dbus", if necessary $ emerge --ask sys-apps/dbus These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild NS ] app-text/docbook-xml-dtd-4.4-r2 [4.1.2-r6, 4.2-r2, 4.5-r1] [ebuild N ] sys-apps/dbus-1.12.12-r1 USE="-X -debug -doc -elogind (-selinux) -static-libs -systemd -test -user-session" 3. start the daemon $ /etc/init.d/dbus start 4. add it to the "default" runlevel $ rc-update add dbus default ############################## # [3] install "dev-libs/wlc" # ############################## 1. add the following accepted keywords to "/etc/portage/package.accept_keywords" # required by =dev-libs/wlc-0.0.11 (argument) =dev-libs/wlc-0.0.11 ~amd64 2. install "dev-libs/wlc" $ emerge --ask dev-libs/wlc These are the packages that would be merged, in order:
Calculating dependencies... done! [ebuild N ] x11-misc/xbitmaps-1.1.2-r1 [ebuild N ] x11-libs/xcb-util-wm-0.4.1-r2 USE="-doc -static-libs -test" [ebuild N ] x11-libs/libxkbfile-1.0.9-r2 USE="-static-libs" [ebuild N ] x11-libs/libXmu-1.1.2-r1 USE="ipv6 -doc -static-libs" [ebuild N ] x11-libs/xcb-util-renderutil-0.3.9-r2 USE="-doc -static-libs -test" [ebuild N ] x11-apps/iceauth-1.0.8 [ebuild N ] x11-apps/rgb-1.0.6 [ebuild N ] media-libs/libepoxy-1.5.3 USE="X -test" [ebuild N ] x11-libs/libXScrnSaver-1.2.3 USE="-static-libs" [ebuild N ] x11-libs/libfontenc-1.1.3-r1 USE="-static-libs" [ebuild N ] x11-libs/xcb-util-keysyms-0.4.0-r1 USE="-doc -static-libs -test" [ebuild N ] x11-apps/xauth-1.0.10 USE="ipv6 -test" [ebuild N ] x11-apps/xkbcomp-1.4.2 [ebuild N ] x11-libs/libXfont2-2.0.3-r1 USE="bzip2 ipv6 -doc -static-libs -truetype" [ebuild N ] x11-apps/xrdb-1.1.1 [ebuild N ] x11-apps/xinit-1.4.0-r1 USE="minimal" [ebuild N ] x11-base/xorg-server-1.20.3 USE="glamor ipv6 suid udev wayland xorg -debug -dmx -doc -kdrive -libressl -minimal (-selinux) -static-libs -systemd -unwind -xcsecurity -xephyr -xnest -xvfb" [ebuild N ] x11-base/xorg-drivers-1.20 INPUT_DEVICES="keyboard libinput mouse -elographics -evdev -joystick -synaptics -vmmouse -void -wacom" VIDEO_CARDS="amdgpu dummy fbdev intel nouveau radeon radeonsi vesa -ast (-free$reno) (-geode) -glint -i915 -i965 -mga -nv -nvidia (-omap) -qxl -r128 -siliconmotion (-tegra) (-vc4) -via -virtualbox -vmware" [ebuild N ] x11-drivers/xf86-video-intel-2.99.917_p20180214-r2 USE="dri sna udev -debug -dri3 -tools -uxa -xvmc" [ebuild N ] x11-drivers/xf86-input-keyboard-1.9.0 [ebuild N ] x11-drivers/xf86-video-dummy-0.3.8 USE="-dga" [ebuild N ] x11-drivers/xf86-video-vesa-2.4.0 [ebuild N ] x11-drivers/xf86-video-ati-18.1.0 USE="glamor -udev" [ebuild N ] x11-drivers/xf86-video-nouveau-1.0.15-r1 [ebuild N ] x11-drivers/xf86-input-libinput-0.28.2 [ebuild N ] x11-drivers/xf86-input-mouse-1.9.3 [ebuild N ] x11-drivers/xf86-video-amdgpu-18.1.0 USE="-udev" [ebuild N ] x11-drivers/xf86-video-fbdev-0.5.0 [ebuild N ] x11-libs/xcb-util-0.4.0-r1 USE="-doc -static-libs -test" [ebuild N ] x11-libs/xcb-util-image-0.4.0-r1 USE="-doc -static-libs -test" [ebuild N ] x11-libs/xcb-util-cursor-0.1.3-r2 USE="-doc -static-libs -test" [ebuild N ~] dev-libs/wlc-0.0.11 USE="xwayland" ############################### # [4] install "dev-lang/rust" # ############################### 1. add the follwing use flags to "/etc/portage/package.use/rust" dev-lang/rust cargo 2. install "dev-lang/rust" $ emerge --ask dev-lang/rust These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] net-libs/http-parser-2.8.1 USE="-static-libs" [ebuild N ] net-libs/libssh2-1.8.0-r1 USE="zlib -gcrypt -libressl -static-libs -test" [ebuild N ] app-eselect/eselect-rust-20190311 [ebuild N ] dev-lang/rust-1.29.1-r1 USE="cargo jemalloc (-clippy) -debug -doc -libressl -rls -rustfmt -wasm" CPU_FLAGS_X86="sse2" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -XCore" Would you like to merge these packages? [Yes/No] ################################ # [5] install "x11-libs/cairo" # ################################ 1. install "x11-libs/cairo" $ emerge --ask x11-libs/cairo These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] media-fonts/liberation-fonts-2.00.1-r3 USE="-X -fontforge" [ebuild N ] media-libs/libpng-1.6.35-r1 USE="-apng (-neon) -static-libs" CPU_FLAGS_X86="sse" [ebuild N ] sys-libs/binutils-libs-2.30-r4 USE="nls -64-bit-bfd -multitarget -static-libs" [ebuild N ] virtual/ttf-fonts-1-r1 [ebuild N ] media-libs/fontconfig-2.13.0-r4 USE="-doc -static-libs" [ebuild N ] app-eselect/eselect-fontconfig-1.1-r1 [ebuild N ] x11-libs/cairo-1.16.0-r2 USE="glib svg -X (-aqua) -debug (-gles2) -opengl -static-libs -utils -valgrind -xcb" Would you like to merge these packages? [Yes/No] ############################ # [6] install "way-cooler" # ############################ 1. export the following environment variables to specify the installation directory: $ export CARGO_HOME="/usr/local/src/rust/cargo" $ export RUSTUP_HOME="/usr/local/src/rust/multirust" 2. add the variables to "/etc/profile.d/rust_install_path.sh" $ export CARGO_HOME="/usr/local/src/rust/cargo" $ export RUSTUP_HOME="/usr/local/src/rust/multirust" 3. create the directories and set access, owner and group permissions $ mkdir --parents /usr/local/src/rust/{cargo,multirust} $ chown --recursive ramon:ramon /usr/local/src/rust 4. install "way-cooler" via "cargo" (as unprivileged user!) $ cargo install way-cooler Updating registry `https://github.com/rust-lang/crates.io-index` Downloading way-cooler v0.8.1 Installing way-cooler v0.8.1 Downloading bitflags v0.7.0 Downloading wayland-sys v0.12.5 Downloading wayland-server v0.12.5 Downloading cairo-rs v0.2.0 Downloading getopts v0.2.18 Downloading petgraph v0.4.13 Downloading json_macro v0.1.1 Downloading dbus v0.4.1 Downloading gdk-pixbuf v0.2.0 Downloading uuid v0.3.1 Downloading xcb v0.8.2 Downloading lazy_static v0.2.11 Downloading rustwlc v0.7.0 Downloading rlua v0.9.7 Downloading rustc-serialize v0.3.24 Downloading glib v0.3.1 Downloading nix v0.6.0 Downloading log v0.3.9 Downloading dbus-macros v0.0.6 Downloading env_logger v0.3.5 Downloading cairo-sys-rs v0.4.0 Downloading libc v0.2.51 Downloading lazy_static v1.3.0 Downloading dlib v0.4.1 Downloading libloading v0.5.0 Downloading cc v1.0.32 Downloading token_store v0.1.2 Downloading bitflags v1.0.4 Downloading nix v0.9.0 Downloading void v1.0.2 Downloading cfg-if v0.1.7 Downloading bitflags v0.9.1 Downloading wayland-scanner v0.12.5 Downloading xml-rs v0.7.0 Downloading c_vec v1.2.1 Downloading glib-sys v0.4.0 Downloading pkg-config v0.3.14 Downloading gobject-sys v0.4.0 Downloading unicode-width v0.1.5 Downloading ordermap v0.3.5 Downloading fixedbitset v0.1.9 Downloading gdk-pixbuf-sys v0.4.0 Downloading gio-sys v0.4.0 Downloading rand v0.3.23 Downloading rand v0.4.6 Downloading log v0.4.6 Downloading wayland-sys v0.6.0 Downloading dlib v0.3.1 Downloading libloading v0.3.4 Downloading target_build_utils v0.3.1 Downloading phf v0.7.24 Downloading serde_json v0.9.10 Downloading phf_shared v0.7.24 Downloading siphasher v0.2.3 Downloading num-traits v0.1.43 Downloading serde v0.9.15 Downloading itoa v0.3.4 Downloading dtoa v0.4.3 Downloading num-traits v0.2.6 Downloading phf_codegen v0.7.24 Downloading phf_generator v0.7.24 Downloading rand v0.6.5 Downloading rand_hc v0.1.0 Downloading rand_core v0.4.0 Downloading rand_chacha v0.1.1 Downloading rand_jitter v0.1.3 Downloading rand_pcg v0.1.2 Downloading rand_xorshift v0.1.1 Downloading rand_isaac v0.1.1 Downloading rand_os v0.1.3 Downloading rand_core v0.3.1 Downloading autocfg v0.1.2 Downloading bitflags v0.4.0 Downloading semver v0.1.20 Downloading rustc_version v0.1.7 Downloading regex v0.1.80 Downloading aho-corasick v0.5.3 Downloading utf8-ranges v0.1.3 Downloading memchr v0.1.11 Downloading thread_local v0.2.7 Downloading regex-syntax v0.3.9 Downloading thread-id v2.0.0 Downloading kernel32-sys v0.2.2 Downloading winapi v0.2.8 Downloading winapi-build v0.1.1 Compiling libc v0.2.51 Compiling autocfg v0.1.2 Compiling rand_core v0.4.0 Compiling siphasher v0.2.3 Compiling num-traits v0.2.6 Compiling dtoa v0.4.3 Compiling itoa v0.3.4 Compiling serde v0.9.15 Compiling winapi-build v0.1.1 Compiling pkg-config v0.3.14 Compiling cc v1.0.32 Compiling bitflags v1.0.4 Compiling winapi v0.2.8 Compiling bitflags v0.9.1 Compiling lazy_static v0.2.11 Compiling semver v0.1.20 Compiling cfg-if v0.1.7 Compiling regex-syntax v0.3.9 Compiling lazy_static v1.3.0 Compiling cairo-rs v0.2.0 Compiling gdk-pixbuf v0.2.0 Compiling utf8-ranges v0.1.3 Compiling void v1.0.2 Compiling rustwlc v0.7.0 Compiling rlua v0.9.7 Compiling ordermap v0.3.5 Compiling bitflags v0.4.0 Compiling rustc-serialize v0.3.24 Compiling unicode-width v0.1.5 Compiling bitflags v0.7.0 Compiling fixedbitset v0.1.9 Compiling c_vec v1.2.1 Compiling token_store v0.1.2 Compiling phf_shared v0.7.24 Compiling rand_core v0.3.1 Compiling rand_jitter v0.1.3 Compiling kernel32-sys v0.2.2 Compiling rand_chacha v0.1.1 Compiling rand_pcg v0.1.2 Compiling rand v0.6.5 Compiling xml-rs v0.7.0 Compiling glib-sys v0.4.0 Compiling gobject-sys v0.4.0 Compiling gio-sys v0.4.0 Compiling dbus v0.4.1 Compiling gdk-pixbuf-sys v0.4.0 Compiling cairo-sys-rs v0.4.0 Compiling log v0.4.6 Compiling rustc_version v0.1.7 Compiling libloading v0.5.0 Compiling getopts v0.2.18 Compiling petgraph v0.4.13 Compiling phf v0.7.24 Compiling rand_isaac v0.1.1 Compiling rand_hc v0.1.0 Compiling rand_xorshift v0.1.1 Compiling json_macro v0.1.1 Compiling wayland-scanner v0.12.5 Compiling log v0.3.9 Compiling nix v0.6.0 Compiling rand_os v0.1.3 Compiling memchr v0.1.11 Compiling rand v0.4.6 Compiling xcb v0.8.2 Compiling nix v0.9.0 warning: redundant linker flag specified for library `dbus-1` Compiling aho-corasick v0.5.3 Compiling wayland-server v0.12.5 Compiling way-cooler v0.8.1 Compiling num-traits v0.1.43 Compiling rand v0.3.23 Compiling thread-id v2.0.0 Compiling dlib v0.4.1 Compiling serde_json v0.9.10 Compiling dbus-macros v0.0.6 Compiling thread_local v0.2.7 Compiling uuid v0.3.1 Compiling wayland-sys v0.12.5 Compiling glib v0.3.1 Compiling phf_generator v0.7.24 Compiling regex v0.1.80 Compiling phf_codegen v0.7.24 Compiling env_logger v0.3.5 Compiling target_build_utils v0.3.1 Compiling libloading v0.3.4 Compiling dlib v0.3.1 Compiling wayland-sys v0.6.0 Finished release [optimized + debuginfo] target(s) in 3m 30s Installing /usr/local/src/rust/cargo/bin/way-cooler warning: be sure to add `/usr/local/src/rust/cargo/bin` to your PATH to be able to run the installed binaries 5. copy the binary file to "/usr/local/bin" $ cp /usr/local/src/rust/cargo/bin/way-cooler /usr/local/bin ########################################## # [7] start "way-cooler" (does not work) # ########################################## 1. $ way-cooler
Launching way-cooler... INFO [way_cooler] src/main.rs:215 Logger initialized, setting wlc handlers. INFO [way_cooler] src/main.rs:220 TERM: screen-256color INFO [way_cooler] src/main.rs:220 COLORTERM: yes INFO [way_cooler] src/main.rs:220 PATH: /home/ramon/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/games:/usr/games:/usr/lib/llvm/6/bin:/opt/bin INFO [way_cooler] src/main.rs:220 HOME: /home/ramon INFO [way_cooler] src/main.rs:220 SHELL: /bin/zsh INFO [way_cooler] src/main.rs:220 USER: ramon INFO [way_cooler] src/main.rs:220 LOGNAME: ramon INFO [way_cooler] src/main.rs:220 SHLVL: 1 INFO [way_cooler] src/main.rs:220 PWD: /home/ramon INFO [way_cooler] src/main.rs:220 OLDPWD: /home/ramon INFO [way_cooler] src/main.rs:220 HOSTNAME: sharkoon INFO [way_cooler] src/main.rs:220 CONFIG_PROTECT: /usr/share/gnupg/qualified.txt INFO [way_cooler] src/main.rs:220 CONFIG_PROTECT_MASK: /etc/sandbox.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/terminfo /etc/ca-certificates.conf /etc/revdep-rebuild INFO [way_cooler] src/main.rs:220 GCC_SPECS: INFO [way_cooler] src/main.rs:220 INFOPATH: /usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.31.1/info:/usr/share/info INFO [way_cooler] src/main.rs:220 LC_COLLATE: C INFO [way_cooler] src/main.rs:220 LESS: --RAW-CONTROL-CHARS --LONG-PROMPT --shift 5 INFO [way_cooler] src/main.rs:220 LESSOPEN: |lesspipe %s INFO [way_cooler] src/main.rs:220 MANPAGER: manpager INFO [way_cooler] src/main.rs:220 MANPATH: /usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.31.1/man:/usr/lib/llvm/6/share/man:/usr/local/share/man:/usr/share/man:/usr/share/rust-1.29.1/man INFO [way_cooler] src/main.rs:220 OPENGL_PROFILE: xorg-x11 INFO [way_cooler] src/main.rs:220 ROOTPATH: /usr/lib/llvm/6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin INFO [way_cooler] src/main.rs:220 READNULLCMD: /usr/bin/pager INFO [way_cooler] src/main.rs:220 DISTCC_HOSTS: +zeroconf INFO [way_cooler] src/main.rs:220 WRITE_ON_UDEV: yes INFO [way_cooler] src/main.rs:220 EDITOR: nvim INFO [way_cooler] src/main.rs:220 PAGER: less INFO [way_cooler] src/main.rs:220 MAIL: /var/mail/ramon INFO [way_cooler] src/main.rs:220 LS_COLORS: mh=44;37:or=40;31;01 INFO [way_cooler] src/main.rs:220 LESS_TERMCAP_mb: INFO [way_cooler] src/main.rs:220 LESS_TERMCAP_md: INFO [way_cooler] src/main.rs:220 LESS_TERMCAP_me: INFO [way_cooler] src/main.rs:220 LESS_TERMCAP_se: INFO [way_cooler] src/main.rs:220 LESS_TERMCAP_so: INFO [way_cooler] src/main.rs:220 LESS_TERMCAP_ue: INFO [way_cooler] src/main.rs:220 LESS_TERMCAP_us: INFO [way_cooler] src/main.rs:220 AUTOJUMP_SOURCED: 1 INFO [way_cooler] src/main.rs:220 AUTOJUMP_ERROR_PATH: /home/ramon/.local/share/autojump/errors.log INFO [way_cooler] src/main.rs:220 VISUAL: nvim INFO [way_cooler] src/main.rs:220 XDG_CACHE_HOME: /tmp/ramon/.cache/ INFO [way_cooler] src/main.rs:220 ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE: 20 INFO [way_cooler] src/main.rs:220 HISTORY_IGNORE: (/sbin/halt*|/sbin/poweroff*|/sbin/reboot*|/sbin/shutdown*|cd*|clear*|exit*|halt*|ls*|poweroff*|pwd*|reboot*|rm*|shutdown*|sudo*) INFO [way_cooler] src/main.rs:220 CARGO_HOME: /usr/local/src/rust/cargo INFO [way_cooler] src/main.rs:220 RUSTUP_HOME: /usr/local/src/rust/multirust INFO [way_cooler] src/main.rs:220 XDG_RUNTIME_DIR: /var/run/user/1000 INFO [way_cooler] src/main.rs:220 LANG: en_GB.utf8 INFO [way_cooler] src/main.rs:220 LC_ALL: en_GB.UTF-8 INFO [way_cooler] src/main.rs:220 _: /usr/local/bin/way-cooler ################################################################################# # [x] install "gui-libs/wlroots" when it will be used instead of "dev-libs/wlc" # ################################################################################# 1. add the following accepted keywords to "/etc/portage/package.accept_keywords" # required by wlroots (argument) =gui-libs/wlroots-0.5.0 ~amd64 2. add the follwing use flags to "/etc/portage/package.use/mesa" # required by gui-libs/wlroots-0.5.0::gentoo # required by wlroots (argument) >=media-libs/mesa-18.2.8 gles2 3. install "gui-libs/wlroots" $ emerge --ask gui-libs/wlroots These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] sys-devel/llvm-common-6.0.1 [ebuild N ] app-eselect/eselect-opengl-1.3.1-r4 [ebuild N ] dev-python/markupsafe-0.23 PYTHON_TARGETS="python2_7 python3_6 (-pypy) (-pypy3) -python3_4 -python3_5" [ebuild N ] sys-libs/mtdev-1.1.5 USE="-static-libs" [ebuild N ] dev-libs/wayland-protocols-1.17 [ebuild N ] x11-libs/libXfixes-5.0.3-r1 USE="-static-libs" [ebuild N ] x11-libs/libxkbcommon-0.8.2 USE="-X -doc -static-libs -test" [ebuild N ] x11-libs/pixman-0.36.0 USE="(-altivec) (-loongson2f) (-neon) -static-libs" CPU_FLAGS_X86="mmxext sse2 -ssse3" [ebuild N ] x11-libs/libpciaccess-0.14 USE="zlib -static-libs" [ebuild N ] x11-libs/libxshmfence-1.3-r1 USE="-static-libs" [ebuild N ] x11-libs/libXxf86vm-1.1.4-r1 USE="-static-libs" [ebuild N ] sys-devel/llvm-6.0.1 USE="libffi ncurses -debug -doc -gold -libedit -test -xar -xml" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -PowerPC -Sparc -SystemZ -XCore" [ebuild N ] dev-python/mako-1.0.6 USE="-doc -test" PYTHON_TARGETS="python2_7 python3_6 (-pypy) -python3_4 -python3_5" [ebuild N ] x11-libs/libXrender-0.9.10-r1 USE="-static-libs" [ebuild N ] dev-libs/libevdev-1.6.0 USE="-doc -static-libs" [ebuild N ] x11-libs/libdrm-2.4.96 USE="-libkms -valgrind" VIDEO_CARDS="amdgpu intel nouveau radeon (-exynos) (-freedreno) (-omap) (-tegra) (-vc4) (-vivante) -vmware" [ebuild N ] dev-libs/libinput-1.12.6 USE="-doc" INPUT_DEVICES="-wacom" [ebuild N ] x11-libs/libXdamage-1.1.4-r2 USE="-static-libs" [ebuild N ] x11-libs/libXrandr-1.5.1-r1 USE="-static-libs" [ebuild N ] media-libs/mesa-18.2.8 USE="classic dri3 egl gallium gbm gles2 llvm wayland -d3d9 -debug -gles1 -lm_sensors -opencl -osmesa -pax_kernel -pic (-selinux) -test -unwind -vaapi -valgrind -vdpau -vulkan -xa -xvmc" VIDEO_CARDS="intel nouveau radeon radeonsi (-freedreno) -i915 -i965 (-imx) -r100 -r200 -r300 -r600 (-vc4) -virgl (-vivante) -vmware" [ebuild N ~] gui-libs/wlroots-0.5.0 USE="filecaps -X -elogind -icccm -rootston -systemd -x11-backend" Would you like to merge these packages? [Yes/No] ####################### # [x] troubleshooting # ####################### dbus failed: ------------ error: failed to run custom build command for `dbus v0.4.1` process didn't exit successfully: `/tmp/cargo-install5VscCb/release/build/dbus-988c7d5f73621c46/build-script-build` (exit code: 101) --- stderr thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "`\"pkg-config\" \"--libs\" \"--cflags\" \"dbus-1\"` did not exit successfully: exit code: 1\n--- stderr\nPackage dbus-1 was not found in the pkg-config se arch path.\nPerhaps you should add the directory containing `dbus-1.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'dbus-1\' found\n"', libcore/result.rs:945:5 note: Run with `RUST_BACKTRACE=1` for a backtrace. warning: build failed, waiting for other jobs to finish... error: failed to compile `way-cooler v0.8.1`, intermediate artifacts can be found at `/tmp/cargo-install5VscCb` Caused by: build failed solution: --------- 1. install "dbus" https://wiki.gentoo.org/wiki/D-Bus 2. install "way-cooler" $ cargo install way-cooler gdk-pixbuf failed: ------------------ error: failed to run custom build command for `gdk-pixbuf-sys v0.4.0` process didn't exit successfully: `/tmp/cargo-install09iaye/release/build/gdk-pixbuf-sys-b18f670937a0cd5f/build-script-build` (exit code: 1) --- stderr `"pkg-config" "--libs" "--cflags" "gdk-pixbuf-2.0 >= 2.26"` did not exit successfully: exit code: 1 --- stderr Package gdk-pixbuf-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gdk-pixbuf-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gdk-pixbuf-2.0' found warning: build failed, waiting for other jobs to finish... error: failed to compile `way-cooler v0.8.1`, intermediate artifacts can be found at `/tmp/cargo-install09iaye` Caused by: build failed solution: --------- 1. install "gdk-pixbuf" $ emerge --ask gdk-pixbuf These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] dev-util/desktop-file-utils-0.23 USE="-emacs" [ebuild N ] dev-libs/gobject-introspection-1.56.1 USE="-cairo -doctool -test" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_5 (-python3_7)" PYTHON_TARGETS="python2_7 python3_6 -python3_5 (-python3_7)" [ebuild N ] x11-libs/gdk-pixbuf-2.36.12 USE="introspection -X -debug -jpeg -jpeg2k -test -tiff" Would you like to merge these packages? [Yes/No] 2. install "way-cooler" $ cargo install way-cooler gcc linking fails: ------------------ Compiling wayland-sys v0.6.0 error: linking with `x86_64-pc-linux-gnu-gcc` failed: exit code: 1 | = note: "x86_64-pc-linux-gnu-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "/tmp/cargo-installYle0Ug/release/deps/way_cooler-ba6d07a1e6b25072.way_cooler0-92b068e4fab f577a16973600a135387a.rs.rcgu.o" "/tmp/cargo-installYle0Ug/release/deps/way_cooler-ba6d07a1e6b25072.way_cooler1-92b068e4fabf577a16973600a135387a.rs.rcgu.o" "/tmp/cargo-installYle0Ug/release/deps/way_cooler-ba6d07a1e6b25072.way_ cooler10-92b068e4fabf577a16973600a135387a.rs.rcgu.o" "/tmp/cargo-installYle0Ug/release/deps/way_cooler-ba6d07a1e6b25072.way_cooler11-92b068e4fabf577a16973600a135387a.rs.rcgu.o" "/tmp/cargo-installYle0Ug/release/deps/way_cooler- ba6d07a1e6b25072.way_cooler12-92b068e4fabf577a16973600a135387a.rs.rcgu.o" "/tmp/cargo-installYle0Ug/release/deps/way_cooler-ba6d07a1e6b25072.way_cooler13-92b068e4fabf577a16973600a135387a.rs.rcgu.o" "/tmp/cargo-installYle0Ug/rel ease/deps/way_cooler-ba6d07a1e6b25072.way_cooler14-92b068e4fabf577a16973600a135387a.rs.rcgu.o" "/tmp/cargo-installYle0Ug/release/deps/way_cooler-ba6d07a1e6b25072.way_cooler15-92b068e4fabf577a16973600a135387a.rs.rcgu.o" "/tmp/ca rgo-installYle0Ug/release/deps/way_cooler-ba6d07a1e6b25072.way_cooler2-92b068e4fabf577a16973600a135387a.rs.rcgu.o" "/tmp/cargo-installYle0Ug/release/deps/way_cooler-ba6d07a1e6b25072.way_cooler3-92b068e4fabf577a16973600a135387a. rs.rcgu.o" "/tmp/cargo-installYle0Ug/release/deps/way_cooler-ba6d07a1e6b25072.way_cooler4-92b068e4fabf577a16973600a135387a.rs.rcgu.o" "/tmp/cargo-installYle0Ug/release/deps/way_cooler-ba6d07a1e6b25072.way_cooler5-92b068e4fabf57 7a16973600a135387a.rs.rcgu.o" "/tmp/cargo-installYle0Ug/release/deps/way_cooler-ba6d07a1e6b25072.way_cooler6-92b068e4fabf577a16973600a135387a.rs.rcgu.o" "/tmp/cargo-installYle0Ug/release/deps/way_cooler-ba6d07a1e6b25072.way_coo ler7-92b068e4fabf577a16973600a135387a.rs.rcgu.o" "/tmp/cargo-installYle0Ug/release/deps/way_cooler-ba6d07a1e6b25072.way_cooler8-92b068e4fabf577a16973600a135387a.rs.rcgu.o" "/tmp/cargo-installYle0Ug/release/deps/way_cooler-ba6d0 7a1e6b25072.way_cooler9-92b068e4fabf577a16973600a135387a.rs.rcgu.o" "-o" "/tmp/cargo-installYle0Ug/release/deps/way_cooler-ba6d07a1e6b25072" "/tmp/cargo-installYle0Ug/release/deps/way_cooler-ba6d07a1e6b25072.crate.allocator.rcg u.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/tmp/cargo-installYle0Ug/release/deps" "-L" "/usr/lib64" "-L" "/usr/lib64" "-L" "/usr/lib64" "-L" "/usr/lib64" "-L" "/usr/lib64" "-L" "/ usr/lib64" "-L" "/tmp/cargo-installYle0Ug/release/build/libloading-5d2a12f146ccc2fe/out" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/cargo-installYle0Ug/release/deps/libxcb-37b65c672e7d38a9.rlib" "/tmp/cargo-installYle0Ug/release/deps/libwayland_server-4ca449df75542df8.rlib" "/tmp/cargo-installYle0Ug/release/deps/libtoken_store-951ab5057e51052c.rlib" "/tmp/cargo-installYle0Ug/release/deps/libnix-14598ed487f26ee8.rlib" "/tmp/cargo-installYle0Ug/release/deps/libbitflags-fe8097c10f5ea0af.rlib" "/tmp/cargo-installYle0Ug/release/deps/libwayland_sys-d8d7f48948103580.rlib" "/tmp/cargo-installYle0Ug/release/deps/liblazy_static-90cac70c1a2e3f93.rlib" "/tmp/cargo-installYle0Ug/release/deps/libdlib-d719cae1cdebc5d4.rlib" "/tmp/cargo-installYle0Ug/release/deps/liblibloading-82a9c2a54b626000.rlib" "/tmp/cargo-installYle0Ug/release/deps/libgdk_pixbuf-e813e304188cb193.rlib" "/tm p/cargo-installYle0Ug/release/deps/libgdk_pixbuf_sys-8a8b356357ccead3.rlib" "/tmp/cargo-installYle0Ug/release/deps/libgio_sys-bc097a92cd119607.rlib" "/tmp/cargo-installYle0Ug/release/deps/libcairo-42dbe2d533ea4308.rlib" "/tmp/c argo-installYle0Ug/release/deps/libglib-19162db8b72e279c.rlib" "/tmp/cargo-installYle0Ug/release/deps/libgobject_sys-cf8296f93d29374c.rlib" "/tmp/cargo-installYle0Ug/release/deps/libglib_sys-ade74e769e092f91.rlib" "/tmp/cargo-i nstallYle0Ug/release/deps/libbitflags-7b246fdb44892037.rlib" "/tmp/cargo-installYle0Ug/release/deps/libc_vec-a5d722c6451cc1bf.rlib" "/tmp/cargo-installYle0Ug/release/deps/libcairo_sys-00c3a0ca9ce4aae5.rlib" "/tmp/cargo-installY le0Ug/release/deps/libdbus-197a958e2b187a9f.rlib" "/tmp/cargo-installYle0Ug/release/deps/libuuid-8f31bbea19828d1f.rlib" "/tmp/cargo-installYle0Ug/release/deps/librand-43837641e7a0f26e.rlib" "/tmp/cargo-installYle0Ug/release/dep s/librand-b81d356c3547cdfb.rlib" "/tmp/cargo-installYle0Ug/release/deps/libpetgraph-4a9b9e322c6344b6.rlib" "/tmp/cargo-installYle0Ug/release/deps/libordermap-b61e0ef92a7d00a2.rlib" "/tmp/cargo-installYle0Ug/release/deps/libfixe dbitset-c57d303a866eff4f.rlib" "/tmp/cargo-installYle0Ug/release/deps/libnix-788f6ce13c847be7.rlib" "/tmp/cargo-installYle0Ug/release/deps/libvoid-119cbc3cb860d29c.rlib" "/tmp/cargo-installYle0Ug/release/deps/libbitflags-3b1890 8dfa3382bf.rlib" "/tmp/cargo-installYle0Ug/release/deps/libjson_macro-9d5cac3ecc3411f9.rlib" "/tmp/cargo-installYle0Ug/release/deps/librustc_serialize-0faae342f6d644d2.rlib" "/tmp/cargo-installYle0Ug/release/deps/librlua-af54eb 0e5993d6bc.rlib" "/tmp/cargo-installYle0Ug/release/deps/libenv_logger-5c2295172a581a9e.rlib" "/tmp/cargo-installYle0Ug/release/deps/libregex-98b24445c01a14de.rlib" "/tmp/cargo-installYle0Ug/release/deps/libutf8_ranges-f42e4c694 88bfc1c.rlib" "/tmp/cargo-installYle0Ug/release/deps/libregex_syntax-969fbe492cc53521.rlib" "/tmp/cargo-installYle0Ug/release/deps/libthread_local-fec41331e2d1b9f5.rlib" "/tmp/cargo-installYle0Ug/release/deps/libthread_id-38c31 873b328bbcc.rlib" "/tmp/cargo-installYle0Ug/release/deps/libaho_corasick-1c4b47a7a9360afb.rlib" "/tmp/cargo-installYle0Ug/release/deps/libmemchr-83f3ac220c07f655.rlib" "/tmp/cargo-installYle0Ug/release/deps/liblog-aac9aa54b02e4 c28.rlib" "/tmp/cargo-installYle0Ug/release/deps/liblog-aed1bd14b530afba.rlib" "/tmp/cargo-installYle0Ug/release/deps/libcfg_if-aeacd78b77a2d4d0.rlib" "/tmp/cargo-installYle0Ug/release/deps/libgetopts-3e458f45ee36731f.rlib" "/t mp/cargo-installYle0Ug/release/deps/libunicode_width-47c86499c4bab0f0.rlib" "/tmp/cargo-installYle0Ug/release/deps/librustwlc-50890aa32c2bdc1b.rlib" "/tmp/cargo-installYle0Ug/release/deps/libwayland_sys-dfb606aa41680aaa.rlib" " /tmp/cargo-installYle0Ug/release/deps/libdlib-73ad885cf297fd75.rlib" "/tmp/cargo-installYle0Ug/release/deps/liblibloading-ccd23dd302013b48.rlib" "/tmp/cargo-installYle0Ug/release/deps/liblibc-4a35d8774e4c782f.rlib" "/tmp/cargo- installYle0Ug/release/deps/libdbus_macros-86b98b575b6a805f.rlib" "/tmp/cargo-installYle0Ug/release/deps/libbitflags-8b5cc337e08391ff.rlib" "/tmp/cargo-installYle0Ug/release/deps/liblazy_static-bd50fdf7f80e160b.rlib" "-Wl,--star t-group" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libstd-f3d661f27b6f386b.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-c370de62f4545bcf.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/li balloc_jemalloc-672f5795fa7c2e37.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-46c2936716379364.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_system-805f6aca7cafeb2d.rlib" "/usr/lib64/rustli b/x86_64-unknown-linux-gnu/lib/liblibc-1331c3bfd5253ca4.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-a5709a44eb2a503d.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcore-d1f04e1f37a06b34.rlib" "-Wl ,--end-group" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-213fbf70bdc63eda.rlib" "-Wl,-Bdynamic" "-lxcb" "-lxcb" "-lxcb" "-lxcb" "-lxcb-xkb" "-ldl" "-lgdk_pixbuf-2.0" "-lgobject-2.0" "-lglib-2.0" "-lgi o-2.0" "-lgobject-2.0" "-lglib-2.0" "-lgobject-2.0" "-lglib-2.0" "-lglib-2.0" "-lcairo" "-ldbus-1" "-llua5.3" "-lwlc" "-lwlc" "-lwlc" "-lwlc" "-lxkbcommon" "-lwlc" "-lwlc" "-lwayland-server" "-ldl" "-lutil" "-lutil" "-ldl" "-lr t" "-lpthread" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil" = note: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lxcb-xkb /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -llua5.3 /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lwlc /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lwlc /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lwlc /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lwlc /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lwlc /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lwlc collect2: error: ld returned 1 exit status error: aborting due to previous error error: failed to compile `way-cooler v0.8.1`, intermediate artifacts can be found at `/tmp/cargo-installYle0Ug` Caused by: Could not compile `way-cooler`. To learn more, run the command again with --verbose. solution (mention in wiki: "equery files <package_name>"): --------- 1. add the use flag "xkb" to "/etc/portage/package.use/libxcb" x11-libs/libxcb xkb 2. recompile the package with the new use flag $ emerge --ask --changed-use x11-libs/libxcb These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] x11-libs/libxcb-1.13.1 USE="xkb*" Would you like to merge these packages? [Yes/No] 3. add the following accepted keywords to "/etc/portage/package.accept_keywords" # required by =dev-lang/lua-5.3.3 (argument) =dev-lang/lua-5.3.3 ~amd64 # required by dev-lang/lua-5.3.3::gentoo # required by =dev-lang/lua-5.3.3 (argument) =app-eselect/eselect-lua-1 ~amd64 4. add the following lines to unmask "dev-lang/lua-5.3.3" # required by dev-lang/lua-5.3.3::gentoo # required by =dev-lang/lua-5.3.3 (argument) # /usr/portage/profiles/package.mask: # Matti Bickel <mabi@gentoo.org> (22 Apr 2014) # Masked slotted lua for testing # William Hubbs <williamh@gentoo.org> (07 Aug 2016) # Taking this mask since Mabi is retired # Rafael Martins <rafaelmartins@gentoo.org> (04 Dec 2016) # Adding Lua 5.3 to mask =app-eselect/eselect-lua-1 # required by =dev-lang/lua-5.3.3 (argument) # /usr/portage/profiles/package.mask: # Matti Bickel <mabi@gentoo.org> (22 Apr 2014) # Masked slotted lua for testing # William Hubbs <williamh@gentoo.org> (07 Aug 2016) # Taking this mask since Mabi is retired # Rafael Martins <rafaelmartins@gentoo.org> (04 Dec 2016) # Adding Lua 5.3 to mask =dev-lang/lua-5.3.3 4. install "dev-lang/lua" $ emerge --ask dev-lang/lua These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N #] dev-lang/lua-5.3.3 USE="deprecated readline -emacs -static" Would you like to merge these packages? [Yes/No] 5. install "dev-libs/wlc" See step 3.1. 6. install "way-cooler" $ cargo install way-cooler redundant linker flag: ---------------------- warning: redundant linker flag specified for library `dbus-1`
solution: ---------
no solution yet
way-cooler does not start but just outputs environment variables: -----------------------------------------------------------------
$ way-cooler
Launching way-cooler... INFO [way_cooler] src/main.rs:215 Logger initialized, setting wlc handlers. INFO [way_cooler] src/main.rs:220 TERM: screen-256color INFO [way_cooler] src/main.rs:220 COLORTERM: yes INFO [way_cooler] src/main.rs:220 PATH: /home/ramon/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/games:/usr/games:/usr/lib/llvm/6/bin:/opt/bin INFO [way_cooler] src/main.rs:220 HOME: /home/ramon INFO [way_cooler] src/main.rs:220 SHELL: /bin/zsh INFO [way_cooler] src/main.rs:220 USER: ramon INFO [way_cooler] src/main.rs:220 LOGNAME: ramon INFO [way_cooler] src/main.rs:220 SHLVL: 1 INFO [way_cooler] src/main.rs:220 PWD: /home/ramon INFO [way_cooler] src/main.rs:220 OLDPWD: /home/ramon INFO [way_cooler] src/main.rs:220 HOSTNAME: sharkoon INFO [way_cooler] src/main.rs:220 CONFIG_PROTECT: /usr/share/gnupg/qualified.txt INFO [way_cooler] src/main.rs:220 CONFIG_PROTECT_MASK: /etc/sandbox.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/terminfo /etc/ca-certificates.conf /etc/revdep-rebuild INFO [way_cooler] src/main.rs:220 GCC_SPECS: INFO [way_cooler] src/main.rs:220 INFOPATH: /usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.31.1/info:/usr/share/info INFO [way_cooler] src/main.rs:220 LC_COLLATE: C INFO [way_cooler] src/main.rs:220 LESS: --RAW-CONTROL-CHARS --LONG-PROMPT --shift 5 INFO [way_cooler] src/main.rs:220 LESSOPEN: |lesspipe %s INFO [way_cooler] src/main.rs:220 MANPAGER: manpager INFO [way_cooler] src/main.rs:220 MANPATH: /usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.31.1/man:/usr/lib/llvm/6/share/man:/usr/local/share/man:/usr/share/man:/usr/share/rust-1.29.1/man INFO [way_cooler] src/main.rs:220 OPENGL_PROFILE: xorg-x11 INFO [way_cooler] src/main.rs:220 ROOTPATH: /usr/lib/llvm/6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin INFO [way_cooler] src/main.rs:220 READNULLCMD: /usr/bin/pager INFO [way_cooler] src/main.rs:220 DISTCC_HOSTS: +zeroconf INFO [way_cooler] src/main.rs:220 WRITE_ON_UDEV: yes INFO [way_cooler] src/main.rs:220 EDITOR: nvim INFO [way_cooler] src/main.rs:220 PAGER: less INFO [way_cooler] src/main.rs:220 MAIL: /var/mail/ramon INFO [way_cooler] src/main.rs:220 LS_COLORS: mh=44;37:or=40;31;01 INFO [way_cooler] src/main.rs:220 LESS_TERMCAP_mb: INFO [way_cooler] src/main.rs:220 LESS_TERMCAP_md: INFO [way_cooler] src/main.rs:220 LESS_TERMCAP_me: INFO [way_cooler] src/main.rs:220 LESS_TERMCAP_se: INFO [way_cooler] src/main.rs:220 LESS_TERMCAP_so: INFO [way_cooler] src/main.rs:220 LESS_TERMCAP_ue: INFO [way_cooler] src/main.rs:220 LESS_TERMCAP_us: INFO [way_cooler] src/main.rs:220 AUTOJUMP_SOURCED: 1 INFO [way_cooler] src/main.rs:220 AUTOJUMP_ERROR_PATH: /home/ramon/.local/share/autojump/errors.log INFO [way_cooler] src/main.rs:220 VISUAL: nvim INFO [way_cooler] src/main.rs:220 XDG_CACHE_HOME: /tmp/ramon/.cache/ INFO [way_cooler] src/main.rs:220 ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE: 20 INFO [way_cooler] src/main.rs:220 HISTORY_IGNORE: (/sbin/halt*|/sbin/poweroff*|/sbin/reboot*|/sbin/shutdown*|cd*|clear*|exit*|halt*|ls*|poweroff*|pwd*|reboot*|rm*|shutdown*|sudo*) INFO [way_cooler] src/main.rs:220 CARGO_HOME: /usr/local/src/rust/cargo INFO [way_cooler] src/main.rs:220 RUSTUP_HOME: /usr/local/src/rust/multirust INFO [way_cooler] src/main.rs:220 XDG_RUNTIME_DIR: /var/run/user/1000 INFO [way_cooler] src/main.rs:220 LANG: en_GB.utf8 INFO [way_cooler] src/main.rs:220 LC_ALL: en_GB.UTF-8 INFO [way_cooler] src/main.rs:220 _: /usr/local/bin/way-cooler
solution: ---------
no solution yet