31 Commits

Author SHA1 Message Date
25850e9720 Merge pull request 'squeekboard: set correct rust target' (#17) from gyorgysarvari/meta-wayland:scarthgap into scarthgap
Reviewed-on: https://codeberg.org/flk/meta-wayland/pulls/17
2025-06-26 15:35:55 +02:00
97b69bf921 squeekboard: set correct rust target
$HOST_SYS Rust target is not recognized by Rust provided by oe-core and
meta-lts-mixins layers, the correct one should be $RUST_HOST_SYS.

Fixes the following compilation error:

  error: Error loading target specification: Could not find specification
         for target "aarch64-poky-linux". Run `rustc --print target-list`
         for a list of built-in targets

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
2025-06-26 13:20:27 +02:00
cacc737e24 python3: move python link to its own python3-as-python package
the FILES is overriden in the python anonymous function for dynamic packages
(python3-core)

causing the following error:

```log
ERROR: python3-3.12.8-r0 do_package: QA Issue: python3: Files/directories were installed but not shipped in any package:
  /usr/bin/python
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
python3: 1 installed and not shipped files. [installed-vs-shipped]
ERROR: python3-3.12.8-r0 do_package: Fatal QA errors were found, failing task.
```

it is safer to make a new package split and add a RRECOMMENDS to python-core
on it

fixes:
https://codeberg.org/flk/meta-wayland/issues/14

Signed-off-by: Ludovic Jozeau <ludovic.jozeau@scle.fr>
2025-04-24 05:11:22 +02:00
43e8c701b7 python3: move python link to python3-core package
fixes:
https://codeberg.org/flk/meta-wayland/issues/13
2025-04-22 14:50:19 +02:00
6ff79b3423 waybar: create ${D}${systemd_user_unitdir}
This should fix:
https://codeberg.org/flk/meta-wayland/issues/8
2025-02-15 15:06:46 +01:00
34994e171f libdbusmenu: update SRC_URI 2024-12-10 18:58:25 +01:00
104508c0bb recipes-extended/libdbusmenu: add libxslt-native dependencies
This dependency will provide xsltproc tool needed at compile time

Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-07-11 18:04:00 +02:00
776605767f nwg-shell-config: update 2024-05-07 23:36:20 +02:00
bc0c5fba4d nwg-panel: update 2024-05-07 23:36:20 +02:00
d97f446d4c nwg-menu: update 2024-05-07 23:36:20 +02:00
ed68fa152c nwg-drawer: fix go build 2024-05-07 23:36:20 +02:00
e9653b3a0d nwg-dock-hyprland: update 2024-05-07 23:36:20 +02:00
49e7dfe426 nwg-dock: update 2024-05-07 23:36:20 +02:00
6ac82432c3 nwg-bar: update 2024-05-07 23:36:20 +02:00
ab3af140f8 azote: update 2024-05-07 23:36:20 +02:00
34b4457a73 nwg-look: dont link shared
If using module mode we cant link shared

This fixes:
| link: duplicated definition of symbol github.com/gotk3/gotk3/glib.(*Object).Unref-fm.(*Object).Unref.func1, from github.com/gotk3/gotk3/gtk and github.com/gotk3/gotk3/gdk
2024-05-05 19:43:47 +02:00
e96711817f Add recipe for sdbus-c++-1
We still need it. At least hyprland has not yet been ported to sdbus-c++-2
2024-05-02 20:00:21 +02:00
280159e855 playerctl: add missing glib-2.0 dependency 2024-04-30 09:16:36 +02:00
0bba89ca28 hypridle: update 2024-04-19 18:36:21 +02:00
a60828deac yambar: update 2024-04-17 19:21:57 +02:00
748b283f86 fuzzel: update 2024-04-17 19:21:41 +02:00
90e4fcea4b fnott: update 2024-04-17 19:21:17 +02:00
b2e51c2511 foot: update 2024-04-17 19:09:23 +02:00
66b21e8d2d wlroots-0.17: update 2024-04-14 19:00:57 +02:00
d0ed62eafc gamescope: roll back to stable 2024-04-14 18:59:32 +02:00
9c2470a7f9 foot: update 2024-04-11 06:37:40 +02:00
0265face9c fcft: update 2024-04-11 06:37:34 +02:00
c0f1053fd7 hyprlock: update 2024-04-10 16:16:56 +02:00
282a7fa099 hyprcursor: update 2024-04-10 15:53:43 +02:00
0911232acc hyprcursors: update 2024-04-07 20:04:20 +02:00
5b4b4b9a3d hyprland: add recipe for 0.38
update to 0.38.1
2024-04-07 20:04:13 +02:00
75 changed files with 442 additions and 742 deletions

View File

@ -8,7 +8,7 @@ BBFILE_COLLECTIONS += "wayland"
BBFILE_PATTERN_wayland = "^${LAYERDIR}/" BBFILE_PATTERN_wayland = "^${LAYERDIR}/"
BBFILE_PRIORITY_wayland = "5" BBFILE_PRIORITY_wayland = "5"
LAYERSERIES_COMPAT_wayland = "scarthgap styhead" LAYERSERIES_COMPAT_wayland = "scarthgap"
LAYERDEPENDS_wayland = " \ LAYERDEPENDS_wayland = " \
core \ core \

View File

@ -3,10 +3,7 @@ HOMEPAGE = "https://github.com/hyprwm/xdg-desktop-portal-hyprland"
LICENSE = "MIT" LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e0f1d50df739a9fb8eae12a8f37ce352" LIC_FILES_CHKSUM = "file://LICENSE;md5=e0f1d50df739a9fb8eae12a8f37ce352"
SRC_URI:append = " \ SRC_URI:append = " file://0001-meson.build-Dont-build-hyprland-share-picker-with-me.patch"
file://0001-meson.build-Dont-build-hyprland-share-picker-with-me.patch \
file://0001-ScreencopyShared.hpp-drop-define-SPA_VERSION_POD_BUI.patch \
"
require xdg-desktop-portal-hyprland.inc require xdg-desktop-portal-hyprland.inc

View File

@ -1,3 +1,3 @@
SRC_URI = "gitsm://github.com/hyprwm/xdg-desktop-portal-hyprland.git;protocol=https;nobranch=1" SRC_URI = "gitsm://github.com/hyprwm/xdg-desktop-portal-hyprland.git;protocol=https;nobranch=1"
SRCREV = "24be4a26f0706e456fca1b61b8c79f7486a9e86d" SRCREV = "15fd76cb6ebb0e3c3b2c3a3daf452e7b781c6e8a"
PV = "1.3.2" PV = "1.3.1"

View File

@ -1,33 +0,0 @@
From f181899034beb4311c8e63056ce73d00df6981c8 Mon Sep 17 00:00:00 2001
From: Markus Volk <f_l_k@t-online.de>
Date: Sun, 30 Jun 2024 15:10:05 +0200
Subject: [PATCH] ScreencopyShared.hpp: drop #define
SPA_VERSION_POD_BUILDER_CALLBACKS
This is defined in pipewire
Fixes build with pipewire 1.2.0
| ../git/src/portals/../core/../portals/../shared/ScreencopyShared.hpp:9:43: error: expected primary-expression before '.' token
| 9 | #define SPA_VERSION_POD_BUILDER_CALLBACKS .version = 0
Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
src/shared/ScreencopyShared.hpp | 4 +---
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/src/shared/ScreencopyShared.hpp b/src/shared/ScreencopyShared.hpp
index d626da6..e3b0a94 100644
--- a/src/shared/ScreencopyShared.hpp
+++ b/src/shared/ScreencopyShared.hpp
@@ -5,8 +5,6 @@
extern "C" {
#include <spa/pod/builder.h>
-#undef SPA_VERSION_POD_BUILDER_CALLBACKS
-#define SPA_VERSION_POD_BUILDER_CALLBACKS .version = 0
#include <spa/buffer/meta.h>
#include <spa/utils/result.h>
#include <spa/param/props.h>
--
2.45.1

View File

@ -2,5 +2,7 @@ do_install:append:class-target() {
ln -sf ${bindir}/python3 ${D}${bindir}/python ln -sf ${bindir}/python3 ${D}${bindir}/python
} }
FILES:${PN}:class-target += "${bindir}/python" PACKAGES:prepend:class-target = "${PN}-as-python "
FILES:${PN}-as-python = "${bindir}/python"
RRECOMMENDS:${PN}-core:append:class-target = " ${PN}-as-python"

View File

@ -4,7 +4,7 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=fb994481c55623ef338885280e676f3b" LIC_FILES_CHKSUM = "file://LICENSE;md5=fb994481c55623ef338885280e676f3b"
SRC_URI = "git://github.com/nothings/stb.git;protocol=https;branch=master" SRC_URI = "git://github.com/nothings/stb.git;protocol=https;branch=master"
SRCREV = "013ac3beddff3dbffafd5177e7972067cd2b5083" SRCREV = "f4a71b13373436a2866c5d68f8f80ac6f0bc1ffe"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
do_install() { do_install() {

View File

@ -13,6 +13,6 @@ RDEPENDS:${PN} = "python-i3ipc"
inherit setuptools3 inherit setuptools3
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PV = "1.9.3" PV = "1.8"
SRCREV = "b6a8b9af52892a04d75118f79d2aad4edc3df963" SRCREV = "31207c0ca44ed846763dc6df55316ee7a7d047a8"

View File

@ -6,7 +6,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
REQUIRED_DISTRO_FEATURES = "gobject-introspection-data" REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
DEPENDS = " \ DEPENDS = " \
gmobile \
gsound \ gsound \
libgudev \ libgudev \
glib-2.0 \ glib-2.0 \
@ -20,8 +19,8 @@ inherit meson pkgconfig features_check gobject-introspection vala
SRC_URI = "gitsm://source.puri.sm/Librem5/feedbackd.git;protocol=https;nobranch=1" SRC_URI = "gitsm://source.puri.sm/Librem5/feedbackd.git;protocol=https;nobranch=1"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PV = "0.3.0" PV = "0.2.1"
SRCREV = "bf6928e47d6fc940986c06428e87a2eb95249ae0" SRCREV = "1104cef50acb0b18a0d545e6a09773e3feb42e5b"
EXTRA_OEMESON += "-Dtests=false" EXTRA_OEMESON += "-Dtests=false"

View File

@ -4,15 +4,15 @@ HOMEPAGE = "https://fontawesome.com/"
SECTION = "base/fonts" SECTION = "base/fonts"
LICENSE = "CC-BY-4.0 & OFL-1.1" LICENSE = "CC-BY-4.0 & OFL-1.1"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=9b9d97c72a232b7715f2aed4bf4a4d45" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4186e0f8172f263065437f80932efbe1"
SRC_URI = " \ SRC_URI = " \
git://github.com/FortAwesome/Font-Awesome.git;protocol=https;branch=6.x \ git://github.com/FortAwesome/Font-Awesome.git;protocol=https;branch=6.x \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PV = "6.5.2" PV = "6.4.0"
SRCREV = "c0f460dca7f7688761120415ff3c9cf7f73119be" SRCREV = "0698449d50f2b95517562295a59d414afc68b369"
do_install () { do_install () {

View File

@ -0,0 +1,53 @@
From a9c5d3add6550e27636de3ef86d6eb8bad41874d Mon Sep 17 00:00:00 2001
From: Markus Volk <f_l_k@t-online.de>
Date: Tue, 15 Aug 2023 07:36:31 +0200
Subject: [PATCH] meson.build: add a pkgconfig .pc file
- fix version
- build shared lib and install
- install headers
Upstream-Status: Inappropriate
Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
meson.build | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index e9f6c62..7e94496 100644
--- a/meson.build
+++ b/meson.build
@@ -99,3 +99,7 @@ summary({
bool_yn: true,
section: 'Build',
)
+
+install_headers('src/gmobile.h' , 'src/gm-cutout.h', 'src/gm-device-info.h', 'src/gm-device-tree.h', 'src/gm-display-panel.h', 'src/gm-error.h', 'src/gm-main.h', 'src/gm-timeout.h', 'src/gm-rect.h')
+pkg = import('pkgconfig')
+pkg.generate(gm_lib)
diff --git a/src/meson.build b/src/meson.build
index ee98a39..8d8fd7d 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -37,12 +37,15 @@ gm_c_args = [
'-DG_LOG_DOMAIN="gmobile"',
]
-gm_lib = static_library(
+gm_lib = shared_library(
'gmobile',
gm_sources,
include_directories: root_inc,
c_args: gm_c_args,
- dependencies: gm_deps)
+ dependencies: gm_deps,
+ version: meson.project_version(),
+ install: true,
+)
gmobile_dep = declare_dependency(
include_directories: [root_inc, include_directories('.')],
--
2.41.0

View File

@ -1,15 +1,18 @@
SUMMARY = "gmobile carries some helpers for GNOME on mobile devices" SUMMARY = "gmobile carries some helpers for GNOME on mobile devices"
LICENSE = "GPL-3.0-only & LGPL-2.1-only" LICENSE = "LGPL-2.1-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" LIC_FILES_CHKSUM = "file://src/gm-cutout.c;beginline=1;endline=5;md5=fdd1e77039fe571c0c9aa6280a7e7903"
inherit meson pkgconfig gobject-introspection inherit meson pkgconfig
DEPENDS = "glib-2.0 json-glib" DEPENDS = "glib-2.0 json-glib"
SRC_URI = "git://gitlab.gnome.org/World/Phosh/gmobile.git;protocol=https;branch=main" SRC_URI = " \
git://gitlab.gnome.org/World/Phosh/gmobile.git;protocol=https;branch=main \
file://0001-meson.build-create-a-pkgconfig-.pc-file.patch \
"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
SRCREV = "3f3a8c70f6106e00388075c77982876857b321d8" SRCREV = "d5ed9ed758bf0deeb050d861fb08518295a42767"
PV = "0.2.0" PV = "0.0.4"
do_install:append() { do_install:append() {
install -m 0644 ${B}/gm-config.h ${D}${includedir} install -m 0644 ${B}/gm-config.h ${D}${includedir}

View File

@ -3,14 +3,13 @@ HOMEPAGE = "https://github.com/AyatanaIndicators/libdbusmenu"
LICENSE = "LGPL-3.0-only" LICENSE = "LGPL-3.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=6a6a8e020838b23406c81b19c1d46df6" LIC_FILES_CHKSUM = "file://COPYING;md5=6a6a8e020838b23406c81b19c1d46df6"
SRC_URI = "git://github.com/AyatanaIndicators/libdbusmenu.git;protocol=https;branch=master" SRC_URI = "git://github.com/JetBrains/libdbusmenu.git;protocol=https;branch=master"
DEPENDS = "glib-2.0 json-glib dbus intltool-native" DEPENDS = "glib-2.0 json-glib dbus intltool-native libxslt-native"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PV = "16.0.4" PV = "16.0.4"
SRCREV = "4d03141aea4e2ad0f04ab73cf1d4f4bcc4a19f6c" SRCREV = "38d7a2ada4b2a08c535491d43a39825868f2b065"
EXTRA_OECONF += "--disable-dumper --disable-gtk --disable-gtk-doc" EXTRA_OECONF += "--disable-dumper --disable-gtk --disable-gtk-doc"
CFLAGS += "-Wno-error" CFLAGS += "-Wno-error"

View File

@ -3,13 +3,14 @@ HOMEPAGE = "https://github.com/AyatanaIndicators/libdbusmenu"
LICENSE = "LGPL-3.0-only" LICENSE = "LGPL-3.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=6a6a8e020838b23406c81b19c1d46df6" LIC_FILES_CHKSUM = "file://COPYING;md5=6a6a8e020838b23406c81b19c1d46df6"
DEPENDS = "glib-2.0 json-glib dbus gtk+ gtk+3 libdbusmenu-glib intltool-native" SRC_URI = "git://github.com/JetBrains/libdbusmenu.git;protocol=https;branch=master"
DEPENDS = "glib-2.0 json-glib dbus gtk+ gtk+3 libdbusmenu-glib intltool-native libxslt-native"
RDEPENDS:${PN} = "libdbusmenu-glib" RDEPENDS:${PN} = "libdbusmenu-glib"
SRC_URI = "git://github.com/AyatanaIndicators/libdbusmenu.git;protocol=https;branch=master"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PV = "16.0.4" PV = "16.0.4"
SRCREV = "4d03141aea4e2ad0f04ab73cf1d4f4bcc4a19f6c" SRCREV = "38d7a2ada4b2a08c535491d43a39825868f2b065"
EXTRA_OECONF += "--disable-dumper --disable-gtk-doc" EXTRA_OECONF += "--disable-dumper --disable-gtk-doc"

View File

@ -13,7 +13,5 @@ SRCREV = "92b031749c0fe84ef5cdf895067b84a829920e25"
inherit meson pkgconfig inherit meson pkgconfig
PACKAGECONFIG ?= ""
PACKAGECONFIG[test] = ",,edid-decode-native"
BBCLASSEXTEND = "native" BBCLASSEXTEND = "native"

View File

@ -3,12 +3,12 @@ HOMEPAGE = "https://gitlab.freedesktop.org/emersion/libliftoff"
LICENSE = "MIT" LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=706cd9899438a9385250ab6773c1fa53" LIC_FILES_CHKSUM = "file://LICENSE;md5=706cd9899438a9385250ab6773c1fa53"
SRC_URI = "git://gitlab.freedesktop.org/emersion/libliftoff.git;branch=master;protocol=https" SRC_URI = "git://gitlab.freedesktop.org/emersion/libliftoff.git;branch=v0.4;protocol=https"
DEPENDS = "libdrm" DEPENDS = "libdrm"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PV = "0.5.0" PV = "0.4.1"
SRCREV = "8b08dc1c14fd019cc90ddabe34ad16596b0691f4" SRCREV = "e045589f37835d66e3ffe8130a597bb4eb9ee08f"
inherit meson pkgconfig inherit meson pkgconfig

View File

@ -17,5 +17,3 @@ inherit autotools pkgconfig
EXTRA_OECONF += "--with-glib" EXTRA_OECONF += "--with-glib"
CFLAGS += "-Wno-incompatible-pointer-types"

View File

@ -0,0 +1,21 @@
SUMMARY = "Udis86 is a disassembler for the x86 and x86-64 class of instruction set architectures"
HOMEPAGE = "https://github.com/vmt/udis86"
SECTION = "libs"
LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ab079829a9e47b6d81dab3bf5da3f638"
SRC_URI = "git://github.com/canihavesomecoffee/udis86.git;protocol=https;branch=master"
S = "${WORKDIR}/git"
PV = "1.7.2"
SRCREV = "5336633af70f3917760a6d441ff02d93477b0c86"
inherit autotools-brokensep pkgconfig python3native
EXTRA_OECONF += "--enable-shared"
do_configure:prepend() {
cd ${S} && ./autogen.sh
}

View File

@ -1,27 +0,0 @@
From cda8f7af382f5c5f1e9a395eb03e2b819770d499 Mon Sep 17 00:00:00 2001
From: Yuji Saeki <44311901+YujiSaeki@users.noreply.github.com>
Date: Mon, 1 Jun 2020 22:32:16 +0200
Subject: [PATCH 1/1] fix wrong math
Signed-off-by: Christian Hesse <mail@eworm.de>
---
xcur2png.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/xcur2png.c b/xcur2png.c
index 8723a10..f7dd95d 100644
--- a/xcur2png.c
+++ b/xcur2png.c
@@ -586,9 +586,9 @@ int writePngFileFromXcur (const XcursorDim width, const XcursorDim height,
unsigned int red = (pixels[i]>>16) & 0xff;
unsigned int green = (pixels[i]>>8) & 0xff;
unsigned int blue = pixels[i] & 0xff;
- red = (div (red * 256, alpha).quot) & 0xff;
- green = (div (green * 256, alpha).quot) & 0xff;
- blue = (div (blue * 256, alpha).quot) & 0xff;
+ red = (div (red * 255, alpha).quot) & 0xff;
+ green = (div (green * 255, alpha).quot) & 0xff;
+ blue = (div (blue * 255, alpha).quot) & 0xff;
pix[i] = (alpha << 24) + (red << 16) + (green << 8) + blue;
}

View File

@ -5,16 +5,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
DEPENDS = "libxcursor libpng" DEPENDS = "libxcursor libpng"
SRC_URI = " \
git://github.com/eworm-de/xcur2png.git;protocol=https;branch=master \
file://0001-fix-wrong-math.patch \
"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
SRCREV = "f582d648f37a9ed2de0c8650947487af8a54d3ad" SRCREV = "f582d648f37a9ed2de0c8650947487af8a54d3ad"
PV = "0.7.1" PV = "0.7.1"
SRC_URI = "git://github.com/eworm-de/xcur2png.git;protocol=https;branch=master"
inherit autotools pkgconfig inherit autotools pkgconfig
CFLAGS += "-Wno-implicit-int"

View File

@ -1,12 +0,0 @@
diff -Nur aalib-1.4.0-orig/src/aalinuxkbd.c aalib-1.4.0/src/aalinuxkbd.c
--- aalib-1.4.0-orig/src/aalinuxkbd.c 2001-04-26 16:37:31.000000000 +0200
+++ aalib-1.4.0/src/aalinuxkbd.c 2005-07-01 22:57:59.000000000 +0200
@@ -200,7 +200,7 @@
static int rawmode_init(void)
{
if (!closed)
- return;
+ return 1;
mypid = getpid();
if (tty_fd == -1) {
tty_fd = fileno(stdin);

View File

@ -1,106 +0,0 @@
Add additional system header #include directives for more
function prototypes. This avoids implicit function declarations
and build failures with future compilers.
diff --git a/src/aafire.c b/src/aafire.c
index 4f36149aa84fba57..a59b5c5fa58e085b 100644
--- a/src/aafire.c
+++ b/src/aafire.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h>
#include "aalib.h"
#define XSIZ aa_imgwidth(context)
diff --git a/src/aainfo.c b/src/aainfo.c
index d3f6d50f34590638..f4250ee37ae46134 100644
--- a/src/aainfo.c
+++ b/src/aainfo.c
@@ -1,3 +1,4 @@
+#include <stdlib.h>
#include "aalib.h"
#include "aaint.h"
diff --git a/src/aakbdreg.c b/src/aakbdreg.c
index def65fe25646d75a..682616313c1b6ebd 100644
--- a/src/aakbdreg.c
+++ b/src/aakbdreg.c
@@ -1,4 +1,5 @@
#include <malloc.h>
+#include <string.h>
#include "config.h"
#include "aalib.h"
#include "aaint.h"
diff --git a/src/aalib.c b/src/aalib.c
index 11fecc8fe8ef6b59..1ef12c0dfa9026a4 100644
--- a/src/aalib.c
+++ b/src/aalib.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include "aalib.h"
diff --git a/src/aalinuxkbd.c b/src/aalinuxkbd.c
index c7f388abfe9e8c7f..ea988154518dfc8e 100644
--- a/src/aalinuxkbd.c
+++ b/src/aalinuxkbd.c
@@ -8,6 +8,7 @@
*/
#include "config.h"
+#include <stdlib.h>
#ifdef LINUX_DRIVER
#include <sys/time.h>
#include <sys/types.h>
diff --git a/src/aamoureg.c b/src/aamoureg.c
index 03808289eb59b928..6d807416ae0d3dc2 100644
--- a/src/aamoureg.c
+++ b/src/aamoureg.c
@@ -1,4 +1,5 @@
#include <malloc.h>
+#include <string.h>
#include "config.h"
#include "aalib.h"
#include "aaint.h"
diff --git a/src/aaregist.c b/src/aaregist.c
index 54abec0b9797533a..768b8ce29e286b00 100644
--- a/src/aaregist.c
+++ b/src/aaregist.c
@@ -1,4 +1,5 @@
#include <malloc.h>
+#include <string.h>
#include "config.h"
#include "aalib.h"
#include "aaint.h"
diff --git a/src/aasavefont.c b/src/aasavefont.c
index b00e1e6d7f181952..864ba225d5ef626c 100644
--- a/src/aasavefont.c
+++ b/src/aasavefont.c
@@ -1,3 +1,4 @@
+#include <stdlib.h>
#include "aalib.h"
int main(int argc, char **argv)
{
diff --git a/src/aatest.c b/src/aatest.c
index 9816f5d855134894..89933cfba6344270 100644
--- a/src/aatest.c
+++ b/src/aatest.c
@@ -1,3 +1,5 @@
+#include <stdlib.h>
+#include <string.h>
#include "aalib.h"
int main(int argc, char **argv)
{
diff --git a/src/aaxkbd.c b/src/aaxkbd.c
index f16afc63bb565512..44b91458b4bef3bc 100644
--- a/src/aaxkbd.c
+++ b/src/aaxkbd.c
@@ -7,6 +7,7 @@
#include <X11/Xlib.h>
#include <X11/keysymdef.h>
#include <X11/keysym.h>
+#include <X11/Xutil.h>
#include "aalib.h"
#include "aaint.h"
#include "aaxint.h"

View File

@ -1,34 +0,0 @@
This bug can be seen very clearly with e.g. mplayer -vo aa -monitoraspect 3
in which case a big part of the picture is missing or there is even completely
black output.
The reason for this is, when drawing only a part of the picture via aarender()
the first X coordinate is used for the loop count, but it is not applied to the
destination and source image index, thus instead of (re)drawing the middle part
of the image, it draws always the left part.
Actual Results:
only the left part of the image is draw (depending on the video, only the left
black bar might be draw, so you will see nothing at all - if so use a slightly
smaller value for -monitoraspect).
Expected Results:
All of the image should be drawn, and -monitoraspect should only squeeze the
image, not cause part of it to miss.
Gentoo-bug: http://bugs.gentoo.org/id=214142
Reported-by: Reimar Döffinger
Fixed-by: Reimar Döffinger
--- a/src/aarender.c.orig 2008-03-18 23:55:32.000000000 +0100
+++ b/src/aarender.c 2008-03-18 23:55:50.000000000 +0100
@@ -94,8 +94,8 @@
gamma = randomval / 2;
mval = (c->parameters[c->filltable[255]].p[4]);
for (y = y1; y < y2; y++) {
- pos = 2 * y * wi;
- pos1 = y * aa_scrwidth(c);
+ pos = 2 * (y * wi + x1);
+ pos1 = y * aa_scrwidth(c) + x1;
esum = 0;
for (x = x1; x < x2; x++) {
i1 = table[((((int) c->imagebuffer[pos])))];

View File

@ -1,14 +0,0 @@
--- a/src/aarender.c
+++ b/src/aarender.c
@@ -63,10 +63,10 @@ void aa_renderpalette(aa_context * c, __
errors[0] = calloc(1, (x2 + 5) * sizeof(int));
if (errors[0] == NULL)
dither = AA_ERRORDISTRIB;
- errors[0] += 3;
errors[1] = calloc(1, (x2 + 5) * sizeof(int));
if (errors[1] == NULL)
free(errors[0]), dither = AA_ERRORDISTRIB;
+ errors[0] += 3;
errors[1] += 3;
cur = 0;
}

View File

@ -1,23 +0,0 @@
diff -Naur a/src/aalinuxkbd.c b/src/aalinuxkbd.c
--- a/src/aalinuxkbd.c 2016-12-19 12:40:26.660039735 +0100
+++ b/src/aalinuxkbd.c 2016-12-19 12:42:21.692045971 +0100
@@ -114,6 +114,7 @@
static int vtswitch_allowed;
static char key_down[128];
+static size_t key_down_size = 128;
static int closed = 1;
static int mypid;
@@ -165,10 +166,7 @@
static void blank_key_down(void)
{
- int f;
-
- for (f = 0; f < NR_KEYS; f++)
- key_down[f] = 0;
+ memset(key_down, 0, key_down_size);
}

View File

@ -1,25 +0,0 @@
Index: aalib.m4
===================================================================
RCS file: /cvsroot/aa-project/aalib/aalib.m4,v
retrieving revision 1.2
diff -u -r1.2 aalib.m4
--- a/aalib.m4 3 May 2001 14:56:44 -0000 1.2
+++ b/aalib.m4 28 Mar 2017 08:36:42 -0000
@@ -40,14 +40,14 @@
if test "$AALIB_CONFIG" = "no" ; then
no_aalib=yes
else
- AALIB_CFLAGS=`$AALIB_CONFIG $aalibconf_args --cflags`
- AALIB_LIBS=`$AALIB_CONFIG $aalibconf_args --libs`
+ AALIB_CFLAGS=`$AALIB_CONFIG $aalib_args --cflags`
+ AALIB_LIBS=`$AALIB_CONFIG $aalib_args --libs`
aalib_major_version=`$AALIB_CONFIG $aalib_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
aalib_minor_version=`$AALIB_CONFIG $aalib_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- aalib_micro_version=`$AALIB_CONFIG $aalib_config_args --version | \
+ aalib_micro_version=`$AALIB_CONFIG $aalib_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
if test "x$enable_aalibtest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"

View File

@ -1,39 +0,0 @@
From 6125c3438e6cf30e1ebd70ca6ac3f1e04481c7a7 Mon Sep 17 00:00:00 2001
From: Gergely Nagy <algernon@madhouse-project.org>
Date: Sat, 30 Jun 2012 13:08:13 +0200
Subject: [PATCH] Typo fix: KEY_MOUDE => KEY_MOUSE
Patch by Sam Hocevar <sam@zoy.org> 17 Nov 2003
Origin: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=221243
---
src/aacurkbd.c | 2 +-
src/aastdin.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/aacurkbd.c b/src/aacurkbd.c
index 801897b..418b6a3 100644
--- a/src/aacurkbd.c
+++ b/src/aacurkbd.c
@@ -112,7 +112,7 @@ static int curses_getchar(aa_context * c1, int wait)
return (AA_UP);
case KEY_DOWN:
return (AA_DOWN);
-#ifdef KEY_MOUDE
+#ifdef KEY_MOUSE
case KEY_MOUSE:
#ifdef GPM_MOUSEDRIVER
if (!__curses_usegpm)
diff --git a/src/aastdin.c b/src/aastdin.c
index 696d87b..e2dabe4 100644
--- a/src/aastdin.c
+++ b/src/aastdin.c
@@ -88,7 +88,7 @@ static int stdin_getchar(aa_context * c1, int wait)
if (c > 0 && c < 127 && c != 127)
return (c);
switch (c) {
-#ifdef KEY_MOUDE
+#ifdef KEY_MOUSE
case KEY_MOUSE:
return AA_MOUSE
#endif

View File

@ -1,14 +0,0 @@
diff -up aalib-1.4.0/src/aacurses.c.opaque-ncurses-fix aalib-1.4.0/src/aacurses.c
--- aalib-1.4.0/src/aacurses.c.opaque-ncurses-fix 2024-02-10 06:32:32.008267145 -0500
+++ aalib-1.4.0/src/aacurses.c 2024-02-10 06:33:38.648245270 -0500
@@ -71,8 +71,8 @@ static void curses_getsize(aa_context *
{
if (__resized_curses)
curses_uninit(c), curses_init(&c->params, NULL,&c->driverparams, NULL), __resized_curses = 0;
- *width = stdscr->_maxx + 1;
- *height = stdscr->_maxy + 1;
+ *width = getmaxx(stdscr);
+ *height = getmaxy(stdscr);
#ifdef GPM_MOUSEDRIVER
gpm_mx = *width;
gpm_my = *height;

View File

@ -1,11 +0,0 @@
--- a/aalib.m4 2006-03-05 13:58:21.000000000 +0000
+++ b/aalib.m4 2006-03-05 13:58:32.000000000 +0000
@@ -9,7 +9,7 @@
dnl AM_PATH_AALIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for AALIB, and define AALIB_CFLAGS and AALIB_LIBS
dnl
-AC_DEFUN(AM_PATH_AALIB,
+AC_DEFUN([AM_PATH_AALIB],
[dnl
dnl Get the cflags and libraries from the aalib-config script
dnl

View File

@ -9,19 +9,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605"
S = "${WORKDIR}/aalib-1.4.0" S = "${WORKDIR}/aalib-1.4.0"
SRC_URI = " \ SRC_URI = "${SOURCEFORGE_MIRROR}/projects/aa-project/files/aa-lib/1.4rc5/aalib-1.4rc5.tar.gz"
${SOURCEFORGE_MIRROR}/projects/aa-project/files/aa-lib/1.4rc5/aalib-1.4rc5.tar.gz \
file://aalib-aalinuxkbd-return.patch \
file://aalib-free-offset-pointer.patch \
file://aalib-key-down-OOB.patch \
file://aalib-opaque-ncurses-fix.patch \
file://aclocal-fixes.patch \
file://aalib-c99.patch \
file://aalib-fix-aarender.patch \
file://aalib-m4.patch \
file://aalib-mouse.patch \
"
SRC_URI[sha256sum] = "fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee" SRC_URI[sha256sum] = "fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee"
inherit autotools inherit autotools
CFLAGS:append = " -fPIC "

View File

@ -25,8 +25,8 @@ RDEPENDS:${PN} = " \
inherit setuptools3 inherit setuptools3
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PV = "1.12.9" PV = "1.12.7"
SRCREV = "20849501ee5fecc701d4bdfdbce6d6a320737a7d" SRCREV = "73a3cf3cbf3ea059e605c6f5f8f5c25a8e734170"
do_configure:prepend() { do_configure:prepend() {
[ -d ${S}/dist ] && mv ${S}/dist ${S}/distrib [ -d ${S}/dist ] && mv ${S}/dist ${S}/distrib

View File

@ -12,19 +12,19 @@ RDEPENDS:${PN} = "ddcutil"
GO_IMPORT = "github.com/nwg-piotr/ddcpopup.git" GO_IMPORT = "github.com/nwg-piotr/ddcpopup.git"
SRC_URI = "git://${GO_IMPORT};destsuffix=src/${GO_IMPORT};nobranch=1;protocol=https" SRC_URI = "git://${GO_IMPORT};nobranch=1;protocol=https"
PV = "0.1" PV = "0.1"
SRCREV = "8fab5132e49e08a1eeaa7a0dd3350d06f4399200" SRCREV = "8fab5132e49e08a1eeaa7a0dd3350d06f4399200"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
inherit go go-mod pkgconfig inherit go go-mod pkgconfig
GO_INSTALL = "${GO_IMPORT}" GO_INSTALL = "${GO_IMPORT}"
GO_LINKSHARED = ""
do_compile[network] = "1" do_compile[network] = "1"
do_install:append() { do_install:append() {
mv ${D}${bindir}/main ${D}${bindir}/ddcpopup mv ${D}${bindir}/main ${D}${bindir}/ddcpopup
# remove precompiled x86 binaries
rm -r ${D}${libdir}/go/pkg/mod/github.com/dlasky/gotk3-layershell@*/example
} }

View File

@ -4,16 +4,13 @@ LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=22ed6cb3c33862e689e075b4
GO_IMPORT = "github.com/nwg-piotr/gopsuinfo.git" GO_IMPORT = "github.com/nwg-piotr/gopsuinfo.git"
SRC_URI = "git://${GO_IMPORT};destsuffix=src/${GO_IMPORT};branch=main;protocol=https" SRC_URI = "git://${GO_IMPORT};branch=main;protocol=https"
PV = "0.1.5" PV = "0.1.5"
SRCREV = "60e4f83b6c4d84955e0a07f7bdc63d8089b4ba1e" SRCREV = "60e4f83b6c4d84955e0a07f7bdc63d8089b4ba1e"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
inherit go go-mod inherit go go-mod
GO_INSTALL = "${GO_IMPORT}" GO_INSTALL = "${GO_IMPORT}"
GO_LINKSHARED = ""
do_compile[network] = "1" do_compile[network] = "1"

View File

@ -11,12 +11,10 @@ RDEPENDS:${PN} = "go-runtime"
GO_IMPORT = "github.com/nwg-piotr/nwg-bar.git" GO_IMPORT = "github.com/nwg-piotr/nwg-bar.git"
SRC_URI = "git://${GO_IMPORT};destsuffix=src/${GO_IMPORT};nobranch=1;protocol=https" SRC_URI = "git://${GO_IMPORT};nobranch=1;protocol=https"
PV = "0.1.5" PV = "0.1.5"
SRCREV = "86f75d0856193c1ba1505f6afbc1b73d34c7093a" SRCREV = "86f75d0856193c1ba1505f6afbc1b73d34c7093a"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
inherit go go-mod pkgconfig inherit go go-mod pkgconfig

View File

@ -17,8 +17,8 @@ RDEPENDS:${PN} = "\
inherit setuptools3 inherit setuptools3
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PV = "0.3.19" PV = "0.3.16"
SRCREV = "74e907f1a8e9cb2f8e649d7439da11e00c249856" SRCREV = "f785c41bdb2e979efee516b6da2d83f2a3296672"
do_install:append() { do_install:append() {
install -d ${D}${datadir}/pixmaps ${D}${datadir}/applications install -d ${D}${datadir}/pixmaps ${D}${datadir}/applications

View File

@ -10,12 +10,10 @@ RDEPENDS:${PN} = "go-runtime"
GO_IMPORT = "github.com/nwg-piotr/nwg-dock-hyprland.git" GO_IMPORT = "github.com/nwg-piotr/nwg-dock-hyprland.git"
SRC_URI = "git://${GO_IMPORT};destsuffix=src/${GO_IMPORT};nobranch=1;protocol=https" SRC_URI = "git://${GO_IMPORT};nobranch=1;protocol=https"
PV = "0.1.9" PV = "0.1.8"
SRCREV = "d4cd7439ebfb29238674b94deb120695dd1425f1" SRCREV = "08f399f4baf580274249e42d46e2d788dc28d6a8"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
inherit go go-mod pkgconfig inherit go go-mod pkgconfig
@ -26,27 +24,9 @@ do_install:append() {
# remove precompiled x86 binaries # remove precompiled x86 binaries
rm -rf ${D}${libdir}/go/src/${GO_IMPORT}/bin rm -rf ${D}${libdir}/go/src/${GO_IMPORT}/bin
rm -rf ${D}${libdir}/go/pkg/mod/github.com/dlasky/gotk3-layershell*/example rm -rf ${D}${libdir}/go/pkg/mod/github.com/dlasky/gotk3-layershell*/example
install -d ${D}${datadir}/nwg-dock-hyprland ${D}${systemd_user_unitdir} install -d ${D}${datadir}/nwg-dock-hyprland
install -m 0644 ${S}/src/${GO_IMPORT}/config/style.css ${D}${datadir}/nwg-dock-hyprland install -m 0644 ${S}/src/${GO_IMPORT}/config/style.css ${D}${datadir}/nwg-dock-hyprland
cp -rf ${S}/src/${GO_IMPORT}/images ${D}${datadir}/nwg-dock-hyprland cp -rf ${S}/src/${GO_IMPORT}/images ${D}${datadir}/nwg-dock-hyprland
cat >${D}${systemd_user_unitdir}/nwg-dock-hyprland.service <<EOF
[Unit]
Description=nwg-dock-hyprland
[Service]
LockPersonality=yes
MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
RestrictNamespaces=yes
Type=simple
ExecStart= /usr/bin/nwg-dock-hyprland -mb 6 -d -hd 2000
Restart=on-failure
[Install]
WantedBy=graphical-session.target
EOF
} }
do_compile[network] = "1" do_compile[network] = "1"
FILES:${PN} += "${systemd_user_unitdir}"

View File

@ -10,12 +10,10 @@ RDEPENDS:${PN} = "go-runtime"
GO_IMPORT = "github.com/nwg-piotr/nwg-dock.git" GO_IMPORT = "github.com/nwg-piotr/nwg-dock.git"
SRC_URI = "git://${GO_IMPORT};destsuffix=src/${GO_IMPORT};nobranch=1;protocol=https" SRC_URI = "git://${GO_IMPORT};nobranch=1;protocol=https"
PV = "0.3.9" PV = "0.3.9"
SRCREV = "6fdd055eaff282298ea5496d203514b5f99314a0" SRCREV = "6fdd055eaff282298ea5496d203514b5f99314a0"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
inherit go go-mod pkgconfig inherit go go-mod pkgconfig

View File

@ -11,12 +11,10 @@ RDEPENDS:${PN} = "go-runtime"
GO_IMPORT = "github.com/nwg-piotr/nwg-drawer.git" GO_IMPORT = "github.com/nwg-piotr/nwg-drawer.git"
SRC_URI = "git://${GO_IMPORT};destsuffix=src/${GO_IMPORT};nobranch=1;protocol=https" SRC_URI = "git://${GO_IMPORT};nobranch=1;protocol=https"
PV = "0.4.7" PV = "0.4.7"
SRCREV = "0cd48d1631eecb3043ee2c1fed9dfa25ca855375" SRCREV = "0cd48d1631eecb3043ee2c1fed9dfa25ca855375"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
inherit go go-mod pkgconfig inherit go go-mod pkgconfig

View File

@ -16,8 +16,8 @@ RRECOMMENDS:${PN} = "gnome-themes-extra"
inherit setuptools3 useradd inherit setuptools3 useradd
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PV = "0.2.0" PV = "0.1.8"
SRCREV = "aa6a9e4a9024dba8ebaa98af53df82b3c19d379a" SRCREV = "0d207e17ba6e911a7d1536a9a0a8d5c627511709"
USERADD_PACKAGES = "${PN}" USERADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = "--system --no-create-home --shell /bin/bash greeter" USERADD_PARAM:${PN} = "--system --no-create-home --shell /bin/bash greeter"

View File

@ -7,11 +7,9 @@ RDEPENDS:${PN} = "xcur2png go-runtime"
GO_IMPORT = "github.com/nwg-piotr/nwg-look" GO_IMPORT = "github.com/nwg-piotr/nwg-look"
SRC_URI = "git://${GO_IMPORT};destsuffix=src/${GO_IMPORT};branch=main;protocol=https" SRC_URI = "git://${GO_IMPORT};branch=main;protocol=https"
SRCREV = "88f2639445084bf265ad71dba1c7af507c471762" SRCREV = "88f2639445084bf265ad71dba1c7af507c471762"
PV = "0.2.7" PV = "0.2.7"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
inherit go go-mod pkgconfig gtk-icon-cache inherit go go-mod pkgconfig gtk-icon-cache

View File

@ -10,17 +10,16 @@ DEPENDS = " \
" "
RRECOMMENDS:${PN} = " \ RRECOMMENDS:${PN} = " \
thunar \
foot \ foot \
" "
GO_IMPORT = "github.com/nwg-piotr/nwg-menu.git" GO_IMPORT = "github.com/nwg-piotr/nwg-menu.git"
SRC_URI = "git://${GO_IMPORT};destsuffix=src/${GO_IMPORT};nobranch=1;protocol=https" SRC_URI = "git://${GO_IMPORT};nobranch=1;protocol=https"
PV = "0.1.3" PV = "0.1.3"
SRCREV = "fd8b92ad1ad0c0c7a23fc7a0be942ca0cbe7f7e0" SRCREV = "fd8b92ad1ad0c0c7a23fc7a0be942ca0cbe7f7e0"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
inherit go go-mod pkgconfig inherit go go-mod pkgconfig

View File

@ -17,6 +17,6 @@ RDEPENDS:${PN} = "\
inherit setuptools3 inherit setuptools3
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PV = "0.5.38" PV = "0.5.37"
SRCREV = "2e0710f9540022dc11ea5109677c8a29ebc278eb" SRCREV = "0137ed8f8c999eb72b4dd3db996d25a241e161a8"

View File

@ -13,17 +13,14 @@ RRECOMMENDS:${PN} = " \
GO_IMPORT = "github.com/nwg-piotr/nwgocc.git" GO_IMPORT = "github.com/nwg-piotr/nwgocc.git"
SRC_URI = "git://${GO_IMPORT};destsuffix=src/${GO_IMPORT};nobranch=1;protocol=https" SRC_URI = "git://${GO_IMPORT};nobranch=1;protocol=https"
PV = "0.0.1" PV = "0.0.1"
SRCREV = "782a37014de40f63115825c0b5bd343dee2ba668" SRCREV = "782a37014de40f63115825c0b5bd343dee2ba668"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
inherit go go-mod pkgconfig gtk-icon-cache inherit go go-mod pkgconfig gtk-icon-cache
GO_INSTALL = "${GO_IMPORT}" GO_INSTALL = "${GO_IMPORT}"
GO_LINKSHARED = ""
do_install:append() { do_install:append() {
install -d \ install -d \

View File

@ -1,36 +0,0 @@
From bfd49ad17c115899bdec41f5819fef21f622e620 Mon Sep 17 00:00:00 2001
From: Markus Volk <f_l_k@t-online.de>
Date: Thu, 6 Jun 2024 21:21:19 +0200
Subject: [PATCH] meson.build: dont read includedir from pkg-config
This sets includedir to /usr/include which is inappropriate for cross-compiling.
---
src/meson.build | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/meson.build b/src/meson.build
index f9107b26..8bddeace 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -343,12 +343,12 @@ libphosh_sources = files(
]
# See https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/394
-if libsoup_dep.version().version_compare('< 3.5.1')
- libsoup_dep = declare_dependency (
- include_directories: libsoup_dep.get_variable(pkgconfig: 'includedir') / 'libsoup-3.0',
- dependencies: cc.find_library('soup-3.0', required: true),
- )
-endif
+#if libsoup_dep.version().version_compare('< 3.5.1')
+# libsoup_dep = declare_dependency (
+# include_directories: libsoup_dep.get_variable(pkgconfig: 'includedir') / 'libsoup-3.0',
+# dependencies: cc.find_library('soup-3.0', required: true),
+# )
+#endif
phosh_deps = [
libsoup_dep,
--
2.45.1

View File

@ -11,18 +11,18 @@ DEPENDS = " \
evince \ evince \
feedbackd \ feedbackd \
fribidi \ fribidi \
gcr \
glib-2.0 \ glib-2.0 \
gmobile \
gnome-desktop \ gnome-desktop \
gtk+3 \ gtk+3 \
gcr3 \ gtk4 \
libadwaita \
libgudev \ libgudev \
libhandy \ libhandy \
libsecret \ libsecret \
networkmanager \ networkmanager \
polkit \ polkit \
pulseaudio \ pulseaudio \
libsoup-3.0 \
upower \ upower \
wayland \ wayland \
wayland-native \ wayland-native \
@ -52,14 +52,17 @@ inherit features_check gsettings meson pkgconfig gtk-icon-cache
SRC_URI = " \ SRC_URI = " \
gitsm://gitlab.gnome.org/World/Phosh/phosh.git;protocol=https;nobranch=1 \ gitsm://gitlab.gnome.org/World/Phosh/phosh.git;protocol=https;nobranch=1 \
file://0001-meson.build-dont-read-includedir-from-pkg-config.patch \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PV = "0.39.0" PV = "0.36.0"
SRCREV = "e1e263efc239870e81c2e4d013bf0615f260141f" SRCREV = "62a4ba9d8a38750a49ae6187f3497c54a030be45"
EXTRA_OEMESON += "--buildtype=release" EXTRA_OEMESON += "--buildtype=release"
do_install:append() {
install -Dm 644 ${WORKDIR}/phosh.pam ${D}${sysconfdir}/pam.d/phosh
}
FILES:${PN} += "${datadir} ${libdir}" FILES:${PN} += "${datadir} ${libdir}"

View File

@ -15,8 +15,8 @@ SRC_URI = " \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PV = "0.10.3" PV = "0.10.0"
SRCREV = "e627879b1656ec7352e6382f80ee16d90b377aaf" SRCREV = "cc084f5f86776b3b5b9708a99bed49b991eb48af"
DEPENDS += " \ DEPENDS += " \
date \ date \
@ -70,7 +70,8 @@ PACKAGECONFIG ?= " \
" "
do_install:append() { do_install:append() {
install -m 0644 ${UNPACKDIR}/waybar.service ${D}${systemd_user_unitdir} install -d ${D}${systemd_user_unitdir}
install -m 0644 ${WORKDIR}/waybar.service ${D}${systemd_user_unitdir}
} }
FILES:${PN} += "${systemd_user_unitdir}" FILES:${PN} += "${systemd_user_unitdir}"

View File

@ -9,7 +9,7 @@ RDEPENDS:${PN} = "python3-pygobject python3-importlib-metadata python3-platformd
inherit setuptools3 inherit setuptools3
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PV = "2.2" PV = "2.1.1"
SRCREV = "bbdca8a4d96208c748af7307fbcf3d61e46bc64e" SRCREV = "fda591d59c6ed5a50444c32cd5403260afd2d94b"
FILES:${PN} += "${datadir}" FILES:${PN} += "${datadir}"

View File

@ -1,27 +0,0 @@
SUMMARY = "Aquamarine is a very light linux rendering backend library"
HOMEPAGE = "https:/github.com/hyprwm/aquamarine"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=778ddc598b3f2a2da3657dda514da983"
DEPENDS = " \
hyprutils \
hyprwayland-scanner-native \
libdrm \
libdisplay-info \
libinput \
seatd \
pixman \
virtual/libgbm \
wayland \
wayland-native \
wayland-protocols \
"
SRC_URI = "git://github.com/hyprwm/aquamarine.git;protocol=https;branch=main"
S = "${WORKDIR}/git"
SRCREV = "2e0052a21dc02c3cc2e131dabc2eff1990901b52"
PV = "0.1.0"
inherit cmake pkgconfig

View File

@ -9,7 +9,7 @@ SRC_URI = "git://github.com/hyprwm/hyprcursor.git;protocol=https;branch=main"
DEPENDS = "cairo librsvg libzip hyprlang tomlplusplus" DEPENDS = "cairo librsvg libzip hyprlang tomlplusplus"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
SRCREV = "57298fc4f13c807e50ada2c986a3114b7fc2e621" SRCREV = "6742e9d3e2d2e155f8222ae654f03fd1faa1314e"
PV = "0.1.9" PV = "0.1.7"
inherit cmake pkgconfig inherit cmake pkgconfig

View File

@ -1,24 +0,0 @@
SUMMARY = "A plugin to add expo (overlay) for workspaces."
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://../LICENSE;md5=e6458723c467506fd0c4aea3be2bcf8a"
require hyprland-plugins.inc
DEPENDS = " \
pixman \
libdrm \
hyprland \
libinput \
udev \
pango \
cairo \
wayland-native \
libxkbcommon \
"
S = "${WORKDIR}/git/hyprexpo"
inherit meson pkgconfig
FILES:${PN} += "${libdir}/libhyprexpo.so"
FILES:${PN}-dev = ""

View File

@ -1,8 +1,2 @@
SRC_URI = "git://github.com/hyprwm/hyprland-plugins.git;protocol=https;branch=main" SRC_URI = "git://github.com/hyprwm/hyprland-plugins.git;protocol=https;branch=main"
SRCREV = "3ae670253a5a3ae1e3a3104fb732a8c990a31487" SRCREV = "4334510363a8420f17d88505d13405d5126eabf0"
# Hack to allow patching the plugins
do_configure:prepend() {
rm -rf ${S}/patches
rm -rf ${S}/.pc
}

View File

@ -4,12 +4,10 @@ LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b5b6bed06dd8ed68f00c26d0b4cede89" LIC_FILES_CHKSUM = "file://LICENSE;md5=b5b6bed06dd8ed68f00c26d0b4cede89"
DEPENDS = "hyprutils"
SRC_URI = "git://github.com/hyprwm/hyprlang.git;protocol=https;branch=main" SRC_URI = "git://github.com/hyprwm/hyprlang.git;protocol=https;branch=main"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
SRCREV = "ec6938c66253429192274d612912649a0cfe4d28" SRCREV = "a685493fdbeec01ca8ccdf1f3655c044a8ce2fe2"
PV = "0.5.2" PV = "0.5.0"
inherit cmake pkgconfig inherit cmake

View File

@ -8,25 +8,10 @@ SRC_URI = "git://github.com/hyprwm/hyprlock.git;protocol=https;branch=main"
REQUIRED_DISTRO_FEATURES = "opengl" REQUIRED_DISTRO_FEATURES = "opengl"
DEPENDS = " \ DEPENDS = "wayland wayland-native wayland-protocols hyprlang libxkbcommon cairo pango libdrm libpam virtual/libgl virtual/egl"
cairo \
hyprlang \
hyprutils \
jpeg \
libdrm \
libpam \
libwebp \
libxkbcommon \
pango \
virtual/egl \
virtual/libgl \
wayland \
wayland-native \
wayland-protocols \
"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
SRCREV = "c5b8ad03d03ddbd2b0ff8615c2f6dba31374b6a8" SRCREV = "bc87adf9ec997090f15d9b662d6ca2f86e25f264"
PV = "0.3.0" PV = "0.3.0"
inherit cmake pkgconfig features_check inherit cmake pkgconfig features_check

View File

@ -5,8 +5,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=936078e4e67b0e1e1bd1e862d4ffbc25"
SRC_URI = "git://github.com/hyprwm/hyprpaper.git;protocol=https;branch=main" SRC_URI = "git://github.com/hyprwm/hyprpaper.git;protocol=https;branch=main"
PV = "0.7.0" PV = "0.6.0"
SRCREV = "f4abf5902f3f0c51d2aab8a521f7c1b1b08afd64" SRCREV = "1013a80608891f120184aa7c1a7cfde04bfc96fb"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
DEPENDS += " \ DEPENDS += " \
@ -15,12 +15,16 @@ DEPENDS += " \
fribidi \ fribidi \
hyprlang \ hyprlang \
jpeg \ jpeg \
libglvnd \
libwebp \ libwebp \
libxdmcp \
pango \ pango \
pcre \
pcre2 \
util-linux \
wayland \ wayland \
wayland-native \ wayland-native \
wayland-protocols \ wayland-protocols \
wlroots \
" "
RDEPENDS:${PN} = "hyprlang" RDEPENDS:${PN} = "hyprlang"

View File

@ -21,7 +21,7 @@ DEPENDS = " \
wayland \ wayland \
wayland-native \ wayland-native \
wayland-protocols \ wayland-protocols \
virtual/libgles3 \ wlroots \
" "
RDEPENDS:${PN} = "wl-clipboard" RDEPENDS:${PN} = "wl-clipboard"

View File

@ -1,15 +0,0 @@
SUMMARY = "Hyprland c++ utils"
HOMEPAGE = "https:/github.com/hyprwm/hyputils"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=778ddc598b3f2a2da3657dda514da983"
DEPENDS = "pixman"
SRC_URI = "git://github.com/hyprwm/hyprutils.git;protocol=https;branch=main"
S = "${WORKDIR}/git"
SRCREV = "1f6bbec5954f623ff8d68e567bddcce97cd2f085"
PV = "0.1.5"
inherit cmake pkgconfig

View File

@ -1,17 +0,0 @@
SUMMARY = "A Hyprland implementation of wayland-scanner, in and for C++."
HOMEPAGE = "https://github.com/hyprwm/hyprwayland-scanner"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=778ddc598b3f2a2da3657dda514da983"
SRC_URI = "git://github.com/hyprwm/hyprwayland-scanner.git;protocol=https;branch=main"
DEPENDS = "pugixml"
S = "${WORKDIR}/git"
SRCREV = "1413398dcaf702e78a678090c92c26a5fd604ce6"
PV = "0.3.10"
inherit cmake pkgconfig
BBCLASSEXTEND = "native"

View File

@ -136,7 +136,7 @@ S = "${WORKDIR}/git"
inherit cargo meson rust pkgconfig inherit cargo meson rust pkgconfig
EXTRA_OEMESON = "\ EXTRA_OEMESON = "\
-Dcargo-flags=[\'--target\',\'${HOST_SYS}\',\'-v\'] \ -Dcargo-flags=[\'--target\',\'${RUST_HOST_SYS}\',\'-v\'] \
-Dtests=false \ -Dtests=false \
-Ddepdatadir=${datadir} \ -Ddepdatadir=${datadir} \
-Donline=true \ -Donline=true \

View File

@ -260,7 +260,7 @@ S = "${WORKDIR}/git"
inherit cargo meson rust pkgconfig inherit cargo meson rust pkgconfig
EXTRA_OEMESON = "\ EXTRA_OEMESON = "\
-Dcargo-flags=[\'--target\',\'${HOST_SYS}\',\'-v\'] \ -Dcargo-flags=[\'--target\',\'${RUST_HOST_SYS}\',\'-v\'] \
-Dtests=false \ -Dtests=false \
-Ddepdatadir=${datadir} \ -Ddepdatadir=${datadir} \
-Donline=false \ -Donline=false \

View File

@ -10,18 +10,18 @@ manually add it to CXXFLAGS
1 file changed, 2 insertions(+), 2 deletions(-) 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/meson.build b/src/meson.build diff --git a/src/meson.build b/src/meson.build
index e0254e6..e6e88bd 100644 index d3dec0d..da0affe 100644
--- a/src/meson.build --- a/src/meson.build
+++ b/src/meson.build +++ b/src/meson.build
@@ -21,7 +21,7 @@ cap_dep = dependency('libcap', required: get_option('rt_cap')) @@ -18,7 +18,7 @@ cap_dep = dependency('libcap', required: false)
epoll_dep = dependency('epoll-shim', required: false) epoll_dep = dependency('epoll-shim', required: false)
glm_dep = dependency('glm') glm_dep = dependency('glm')
sdl2_dep = dependency('SDL2', required: get_option('sdl2_backend')) sdl_dep = dependency('SDL2')
-stb_dep = dependency('stb') -stb_dep = dependency('stb')
+stb_dep = dependency('stb', required: false) +stb_dep = dependency('stb', required: false)
avif_dep = dependency('libavif', version: '>=1.0.0', required: get_option('avif_screenshots'))
wlroots_dep = dependency( wlroots_dep = dependency(
'wlroots',
-- --
2.43.0 2.43.0

View File

@ -11,18 +11,18 @@ Signed-off-by: Markus Volk <f_l_k@t-online.de>
1 file changed, 1 insertion(+), 1 deletion(-) 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meson.build b/meson.build diff --git a/meson.build b/meson.build
index 04bd472..345a2a7 100644 index 7af6884..e67146a 100644
--- a/meson.build --- a/meson.build
+++ b/meson.build +++ b/meson.build
@@ -67,7 +67,7 @@ add_project_arguments( @@ -62,7 +62,7 @@ endif
add_project_arguments(
if hwdata_dep.found() '-DHAVE_PIPEWIRE=@0@'.format(pipewire_dep.found().to_int()),
add_project_arguments( '-DHAVE_OPENVR=@0@'.format(openvr_dep.found().to_int()),
- '-DHWDATA_PNP_IDS="@0@"'.format(hwdata_dep.get_variable('pkgdatadir') / 'pnp.ids'), - '-DHWDATA_PNP_IDS="@0@"'.format(hwdata_dep.get_variable('pkgdatadir') / 'pnp.ids'),
+ '-DHWDATA_PNP_IDS="@0@"'.format(hwdata_dep.get_variable('datadir') / 'hwdata' / 'pnp.ids'), + '-DHWDATA_PNP_IDS="@0@"'.format(hwdata_dep.get_variable('datadir') / 'hwdata' / 'pnp.ids'),
language: 'cpp', language: 'cpp',
) )
else
-- --
2.43.0 2.43.0

View File

@ -10,11 +10,11 @@ DEPENDS += " \
glm \ glm \
glslang-native \ glslang-native \
hwdata \ hwdata \
libei \
libdecor \
libdisplay-info \ libdisplay-info \
libdrm \
libinput \ libinput \
libliftoff \
libsdl2 \
libdrm \
libx11\ libx11\
libxcomposite \ libxcomposite \
libxcursor \ libxcursor \
@ -23,13 +23,8 @@ DEPENDS += " \
libxmu \ libxmu \
libxrender \ libxrender \
libxtst \ libxtst \
libxxf86vm \
libxfixes \
libxext \
libxdamage \
seatd \ seatd \
stb \ stb \
vulkan-loader \
vulkan-headers \ vulkan-headers \
wayland \ wayland \
wayland-native \ wayland-native \
@ -42,23 +37,20 @@ RDEPENDS:${PN} = "xwayland hwdata"
CXXFLAGS:append = " -I${STAGING_INCDIR}/stb" CXXFLAGS:append = " -I${STAGING_INCDIR}/stb"
PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pipewire', d)} rt_cap avif_screenshots openvr input_emulation drm_backend" PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl pipewire', d)} openvr"
PACKAGECONFIG[benchmark] = "-Dbenchmark=enabled,-Dbenchmark=disabled"
PACKAGECONFIG[input_emulation] = "-Dinput_emulation=enabled,-Dinput_emulation=disabled,libei"
PACKAGECONFIG[openvr] = "-Denable_openvr_support=true,-Denable_openvr_support=false" PACKAGECONFIG[openvr] = "-Denable_openvr_support=true,-Denable_openvr_support=false"
PACKAGECONFIG[pipewire] = "-Dpipewire=enabled,-Dpipewire=disabled,pipewire" PACKAGECONFIG[pipewire] = "-Dpipewire=enabled,-Dpipewire=disabled,pipewire"
PACKAGECONFIG[avif_screenshots] = "-Davif_screenshots=enabled,-Davif_screenshots=disabled,libavif" PACKAGECONFIG[opengl] = ",,mesa-glut"
PACKAGECONFIG[rt_cap] = "-Drt_cap=enabled,-Drt_cap=disabled,libcap"
PACKAGECONFIG[sdl2_backend] = "-Dsdl2_backend=enabled,-Dsdl2_backend=disabled,libsdl2"
PACKAGECONFIG[drm_backend] = "-Ddrm_backend=enabled,-Ddrm_backend=disabled"
SRC_URI = " \
gitsm://github.com/ValveSoftware/gamescope.git;branch=master;protocol=https \ SRC_URI = " \
file://0001-meson.build-dont-fail-if-stb-is-not-found.patch \ gitsm://github.com/ValveSoftware/gamescope.git;branch=jupiter-3.5;protocol=https \
file://0001-meson.build-dont-leak-buildpath.patch \ file://0001-meson.build-dont-leak-buildpath.patch \
file://0001-meson.build-dont-fail-if-stb-is-not-found.patch \
" "
SRCREV = "3b69847e15c84c0a4f93e82c2eb16b623f9765b9"
PV = "3.14.22" SRCREV = "c59b09dbc0c100f604ae603c5f0026c42c62d49c"
PV = "3.13.16.9"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
@ -68,5 +60,3 @@ EXTRA_OEMESON += "--buildtype release"
FILES:${PN} += "${datadir} ${libdir}" FILES:${PN} += "${datadir} ${libdir}"
FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig" FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig"
CFLAGS += "-Wno-calloc-transposed-args"

View File

@ -0,0 +1,52 @@
SUMMARY = "A Wayland WM"
HOMEPAGE = "https://hyprland.org/"
SECTION = "graphics"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=a08367f3a4cd5301ba8b88eded36b8fd"
REQUIRED_DISTRO_FEATURES = "wayland opengl"
DEPENDS += " \
virtual/egl \
cairo \
wayland \
wayland-native \
jq-native \
pango \
pixman \
libdrm \
libxkbcommon \
libinput \
udis86 \
wlroots-0.17 \
"
RRECOMMENDS:${PN} ?= " \
foot \
jq \
grim \
slurp \
wl-clipboard \
hyprland-contrib \
"
SRC_URI = " \
gitsm://github.com/hyprwm/Hyprland.git;protocol=https;branch=main \
file://meson-build.patch \
"
SRCREV = "9afdd61adeaf413afbe853dbc5fdf6853c8bde21"
PV = "0.32.3"
S = "${WORKDIR}/git"
inherit meson pkgconfig features_check
PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd xwayland', d)}"
PACKAGECONFIG[systemd] = "-Dsystemd=enabled,-Dsystemd=disabled"
PACKAGECONFIG[xwayland] = "-Dxwayland=enabled,-Dxwayland=disabled,libxcb xcb-util-wm xcb-util-renderutil xwayland,xwayland"
PACKAGECONFIG[legacy_renderer] = "-Dlegacy_renderer=enabled,-Dlegacy_renderer=disabled"
FILES:${PN} += "${datadir}"

View File

@ -0,0 +1,60 @@
From 19e0c04a57bfb3677caf1ac8c22527b066666a95 Mon Sep 17 00:00:00 2001
From: Markus Volk <f_l_k@t-online.de>
Date: Sun, 23 Jul 2023 10:19:54 +0200
Subject: [PATCH] hyprland: update
---
meson.build | 17 +----------------
src/meson.build | 6 +++---
2 files changed, 4 insertions(+), 19 deletions(-)
diff --git a/meson.build b/meson.build
index 1d2c7f9f..c5ef4e67 100644
--- a/meson.build
+++ b/meson.build
@@ -33,20 +33,7 @@ if cpp_compiler.check_header('execinfo.h')
add_project_arguments('-DHAS_EXECINFO', language: 'cpp')
endif
-wlroots = subproject('wlroots', default_options: ['examples=false', 'renderers=gles2'])
-have_xwlr = wlroots.get_variable('features').get('xwayland')
-xcb_dep = dependency('xcb', required: get_option('xwayland'))
-
-cmake = import('cmake')
-udis = cmake.subproject('udis86')
-udis86 = udis.dependency('libudis86')
-
-if get_option('xwayland').enabled() and not have_xwlr
- error('Cannot enable Xwayland in Hyprland: wlroots has been built without Xwayland support')
-endif
-have_xwayland = xcb_dep.found() and have_xwlr
-
-if not have_xwayland
+if get_option('xwayland').disabled()
add_project_arguments('-DNO_XWAYLAND', language: 'cpp')
endif
diff --git a/src/meson.build b/src/meson.build
index 0af864b9..38723b8c 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -9,16 +9,16 @@ executable('Hyprland', src,
server_protos,
dependency('wayland-server'),
dependency('wayland-client'),
- wlroots.get_variable('wlroots'),
+ dependency('wlroots'),
dependency('cairo'),
dependency('libdrm'),
dependency('egl'),
dependency('xkbcommon'),
dependency('libinput'),
- xcb_dep,
+ dependency('xcb', required: get_option('xwayland')),
backtrace_dep,
systemd_dep,
- udis86,
+ dependency('udis86'),
dependency('pixman-1'),
dependency('gl', 'opengl'),

View File

@ -12,19 +12,17 @@ DEPENDS += " \
hyprcursor \ hyprcursor \
hyprlang \ hyprlang \
jq-native \ jq-native \
hwdata-native \
libdisplay-info \
libliftoff \
libdrm \ libdrm \
libinput \ libinput \
libxkbcommon \ libxkbcommon \
pango \ pango \
pixman \ pixman \
seatd \
tomlplusplus \ tomlplusplus \
udis86 \
virtual/egl \ virtual/egl \
wayland \ wayland \
wayland-native \ wayland-native \
wlroots \
" "
RRECOMMENDS:${PN} ?= " \ RRECOMMENDS:${PN} ?= " \
@ -36,7 +34,10 @@ RRECOMMENDS:${PN} ?= " \
hyprland-contrib \ hyprland-contrib \
" "
SRC_URI = "gitsm://github.com/hyprwm/Hyprland.git;protocol=https;branch=v0.38.1-b" SRC_URI = " \
gitsm://github.com/hyprwm/Hyprland.git;protocol=https;branch=v0.38.1-b \
file://meson-build.patch \
"
SRCREV = "360ede79d124ffdeebbe8401f1ac4bc0dbec2c91" SRCREV = "360ede79d124ffdeebbe8401f1ac4bc0dbec2c91"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"

View File

@ -0,0 +1,71 @@
From 596cf2f2e1cbe68ce5673711d84cbfd576d40db1 Mon Sep 17 00:00:00 2001
From: Markus Volk <f_l_k@t-online.de>
Date: Sun, 23 Jul 2023 10:19:54 +0200
Subject: [PATCH] hyprland: update
---
meson.build | 17 +----------------
src/meson.build | 6 +++---
2 files changed, 4 insertions(+), 19 deletions(-)
diff --git a/meson.build b/meson.build
index 81d6e403..04503a3c 100644
--- a/meson.build
+++ b/meson.build
@@ -33,20 +33,7 @@ if cpp_compiler.check_header('execinfo.h')
add_project_arguments('-DHAS_EXECINFO', language: 'cpp')
endif
-wlroots = subproject('wlroots', default_options: ['examples=false', 'renderers=gles2'])
-have_xwlr = wlroots.get_variable('features').get('xwayland')
-xcb_dep = dependency('xcb', required: get_option('xwayland'))
-
-cmake = import('cmake')
-udis = cmake.subproject('udis86')
-udis86 = udis.dependency('libudis86')
-
-if get_option('xwayland').enabled() and not have_xwlr
- error('Cannot enable Xwayland in Hyprland: wlroots has been built without Xwayland support')
-endif
-have_xwayland = xcb_dep.found() and have_xwlr
-
-if not have_xwayland
+if get_option('xwayland').disabled()
add_project_arguments('-DNO_XWAYLAND', language: 'cpp')
endif
@@ -69,8 +56,6 @@ if get_option('buildtype') == 'debug'
add_project_arguments('-DHYPRLAND_DEBUG', language: 'cpp')
endif
-version_h = run_command('sh', '-c', 'scripts/generateVersion.sh')
-
globber = run_command('find', 'src', '-name', '*.h*', check: true)
headers = globber.stdout().strip().split('\n')
foreach file : headers
diff --git a/src/meson.build b/src/meson.build
index 59771fcf..a77349c4 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -9,7 +9,7 @@ executable('Hyprland', src,
server_protos,
dependency('wayland-server'),
dependency('wayland-client'),
- wlroots.get_variable('wlroots'),
+ dependency('wlroots'),
dependency('cairo'),
dependency('hyprcursor'),
dependency('hyprlang', version: '>= 0.3.2'),
@@ -17,10 +17,10 @@ executable('Hyprland', src,
dependency('egl'),
dependency('xkbcommon'),
dependency('libinput'),
- xcb_dep,
+ dependency('xcb', required: get_option('xwayland')),
backtrace_dep,
systemd_dep,
- udis86,
+ dependency('udis86'),
dependency('pixman-1'),
dependency('gl', 'opengl'),

View File

@ -11,24 +11,18 @@ DEPENDS += " \
cairo \ cairo \
hyprcursor \ hyprcursor \
hyprlang \ hyprlang \
hyprutils \
jq-native \ jq-native \
hwdata-native \
libdisplay-info \
libliftoff \
libdrm \ libdrm \
libinput \ libinput \
libxkbcommon \ libxkbcommon \
pango \ pango \
pixman \ pixman \
seatd \
tomlplusplus \ tomlplusplus \
util-linux-libuuid \ udis86 \
virtual/egl \ virtual/egl \
wayland \ wayland \
wayland-native \ wayland-native \
xcb-util-errors \ wlroots \
hyprwayland-scanner-native \
" "
RRECOMMENDS:${PN} ?= " \ RRECOMMENDS:${PN} ?= " \
@ -40,10 +34,13 @@ RRECOMMENDS:${PN} ?= " \
hyprland-contrib \ hyprland-contrib \
" "
SRC_URI = "gitsm://github.com/hyprwm/Hyprland.git;protocol=https;branch=main" SRC_URI = " \
gitsm://github.com/hyprwm/Hyprland.git;protocol=https;branch=main \
file://meson-build.patch \
"
SRCREV = "918d8340afd652b011b937d29d5eea0be08467f5" SRCREV = "3875679755014997776e091ff8903acfb311dd2f"
PV = "0.41.2" PV = "0.38.0"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit meson pkgconfig features_check inherit meson pkgconfig features_check

View File

@ -14,9 +14,9 @@ DEPENDS += " \
gtk+3 \ gtk+3 \
" "
SRC_URI = "git://github.com/labwc/labwc-tweaks-gtk.git;protocol=https;branch=master" SRC_URI = "git://github.com/labwc/labwc-tweaks.git;protocol=https;branch=master"
SRCREV = "67adbedd610a1b44e7ba667ae72a5c9b07105119" SRCREV = "1604f64cc62e4800ee04a6e1c323a48ee8140d83"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit meson pkgconfig features_check inherit meson pkgconfig features_check

View File

@ -28,14 +28,14 @@ RRECOMMENDS:${PN} ?= " \
slurp \ slurp \
wl-clipboard \ wl-clipboard \
labwc-menu-generator \ labwc-menu-generator \
labwc-tweaks-gtk \ labwc-tweaks \
swaybg \ swaybg \
" "
SRC_URI = "git://github.com/labwc/labwc.git;protocol=https;branch=master" SRC_URI = "git://github.com/labwc/labwc.git;protocol=https;branch=master"
SRCREV = "b41af54a1bd7d9270d19de4c9a2b77d882cf3ede" SRCREV = "59014e507175971e84af2b846b6b3a2c232cce7f"
PV = "0.7.2" PV = "0.7.1"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit meson pkgconfig features_check gettext inherit meson pkgconfig features_check gettext

View File

@ -0,0 +1,34 @@
From 92e876d5f678228971512045144b0e8b572b9953 Mon Sep 17 00:00:00 2001
From: Markus Volk <f_l_k@t-online.de>
Date: Tue, 15 Aug 2023 07:23:23 +0200
Subject: [PATCH] meson.build: dont build subprojects
Upstream-Status: Inappropriate
Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
meson.build | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/meson.build b/meson.build
index 77b8971..e5b0908 100644
--- a/meson.build
+++ b/meson.build
@@ -40,13 +40,7 @@ wayland_protos = dependency('wayland-protocols', version: '>=1.15')
wayland_server = dependency('wayland-server')
xkbcommon = dependency('xkbcommon')
math = cc.find_library('m')
-gmobile = subproject('gmobile',
- default_options: [
- 'examples=false',
- 'gtk_doc=false',
- 'tests=false',
- ])
-gmobile_dep = gmobile.get_variable('gmobile_dep')
+gmobile_dep = dependency('gmobile', version: '>= 0.0.3')
embed_wlroots = get_option('embed-wlroots')
--
2.41.0

View File

@ -24,11 +24,13 @@ DEPENDS += " \
" "
SRC_URI = " \ SRC_URI = " \
git://gitlab.gnome.org/World/Phosh/phoc.git;protocol=https;nobranch=1" git://gitlab.gnome.org/World/Phosh/phoc.git;protocol=https;nobranch=1 \
file://0001-meson.build-dont-build-subprojects.patch \
"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PV = "0.39.0" PV = "0.36.0"
SRCREV = "3d01448739b7e5605238301e473a063c7955ab21" SRCREV = "70bbce162e4736a43a4e7bf5fad308e476a4b340"
inherit features_check gsettings meson pkgconfig inherit features_check gsettings meson pkgconfig

View File

@ -39,7 +39,7 @@ RRECOMMENDS:${PN} ?= " \
SRC_URI = "git://github.com/swaywm/sway.git;protocol=https;branch=master" SRC_URI = "git://github.com/swaywm/sway.git;protocol=https;branch=master"
SRCREV = "40ca4150b27a5b94938b6c3d744f74bb26d347f7" SRCREV = "2b08e79061db583d0ffe46114c48f958a0d3e6ed"
PV = "1.10-dev" PV = "1.10-dev"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
@ -53,9 +53,10 @@ PACKAGECONFIG[swaybar] = "-Dswaybar=true,-Dswaybar=false"
PACKAGECONFIG[swaynag] = "-Dswaynag=true,-Dswaynag=false" PACKAGECONFIG[swaynag] = "-Dswaynag=true,-Dswaynag=false"
PACKAGECONFIG[systemd] = "-Dsd-bus-provider=libsystemd,,systemd" PACKAGECONFIG[systemd] = "-Dsd-bus-provider=libsystemd,,systemd"
PACKAGECONFIG[tray] = "-Dtray=enabled,-Dtray=disabled" PACKAGECONFIG[tray] = "-Dtray=enabled,-Dtray=disabled"
PACKAGECONFIG[xwayland] = "-Dxwayland=enabled,-Dxwayland=disabled,libxcb xcb-util-wm"
PACKAGECONFIG ?= " \ PACKAGECONFIG ?= " \
${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ ${@bb.utils.filter('DISTRO_FEATURES', 'systemd xwayland', d)} \
default-wallpaper \ default-wallpaper \
gdk-pixbuf \ gdk-pixbuf \
" "

View File

@ -47,8 +47,6 @@ inherit meson pkgconfig features_check
EXTRA_OEMESON += "--buildtype release" EXTRA_OEMESON += "--buildtype release"
CFLAGS += "-Wno-calloc-transposed-args"
do_install:append() { do_install:append() {
install -d ${D}${bindir} install -d ${D}${bindir}
install -m 0755 ${B}/tinywl/tinywl ${D}${bindir}/tinywl-0.16 install -m 0755 ${B}/tinywl/tinywl ${D}${bindir}/tinywl-0.16

View File

@ -39,9 +39,8 @@ PACKAGECONFIG ?= " \
" "
SRC_URI = "git://gitlab.freedesktop.org/wlroots/wlroots.git;branch=0.17;protocol=https" SRC_URI = "git://gitlab.freedesktop.org/wlroots/wlroots.git;branch=0.17;protocol=https"
SRC_URI += "file://backend-drm-add-support-for-libliftoff-v0.5.0.patch" SRCREV = "6dce6ae2ed92544b9758b194618e21f4c97f1d6b"
SRCREV = "bc73e507abd1e8319353a8601f1f8ebfe17307ee" PV = "0.17.2"
PV = "0.17.3"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"

View File

@ -1,51 +0,0 @@
From 8b1628adcf530fd5396f62479175e486126efc7c Mon Sep 17 00:00:00 2001
From: Simon Ser <contact@emersion.fr>
Date: Tue, 28 May 2024 00:30:33 +0200
Subject: [PATCH] backend/drm: add support for libliftoff v0.5.0
Don't require libliftoff 0.5.0 just yet: we want to be able to
backport this patch.
---
backend/drm/libliftoff.c | 5 +++++
backend/drm/meson.build | 1 +
2 files changed, 6 insertions(+)
diff --git a/backend/drm/libliftoff.c b/backend/drm/libliftoff.c
index a3b61540..12dd8fdb 100644
--- a/backend/drm/libliftoff.c
+++ b/backend/drm/libliftoff.c
@@ -7,6 +7,7 @@
#include "backend/drm/drm.h"
#include "backend/drm/iface.h"
+#include "config.h"
static bool init(struct wlr_drm_backend *drm) {
// TODO: lower log level
@@ -436,7 +437,11 @@ static bool crtc_commit(struct wlr_drm_connector *conn,
goto out;
}
+#if HAVE_LIBLIFTOFF_0_5
+ int ret = liftoff_output_apply(crtc->liftoff, req, flags, NULL);
+#else
int ret = liftoff_output_apply(crtc->liftoff, req, flags);
+#endif
if (ret != 0) {
wlr_drm_conn_log(conn, test_only ? WLR_DEBUG : WLR_ERROR,
"liftoff_output_apply failed: %s", strerror(-ret));
diff --git a/backend/drm/meson.build b/backend/drm/meson.build
index 5d2f2b1f8c..7c00b0f085 100644
--- a/backend/drm/meson.build
+++ b/backend/drm/meson.build
@@ -48,6 +48,7 @@ wlr_files += files(
if libliftoff.found()
wlr_files += files('libliftoff.c')
+ internal_config.set10('HAVE_LIBLIFTOFF_0_5', libliftoff.version().version_compare('>=0.5.0'))
endif
features += { 'drm-backend': true }
--
GitLab

View File

@ -15,6 +15,7 @@ DEPENDS += " \
hwdata-native \ hwdata-native \
libdisplay-info \ libdisplay-info \
libdrm \ libdrm \
libliftoff \
libxkbcommon \ libxkbcommon \
pixman \ pixman \
seatd \ seatd \
@ -26,7 +27,6 @@ DEPENDS += " \
PACKAGECONFIG[opengl] = ",,virtual/egl virtual/libgles2" PACKAGECONFIG[opengl] = ",,virtual/egl virtual/libgles2"
PACKAGECONFIG[gbm] = ",,virtual/libgbm" PACKAGECONFIG[gbm] = ",,virtual/libgbm"
PACKAGECONFIG[libinput] = ",,libinput" PACKAGECONFIG[libinput] = ",,libinput"
PACKAGECONFIG[libliftoff] = "-Dlibliftoff=enabled,-Dlibliftoff=disabled,libliftoff"
PACKAGECONFIG[systemd] = ",,systemd" PACKAGECONFIG[systemd] = ",,systemd"
PACKAGECONFIG[sysvinit] = ",,eudev elogind" PACKAGECONFIG[sysvinit] = ",,eudev elogind"
PACKAGECONFIG[vulkan] = ",,vulkan-loader vulkan-headers glslang-native" PACKAGECONFIG[vulkan] = ",,vulkan-loader vulkan-headers glslang-native"
@ -36,11 +36,10 @@ PACKAGECONFIG[xwayland] = "-Dxwayland=enabled,-Dxwayland=disabled,xwayland xcb-u
PACKAGECONFIG ?= " \ PACKAGECONFIG ?= " \
${@bb.utils.filter('DISTRO_FEATURES', 'systemd vulkan x11 xwayland opengl', d)} \ ${@bb.utils.filter('DISTRO_FEATURES', 'systemd vulkan x11 xwayland opengl', d)} \
libinput \ libinput \
libliftoff \
" "
SRC_URI = "git://gitlab.freedesktop.org/wlroots/wlroots.git;branch=master;protocol=https" SRC_URI = "git://gitlab.freedesktop.org/wlroots/wlroots.git;branch=master;protocol=https"
SRCREV = "385c9ade5f7a8ce9e5c13f762d56e6bd1c8d1b0a" SRCREV = "50eae512d9cecbf0b3b1898bb1f0b40fa05fe19b"
PV = "0.18.0-dev" PV = "0.18.0-dev"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
@ -53,6 +52,3 @@ do_install:append() {
install -d ${D}${bindir} install -d ${D}${bindir}
install -m 0755 ${B}/tinywl/tinywl ${D}${bindir} install -m 0755 ${B}/tinywl/tinywl ${D}${bindir}
} }
FILES:${PN} += "${libdir}/libwlroots-*.so"
FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig"