Sway's source code can't be built.

Bug #2027890 reported by Ahmad Raniri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sway (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hello, This morning I tried to build sway package on Ubuntu Mantic Minotaur (Development Branch). I used custom option and modify the rules file (to disable xwayland, shell completion). When I built the package using "sudo dpkg-buildpackage -us -uc -d", the build process is run and failed. When I trace it, it seems one the files on source code is broken. The exact file is "ipc-json.c". I have the build log [here](https://gitlab.com/lidgl/kumpulan_log/-/raw/main/build.log) and we can see at line [420](https://gitlab.com/lidgl/kumpulan_log/-/blob/main/build.log#L420). Thanks, let me know if I made a mistake. Good Sunday !

Ahmad Raniri.

Revision history for this message
Ahmad Raniri (lidgl4991) wrote :
tags: added: ftbfs mantic
Revision history for this message
Ahmad Raniri (lidgl4991) wrote :

Hello, I think I found the solution. I just need to edit "sway/ipc-json.c" and add these line

```
  #pragma GCC diagnostic push
  #pragma GCC diagnostic ignored "-Wswitch"
```

before this line :

```
                switch (libinput_device_config_accel_get_profile(device)) {
```

and sway is able to be built. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.