Package Details: sway-git 1.9.r7273.a4e8533-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 (git development version)
Upstream URL: https://github.com/swaywm/sway
Keywords: compositor development git i3 manager sway tiling wayland window wlroots wm
Licenses: MIT
Conflicts: sway
Provides: sway
Submitter: None
Maintainer: GreyXor
Last Packager: GreyXor
Votes: 146
Popularity: 1.73
First Submitted: 2015-08-16 14:05 (UTC)
Last Updated: 2024-01-24 20:08 (UTC)

Required by (45)

Sources (3)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 18 Next › Last »

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.

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

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.

rogueai 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.

rogueai 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?

rogueai 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