Package Details: sway-git r6934.251a648e-1

Git Clone URL: https://aur.archlinux.org/sway-git.git (read-only, click to copy)
Package Base: sway-git
Description: Tiling Wayland compositor and replacement for the i3 window manager
Upstream URL: https://swaywm.org
Keywords: wayland
Licenses: MIT
Conflicts: sway
Provides: sway
Submitter: None
Maintainer: Rucikir
Last Packager: Rucikir
Votes: 142
Popularity: 0.189809
First Submitted: 2015-08-16 14:05 (UTC)
Last Updated: 2022-06-02 12:00 (UTC)

Dependencies (24)

Required by (28)

Sources (2)

Latest Comments

Rucikir commented on 2022-08-08 17:15 (UTC)

Try updating wlroots-git first, Support for this new protocol was recently merged. https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/b24b50ec0c1c54a14acf34df2c95b37043d15b49

zwastik commented on 2022-08-08 15:07 (UTC) (edited on 2022-08-08 15:12 (UTC) by zwastik)

Found ninja-1.11.0 at /usr/bin/ninja
ninja: Entering directory `/home/user/.src/sway-git/src/build'
[65/288] Compiling C object sway/sway.p/server.c.o
FAILED: sway/sway.p/server.c.o
cc -Isway/sway.p -Isway -I../sway/sway -Iinclude -I../sway/include -Iprotocols -I/usr/include/cairo -I/usr/include/lzo -I/usr/i nclude/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/inc lude/sysprof-4 -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/json-c -I/usr/include/libevdev-1.0 -I/usr/include/p ango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -flto=auto -fdiagnostics-color=always -D_FILE_OFFS ET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -O0 -DWLR_USE_UNSTABLE -Wno-unused-parameter -Wno-unused-result -Wno-missing-br aces -Wundef -Wvla '-DSYSCONFDIR="//etc"' '-DSWAY_VERSION="1.8-dev-ebf441b3 (" DATE ", branch '"'"'master'"'"')"' -fmacro-p refix-map=../sway/= -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fst ack-clash-protection -fcf-protection -g -fvar-tracking-assignments -ffile-prefix-map=/home/oiu7/.src/sway-git/src=/usr/src/debu g -fPIE -pthread -MD -MQ sway/sway.p/server.c.o -MF sway/sway.p/server.c.o.d -o sway/sway.p/server.c.o -c ../sway/sway/server.c
../sway/sway/server.c:26:10: fatal error: wlr/types/wlr_single_pixel_buffer_v1.h: No such file or directory
26 | #include <wlr/types/wlr_single_pixel_buffer_v1.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[74/288] Compiling C object sway/sway.p/swaynag.c.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...

yrlf commented on 2022-06-21 10:59 (UTC)

@whynothugo, @Rucikir:

That is part of the output of the strip step of makepkg. Usually, it strips all debug info from the binaries and libraries. However, if makepkg is configured to strip AND leave in debug info, then it will specifically try to create a separate file with all of the debug info and with links to all of the source files for that debug info.

makepkg will then create a *-debug package with all of those debug info files and all the referenced sources.

This last step seems to fail for some of the object files provided by gcc (likely crt0.o, crtbegin.o, crti.o, crtn.o) that contain debug info, but reference files on the machine of the packager who built the ArchLinux gcc package.

The only way to fix this is a) completely strip the objects in the gcc package b) provide a gcc-debug package that ships these files so they can be found either way that is not a bug in sway-git

Rucikir commented on 2022-06-21 10:02 (UTC) (edited on 2022-06-21 10:02 (UTC) by Rucikir)

@whynothugo I'm seeing it too but I don't know what's causing these.

whynothugo commented on 2022-06-20 22:14 (UTC)

Building is now warning of some missing file:

  -> Stripping unneeded symbols from binaries and libraries...
cp: cannot stat '/build/glibc/src/glibc/csu/../sysdeps/x86_64/start.S': No such file or directory
cp: cannot stat '/build/sway-git/src/glibc/csu/../sysdeps/x86/abi-note.c': No such file or directory
cp: cannot stat '/build/sway-git/src/glibc/csu/init.c': No such file or directory
cp: cannot stat '/build/glibc/src/glibc/csu/../sysdeps/x86_64/crti.S': No such file or directory
cp: cannot stat '/build/glibc/src/glibc/csu/../sysdeps/x86_64/crtn.S': No such file or directory
cp: cannot stat '/build/glibc/src/glibc/csu/../sysdeps/x86_64/start.S': No such file or directory
cp: cannot stat '/build/sway-git/src/glibc/csu/../sysdeps/x86/abi-note.c': No such file or directory
cp: cannot stat '/build/sway-git/src/glibc/csu/init.c': No such file or directory
cp: cannot stat '/build/glibc/src/glibc/csu/../sysdeps/x86_64/crti.S': No such file or directory
cp: cannot stat '/build/glibc/src/glibc/csu/../sysdeps/x86_64/crtn.S': No such file or directory
cp: cannot stat '/build/glibc/src/glibc/csu/../sysdeps/x86_64/start.S': No such file or directory
cp: cannot stat '/build/sway-git/src/glibc/csu/../sysdeps/x86/abi-note.c': No such file or directory
cp: cannot stat '/build/sway-git/src/glibc/csu/init.c': No such file or directory
cp: cannot stat '/build/glibc/src/glibc/csu/../sysdeps/x86_64/crti.S': No such file or directory
cp: cannot stat '/build/glibc/src/glibc/csu/../sysdeps/x86_64/crtn.S': No such file or directory
cp: cannot stat '/build/glibc/src/glibc/csu/../sysdeps/x86_64/start.S': No such file or directory
cp: cannot stat '/build/sway-git/src/glibc/csu/../sysdeps/x86/abi-note.c': No such file or directory
cp: cannot stat '/build/sway-git/src/glibc/csu/init.c': No such file or directory
cp: cannot stat '/build/glibc/src/glibc/csu/../sysdeps/x86_64/crti.S': No such file or directory
cp: cannot stat '/build/glibc/src/glibc/csu/../sysdeps/x86_64/crtn.S': No such file or directory
  -> Compressing man and info pages...

The build continue and works, but maybe something needs updating in the PKGBUILD?

Rucikir commented on 2022-06-19 16:14 (UTC)

@tukusejssirs I couldn't reproduce your problem, but the maintainers and devs of wlroots and sway have always been keen on keeping them in sync, so there's no need to lock versions, and with -git packages it would be too difficult to keep up. You should always rebuild sway-git if wlroots-git is updated, I don't think it's possible to do it automatically. You can always use stable releases.

tukusejssirs commented on 2022-06-18 15:57 (UTC)

I get several error: 'struct wlr_xdg_popup' has no member named 'current' errors when I try to install sway-git@r6934.251a648e-1 over sway-git@r6926.42b61ab2-1 (during the build step), UNLESS I first upgrade wlroots-git@0.16.0.r5512.f91f38b7-1 to wlroots-git@0.16.0.r5590.d89285f78-1, which (for some reason unknown to me) was not upgraded with yay -Syu.

Would it be possible to lock wlroots dependency to specific version known to work with a particular Sway version?

Rucikir commented on 2022-06-02 12:00 (UTC)

@emersion thanks for the notice, done with this in the install script.

setcap cap_sys_nice+eip usr/bin/sway

emersion commented on 2022-06-01 10:12 (UTC)

Can we grant CAP_SYS_NICE to the Sway binary? See https://github.com/swaywm/sway/issues/7019

Billli11 commented on 2022-03-15 10:51 (UTC)

Pattern matching should be working now that the patch has been merged.

PR #6892

kogasa commented on 2022-03-15 01:46 (UTC) (edited on 2022-03-17 19:10 (UTC) by kogasa)

Edit: This issue is resolved by by PR #6892

Pattern matching is broken since pcre was replaced with pcre2, see: https://github.com/swaywm/sway/issues/6886

If you use any scripts that use pattern matching, e.g. swaymsg [title="test"] it will not work. To fix it temporarily, stay on the 0467693 commit or patch in the .diff fix someone made in the above link.

AtticFinder65536 commented on 2022-03-12 14:27 (UTC) (edited on 2022-03-12 14:29 (UTC) by AtticFinder65536)

As per https://github.com/swaywm/sway/commit/f614f35e7354980bf4f0a66ca99be9b5f3a7ac90, the pcre dependency should now be replaced with with pcre2.

arch042 commented on 2021-12-31 14:01 (UTC) (edited on 2021-12-31 14:02 (UTC) by arch042)

After this message:

==> Validating source files with sha512sums...
    sway ... Skipped
    50-systemd-user.conf ... Passed

Nothing happens, just freeze.

togusa commented on 2021-11-26 12:38 (UTC)

@Rucikir Ok I figured out what was wrong, as I started to suspect there was something wrong in my env, and that turned out to be the case: I had in the past compiled wlroots directly from the git repo, and that left all sorts of breadcrumbs around. After cleaning up I'm finally able to build sway-git correctly.

Thanks for your help, and sorry for the confusion.

togusa commented on 2021-11-26 12:08 (UTC)

@Rucikir Yes I see now that is not an indication of an issue, here's the full build log:

:: Downloading PKGBUILDs...
 PKGBUILDs up to date
 nothing new to review
==> Making package: sway-git r6607.28cadf55-1 (Fri 26 Nov 2021 12:58:58 PM CET)
==> Retrieving sources...
  -> Updating sway git repo...
Fetching origin
  -> Found 50-systemd-user.conf
==> Validating source files with sha512sums...
    sway ... Skipped
    50-systemd-user.conf ... Passed
==> Making package: sway-git r6607.28cadf55-1 (Fri 26 Nov 2021 12:59:01 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating sway git repo...
Fetching origin
  -> Found 50-systemd-user.conf
==> Validating source files with sha512sums...
    sway ... Skipped
    50-systemd-user.conf ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of sway git repo...
Cloning into 'sway'...
done.
==> Starting pkgver()...
==> Updated version: sway-git r6824.0cd8efe0-1
==> Sources are ready.
sway-git-r6607.28cadf55-1: parsing pkg list...
==> Making package: sway-git r6824.0cd8efe0-1 (Fri 26 Nov 2021 12:59:08 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
+ exec meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_lto=true -D b_pie=true -Dsd-bus-provider=libsystemd -Dwerror=false sway build
The Meson build system
Version: 0.60.2
Source dir: /home/user/.cache/paru/clone/sway-git/src/sway
Build dir: /home/user/.cache/paru/clone/sway-git/src/build
Build type: native build
Project name: sway
Project version: 1.6
C compiler for the host machine: cc (gcc 11.1.0 "cc (GCC) 11.1.0")
C linker for the host machine: cc ld.bfd 2.36.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Run-time dependency json-c found: YES 0.15
Run-time dependency libpcre found: YES 8.45
Run-time dependency wayland-server found: YES 1.19.0
Run-time dependency wayland-client found: YES 1.19.0
Run-time dependency wayland-cursor found: YES 1.19.0
Run-time dependency wayland-egl found: YES 18.1.0
Run-time dependency wayland-protocols found: YES 1.24
Run-time dependency xkbcommon found: YES 1.3.1
Run-time dependency cairo found: YES 1.17.4
Run-time dependency pango found: YES 1.48.10
Run-time dependency pangocairo found: YES 1.48.10
Run-time dependency gdk-pixbuf-2.0 found: YES 2.42.6
Run-time dependency pixman-1 found: YES 0.40.0
Run-time dependency glesv2 found: YES 3.2
Run-time dependency libevdev found: YES 1.12.0
Run-time dependency libinput found: YES 1.19.2
Run-time dependency xcb found: YES 1.14
Run-time dependency libdrm found: YES 2.4.108
Run-time dependency libudev found: YES 249
Found CMake: /usr/bin/cmake (3.22.0)
Run-time dependency bash-completion found: NO (tried pkgconfig and cmake)
Run-time dependency fish found: YES 3.3.1
Library m found: YES
Library rt found: YES
Neither a subproject directory nor a wlroots.wrap file was found.
Subproject  wlroots is buildable: NO (disabling)
Run-time dependency wlroots found: YES 0.15.0
Run-time dependency libsystemd found: YES 249
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Build-time dependency scdoc found: YES 1.11.2
Program /usr/bin/scdoc found: YES (/usr/bin/scdoc)
Program git found: YES (/usr/bin/git)
Compiler for C supports arguments -fmacro-prefix-map=/prefix/to/hide=: YES 
Configuring config.h using configuration
Build-time dependency wayland-scanner found: YES 1.19.0
Program /usr/bin/wayland-scanner found: YES (/usr/bin/wayland-scanner)
Configuring config using configuration
Build targets in project: 38

sway 1.6

    xwayland       : YES
    gdk-pixbuf     : YES
    tray           : YES
    man-pages      : YES

  Subprojects
    wlroots        : NO Neither a subproject directory nor a wlroots.wrap file was found.

  User defined options
    auto_features  : enabled
    buildtype      : plain
    libexecdir     : lib
    prefix         : /usr
    sbindir        : bin
    werror         : false
    wrap_mode      : nodownload
    b_lto          : true
    b_pie          : true
    sd-bus-provider: libsystemd

Found ninja-1.10.2 at /usr/bin/ninja
ninja: Entering directory `/home/user/.cache/paru/clone/sway-git/src/build'
[70/279] Compiling C object sway/sway.p/desktop_render.c.o
FAILED: sway/sway.p/desktop_render.c.o 
cc -Isway/sway.p -Isway -I../sway/sway -Iinclude -I../sway/include -Iprotocols -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/json-c -I/usr/include/libevdev-1.0 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -flto=auto -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -DWLR_USE_UNSTABLE -Wno-unused-parameter -Wno-unused-result -Wno-missing-braces -Wundef -Wvla '-DSYSCONFDIR="//etc"' '-DSWAY_VERSION="1.6-0cd8efe0 (" __DATE__ ", branch '"'"'master'"'"')"' -fmacro-prefix-map=../sway/= -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -fvar-tracking-assignments -fdebug-prefix-map=/home/user/.cache/paru/clone/sway-git/src=/usr/src/debug -fPIE -pthread -MD -MQ sway/sway.p/desktop_render.c.o -MF sway/sway.p/desktop_render.c.o.d -o sway/sway.p/desktop_render.c.o -c ../sway/sway/desktop/render.c
../sway/sway/desktop/render.c: In function ‘scissor_output’:
../sway/sway/desktop/render.c:55:51: error: ‘struct wlr_output’ has no member named ‘renderer’
   55 |         struct wlr_renderer *renderer = wlr_output->renderer;
      |                                                   ^~
../sway/sway/desktop/render.c: In function ‘render_texture’:
../sway/sway/desktop/render.c:103:51: error: ‘struct wlr_output’ has no member named ‘renderer’
  103 |         struct wlr_renderer *renderer = wlr_output->renderer;
      |                                                   ^~
../sway/sway/desktop/render.c: In function ‘render_rect’:
../sway/sway/desktop/render.c:220:51: error: ‘struct wlr_output’ has no member named ‘renderer’
  220 |         struct wlr_renderer *renderer = wlr_output->renderer;
      |                                                   ^~
[76/279] Compiling C object sway/sway.p/desktop_output.c.o
../sway/sway/desktop/output.c: In function ‘handle_new_output’:
../sway/sway/desktop/output.c:857:14: warning: implicit declaration of function ‘wlr_output_init_render’; did you mean ‘wlr_output_attach_render’? [-Wimplicit-function-declaration]
  857 |         if (!wlr_output_init_render(wlr_output, server->allocator,
      |              ^~~~~~~~~~~~~~~~~~~~~~
      |              wlr_output_attach_render
[83/279] Compiling C object sway/sway.p/input_cursor.c.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'sway-git-r6607.28cadf55-1': 
error: packages failed to build: sway-git-r6607.28cadf55-1

wlroots-git seems to be installed, version as follows:

❯ pacman -Q wlroots
wlroots-git 0.14.0.r391.g585a908a-1

Now that I look at it, why's the installer reporting:

Run-time dependency wlroots found: YES 0.15.0

While wlroots-git sits at 0.14.0? Either something's wrong on my side, or I fail to understand how this works, which is totally possible :)

One last thing to note, I've also deleted the cloned repos from the cache, just to be sure to start from a clean state after the recent move to gitlab...

Rucikir commented on 2021-11-26 11:49 (UTC)

@togusa The error you're reporting is normal, since wlroots is found in the system via the wlroots-git package, and neither as a subproject nor a wlroots.wrap. If sway is failing to build, there must be another error you can report. Can you also confirm that you've installed wlroots-git first?

togusa commented on 2021-11-26 11:43 (UTC)

I'm trying to install both wlroots-git and sway-git and it's failing building sway:

  Subprojects
    wlroots        : NO Neither a subproject directory nor a wlroots.wrap file was found.

Wlroots seems to build fine though.

rpi2 commented on 2021-11-05 10:27 (UTC)

since WLR_RENDERER=vulkan merged.

but still fail WLR_RENDERER=vulkan [wlr] [render/vulkan/vulkan.c:206] Could not create instance: ERROR_LAYER_NOT_PRESENT [wlr] [render/vulkan/renderer.c:15251] creating vulkan instance for renderer failed [wlr] [backend/drm/renderer.c:351] Failed to create renderer [wlr] [backend/backend.c:2301] Failed to create DRM backend

PopeRigby commented on 2021-07-18 17:58 (UTC)

@deatheye did you get this error?

==> ERROR: Could not resolve all dependencies.
error: failed to build 'sway-git-r6607.28cadf55-1':
error: packages failed to buid: swaybg-git-r95.a8f109a-1  wlroots-git-0.14.0.r28.ga38baec1-1  sway-git-r6607.28cadf55-1

Rucikir commented on 2021-03-30 09:45 (UTC)

@deathye Could you be more explicit? What isn't working?

lockeanarchist commented on 2021-03-29 21:59 (UTC)

not working after the last arch update

lmartinez-mirror commented on 2021-03-05 02:02 (UTC)

sway depends on xcb-util-renderutil and will not run without it. Please add it to depends()

Rucikir commented on 2021-01-26 10:33 (UTC) (edited on 2021-01-26 10:35 (UTC) by Rucikir)

@auruser123

Subprojects wlroots: NO Neither a subproject directory nor a wlroots.wrap file was found.

Which means sway-git will be built without wlroots, and nothing would work AFAICT.

Meson has multiple ways of detecting dependencies:

  • as a subproject;
  • using Meson integrated package manager (wlroots.wrap);
  • from the system (standard include, pkgconfig, CMake, …).

The complete log is:

Neither a subproject directory nor a wlroots.wrap file was found.
Subproject  wlroots is buildable: NO (disabling)
Run-time dependency wlroots found: YES 0.12.0

So you can see that wlroots is found when building sway. If not, sway would simply not build as it's a required dependency. That Dockerfile should reproduce your workflow, and it's working fine. If you can reproduce your problem, please send me a Dockerfile so that I can understand it if I'm missing something.

FROM archlinux/archlinux:base-devel
RUN pacman -Sy --noconfirm && pacman -S --noconfirm --needed git
RUN useradd -m user && passwd -d user && printf 'user ALL=(ALL) ALL\n' | tee -a /etc/sudoers
USER user
WORKDIR /home/user
RUN git clone https://aur.archlinux.org/wlroots-git.git
RUN cd wlroots-git && makepkg -si --noconfirm --needed
RUN git clone https://aur.archlinux.org/swaybg-git.git
RUN cd swaybg-git && makepkg -si --noconfirm --needed
RUN git clone https://aur.archlinux.org/sway-git.git
RUN cd sway-git && makepkg -si --noconfirm --needed

auruser123 commented on 2021-01-25 09:37 (UTC)

I just reproduced this again. I installed wlroots-git, and then installed sway-git. While building sway-git, I get:

Subprojects wlroots: NO Neither a subproject directory nor a wlroots.wrap file was found.

Which means sway-git will be built without wlroots, and nothing would work AFAICT.

Rucikir commented on 2021-01-20 17:04 (UTC)

@auruser123 are you sure? Could you provide the exact logs?
I cannot reproduce and build wlroots-git-0.12.0.r267.g306cf11d-1 and sway-git-r6581.62ec528c-1 just fine in a clean environment.

auruser123 commented on 2021-01-18 10:49 (UTC)

with the last wlroots-git , sway-git is built without wlroots, and fails to start citing a missing wayland interface

Rucikir commented on 2021-01-13 19:14 (UTC)

@cvelteren Are you sure? No problem building wlroots-git-0.12.0.r224.gdc61f471-1 and sway-git r6575.97adba05-1 for me. Maybe the problem has been fixed upstream.

cvelteren commented on 2021-01-13 17:00 (UTC)

This package fails to build

`` [277/277] Linking target sway/sway FAILED: sway/sway cc -o sway/sway sway/sway.p/commands.c.o sway/sway.p/config.c.o sway/sway.p/criteria.c.o sway/sway.p/decoration.c.o sway/sway.p/ipc-json.c.o sway/sway.p/ipc-server.c.o sway/sway.p/main.c.o sway/sway.p/server.c.o sway/sway.p/swaynag.c.o sway/sway.p/xdg_decoration.c.o sway/sway.p/desktop_desktop.c.o sway/sway.p/desktop_idle_inhibit_v1.c.o sway/sway.p/desktop_layer_shell.c.o sway/sway.p/desktop_output.c.o sway/sway.p/desktop_render.c.o sway/sway.p/desktop_surface.c.o sway/sway.p/desktop_transaction.c.o sway/sway.p/desktop_xdg_shell.c.o sway/sway.p/input_input-manager.c.o sway/sway.p/input_cursor.c.o sway/sway.p/input_keyboard.c.o sway/sway.p/input_libinput.c.o sway/sway.p/input_seat.c.o sway/sway.p/input_seatop_default.c.o sway/sway.p/input_seatop_down.c.o sway/sway.p/input_seatop_move_floating.c.o sway/sway.p/input_seatop_move_tiling.c.o sway/sway.p/input_seatop_resize_floating.c.o sway/sway.p/input_seatop_resize_tiling.c.o sway/sway.p/input_switch.c.o sway/sway.p/input_tablet.c.o sway/sway.p/input_text_input.c.o sway/sway.p/config_bar.c.o sway/sway.p/config_output.c.o sway/sway.p/config_seat.c.o sway/sway.p/config_input.c.o sway/sway.p/commands_assign.c.o sway/sway.p/commands_bar.c.o sway/sway.p/commands_bind.c.o sway/sway.p/commands_border.c.o sway/sway.p/commands_client.c.o sway/sway.p/commands_create_output.c.o sway/sway.p/commands_default_border.c.o sway/sway.p/commands_default_floating_border.c.o sway/sway.p/commands_default_orientation.c.o sway/sway.p/commands_exit.c.o sway/sway.p/commands_exec.c.o sway/sway.p/commands_exec_always.c.o sway/sway.p/commands_floating.c.o sway/sway.p/commands_floating_minmax_size.c.o sway/sway.p/commands_floating_modifier.c.o sway/sway.p/commands_focus.c.o sway/sway.p/commands_focus_follows_mouse.c.o sway/sway.p/commands_focus_on_window_activation.c.o sway/sway.p/commands_focus_wrapping.c.o sway/sway.p/commands_font.c.o sway/sway.p/commands_for_window.c.o sway/sway.p/commands_force_display_urgency_hint.c.o sway/sway.p/commands_force_focus_wrapping.c.o sway/sway.p/commands_fullscreen.c.o sway/sway.p/commands_gaps.c.o sway/sway.p/commands_hide_edge_borders.c.o sway/sway.p/commands_inhibit_idle.c.o sway/sway.p/commands_kill.c.o sway/sway.p/commands_mark.c.o sway/sway.p/commands_max_render_time.c.o sway/sway.p/commands_opacity.c.o sway/sway.p/commands_include.c.o sway/sway.p/commands_input.c.o sway/sway.p/commands_layout.c.o sway/sway.p/commands_mode.c.o sway/sway.p/commands_mouse_warping.c.o sway/sway.p/commands_move.c.o sway/sway.p/commands_new_float.c.o sway/sway.p/commands_new_window.c.o sway/sway.p/commands_no_focus.c.o sway/sway.p/commands_nop.c.o sway/sway.p/commands_output.c.o sway/sway.p/commands_popup_during_fullscreen.c.o sway/sway.p/commands_reload.c.o sway/sway.p/commands_rename.c.o sway/sway.p/commands_resize.c.o sway/sway.p/commands_scratchpad.c.o sway/sway.p/commands_seat.c.o sway/sway.p/commands_seat_attach.c.o sway/sway.p/commands_seat_cursor.c.o sway/sway.p/commands_seat_fallback.c.o sway/sway.p/commands_seat_hide_cursor.c.o sway/sway.p/commands_seat_idle.c.o sway/sway.p/commands_seat_keyboard_grouping.c.o sway/sway.p/commands_seat_pointer_constraint.c.o sway/sway.p/commands_seat_shortcuts_inhibitor.c.o sway/sway.p/commands_seat_xcursor_theme.c.o sway/sway.p/commands_set.c.o sway/sway.p/commands_show_marks.c.o sway/sway.p/commands_shortcuts_inhibitor.c.o sway/sway.p/commands_smart_borders.c.o sway/sway.p/commands_smart_gaps.c.o sway/sway.p/commands_split.c.o sway/sway.p/commands_sticky.c.o sway/sway.p/commands_swaybg_command.c.o sway/sway.p/commands_swaynag_command.c.o sway/sway.p/commands_swap.c.o sway/sway.p/commands_tiling_drag.c.o sway/sway.p/commands_tiling_drag_threshold.c.o sway/sway.p/commands_title_align.c.o sway/sway.p/commands_title_format.c.o sway/sway.p/commands_titlebar_border_thickness.c.o sway/sway.p/commands_titlebar_padding.c.o sway/sway.p/commands_unmark.c.o sway/sway.p/commands_urgent.c.o sway/sway.p/commands_workspace.c.o sway/sway.p/commands_workspace_layout.c.o sway/sway.p/commands_ws_auto_back_and_forth.c.o sway/sway.p/commands_xwayland.c.o sway/sway.p/commands_bar_bind.c.o sway/sway.p/commands_bar_binding_mode_indicator.c.o sway/sway.p/commands_bar_colors.c.o sway/sway.p/commands_bar_font.c.o sway/sway.p/commands_bar_gaps.c.o sway/sway.p/commands_bar_height.c.o sway/sway.p/commands_bar_hidden_state.c.o sway/sway.p/commands_bar_icon_theme.c.o sway/sway.p/commands_bar_id.c.o sway/sway.p/commands_bar_mode.c.o sway/sway.p/commands_bar_modifier.c.o sway/sway.p/commands_bar_output.c.o sway/sway.p/commands_bar_pango_markup.c.o sway/sway.p/commands_bar_position.c.o sway/sway.p/commands_bar_separator_symbol.c.o sway/sway.p/commands_bar_status_command.c.o sway/sway.p/commands_bar_status_edge_padding.c.o sway/sway.p/commands_bar_status_padding.c.o sway/sway.p/commands_bar_strip_workspace_numbers.c.o sway/sway.p/commands_bar_strip_workspace_name.c.o sway/sway.p/commands_bar_swaybar_command.c.o sway/sway.p/commands_bar_tray_bind.c.o sway/sway.p/commands_bar_tray_output.c.o sway/sway.p/commands_bar_tray_padding.c.o sway/sway.p/commands_bar_workspace_buttons.c.o sway/sway.p/commands_bar_workspace_min_width.c.o sway/sway.p/commands_bar_wrap_scroll.c.o sway/sway.p/commands_input_accel_profile.c.o sway/sway.p/commands_input_calibration_matrix.c.o sway/sway.p/commands_input_click_method.c.o sway/sway.p/commands_input_drag.c.o sway/sway.p/commands_input_drag_lock.c.o sway/sway.p/commands_input_dwt.c.o sway/sway.p/commands_input_events.c.o sway/sway.p/commands_input_left_handed.c.o sway/sway.p/commands_input_map_from_region.c.o sway/sway.p/commands_input_map_to_output.c.o sway/sway.p/commands_input_map_to_region.c.o sway/sway.p/commands_input_middle_emulation.c.o sway/sway.p/commands_input_natural_scroll.c.o sway/sway.p/commands_input_pointer_accel.c.o sway/sway.p/commands_input_repeat_delay.c.o sway/sway.p/commands_input_repeat_rate.c.o sway/sway.p/commands_input_scroll_button.c.o sway/sway.p/commands_input_scroll_factor.c.o sway/sway.p/commands_input_scroll_method.c.o sway/sway.p/commands_input_tap.c.o sway/sway.p/commands_input_tap_button_map.c.o sway/sway.p/commands_input_tool_mode.c.o sway/sway.p/commands_input_xkb_capslock.c.o sway/sway.p/commands_input_xkb_file.c.o sway/sway.p/commands_input_xkb_layout.c.o sway/sway.p/commands_input_xkb_model.c.o sway/sway.p/commands_input_xkb_numlock.c.o sway/sway.p/commands_input_xkb_options.c.o sway/sway.p/commands_input_xkb_rules.c.o sway/sway.p/commands_input_xkb_switch_layout.c.o sway/sway.p/commands_input_xkb_variant.c.o sway/sway.p/commands_output_adaptive_sync.c.o sway/sway.p/commands_output_background.c.o sway/sway.p/commands_output_disable.c.o sway/sway.p/commands_output_dpms.c.o sway/sway.p/commands_output_enable.c.o sway/sway.p/commands_output_max_render_time.c.o sway/sway.p/commands_output_mode.c.o sway/sway.p/commands_output_position.c.o sway/sway.p/commands_output_scale.c.o sway/sway.p/commands_output_scale_filter.c.o sway/sway.p/commands_output_subpixel.c.o sway/sway.p/commands_output_toggle.c.o sway/sway.p/commands_output_transform.c.o sway/sway.p/tree_arrange.c.o sway/sway.p/tree_container.c.o sway/sway.p/tree_node.c.o sway/sway.p/tree_root.c.o sway/sway.p/tree_view.c.o sway/sway.p/tree_workspace.c.o sway/sway.p/tree_output.c.o sway/sway.p/desktop_xwayland.c.o -Wl,--as-needed -Wl,--no-undefined -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -g -fvar-tracking-assignments -fdebug-prefix-map=/home/casper/.cache/yay/sway-git/src=/usr/src/debug -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,--start-group common/libsway-common.a protocols/libserver_protos.a /usr/lib/libcairo.so /usr/lib/libjson-c.so /usr/lib/libevdev.so /usr/lib/libinput.so -lm /usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so /usr/lib/libharfbuzz.so /usr/lib/libpcre.so /usr/lib/libGLESv2.so /usr/lib/libpixman-1.so /usr/lib/libwayland-server.so /usr/lib/libwlroots.so /usr/lib/libxkbcommon.so /usr/lib/libxcb.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so -Wl,--end-group /bin/ld: sway/sway.p/desktop_xdg_shell.c.o: in functionfor_each_popup_surface': /usr/src/debug/build/../sway/sway/desktop/xdg_shell.c:219: undefined reference to `wlr_xdg_surface_for_each_popup_surface' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ==> ERROR: A failure occurred in build().

Aborting..```

Rucikir commented on 2020-10-24 00:34 (UTC) (edited on 2020-10-24 00:44 (UTC) by Rucikir)

Your reasoning feels right; if deleting the build cache breaks the "debug, not stripped" package, then we shouldn't force that option by default. Having a second debug package is safer. Thanks for raising that issue.

Also, @SirCmpwn wrote that contrib scripts should not be included, neither here, nor in the stable package. I’m not here to start a meaningless war, my personal opinion is that the scripts come in handy, and I’m going to follow the stable package on that point.

EDIT: oh, I see there are AUR packages for these scripts. Well… in that case, dropping contrib seems fair.

yrlf commented on 2020-10-23 21:50 (UTC)

Hello @Rucikir,

thanks for taking over maintainership :)

Since the previous maintainer never addressed my question I asked 10 months ago, I'm gonna add it here again. I'd really like to know your take on this:

-- begin old question from 2020-01-09 17:33 --

Is there any reason why the PKGBUILD overrides the strip option to off?

Having both debug and strip activated produces a separate debug package that will be installed to /usr/src/debug and /usr/lib/debug.

Having debug and !strip activated produces a single packages with binaries containing debug info, which reference the build folder however.

Many AUR helpers clean the build directory after packaging, which removes the sources, making the debug infos often less useful in case of a crash.

If the strip option is not overridden to off, users are able to choose on their own, whether they want a separate debug package or not.

-- end old question from 2020-01-09 17:33 --

I ended up creating a second AUR package, sway-no-strip-override-git for my needs, but in the long run, it would be very helpful if the official sway-git package would not break my workflow.

If you do decide to keep the override, I will most likely continue maintaining sway-no-strip-override-git, but change it to be only a small patch on top of this one.

Rucikir commented on 2020-10-23 21:06 (UTC) (edited on 2020-10-23 21:06 (UTC) by Rucikir)

Hello everyone,

I’ve picked up the maintainership of this package. My intend is to follow what is done for the community/sway package, plus the few quirks we need for developing and debugging sway. I also maintain sway-hidpi-git.

@VannTenn: done.

@j.r: I think that's a bad idea for sway, for instance the 1.5 tag is not present in the master branch. As of now, the latest tag in master is 1.5-rc2. That isn't useful. The version could be extracted from the meson file, but I think that the commit id is sufficient.

VannTen commented on 2020-10-19 10:17 (UTC) (edited on 2020-10-19 11:41 (UTC) by VannTen)

Hi,

Would you consider adding in that package the script used in the official sway package (this one https://github.com/archlinux/svntogit-community/blob/packages/sway/trunk/50-systemd-user.conf) for importing env variable into the systemd environment (particularly the user instance) ?

This would allow dbus-activated services (in my example, that was mako) to start without trouble.

Thank you very much.

j.r commented on 2020-08-06 06:30 (UTC)

As the upstream repo has tags you should consider to use printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" for the pkgver function.

Fandekasp commented on 2020-07-16 00:34 (UTC)

After reading this article and the PKGBUILD, I understand that the pkgver() function returns the proper hash (line 4 "pkgver=r5942.3f77591b" is confusing and could be removed).

Reading up on yay documentation, I understand that it wasn't updating the hash cache db (yay -Y --gendb).

Sorry for the disturb.

commented on 2020-07-16 00:06 (UTC)

That's not how -git packages work.

Fandekasp commented on 2020-07-16 00:05 (UTC)

@SirCmpwn hi, thanks for the quick reply. I realized that yay never prompts for updates on sway-git because you're not pinning the git commit hash. In other aur repos, a hook exists to auto-update the PKGBUILD file with the latest commit hash on master, which helps understanding that an update is available. Could you consider adding this feature? Or am I missing some other way that people use to update this kind of PKGBUILD tracking master branches?

commented on 2020-07-15 23:59 (UTC)

I don't know what you expect. This package tracks master.

rpodgorny commented on 2020-05-18 17:10 (UTC)

@SirCmpwn: i'd also like to hear the reasoning behind the "strip" and "debug" override. ;-) (i also think it should go) thanks!

yrlf commented on 2020-05-18 16:57 (UTC)

Since I have not received an answer to my question, I have created an alternative AUR package that does not override the strip option: sway-no-strip-override-git

yrlf commented on 2020-05-07 15:09 (UTC)

@SirCmpwn:

about rucci's question: If the scripts in the contrib dir shouldn't be in the sway package, then there should probably be a sway-contrib package containing them.

yrlf commented on 2020-05-02 14:24 (UTC)

I'm once again asking my question from January (see below), since I haven't received an answer.

Is there any reason why the PKGBUILD overrides the strip option to off? Having both strip and debug activated is a legitimate use case (it produces a separate package, see below), and the way the PKGBUILD is configured means I have to edit the PKGBUILD before every update.

I have raised this concern for wlroots-git as well, and the maintainer of the PKGBUILD for that package has already accepted the request to remove the override for strip.

If you don't want to change the package that is fine, but I will most likely create a derived AUR package that doesn't have the override in it.

commented on 2020-03-31 21:56 (UTC)

No, and the official package shouldn't have them either.

mssdvd commented on 2020-03-31 21:55 (UTC)

Can you include the scripts inside the contrib dir like the official package does?

L0ric0 commented on 2020-03-12 10:29 (UTC)

when updating sway-git with a aurhelper i often run into the problem that i am unable to build it if at the same time someting changed in wlroots-git. As that is the case shouldn't wlroots-git also be in the makedeps?

Gamma commented on 2020-01-23 23:09 (UTC) (edited on 2020-02-07 15:01 (UTC) by Gamma)

Now that alacritty is the default $term, should it be in optdepends instead of rxvt-unicode? (Ditto for the sway package proper)

E: Thanks!

yrlf commented on 2020-01-09 17:33 (UTC)

Is there any reason why the PKGBUILD overrides the strip option to off?

Having both debug and strip activated produces a separate debug package that will be installed to /usr/src/debug and /usr/lib/debug.

Having debug and !strip activated produces a single packages with binaries containing debug info, which reference the build folder however.

Many AUR helpers clean the build directory after packaging, which removes the sources, making the debug infos often less useful in case of a crash.

If the strip option is not overridden to off, users are able to choose on their own, whether they want a separate debug package or not.

commented on 2019-10-21 01:11 (UTC)

gcc is in base-devel, which is required to build any AUR package.

nagisa commented on 2019-10-21 01:11 (UTC)

gcc is not listed as a make dependency.

Gamma commented on 2019-04-26 15:21 (UTC) (edited on 2019-04-26 20:37 (UTC) by Gamma)

~~Must add swaybg (swaybg-git) as a required dependency.~~ e: thanks

Someone has already set up an AUR package, you may want to ask for maintainership of it.

aspieln3r commented on 2019-03-08 15:41 (UTC)

my issues were fixed after using wlroots directly from github.

commented on 2019-03-05 15:57 (UTC)

That's generally a benign error. Can you share the full build log? Also, are you running on an Arch installation which does not have systemd?

themba commented on 2019-03-05 14:39 (UTC)

Recently this fails:

Dependency libelogind found: NO (tried pkgconfig and cmake)

rsansores commented on 2019-03-02 19:16 (UTC)

@jpoppe Thanks for the scdoc workaround.

jpoppe commented on 2019-03-02 10:14 (UTC) (edited on 2019-03-02 10:16 (UTC) by jpoppe)

It is indeed a problem with: scdoc 1.9.1

Quick and dirty fix:

git clone https://git.sr.ht/~sircmpwn/scdoc && cd scdoc && make && sudo mv /usr/bin/scdoc /usr/bin/scdoc.dist && sudo cp scdoc /usr/bin/scdoc

install sway with your aur manager

sudo mv /usr/bin/scdoc.dist /usr/bin/scdoc

kurolox commented on 2019-03-02 10:06 (UTC)

Yeah, the bug it's reported here. It seems like it's a specific issue on scdoc 1.9.1, which is the version in the repository at the time I'm writting this.

https://github.com/swaywm/sway/issues/3792

So either downgrade to 1.9.0, wait for 1.9.2 to hit the repositories, or go with my workaround.

hawara commented on 2019-03-02 09:33 (UTC) (edited on 2019-03-02 09:36 (UTC) by hawara)

@SirCmpwn: Still fails:

Dependency scdoc found: YES 1.9.1
Program scdoc found: YES (/usr/bin/scdoc)

ninja: Entering directory `/home/hawara/.cache/yay/sway-git/src/build'
[4/273] Generating sway-ipc.7 with a custom command.
FAILED: sway-ipc.7 
/usr/bin/sh -c '/usr/bin/scdoc < ../sway/sway/sway-ipc.7.scd > sway-ipc.7'
Error at 268:3: Tables cannot be indented
[9/273] Generating swaynag.5 with a custom command.
ninja: build stopped: subcommand failed.

scdoc 1.9.1 is the latest available in Arch repos.

commented on 2019-03-01 19:44 (UTC)

Update scdoc.

kurolox commented on 2019-03-01 07:03 (UTC) (edited on 2019-03-01 08:50 (UTC) by kurolox)

I'm having issues trying to update this. scdoc is installed. Removing the sway-ipc.7 from the ninja.build and finishing the build manually works as a workaround.

==> Starting build()...
ninja: Entering directory `/home/kuro/.cache/yay/sway-git/src/build'
[5/273] Generating sway-ipc.7 with a custom command.
FAILED: sway-ipc.7 
/usr/bin/sh -c '/usr/bin/scdoc < ../sway/sway/sway-ipc.7.scd > sway-ipc.7'
Error at 268:3: Tables cannot be indented
[10/273] Generating swaynag.5 with a custom command.
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
Error making: sway-git

timsn commented on 2019-02-28 19:05 (UTC) (edited on 2019-02-28 19:07 (UTC) by timsn)

I had to install the scdoc package manually to make the build process of the latest version run.

==> Starting build()...
ninja: Entering directory `/home/me/.cache/yay/sway-git/src/build'
[7/273] Generating sway-ipc.7 with a custom command.
FAILED: sway-ipc.7 
/usr/bin/sh -c '/usr/bin/scdoc < ../sway/sway/sway-ipc.7.scd > sway-ipc.7'
Error at 217:1: Expected either '|' or ':'
[16/273] Generating 'protocols/8998617@@client_protos@sta/xdg-shell-client-protocol.h'.
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

commented on 2019-02-22 22:56 (UTC)

Please stop flagging this package, people. It's not outdated.

dgolub commented on 2019-02-15 12:41 (UTC)

Hello,

Trying to update sway-git on Manjaro system. An incompatibility btw sway-git and scdoc 1.6.1 found:

ninja: Entering directory `/home/dgolub/.cache/pacaur/sway-git/src/build'
[3/266] Generating sway-output.5 with a custom command.
FAILED: sway-output.5 
/usr/bin/sh -c '/usr/bin/scdoc < ../sway/sway/sway-output.5.scd > sway-output.5'
Error at 13:56: Cannot nest inline formatting (began with * at 13:41)
[5/266] Generating sway.5 with a custom command.
FAILED: sway.5 
/usr/bin/sh -c '/usr/bin/scdoc < ../sway/sway/sway.5.scd > sway.5'
Error at 61:9: Cannot nest inline formatting (began with * at 61:1)
[6/266] Generating sway-bar.5 with a custom command.
FAILED: sway-bar.5 
/usr/bin/sh -c '/usr/bin/scdoc < ../sway/sway/sway-bar.5.scd > sway-bar.5'
Error at 13:8: Cannot nest inline formatting (began with * at 13:1)
[7/266] Generating sway-input.5 with a custom command.
FAILED: sway-input.5 
/usr/bin/sh -c '/usr/bin/scdoc < ../sway/sway/sway-input.5.scd > sway-input.5'
Error at 10:70: Cannot nest inline formatting (began with * at 10:55)
[12/266] Generating 'protocols/8998617@@client_protos@sta/xdg-output-unstable-v1-client-protocol.h'.
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

I must change source code for man pages: '_' in the word is a highlight marker in scdoc, so I need to escape it with '\'. Does 'scdoc' version 1.8 from Arch packages work? If so, I'll ask Manjaro maintainers to update a package.

D.

commented on 2019-02-05 12:35 (UTC)

-D enable-tray=true is not required to enable tray support; it is automatically enabled when all of the necessary dependencies are detected. This package already includes tray support.

freb commented on 2019-02-05 06:33 (UTC)

It would be nice to have tray support added. Is it possible to add the -D enable-tray=true option to meson?

genie137 commented on 2019-02-01 17:37 (UTC)

Hello all, im unable to build this package as it throws an error and stops working:

I do have wlroots-git and scdoc installed.

==> Starting build()... ninja: Entering directory `/home/joris/.cache/yay/sway-git/src/build' [4/272] Generating sway.5 with a custom command. FAILED: sway.5 /usr/bin/sh -c '/usr/bin/scdoc < ../sway/sway/sway.5.scd > sway.5' Error at 61:9: Cannot nest inline formatting (began with * at 61:1) [5/272] Generating sway-bar.5 with a custom command. FAILED: sway-bar.5 /usr/bin/sh -c '/usr/bin/scdoc < ../sway/sway/sway-bar.5.scd > sway-bar.5' Error at 13:8: Cannot nest inline formatting (began with * at 13:1) [6/272] Generating sway-input.5 with a custom command. FAILED: sway-input.5 /usr/bin/sh -c '/usr/bin/scdoc < ../sway/sway/sway-input.5.scd > sway-input.5' Error at 10:70: Cannot nest inline formatting (began with * at 10:55) [7/272] Generating sway-output.5 with a custom command. FAILED: sway-output.5 /usr/bin/sh -c '/usr/bin/scdoc < ../sway/sway/sway-output.5.scd > sway-output.5' Error at 13:56: Cannot nest inline formatting (began with * at 13:41) [17/272] Generating 'protocols/8998617@@client_protos@sta/idle-client-protocol.h'. ninja: build stopped: subcommand failed. ==> ERROR: A failure occurred in build(). Aborting... Error making: sway-git

ashkan commented on 2019-01-28 06:15 (UTC)

Should specify requirement of scdoc >= 1.8

brandon.arnold commented on 2019-01-26 19:42 (UTC)

Update wlroots-git

addendum: since wlroots-git is a Git install package, it isn't versioned like other ones, so you just rebuild it (or if you use yay, yay -u wlroots-git).

commented on 2019-01-17 00:45 (UTC)

Update wlroots-git.

nuc commented on 2019-01-17 00:39 (UTC)

Dependency libelogind found: NO (tried pkgconfig and cmake)

(...)

==> Beginne build()... ninja: Entering directory `/home/nuc/.cache/yay/sway-git/src/build' [58/263] Compiling C object 'sway/345c74e@@sway@exe/server.c.o'. FAILED: sway/345c74e@@sway@exe/server.c.o cc -Isway/345c74e@@sway@exe -Isway -I../sway/sway -Iinclude -I../sway/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi-3.2.1/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/json-c -I/usr/include/libevdev-1.0/ -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -g -DWL_HIDE_DEPRECATED -DWLR_USE_UNSTABLE -Wno-unused-parameter -Wno-unused-result -Wundef -Wvla '-DSYSCONFDIR="//etc"' '-DSWAY_VERSION="1.0-beta.2-204-g70637b40 (" DATE ", branch '"'"'master'"'"')"' -pthread -MD -MQ 'sway/345c74e@@sway@exe/server.c.o' -MF 'sway/345c74e@@sway@exe/server.c.o.d' -o 'sway/345c74e@@sway@exe/server.c.o' -c ../sway/sway/server.c ../sway/sway/server.c:10:10: schwerwiegender Fehler: wlr/types/wlr_data_control_v1.h: Datei oder Verzeichnis nicht gefunden #include <wlr/types/wlr_data_control_v1.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Kompilierung beendet. [75/263] Compiling C object 'sway/345c74e@@sway@exe/config.c.o'. ninja: build stopped: subcommand failed. ==> FEHLER: Ein Fehler geschah in build(). Breche ab... Error making: sway-git

eggze commented on 2019-01-03 06:56 (UTC)

Also jq should be probably added as a dependency (optional?) because of https://github.com/swaywm/sway/commit/1450a9e9f9bcca16fc8162699f1000bb4563ffd5

electrickite commented on 2019-01-02 03:04 (UTC)

With the recently merged tray support, can this PKGBUILD add the "enable-tray" option? It is disabled by default.

commented on 2018-12-15 14:17 (UTC)

It was moved to community.

freed00m commented on 2018-12-15 14:16 (UTC)

MISSING DEP !

==> Missing dependencies: -> xcb-util-errors

Don't know who removed that thing from AUR :(

commented on 2018-12-09 19:08 (UTC)

So install scdoc.

Striykur commented on 2018-12-09 19:08 (UTC)

I get an error that scdoc could not be found.

commented on 2018-11-13 16:57 (UTC)

As far as I know, that's not possible.

kllp commented on 2018-11-13 16:54 (UTC)

Hi, each time I want to update sway-git I track down compile errors just to find out I have to build wlroots-git again. Is there a way to build wlroots-git automatically in advance?

commented on 2018-11-02 15:30 (UTC)

No thanks, this deliberately tracks wlroots-git.

ainola commented on 2018-11-02 15:29 (UTC)

Hi, SirCmpwn! Since wlroots has a 0.1 and I've made a package in the AUR, would you kindly update the depends() to use wlroots instead of wlroots-git?

Thanks!

commented on 2018-10-25 14:27 (UTC)

This package tracks master, it already has the 1.0-beta.1 changes.

TimorLee commented on 2018-10-21 10:35 (UTC)

@crandel

Rebuild wlroots-git and sway-git should build fine (worked for me).

Crandel commented on 2018-10-14 09:22 (UTC) (edited on 2018-10-14 09:23 (UTC) by Crandel)

Build fails with error:

../sway/sway/desktop/xwayland.c: In function ‘handle_xwayland_surface’:

../sway/sway/desktop/xwayland.c:635:33: error: ‘struct <anonymous>’ has no member named ‘set_decorations’</anonymous>

wl_signal_add(&xsurface->events.set_decorations, ^ [226/269] Compiling C object 'sway/sway@@sway@exe/tree_view.c.o'.

ninja: build stopped: subcommand failed.

duffydack commented on 2018-10-10 23:12 (UTC)

Just a small suggestion, seeing journal entries swaylock[1214]: pam_tally(swaylock:auth): Error opening /var/log/faillog for update swaylock[1214]: pam_tally(swaylock:auth): Error opening /var/log/faillog for read

apparently setting setsuid (chmod +s) on /usr/bin/swaylock 'fixes' it.

sharethewisdom commented on 2018-10-06 09:15 (UTC) (edited on 2018-10-07 19:05 (UTC) by sharethewisdom)

the build fails for me: ../sway/include/sway/server.h:10:10: fatal error: wlr/types/wlr_layer_shell_v1.h: No such file or directory

more info:

wlroots-git r3040.8898f319-1

Arch Linux kernel 4.18.10-arch1-1-ARCH

pacman -Ql wlroots-git|grep layer_shell wlroots-git /usr/include/wlr/types/wlr_layer_shell.h

meson-log.txt: https://pastebin.com/Zs58hYpP

output of ninja: https://pastebin.com/ykTCprhJ

InfernoZeus commented on 2018-09-27 09:14 (UTC)

Isn't this package the same as the already existing one? https://aur.archlinux.org/packages/sway-wlroots-git/

eggze commented on 2018-09-19 03:44 (UTC)

This PR https://github.com/swaywm/sway/pull/2640 was merged and now the swaybar-fix.patch cannot be applied.

benutzer193 commented on 2018-09-09 23:43 (UTC) (edited on 2018-09-10 00:07 (UTC) by benutzer193)

setcap is not required anymore judging by this commit: https://github.com/swaywm/sway/commit/1c7a6a49b696fc0890016ea70ebb4b8984758b10

habarnam commented on 2018-09-05 19:37 (UTC)

@HaoZeke tray is not ready in this version afaik, and there's no more swaygrab.

HaoZeke commented on 2018-09-04 05:15 (UTC)

Is there a reason this is built without tray icon support and swaygrab?

sum01 commented on 2018-08-27 22:57 (UTC)

It seems the issue (#1785) is still open upstream, so I assume the patch is still needed. That being said, it should probably be merged upstream if it's the actual fix, not kept to the AUR.

Sesese9 commented on 2018-08-27 02:00 (UTC)

Is the patch still needed? Considering the constant code churn in sway, I was wondering whether the issue this patch was made for has been fixed.

habarnam commented on 2018-08-14 08:32 (UTC) (edited on 2018-08-14 08:32 (UTC) by habarnam)

I made a small improvement to the postinstall script, as it fails to add the capabilities when updating the package:

$ cat sway-wlroots-git.install 
post_install() {
    post_upgrade
}
post_upgrade() {
    setcap 'cap_sys_admin,cap_sys_ptrace,cap_sys_tty_config=eip' usr/bin/sway
}

I've added the cap_sys_admin as when trying to run sway as systemd user session it complains about it missing.

baqtor commented on 2018-07-31 03:39 (UTC) (edited on 2018-08-03 19:28 (UTC) by baqtor)

Getting the following error while compiling: https://pastebin.com/FmPpdbat. EDIT: Fixed it updating wlroots-git.

NilsBrause commented on 2018-07-22 17:58 (UTC)

stepovic: libelogind is not necessary to run sway. Adding as an optional dependency. The error you are getting might come from an out-of-date wlroots-git.

stepovic commented on 2018-07-21 11:32 (UTC)

Got "Dependency libelogind found: NO" while building the package and an error about a missing "wlr/types/wlr_linux_dmabuf_v1.h" (in /sway/sway/server.c:14:10) while updating. The initial installation worked though.

nedludd commented on 2018-06-13 22:06 (UTC) (edited on 2018-06-13 22:13 (UTC) by nedludd)

I keep getting this:

/Stuff/trizen/sway-git/src/sway/sway/commands.c: In function ‘add_color’:
/Stuff/trizen/sway-git/src/sway/sway/commands.c:274:2: 
error: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
  strncpy(buffer, color, len);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Stuff/trizen/sway-git/src/sway/sway/commands.c:257:12: note: length computed here
  int len = strlen(color);
            ^~~~~~~~~~~~~

NilsBrause commented on 2018-06-10 15:34 (UTC) (edited on 2018-07-22 18:03 (UTC) by NilsBrause)

Do not tag as out-of-date or orphan request when the displayed version is out of date. Git PKGBUILDs automatically build the latest version.

benutzer193 commented on 2018-06-10 11:57 (UTC)

new version tagged: https://github.com/swaywm/sway/releases/tag/1.0-alpha.3

benutzer193 commented on 2018-05-23 16:31 (UTC) (edited on 2018-05-23 16:35 (UTC) by benutzer193)

In version 1.0-alpha.2 the asciidoc dependency has been replaced with scdoc.

source: https://github.com/swaywm/sway/releases/tag/1.0-alpha.2

commented on 2018-05-19 13:56 (UTC)

The master branch is not stable, this is deliberately pinned on the 0.15 branch. Because master is basically a full rewrite it would be confusing to users on -git to suddenly lose a bunch of features after an upgrade.

emersion commented on 2018-05-18 14:21 (UTC)

Can you please add debug options to this package? This is an unreleased package, and we're tired of getting bug reports without readable stack traces.

References: https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces#PKGBUILD https://github.com/swaywm/sway/issues/2000

xyproto commented on 2018-05-08 08:26 (UTC)

Could this package please use the latest development commit for sway, since the official sway package is already using 0.15? Or is the idea that 0.15 is the development branch?

Hello71 commented on 2018-04-24 15:49 (UTC)

I think it would be good to use -Dwerror=false.

IVaN4B commented on 2018-04-21 21:23 (UTC)

I think you should remove wlc-git dependency as wlroots branch was merged into master.

shidima commented on 2018-02-14 13:13 (UTC)

I also needed to change _pkgname=sway to _pkgname=sway-git to get it to build

freijon commented on 2018-01-16 22:17 (UTC) (edited on 2018-01-16 22:18 (UTC) by freijon)

you can use this modification for the time being:

-source=("${pkgname%-}::git+https://github.com/SirCmpwn/sway.git") +source=("${pkgname%-}::git+https://github.com/SirCmpwn/sway.git#branch=0.15")

craftyguy commented on 2018-01-10 21:34 (UTC)

This fails to build now because the version of json-c in Arch is 'too new':

-- Requested 'json-c = 0.12.1' but version of json-c is 0.13

mazzolino commented on 2017-09-02 00:20 (UTC)

Sway >= 0.14 should support tray icons (e.g. for nm-applet). Anyone have this working? They don't appear for me. This is also described here: https://www.reddit.com/r/archlinux/comments/6ipaa0/swaybar_tray_icon_area_missing/

commented on 2016-04-07 14:17 (UTC)

PKGBUILDs don't contain any information about when breaking changes happen in -git packages. You always have to update -git dependencies of a -git package first.

MrKMG commented on 2016-04-07 14:10 (UTC)

Weird, I had to reinstall wlc-git even though it appeared to up to date.

commented on 2016-04-07 13:53 (UTC)

Always update wlc-git before updating sway-git.

MrKMG commented on 2016-04-07 13:49 (UTC)

I am unable to build: Full Build Log: http://hastebin.com/amagimolom

commented on 2016-03-27 14:01 (UTC)

Good call, fixed.

BrainDamage commented on 2016-03-27 13:57 (UTC)

This PKGBUILD should have conflicts=('sway') so you can seamlessy switch and you'll be prompted to remove the alternative package

anatolik commented on 2016-03-24 15:42 (UTC)

@sekret I do not understand why Arch ARM project will not put following text somewhere in their documentation: "On ARM and other unsupported platforms users expect to use 'makepkg -A' flag".

commented on 2016-02-18 12:56 (UTC)

Sure, done.

ksj commented on 2016-02-18 12:53 (UTC)

Can you please change -DCMAKE_BUILD_TYPE to Upstream and also add options=('debug' '!strip') ? wlc-git package is already changed this way. Thanks.

commented on 2016-02-01 21:26 (UTC)

No, I don't put architectures in my PKGBUILDs that aren't supported by Arch Linux upstream.

sekret commented on 2016-02-01 21:26 (UTC)

Could you please add 'armv7h' to the arch line? I just compiled on my raspberry pi 2 and it worked fine :)

commented on 2016-01-11 02:07 (UTC)

What are you trying to do? You can't run anything without xwayland if it runs under x (like urxvt, dmenu, firefox...)

Fern commented on 2016-01-11 02:01 (UTC) (edited on 2016-01-11 02:02 (UTC) by Fern)

@SirCmpwn I did as you sugested and now sway does not accept any input, so it might actually need it for something? Not a big issue either way, thank you for your help.

commented on 2016-01-10 06:57 (UTC)

If you don't want it, edit the PKGBUILD yourself. It's to avoid the inevitable deluge of false bug reports I'll receive if it's not included.

Fern commented on 2016-01-10 00:14 (UTC)

Could xwayland be made an optional dep then @SirCmpwn ? Because I don't use and X apps and if as you say it is only need for running X apps I'd rather not have it.

commented on 2015-12-27 16:08 (UTC)

@crondog - done, thanks.

crondog commented on 2015-12-27 05:50 (UTC)

Please add -DCMAKE_INSTALL_SYSCONFDIR=/etc so we don't end up with /usr/etc/{pam.d,sway}

commented on 2015-12-07 17:07 (UTC)

Regarding the out of date flag on this package - not sure what's up with that. It's up to date.

1ace commented on 2015-08-20 19:59 (UTC)

Thanks for the clarification :)

commented on 2015-08-19 22:59 (UTC)

xwayland is necessary for using any xorg applications from within sway. It has no bearing on running sway on top of an existing X11 session.

1ace commented on 2015-08-19 22:58 (UTC)

Does it really depends on xwayland, or is that just to dev from within X?

commented on 2015-08-16 16:03 (UTC)

Fixed upstream.

karol_007 commented on 2015-08-16 15:33 (UTC)

This config produces errors and sway refused to run, I had to comment out two lines: font and floating_modifier.

commented on 2015-08-16 14:52 (UTC)

Nevermind, I went ahead and added that upstream myself.

commented on 2015-08-16 14:40 (UTC)

I don't think that's really the responsibility of the AUR package. Can you open a Github issue upstream to generate a config if none exists?

karol_007 commented on 2015-08-16 14:39 (UTC)

-arch=("i386" "x86_64") +arch=("i686" "x86_64") Do you want to ship a basic config for folks who don't run i3? $ cp ~/.config/i3/config ~/.config/sway/ cp: cannot stat ‘/home/karol/.config/i3/config’: No such file or directory