Upgrade Poky to 5.0 (scarthgap)
This commit is contained in:
parent
26524e09ce
commit
147c5b3546
@ -14,7 +14,7 @@ BBFILE_COLLECTIONS += "citadel"
|
|||||||
BBFILE_PATTERN_citadel = "^${LAYERDIR}/"
|
BBFILE_PATTERN_citadel = "^${LAYERDIR}/"
|
||||||
BBFILE_PRIORITY_citadel = "5"
|
BBFILE_PRIORITY_citadel = "5"
|
||||||
|
|
||||||
LAYERSERIES_COMPAT_citadel = "mickledore"
|
LAYERSERIES_COMPAT_citadel = "scarthgap"
|
||||||
|
|
||||||
# This should only be incremented on significant changes that will
|
# This should only be incremented on significant changes that will
|
||||||
# cause compatibility issues with other layers
|
# cause compatibility issues with other layers
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
|
|
||||||
PACKAGECONFIG = "fs crypto parted mdraid kmod"
|
PACKAGECONFIG = "fs crypto parted mdraid tools"
|
||||||
DEPENDS += "systemd"
|
DEPENDS += "systemd"
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
|
|
||||||
# Fix Python 3.9 build failure by using native python3 instead of host python3
|
|
||||||
#
|
|
||||||
# https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/merge_requests/8
|
|
||||||
#
|
|
||||||
inherit python3native
|
|
||||||
|
|
@ -6,7 +6,6 @@ RDEPENDS:${PN} = "\
|
|||||||
packagegroup-citadel-base \
|
packagegroup-citadel-base \
|
||||||
packagegroup-desktop \
|
packagegroup-desktop \
|
||||||
packagegroup-gnome \
|
packagegroup-gnome \
|
||||||
packagegroup-sway \
|
|
||||||
packagegroup-theme \
|
packagegroup-theme \
|
||||||
citadel-tools \
|
citadel-tools \
|
||||||
citadel-tools-realms \
|
citadel-tools-realms \
|
||||||
|
@ -40,7 +40,6 @@ RDEPENDS:${PN} = "\
|
|||||||
ibus \
|
ibus \
|
||||||
libsecret \
|
libsecret \
|
||||||
libwacom \
|
libwacom \
|
||||||
libcroco \
|
|
||||||
librsvg \
|
librsvg \
|
||||||
librsvg-gtk \
|
librsvg-gtk \
|
||||||
glib-2.0-utils \
|
glib-2.0-utils \
|
||||||
|
@ -117,6 +117,8 @@ require ${THISDIR}/../../recipes-citadel/images/citadel-image.inc
|
|||||||
IMAGE_ROOTFS_SIZE = "8192"
|
IMAGE_ROOTFS_SIZE = "8192"
|
||||||
IMAGE_ROOTFS_EXTRA_SPACE = "0"
|
IMAGE_ROOTFS_EXTRA_SPACE = "0"
|
||||||
|
|
||||||
|
IMAGE_NAME_SUFFIX = ""
|
||||||
|
|
||||||
ROOTFS_POSTPROCESS_COMMAND += "remove_systemd_units; append_initrd_release; "
|
ROOTFS_POSTPROCESS_COMMAND += "remove_systemd_units; append_initrd_release; "
|
||||||
|
|
||||||
SYSTEMD_UNITS = "\
|
SYSTEMD_UNITS = "\
|
||||||
|
@ -1,59 +0,0 @@
|
|||||||
SUMMARY = "Userspace interface to the kernel DRM services"
|
|
||||||
DESCRIPTION = "The runtime library for accessing the kernel DRM services. DRM \
|
|
||||||
stands for \"Direct Rendering Manager\", which is the kernel portion of the \
|
|
||||||
\"Direct Rendering Infrastructure\" (DRI). DRI is required for many hardware \
|
|
||||||
accelerated OpenGL drivers."
|
|
||||||
HOMEPAGE = "http://dri.freedesktop.org"
|
|
||||||
SECTION = "x11/base"
|
|
||||||
LICENSE = "MIT"
|
|
||||||
LIC_FILES_CHKSUM = "file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c530816761e949dc71"
|
|
||||||
PROVIDES = "drm"
|
|
||||||
DEPENDS = "libpthread-stubs"
|
|
||||||
|
|
||||||
SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.xz \
|
|
||||||
"
|
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "3bf55363f76c7250946441ab51d3a6cc0ae518055c0ff017324ab76cdefb327a"
|
|
||||||
|
|
||||||
inherit meson pkgconfig manpages
|
|
||||||
|
|
||||||
PACKAGECONFIG ??= "intel radeon amdgpu nouveau vmwgfx omap freedreno vc4 etnaviv tests install-test-programs"
|
|
||||||
PACKAGECONFIG[intel] = "-Dintel=enabled,-Dintel=disabled,libpciaccess"
|
|
||||||
PACKAGECONFIG[radeon] = "-Dradeon=enabled,-Dradeon=disabled"
|
|
||||||
PACKAGECONFIG[amdgpu] = "-Damdgpu=enabled,-Damdgpu=disabled"
|
|
||||||
PACKAGECONFIG[nouveau] = "-Dnouveau=enabled,-Dnouveau=disabled"
|
|
||||||
PACKAGECONFIG[vmwgfx] = "-Dvmwgfx=enabled,-Dvmwgfx=disabled"
|
|
||||||
PACKAGECONFIG[omap] = "-Domap=enabled,-Domap=disabled"
|
|
||||||
PACKAGECONFIG[exynos] = "-Dexynos=enabled,-Dexynos=disabled"
|
|
||||||
PACKAGECONFIG[freedreno] = "-Dfreedreno=enabled,-Dfreedreno=disabled"
|
|
||||||
PACKAGECONFIG[tegra] = "-Dtegra=enabled,-Dtegra=disabled"
|
|
||||||
PACKAGECONFIG[vc4] = "-Dvc4=enabled,-Dvc4=disabled"
|
|
||||||
PACKAGECONFIG[etnaviv] = "-Detnaviv=enabled,-Detnaviv=disabled"
|
|
||||||
PACKAGECONFIG[freedreno-kgsl] = "-Dfreedreno-kgsl=true,-Dfreedreno-kgsl=false"
|
|
||||||
PACKAGECONFIG[valgrind] = "-Dvalgrind=enabled,-Dvalgrind=disabled,valgrind"
|
|
||||||
PACKAGECONFIG[install-test-programs] = "-Dinstall-test-programs=true,-Dinstall-test-programs=false"
|
|
||||||
PACKAGECONFIG[cairo-tests] = "-Dcairo-tests=enabled,-Dcairo-tests=disabled"
|
|
||||||
PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false"
|
|
||||||
PACKAGECONFIG[udev] = "-Dudev=true,-Dudev=false,udev"
|
|
||||||
PACKAGECONFIG[manpages] = "-Dman-pages=enabled,-Dman-pages=disabled,libxslt-native xmlto-native python3-docutils-native"
|
|
||||||
|
|
||||||
ALLOW_EMPTY:${PN}-drivers = "1"
|
|
||||||
PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \
|
|
||||||
${PN}-intel ${PN}-exynos ${PN}-freedreno ${PN}-amdgpu \
|
|
||||||
${PN}-etnaviv"
|
|
||||||
|
|
||||||
RRECOMMENDS:${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap ${PN}-intel \
|
|
||||||
${PN}-exynos ${PN}-freedreno ${PN}-amdgpu \
|
|
||||||
${PN}-etnaviv"
|
|
||||||
|
|
||||||
FILES:${PN}-tests = "${bindir}/*"
|
|
||||||
FILES:${PN}-radeon = "${libdir}/libdrm_radeon.so.*"
|
|
||||||
FILES:${PN}-nouveau = "${libdir}/libdrm_nouveau.so.*"
|
|
||||||
FILES:${PN}-omap = "${libdir}/libdrm_omap.so.*"
|
|
||||||
FILES:${PN}-intel = "${libdir}/libdrm_intel.so.*"
|
|
||||||
FILES:${PN}-exynos = "${libdir}/libdrm_exynos.so.*"
|
|
||||||
FILES:${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*"
|
|
||||||
FILES:${PN}-amdgpu = "${libdir}/libdrm_amdgpu.so.* ${datadir}/${PN}/amdgpu.ids"
|
|
||||||
FILES:${PN}-etnaviv = "${libdir}/libdrm_etnaviv.so.*"
|
|
||||||
|
|
||||||
BBCLASSEXTEND = "native nativesdk"
|
|
@ -0,0 +1,32 @@
|
|||||||
|
From 3f7f70c746277e1a89978166533374a8b9bd5407 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alex Kiernan <alex.kiernan@gmail.com>
|
||||||
|
Date: Wed, 25 Jan 2023 17:05:25 +0000
|
||||||
|
Subject: [PATCH] Adhere to the SOURCE_DATE_EPOCH standard
|
||||||
|
|
||||||
|
Adhere to the SOURCE_DATE_EPOCH standard and use it's date when set
|
||||||
|
otherwise fall back to the default behaviour.
|
||||||
|
|
||||||
|
Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
|
||||||
|
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
||||||
|
---
|
||||||
|
Upstream-Status: Pending
|
||||||
|
|
||||||
|
Makefile | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index 599b1452a05a..7776b0f0d63d 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -109,7 +109,7 @@ all: keyctl request-key key.dns_resolver cxx
|
||||||
|
###############################################################################
|
||||||
|
#RPATH = -Wl,-rpath,$(LIBDIR)
|
||||||
|
|
||||||
|
-VCPPFLAGS := -DPKGBUILD="\"$(shell date -u +%F)\""
|
||||||
|
+VCPPFLAGS := -DPKGBUILD="\"$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%F)\""
|
||||||
|
VCPPFLAGS += -DPKGVERSION="\"keyutils-$(VERSION)\""
|
||||||
|
VCPPFLAGS += -DAPIVERSION="\"libkeyutils-$(APIVERSION)\""
|
||||||
|
|
||||||
|
--
|
||||||
|
2.39.0
|
||||||
|
|
@ -0,0 +1,27 @@
|
|||||||
|
From 714542f009860e1652bc06d05ab939290374a114 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alex Kiernan <alex.kiernan@gmail.com>
|
||||||
|
Date: Thu, 26 Jan 2023 08:27:12 +0000
|
||||||
|
Subject: [PATCH 1/2] tests: builtin_trusted: Failure command is `failed`
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
||||||
|
---
|
||||||
|
tests/features/builtin_trusted/runtest.sh | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/tests/features/builtin_trusted/runtest.sh b/tests/features/builtin_trusted/runtest.sh
|
||||||
|
index 27910b5fa8e7..437f5ad1d6b2 100644
|
||||||
|
--- a/tests/features/builtin_trusted/runtest.sh
|
||||||
|
+++ b/tests/features/builtin_trusted/runtest.sh
|
||||||
|
@@ -24,7 +24,7 @@ id_key --to=blk %:.blacklist
|
||||||
|
# There should be at least one built-in trusted key for module signing.
|
||||||
|
list_keyring $btk
|
||||||
|
expect_keyring_rlist bkeys
|
||||||
|
-if [ `echo $bkeys | wc -w` = 0 ]; then fail; fi
|
||||||
|
+if [ `echo $bkeys | wc -w` = 0 ]; then failed; fi
|
||||||
|
|
||||||
|
# Check we can't add random keys to those keyrings
|
||||||
|
marker "TRY ADDING USER KEYS"
|
||||||
|
--
|
||||||
|
2.39.0
|
||||||
|
|
@ -0,0 +1,35 @@
|
|||||||
|
From b84ecc2e3e56a25a3efd56c8942ad6bab3ff9ba1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Changqing Li <changqing.li@windriver.com>
|
||||||
|
Date: Fri, 2 Dec 2022 15:35:40 +0800
|
||||||
|
Subject: [PATCH] tests/toolbox.inc.sh: update regex for getting endian
|
||||||
|
|
||||||
|
Update regex for getting endian in following condition:
|
||||||
|
/proc/777/exe: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2
|
||||||
|
|
||||||
|
Upstream-Status: Submitted [Submitted to keyrings@vger.kernel.org ]
|
||||||
|
|
||||||
|
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
||||||
|
---
|
||||||
|
tests/toolbox.inc.sh | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/toolbox.inc.sh b/tests/toolbox.inc.sh
|
||||||
|
index 8bf0db6f6d87..7ea2f253ba7d 100644
|
||||||
|
--- a/tests/toolbox.inc.sh
|
||||||
|
+++ b/tests/toolbox.inc.sh
|
||||||
|
@@ -13,10 +13,10 @@
|
||||||
|
echo === $OUTPUTFILE ===
|
||||||
|
|
||||||
|
endian=`file -L /proc/$$/exe`
|
||||||
|
-if expr "$endian" : '.* MSB \+\(pie executable\|executable\|shared object\).*' >&/dev/null
|
||||||
|
+if expr "$endian" : '.* MSB .*\(pie executable\|executable\|shared object\).*' >&/dev/null
|
||||||
|
then
|
||||||
|
endian=BE
|
||||||
|
-elif expr "$endian" : '.* LSB \+\(pie executable\|executable\|shared object\).*' >&/dev/null
|
||||||
|
+elif expr "$endian" : '.* LSB .*\(pie executable\|executable\|shared object\).*' >&/dev/null
|
||||||
|
then
|
||||||
|
endian=LE
|
||||||
|
else
|
||||||
|
--
|
||||||
|
2.39.0
|
||||||
|
|
@ -0,0 +1,64 @@
|
|||||||
|
From 5e660f246bb04560692ac9fc144574732c7e19e7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alex Kiernan <alex.kiernan@gmail.com>
|
||||||
|
Date: Thu, 26 Jan 2023 08:28:16 +0000
|
||||||
|
Subject: [PATCH 2/2] tests: Use `head -n1` for busybox compatibility
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
||||||
|
---
|
||||||
|
tests/keyctl/session/valid/runtest.sh | 4 ++--
|
||||||
|
tests/keyctl/show/noargs/runtest.sh | 2 +-
|
||||||
|
tests/toolbox.inc.sh | 2 +-
|
||||||
|
3 files changed, 4 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/keyctl/session/valid/runtest.sh b/tests/keyctl/session/valid/runtest.sh
|
||||||
|
index 4c831314c0b0..456e9f32de23 100644
|
||||||
|
--- a/tests/keyctl/session/valid/runtest.sh
|
||||||
|
+++ b/tests/keyctl/session/valid/runtest.sh
|
||||||
|
@@ -17,7 +17,7 @@ then
|
||||||
|
expect_key_rdesc rdesc "keyring@.*@.*@.*@_ses[^@]*\$"
|
||||||
|
|
||||||
|
# check the session keyring ID is shown
|
||||||
|
- seskeyring="`tail -2 $OUTPUTFILE | head -1`"
|
||||||
|
+ seskeyring="`tail -2 $OUTPUTFILE | head -n1`"
|
||||||
|
if ! expr "$seskeyring" : "Joined session keyring: [0-9]*" >&/dev/null
|
||||||
|
then
|
||||||
|
failed
|
||||||
|
@@ -30,7 +30,7 @@ new_session qwerty keyctl rdescribe @s "@"
|
||||||
|
expect_key_rdesc rdesc "keyring@.*@.*@.*@qwerty"
|
||||||
|
|
||||||
|
# check the session keyring ID is shown
|
||||||
|
-seskeyring="`tail -2 $OUTPUTFILE | head -1`"
|
||||||
|
+seskeyring="`tail -2 $OUTPUTFILE | head -n1`"
|
||||||
|
if ! expr "$seskeyring" : "Joined session keyring: [0-9]*" >&/dev/null
|
||||||
|
then
|
||||||
|
failed
|
||||||
|
diff --git a/tests/keyctl/show/noargs/runtest.sh b/tests/keyctl/show/noargs/runtest.sh
|
||||||
|
index d5072716c76a..a6d8b6b585c4 100644
|
||||||
|
--- a/tests/keyctl/show/noargs/runtest.sh
|
||||||
|
+++ b/tests/keyctl/show/noargs/runtest.sh
|
||||||
|
@@ -31,7 +31,7 @@ then
|
||||||
|
fi
|
||||||
|
|
||||||
|
# the first key listed (line 2) should be a keying (the session keyring) ...
|
||||||
|
-keyring1="`grep -n keyring $OUTPUTFILE | cut -d: -f1 | head -1`"
|
||||||
|
+keyring1="`grep -n keyring $OUTPUTFILE | cut -d: -f1 | head -n1`"
|
||||||
|
if [ "$keyring1" != "4" ]
|
||||||
|
then
|
||||||
|
failed
|
||||||
|
diff --git a/tests/toolbox.inc.sh b/tests/toolbox.inc.sh
|
||||||
|
index 7ea2f253ba7d..a461a73daaa3 100644
|
||||||
|
--- a/tests/toolbox.inc.sh
|
||||||
|
+++ b/tests/toolbox.inc.sh
|
||||||
|
@@ -229,7 +229,7 @@ function check_notify ()
|
||||||
|
if [ "$1" = "-2" ]
|
||||||
|
then
|
||||||
|
shift
|
||||||
|
- my_logline="`tail -2 $watch_log | head -1`"
|
||||||
|
+ my_logline="`tail -2 $watch_log | head -n1`"
|
||||||
|
else
|
||||||
|
my_logline="`tail -1 $watch_log`"
|
||||||
|
fi
|
||||||
|
--
|
||||||
|
2.39.0
|
||||||
|
|
@ -0,0 +1,32 @@
|
|||||||
|
From 297abed277ce3aa0cf12adbfda3c8581afdba850 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Chen Qi <Qi.Chen@windriver.com>
|
||||||
|
Date: Sun, 8 Oct 2023 19:30:29 -0700
|
||||||
|
Subject: [PATCH] fix pythondir for multilib when cross compiling
|
||||||
|
|
||||||
|
In case of cross compiling + multilib, the 'shell python3' line is
|
||||||
|
not likely to give out correct result. Make use of pythondir instead.
|
||||||
|
|
||||||
|
This patch is related to meta/recipes-devtools/automake/automake/0001-automake-Update-for-python.m4-to-respect-libdir.patch
|
||||||
|
in oe-core, so this one is marked as oe specific.
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [OE Specific]
|
||||||
|
|
||||||
|
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
|
||||||
|
---
|
||||||
|
src/python/gi/overrides/Makefile.am | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/python/gi/overrides/Makefile.am b/src/python/gi/overrides/Makefile.am
|
||||||
|
index 5e8e75f7..7c30601c 100644
|
||||||
|
--- a/src/python/gi/overrides/Makefile.am
|
||||||
|
+++ b/src/python/gi/overrides/Makefile.am
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
if WITH_PYTHON3
|
||||||
|
-py3libdir = $(shell python3 -c "import sysconfig; print(sysconfig.get_path('platlib', vars={'platbase': '${exec_prefix}'}))")
|
||||||
|
+py3libdir = $(pythondir)
|
||||||
|
py3overridesdir = $(py3libdir)/gi/overrides
|
||||||
|
dist_py3overrides_DATA = BlockDev.py
|
||||||
|
endif
|
||||||
|
--
|
||||||
|
2.42.0
|
||||||
|
|
@ -0,0 +1,39 @@
|
|||||||
|
DESCRIPTION = "libblockdev is a C library supporting GObject introspection for manipulation of \
|
||||||
|
block devices. It has a plugin-based architecture where each technology (like \
|
||||||
|
LVM, Btrfs, MD RAID, Swap,...) is implemented in a separate plugin, possibly \
|
||||||
|
with multiple implementations (e.g. using LVM CLI or the new LVM DBus API)."
|
||||||
|
HOMEPAGE = "http://rhinstaller.github.io/libblockdev/"
|
||||||
|
LICENSE = "LGPL-2.0-or-later"
|
||||||
|
SECTION = "devel/lib"
|
||||||
|
|
||||||
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=c07cb499d259452f324bb90c3067d85c"
|
||||||
|
|
||||||
|
inherit autotools gobject-introspection pkgconfig lib_package
|
||||||
|
|
||||||
|
DEPENDS = "autoconf-archive-native glib-2.0 kmod udev libnvme"
|
||||||
|
|
||||||
|
SRC_URI = "git://github.com/storaged-project/libblockdev;branch=3.1.x-devel;protocol=https \
|
||||||
|
file://0001-fix-pythondir-for-multilib-when-cross-compiling.patch \
|
||||||
|
"
|
||||||
|
SRCREV = "68aaff5556afe26be749c29a2b7cbd714dce3050"
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}"
|
||||||
|
|
||||||
|
PACKAGECONFIG ??= "python3 lvm lvm-dbus dm parted fs escrow btrfs crypto mdraid mpath nvdimm tools"
|
||||||
|
PACKAGECONFIG[python3] = "--with-python3, --without-python3,,python3"
|
||||||
|
PACKAGECONFIG[lvm] = "--with-lvm, --without-lvm, multipath-tools, lvm2"
|
||||||
|
PACKAGECONFIG[lvm-dbus] = "--with-lvm_dbus, --without-lvm_dbus, multipath-tools, lvm2"
|
||||||
|
PACKAGECONFIG[dm] = "--with-dm, --without-dm, multipath-tools, lvm2"
|
||||||
|
PACKAGECONFIG[parted] = "--with-part, --without-part, parted"
|
||||||
|
PACKAGECONFIG[fs] = "--with-fs, --without-fs, util-linux e2fsprogs"
|
||||||
|
PACKAGECONFIG[doc] = "--with-gtk-doc, --without-gtk-doc, gtk-doc-native"
|
||||||
|
PACKAGECONFIG[nvdimm] = "--with-nvdimm, --without-nvdimm, ndctl util-linux"
|
||||||
|
PACKAGECONFIG[escrow] = "--with-escrow, --without-escrow, nss volume-key"
|
||||||
|
PACKAGECONFIG[btrfs] = "--with-btrfs,--without-btrfs,libbytesize btrfs-tools"
|
||||||
|
PACKAGECONFIG[crypto] = "--with-crypto,--without-crypto,cryptsetup nss volume-key keyutils"
|
||||||
|
PACKAGECONFIG[mdraid] = "--with-mdraid,--without-mdraid,libbytesize"
|
||||||
|
PACKAGECONFIG[mpath] = "--with-mpath,--without-mpath, multipath-tools, lvm2"
|
||||||
|
PACKAGECONFIG[tools] = "--with-tools,--without-tools,libbytesize libdevmapper"
|
||||||
|
|
||||||
|
export GIR_EXTRA_LIBS_PATH="${B}/src/utils/.libs"
|
22
meta-citadel/recipes-support/libnvme/libnvme_1.8.bb
Normal file
22
meta-citadel/recipes-support/libnvme/libnvme_1.8.bb
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
SUMMARY = "libnvme development C library"
|
||||||
|
DESCRIPTION = "\
|
||||||
|
libnvme provides type definitions for NVMe specification structures, \
|
||||||
|
enumerations, and bit fields, helper functions to construct, dispatch, \
|
||||||
|
and decode commands and payloads, and utilities to connect, scan, and \
|
||||||
|
manage nvme devices on a Linux system."
|
||||||
|
HOMEPAGE = "https://github.com/linux-nvme/${BPN}"
|
||||||
|
SECTION = "libs"
|
||||||
|
LICENSE = "LGPL-2.1-only & CC0-1.0 & MIT"
|
||||||
|
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
|
||||||
|
file://ccan/licenses/CC0;md5=c17af43b05840255a6fedc5eda9d56cc \
|
||||||
|
file://ccan/licenses/BSD-MIT;md5=838c366f69b72c5df05c96dff79b35f2"
|
||||||
|
DEPENDS = "json-c"
|
||||||
|
SRCREV = "bff7dda7e2a0f883d0b89e23fed725c916de3e61"
|
||||||
|
|
||||||
|
SRC_URI = "git://github.com/linux-nvme/libnvme;protocol=https;branch=master"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
inherit meson pkgconfig
|
||||||
|
|
||||||
|
EXTRA_OEMESON += "-Dkeyutils=disabled -Dopenssl=disabled -Dpython=disabled"
|
@ -1,56 +0,0 @@
|
|||||||
From fe4600de549549fbb3033fc1b37904ba6b3fe2af Mon Sep 17 00:00:00 2001
|
|
||||||
From: Markus Volk <f_l_k@t-online.de>
|
|
||||||
Date: Fri, 8 Mar 2024 15:53:11 +0100
|
|
||||||
Subject: [PATCH] Revert "meson: do not pull in clc for clover"
|
|
||||||
|
|
||||||
This reverts commit 815a6647eb1383e9dc704ffcc266d85f3b13338a.
|
|
||||||
Upstream-Status: Inappropriate [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27783/diffs?commit_id=a976f2c9f0c07f9e06cc9affd9124b45bc60c2bd]
|
|
||||||
|
|
||||||
Once the merge request above was added, it will only be possible to provide opencl spir-v with gallium-rusticl=true. This is not yet supported in the mesa recipe.
|
|
||||||
For now reverting this commit allows to still use clover with opencl-spirv, which would otherwise be broken starting from mesa 24.0.2.
|
|
||||||
|
|
||||||
After it was merged, this patch needs to be removed and rusticl support will be required
|
|
||||||
|
|
||||||
Signed-off-by: Markus Volk <f_l_k@t-online.de>
|
|
||||||
---
|
|
||||||
meson.build | 3 ++-
|
|
||||||
src/compiler/meson.build | 2 +-
|
|
||||||
2 files changed, 3 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/meson.build b/meson.build
|
|
||||||
index 25e92ea5f95..3956e19c08f 100644
|
|
||||||
--- a/meson.build
|
|
||||||
+++ b/meson.build
|
|
||||||
@@ -818,6 +818,7 @@ if _opencl != 'disabled'
|
|
||||||
error('The Clover OpenCL state tracker requires rtti')
|
|
||||||
endif
|
|
||||||
|
|
||||||
+ with_clc = true
|
|
||||||
with_gallium_opencl = true
|
|
||||||
with_opencl_icd = _opencl == 'icd'
|
|
||||||
else
|
|
||||||
@@ -842,7 +843,7 @@ if with_gallium_rusticl
|
|
||||||
endif
|
|
||||||
|
|
||||||
dep_clc = null_dep
|
|
||||||
-if with_gallium_opencl or with_clc
|
|
||||||
+if with_clc
|
|
||||||
dep_clc = dependency('libclc')
|
|
||||||
endif
|
|
||||||
|
|
||||||
diff --git a/src/compiler/meson.build b/src/compiler/meson.build
|
|
||||||
index 8d73544c6d8..1dae56d1b2b 100644
|
|
||||||
--- a/src/compiler/meson.build
|
|
||||||
+++ b/src/compiler/meson.build
|
|
||||||
@@ -79,7 +79,7 @@ subdir('nir')
|
|
||||||
|
|
||||||
subdir('spirv')
|
|
||||||
|
|
||||||
-if with_clc
|
|
||||||
+if with_opencl_spirv
|
|
||||||
subdir('clc')
|
|
||||||
endif
|
|
||||||
if with_gallium
|
|
||||||
--
|
|
||||||
2.44.0
|
|
||||||
|
|
@ -1,58 +0,0 @@
|
|||||||
From 4bd15a419e892da843489c374c58c5b29c40b5d6 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Romain Naour <romain.naour@smile.fr>
|
|
||||||
Date: Tue, 6 Feb 2024 09:47:09 +0100
|
|
||||||
Subject: [PATCH 1/2] drisw: fix build without dri3
|
|
||||||
|
|
||||||
commit 1887368df41 ("glx/sw: check for modifier support in the kopper path")
|
|
||||||
added dri3_priv.h header and dri3_check_multibuffer() function in drisw that
|
|
||||||
can be build without dri3.
|
|
||||||
|
|
||||||
i686-buildroot-linux-gnu/bin/ld: src/glx/libglx.a.p/drisw_glx.c.o: in function `driswCreateScreenDriver':
|
|
||||||
drisw_glx.c:(.text.driswCreateScreenDriver+0x3a0): undefined reference to `dri3_check_multibuffer'
|
|
||||||
collect2: error: ld returned 1 exit status
|
|
||||||
|
|
||||||
Add HAVE_DRI3 guard around dri3_priv.h header and the zink code using
|
|
||||||
dri3_check_multibuffer().
|
|
||||||
|
|
||||||
Fixes: 1887368df41 ("glx/sw: check for modifier support in the kopper path")
|
|
||||||
|
|
||||||
Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27478]
|
|
||||||
Signed-off-by: Romain Naour <romain.naour@smile.fr>
|
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
||||||
---
|
|
||||||
src/glx/drisw_glx.c | 4 ++++
|
|
||||||
1 file changed, 4 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c
|
|
||||||
index 3d3f752..4b19e2d 100644
|
|
||||||
--- a/src/glx/drisw_glx.c
|
|
||||||
+++ b/src/glx/drisw_glx.c
|
|
||||||
@@ -32,7 +32,9 @@
|
|
||||||
#include <dlfcn.h>
|
|
||||||
#include "dri_common.h"
|
|
||||||
#include "drisw_priv.h"
|
|
||||||
+#ifdef HAVE_DRI3
|
|
||||||
#include "dri3_priv.h"
|
|
||||||
+#endif
|
|
||||||
#include <X11/extensions/shmproto.h>
|
|
||||||
#include <assert.h>
|
|
||||||
#include <vulkan/vulkan_core.h>
|
|
||||||
@@ -995,6 +997,7 @@ driswCreateScreenDriver(int screen, struct glx_display *priv,
|
|
||||||
goto handle_error;
|
|
||||||
}
|
|
||||||
|
|
||||||
+#ifdef HAVE_DRI3
|
|
||||||
if (pdpyp->zink) {
|
|
||||||
bool err;
|
|
||||||
psc->has_multibuffer = dri3_check_multibuffer(priv->dpy, &err);
|
|
||||||
@@ -1005,6 +1008,7 @@ driswCreateScreenDriver(int screen, struct glx_display *priv,
|
|
||||||
goto handle_error;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
glx_config_destroy_list(psc->base.configs);
|
|
||||||
psc->base.configs = configs;
|
|
||||||
--
|
|
||||||
2.44.0
|
|
||||||
|
|
@ -1,40 +0,0 @@
|
|||||||
From 3e1e5c475b52651657c906e6b03ee13567cccdd7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Khem Raj <raj.khem@gmail.com>
|
|
||||||
Date: Fri, 23 Jun 2023 01:20:38 -0700
|
|
||||||
Subject: [PATCH] gallium: Fix build with llvm 17
|
|
||||||
|
|
||||||
These headers are not available for C files in llvm 17+
|
|
||||||
and they seem to be not needed to compile after all with llvm 17
|
|
||||||
so add conditions to exclude them for llvm >= 17
|
|
||||||
|
|
||||||
Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23827]
|
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
||||||
---
|
|
||||||
src/gallium/auxiliary/gallivm/lp_bld_init.c | 6 +++++-
|
|
||||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c
|
|
||||||
index cd2108f..b1a4d03 100644
|
|
||||||
--- a/src/gallium/auxiliary/gallivm/lp_bld_init.c
|
|
||||||
+++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c
|
|
||||||
@@ -46,15 +46,19 @@
|
|
||||||
#if GALLIVM_USE_NEW_PASS == 1
|
|
||||||
#include <llvm-c/Transforms/PassBuilder.h>
|
|
||||||
#elif GALLIVM_HAVE_CORO == 1
|
|
||||||
+#if LLVM_VERSION_MAJOR < 17
|
|
||||||
#include <llvm-c/Transforms/Scalar.h>
|
|
||||||
-#if LLVM_VERSION_MAJOR >= 7
|
|
||||||
+#endif
|
|
||||||
+#if LLVM_VERSION_MAJOR >= 7 && LLVM_VERSION_MAJOR < 17
|
|
||||||
#include <llvm-c/Transforms/Utils.h>
|
|
||||||
#endif
|
|
||||||
#if LLVM_VERSION_MAJOR <= 8 && (DETECT_ARCH_AARCH64 || DETECT_ARCH_ARM || DETECT_ARCH_S390 || DETECT_ARCH_MIPS64)
|
|
||||||
#include <llvm-c/Transforms/IPO.h>
|
|
||||||
#endif
|
|
||||||
+#if LLVM_VERSION_MAJOR < 17
|
|
||||||
#include <llvm-c/Transforms/Coroutines.h>
|
|
||||||
#endif
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
unsigned gallivm_perf = 0;
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
|||||||
From 02cc21800fe29f566add525e63f619c0536d6e7b Mon Sep 17 00:00:00 2001
|
|
||||||
From: Khem Raj <raj.khem@gmail.com>
|
|
||||||
Date: Mon, 13 Jan 2020 15:23:47 -0800
|
|
||||||
Subject: [PATCH] meson misdetects 64bit atomics on mips/clang
|
|
||||||
|
|
||||||
Upstream-Status: Pending
|
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
||||||
---
|
|
||||||
src/util/u_atomic.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/util/u_atomic.c b/src/util/u_atomic.c
|
|
||||||
index 5a5eab4..e499516 100644
|
|
||||||
--- a/src/util/u_atomic.c
|
|
||||||
+++ b/src/util/u_atomic.c
|
|
||||||
@@ -21,7 +21,7 @@
|
|
||||||
* IN THE SOFTWARE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#if defined(MISSING_64BIT_ATOMICS) && defined(HAVE_PTHREAD)
|
|
||||||
+#if !defined(__clang__) && defined(MISSING_64BIT_ATOMICS) && defined(HAVE_PTHREAD)
|
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <pthread.h>
|
|
@ -1,42 +0,0 @@
|
|||||||
From e8ec6b1cc5e401ba719095722d8b317d755ae613 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Alistair Francis <alistair@alistair23.me>
|
|
||||||
Date: Thu, 14 Nov 2019 13:04:49 -0800
|
|
||||||
Subject: [PATCH] meson.build: check for all linux host_os combinations
|
|
||||||
|
|
||||||
Make sure that we are also looking for our host_os combinations like
|
|
||||||
linux-musl etc. when assuming support for DRM/KMS.
|
|
||||||
|
|
||||||
Also delete a duplicate line.
|
|
||||||
|
|
||||||
Upstream-Status: Pending
|
|
||||||
|
|
||||||
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
|
|
||||||
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
|
|
||||||
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
||||||
Signed-off-by: Alistair Francis <alistair@alistair23.me>
|
|
||||||
---
|
|
||||||
meson.build | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/meson.build b/meson.build
|
|
||||||
index 133fd9a..817861e 100644
|
|
||||||
--- a/meson.build
|
|
||||||
+++ b/meson.build
|
|
||||||
@@ -128,7 +128,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2
|
|
||||||
# Only build shared_glapi if at least one OpenGL API is enabled
|
|
||||||
with_shared_glapi = with_shared_glapi and with_any_opengl
|
|
||||||
|
|
||||||
-system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux', 'sunos', 'android', 'managarm'].contains(host_machine.system())
|
|
||||||
+system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux', 'sunos', 'android', 'managarm'].contains(host_machine.system()) or host_machine.system().startswith('linux')
|
|
||||||
|
|
||||||
gallium_drivers = get_option('gallium-drivers')
|
|
||||||
if gallium_drivers.contains('auto')
|
|
||||||
@@ -997,7 +997,7 @@ if cc.has_function('fmemopen')
|
|
||||||
endif
|
|
||||||
|
|
||||||
# TODO: this is very incomplete
|
|
||||||
-if ['linux', 'cygwin', 'gnu', 'freebsd', 'gnu/kfreebsd', 'haiku', 'android', 'managarm'].contains(host_machine.system())
|
|
||||||
+if ['linux', 'cygwin', 'gnu', 'freebsd', 'gnu/kfreebsd', 'haiku', 'android', 'managarm'].contains(host_machine.system()) or host_machine.system().startswith('linux')
|
|
||||||
pre_args += '-D_GNU_SOURCE'
|
|
||||||
elif host_machine.system() == 'sunos'
|
|
||||||
pre_args += '-D__EXTENSIONS__'
|
|
@ -1,42 +0,0 @@
|
|||||||
From 62495ebb977866c52d5bed8499a547c49f0d9bc1 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Romain Naour <romain.naour@smile.fr>
|
|
||||||
Date: Tue, 6 Feb 2024 09:47:10 +0100
|
|
||||||
Subject: [PATCH 2/2] glxext: don't try zink if not enabled in mesa
|
|
||||||
|
|
||||||
Commit 7d9ea77b459 ("glx: add automatic zink fallback loading between hw and sw drivers")
|
|
||||||
added an automatic zink fallback even when the zink gallium is not
|
|
||||||
enabled at build time.
|
|
||||||
|
|
||||||
It leads to unexpected error log while loading drisw driver and
|
|
||||||
zink is not installed on the rootfs:
|
|
||||||
|
|
||||||
MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so
|
|
||||||
|
|
||||||
Fixes: 7d9ea77b459 ("glx: add automatic zink fallback loading between hw and sw drivers")
|
|
||||||
|
|
||||||
Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27478]
|
|
||||||
Signed-off-by: Romain Naour <romain.naour@smile.fr>
|
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
||||||
---
|
|
||||||
src/glx/glxext.c | 2 ++
|
|
||||||
1 file changed, 2 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/src/glx/glxext.c b/src/glx/glxext.c
|
|
||||||
index 05c825a..7a06aa9 100644
|
|
||||||
--- a/src/glx/glxext.c
|
|
||||||
+++ b/src/glx/glxext.c
|
|
||||||
@@ -908,9 +908,11 @@ __glXInitialize(Display * dpy)
|
|
||||||
#endif /* HAVE_DRI3 */
|
|
||||||
if (!debug_get_bool_option("LIBGL_DRI2_DISABLE", false))
|
|
||||||
dpyPriv->dri2Display = dri2CreateDisplay(dpy);
|
|
||||||
+#if defined(HAVE_ZINK)
|
|
||||||
if (!dpyPriv->dri3Display && !dpyPriv->dri2Display)
|
|
||||||
try_zink = !debug_get_bool_option("LIBGL_KOPPER_DISABLE", false) &&
|
|
||||||
!getenv("GALLIUM_DRIVER");
|
|
||||||
+#endif /* HAVE_ZINK */
|
|
||||||
}
|
|
||||||
#endif /* GLX_USE_DRM */
|
|
||||||
if (glx_direct)
|
|
||||||
--
|
|
||||||
2.44.0
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
|||||||
SUMMARY = "The OpenGL utility toolkit"
|
|
||||||
DESCRIPTION = "GLU is a utility toolkit used with OpenGL implementations"
|
|
||||||
|
|
||||||
HOMEPAGE = "http://mesa3d.org"
|
|
||||||
BUGTRACKER = "https://bugs.freedesktop.org"
|
|
||||||
SECTION = "x11"
|
|
||||||
LICENSE = "MIT"
|
|
||||||
LIC_FILES_CHKSUM = "file://include/GL/glu.h;endline=29;md5=6b79c570f644363b356456e7d44471d9 \
|
|
||||||
file://src/libtess/tess.c;endline=29;md5=6b79c570f644363b356456e7d44471d9"
|
|
||||||
|
|
||||||
# Epoch as this used to be part of mesa
|
|
||||||
PE = "2"
|
|
||||||
|
|
||||||
SRC_URI = "https://mesa.freedesktop.org/archive/glu/glu-${PV}.tar.xz \
|
|
||||||
"
|
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "bd43fe12f374b1192eb15fe20e45ff456b9bc26ab57f0eee919f96ca0f8a330f"
|
|
||||||
|
|
||||||
S = "${WORKDIR}/glu-${PV}"
|
|
||||||
|
|
||||||
DEPENDS = "virtual/libgl"
|
|
||||||
|
|
||||||
inherit meson pkgconfig features_check
|
|
||||||
|
|
||||||
EXTRA_OEMESON = "-Dgl_provider=gl"
|
|
||||||
|
|
||||||
# Requires libGL.so which is provided by mesa when x11 in DISTRO_FEATURES
|
|
||||||
REQUIRED_DISTRO_FEATURES = "x11 opengl"
|
|
||||||
|
|
||||||
# Remove the mesa-glu dependency in mesa-glu-dev, as mesa-glu is empty
|
|
||||||
DEV_PKG_DEPENDENCY = ""
|
|
@ -1,624 +0,0 @@
|
|||||||
From b695c3a3fa3f4cd48c13aa26542110de27075518 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Drew Moseley <drew_moseley@mentor.com>
|
|
||||||
Date: Mon, 12 May 2014 15:22:32 -0400
|
|
||||||
Subject: [PATCH 1/9] mesa-demos: Add missing data files.
|
|
||||||
|
|
||||||
Add some data files that are present in the git repository:
|
|
||||||
http://cgit.freedesktop.org/mesa/demos/tree/?id=mesa-demos-8.1.0
|
|
||||||
but not in the release tarball
|
|
||||||
ftp://ftp.freedesktop.org/pub/mesa/demos/8.1.0/mesa-demos-8.1.0.tar.bz2
|
|
||||||
|
|
||||||
Upstream-Status: Backport
|
|
||||||
Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
|
|
||||||
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
||||||
---
|
|
||||||
src/fpglsl/depth-read.glsl | 4 +
|
|
||||||
src/fpglsl/infinite-loop.glsl | 7 +
|
|
||||||
src/glsl/CH11-bumpmaptex.frag | 47 +++++++
|
|
||||||
src/glsl/blinking-teapot.frag | 31 +++++
|
|
||||||
src/glsl/blinking-teapot.vert | 16 +++
|
|
||||||
src/glsl/convolution.frag | 21 +++
|
|
||||||
src/glsl/simplex-noise.glsl | 279 ++++++++++++++++++++++++++++++++++++++++
|
|
||||||
src/glsl/skinning.vert | 24 ++++
|
|
||||||
src/perf/glslstateschange1.frag | 19 +++
|
|
||||||
src/perf/glslstateschange1.vert | 14 ++
|
|
||||||
src/perf/glslstateschange2.frag | 17 +++
|
|
||||||
src/perf/glslstateschange2.vert | 14 ++
|
|
||||||
src/vpglsl/infinite-loop.glsl | 8 ++
|
|
||||||
13 files changed, 501 insertions(+)
|
|
||||||
create mode 100644 src/fpglsl/depth-read.glsl
|
|
||||||
create mode 100644 src/fpglsl/infinite-loop.glsl
|
|
||||||
create mode 100644 src/glsl/CH11-bumpmaptex.frag
|
|
||||||
create mode 100644 src/glsl/blinking-teapot.frag
|
|
||||||
create mode 100644 src/glsl/blinking-teapot.vert
|
|
||||||
create mode 100644 src/glsl/convolution.frag
|
|
||||||
create mode 100644 src/glsl/simplex-noise.glsl
|
|
||||||
create mode 100644 src/glsl/skinning.vert
|
|
||||||
create mode 100644 src/perf/glslstateschange1.frag
|
|
||||||
create mode 100644 src/perf/glslstateschange1.vert
|
|
||||||
create mode 100644 src/perf/glslstateschange2.frag
|
|
||||||
create mode 100644 src/perf/glslstateschange2.vert
|
|
||||||
create mode 100644 src/vpglsl/infinite-loop.glsl
|
|
||||||
|
|
||||||
diff --git a/src/fpglsl/depth-read.glsl b/src/fpglsl/depth-read.glsl
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..86d298e
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/src/fpglsl/depth-read.glsl
|
|
||||||
@@ -0,0 +1,4 @@
|
|
||||||
+void main()
|
|
||||||
+{
|
|
||||||
+ gl_FragColor = gl_FragCoord.zzzz;
|
|
||||||
+}
|
|
||||||
diff --git a/src/fpglsl/infinite-loop.glsl b/src/fpglsl/infinite-loop.glsl
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..c6dc6ee
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/src/fpglsl/infinite-loop.glsl
|
|
||||||
@@ -0,0 +1,7 @@
|
|
||||||
+void main() {
|
|
||||||
+ vec4 sum = vec4(0);
|
|
||||||
+ for (int i = 1; i != 2; i += 2) {
|
|
||||||
+ sum += vec4(0.1, 0.1, 0.1, 0.1);
|
|
||||||
+ }
|
|
||||||
+ gl_FragColor = sum;
|
|
||||||
+}
|
|
||||||
diff --git a/src/glsl/CH11-bumpmaptex.frag b/src/glsl/CH11-bumpmaptex.frag
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..b5dabb4
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/src/glsl/CH11-bumpmaptex.frag
|
|
||||||
@@ -0,0 +1,47 @@
|
|
||||||
+//
|
|
||||||
+// Fragment shader for procedural bumps
|
|
||||||
+//
|
|
||||||
+// Authors: John Kessenich, Randi Rost
|
|
||||||
+//
|
|
||||||
+// Copyright (c) 2002-2006 3Dlabs Inc. Ltd.
|
|
||||||
+//
|
|
||||||
+// See 3Dlabs-License.txt for license information
|
|
||||||
+//
|
|
||||||
+// Texture mapping/modulation added by Brian Paul
|
|
||||||
+//
|
|
||||||
+
|
|
||||||
+varying vec3 LightDir;
|
|
||||||
+varying vec3 EyeDir;
|
|
||||||
+
|
|
||||||
+uniform float BumpDensity; // = 16.0
|
|
||||||
+uniform float BumpSize; // = 0.15
|
|
||||||
+uniform float SpecularFactor; // = 0.5
|
|
||||||
+
|
|
||||||
+uniform sampler2D Tex;
|
|
||||||
+
|
|
||||||
+void main()
|
|
||||||
+{
|
|
||||||
+ vec3 ambient = vec3(0.25);
|
|
||||||
+ vec3 litColor;
|
|
||||||
+ vec2 c = BumpDensity * gl_TexCoord[0].st;
|
|
||||||
+ vec2 p = fract(c) - vec2(0.5);
|
|
||||||
+
|
|
||||||
+ float d, f;
|
|
||||||
+ d = p.x * p.x + p.y * p.y;
|
|
||||||
+ f = inversesqrt(d + 1.0);
|
|
||||||
+
|
|
||||||
+ if (d >= BumpSize)
|
|
||||||
+ { p = vec2(0.0); f = 1.0; }
|
|
||||||
+
|
|
||||||
+ vec3 SurfaceColor = texture2D(Tex, gl_TexCoord[0].st).xyz;
|
|
||||||
+
|
|
||||||
+ vec3 normDelta = vec3(p.x, p.y, 1.0) * f;
|
|
||||||
+ litColor = SurfaceColor * (ambient + max(dot(normDelta, LightDir), 0.0));
|
|
||||||
+ vec3 reflectDir = reflect(LightDir, normDelta);
|
|
||||||
+
|
|
||||||
+ float spec = max(dot(EyeDir, reflectDir), 0.0);
|
|
||||||
+ spec *= SpecularFactor;
|
|
||||||
+ litColor = min(litColor + spec, vec3(1.0));
|
|
||||||
+
|
|
||||||
+ gl_FragColor = vec4(litColor, 1.0);
|
|
||||||
+}
|
|
||||||
diff --git a/src/glsl/blinking-teapot.frag b/src/glsl/blinking-teapot.frag
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..0db060b
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/src/glsl/blinking-teapot.frag
|
|
||||||
@@ -0,0 +1,31 @@
|
|
||||||
+#extension GL_ARB_uniform_buffer_object : enable
|
|
||||||
+
|
|
||||||
+layout(std140) uniform colors0
|
|
||||||
+{
|
|
||||||
+ float DiffuseCool;
|
|
||||||
+ float DiffuseWarm;
|
|
||||||
+ vec3 SurfaceColor;
|
|
||||||
+ vec3 WarmColor;
|
|
||||||
+ vec3 CoolColor;
|
|
||||||
+ vec4 some[8];
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+varying float NdotL;
|
|
||||||
+varying vec3 ReflectVec;
|
|
||||||
+varying vec3 ViewVec;
|
|
||||||
+
|
|
||||||
+void main (void)
|
|
||||||
+{
|
|
||||||
+
|
|
||||||
+ vec3 kcool = min(CoolColor + DiffuseCool * SurfaceColor, 1.0);
|
|
||||||
+ vec3 kwarm = min(WarmColor + DiffuseWarm * SurfaceColor, 1.0);
|
|
||||||
+ vec3 kfinal = mix(kcool, kwarm, NdotL);
|
|
||||||
+
|
|
||||||
+ vec3 nreflect = normalize(ReflectVec);
|
|
||||||
+ vec3 nview = normalize(ViewVec);
|
|
||||||
+
|
|
||||||
+ float spec = max(dot(nreflect, nview), 0.0);
|
|
||||||
+ spec = pow(spec, 32.0);
|
|
||||||
+
|
|
||||||
+ gl_FragColor = vec4 (min(kfinal + spec, 1.0), 1.0);
|
|
||||||
+}
|
|
||||||
diff --git a/src/glsl/blinking-teapot.vert b/src/glsl/blinking-teapot.vert
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..397d733
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/src/glsl/blinking-teapot.vert
|
|
||||||
@@ -0,0 +1,16 @@
|
|
||||||
+vec3 LightPosition = vec3(0.0, 10.0, 4.0);
|
|
||||||
+
|
|
||||||
+varying float NdotL;
|
|
||||||
+varying vec3 ReflectVec;
|
|
||||||
+varying vec3 ViewVec;
|
|
||||||
+
|
|
||||||
+void main(void)
|
|
||||||
+{
|
|
||||||
+ vec3 ecPos = vec3 (gl_ModelViewMatrix * gl_Vertex);
|
|
||||||
+ vec3 tnorm = normalize(gl_NormalMatrix * gl_Normal);
|
|
||||||
+ vec3 lightVec = normalize(LightPosition - ecPos);
|
|
||||||
+ ReflectVec = normalize(reflect(-lightVec, tnorm));
|
|
||||||
+ ViewVec = normalize(-ecPos);
|
|
||||||
+ NdotL = (dot(lightVec, tnorm) + 1.0) * 0.5;
|
|
||||||
+ gl_Position = ftransform();
|
|
||||||
+}
|
|
||||||
diff --git a/src/glsl/convolution.frag b/src/glsl/convolution.frag
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..e49b8ac
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/src/glsl/convolution.frag
|
|
||||||
@@ -0,0 +1,21 @@
|
|
||||||
+
|
|
||||||
+const int KernelSize = 9;
|
|
||||||
+
|
|
||||||
+//texture offsets
|
|
||||||
+uniform vec2 Offset[KernelSize];
|
|
||||||
+//convolution kernel
|
|
||||||
+uniform vec4 KernelValue[KernelSize];
|
|
||||||
+uniform sampler2D srcTex;
|
|
||||||
+uniform vec4 ScaleFactor;
|
|
||||||
+uniform vec4 BaseColor;
|
|
||||||
+
|
|
||||||
+void main(void)
|
|
||||||
+{
|
|
||||||
+ int i;
|
|
||||||
+ vec4 sum = vec4(0.0);
|
|
||||||
+ for (i = 0; i < KernelSize; ++i) {
|
|
||||||
+ vec4 tmp = texture2D(srcTex, gl_TexCoord[0].st + Offset[i]);
|
|
||||||
+ sum += tmp * KernelValue[i];
|
|
||||||
+ }
|
|
||||||
+ gl_FragColor = sum * ScaleFactor + BaseColor;
|
|
||||||
+}
|
|
||||||
diff --git a/src/glsl/simplex-noise.glsl b/src/glsl/simplex-noise.glsl
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..b6833cb
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/src/glsl/simplex-noise.glsl
|
|
||||||
@@ -0,0 +1,279 @@
|
|
||||||
+//
|
|
||||||
+// Description : Array and textureless GLSL 2D/3D/4D simplex
|
|
||||||
+// noise functions.
|
|
||||||
+// Author : Ian McEwan, Ashima Arts.
|
|
||||||
+// Maintainer : ijm
|
|
||||||
+// Lastmod : 20110223
|
|
||||||
+// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
|
|
||||||
+// Distributed under the Artistic License 2.0; See LICENCE file.
|
|
||||||
+//
|
|
||||||
+
|
|
||||||
+#define NORMALIZE_GRADIENTS
|
|
||||||
+#undef USE_CIRCLE
|
|
||||||
+#define COLLAPSE_SORTNET
|
|
||||||
+
|
|
||||||
+float permute(float x0,vec3 p) {
|
|
||||||
+ float x1 = mod(x0 * p.y, p.x);
|
|
||||||
+ return floor( mod( (x1 + p.z) *x0, p.x ));
|
|
||||||
+ }
|
|
||||||
+vec2 permute(vec2 x0,vec3 p) {
|
|
||||||
+ vec2 x1 = mod(x0 * p.y, p.x);
|
|
||||||
+ return floor( mod( (x1 + p.z) *x0, p.x ));
|
|
||||||
+ }
|
|
||||||
+vec3 permute(vec3 x0,vec3 p) {
|
|
||||||
+ vec3 x1 = mod(x0 * p.y, p.x);
|
|
||||||
+ return floor( mod( (x1 + p.z) *x0, p.x ));
|
|
||||||
+ }
|
|
||||||
+vec4 permute(vec4 x0,vec3 p) {
|
|
||||||
+ vec4 x1 = mod(x0 * p.y, p.x);
|
|
||||||
+ return floor( mod( (x1 + p.z) *x0, p.x ));
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+uniform vec4 pParam;
|
|
||||||
+// Example
|
|
||||||
+// const vec4 pParam = vec4( 17.* 17., 34., 1., 7.);
|
|
||||||
+
|
|
||||||
+float taylorInvSqrt(float r)
|
|
||||||
+ {
|
|
||||||
+ return ( 0.83666002653408 + 0.7*0.85373472095314 - 0.85373472095314 * r );
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+float simplexNoise2(vec2 v)
|
|
||||||
+ {
|
|
||||||
+ const vec2 C = vec2(0.211324865405187134, // (3.0-sqrt(3.0))/6.;
|
|
||||||
+ 0.366025403784438597); // 0.5*(sqrt(3.0)-1.);
|
|
||||||
+ const vec3 D = vec3( 0., 0.5, 2.0) * 3.14159265358979312;
|
|
||||||
+// First corner
|
|
||||||
+ vec2 i = floor(v + dot(v, C.yy) );
|
|
||||||
+ vec2 x0 = v - i + dot(i, C.xx);
|
|
||||||
+
|
|
||||||
+// Other corners
|
|
||||||
+ vec2 i1 = (x0.x > x0.y) ? vec2(1.,0.) : vec2(0.,1.) ;
|
|
||||||
+
|
|
||||||
+ // x0 = x0 - 0. + 0. * C
|
|
||||||
+ vec2 x1 = x0 - i1 + 1. * C.xx ;
|
|
||||||
+ vec2 x2 = x0 - 1. + 2. * C.xx ;
|
|
||||||
+
|
|
||||||
+// Permutations
|
|
||||||
+ i = mod(i, pParam.x);
|
|
||||||
+ vec3 p = permute( permute(
|
|
||||||
+ i.y + vec3(0., i1.y, 1. ), pParam.xyz)
|
|
||||||
+ + i.x + vec3(0., i1.x, 1. ), pParam.xyz);
|
|
||||||
+
|
|
||||||
+#ifndef USE_CIRCLE
|
|
||||||
+// ( N points uniformly over a line, mapped onto a diamond.)
|
|
||||||
+ vec3 x = fract(p / pParam.w) ;
|
|
||||||
+ vec3 h = 0.5 - abs(x) ;
|
|
||||||
+
|
|
||||||
+ vec3 sx = vec3(lessThan(x,D.xxx)) *2. -1.;
|
|
||||||
+ vec3 sh = vec3(lessThan(h,D.xxx));
|
|
||||||
+
|
|
||||||
+ vec3 a0 = x + sx*sh;
|
|
||||||
+ vec2 p0 = vec2(a0.x,h.x);
|
|
||||||
+ vec2 p1 = vec2(a0.y,h.y);
|
|
||||||
+ vec2 p2 = vec2(a0.z,h.z);
|
|
||||||
+
|
|
||||||
+#ifdef NORMALISE_GRADIENTS
|
|
||||||
+ p0 *= taylorInvSqrt(dot(p0,p0));
|
|
||||||
+ p1 *= taylorInvSqrt(dot(p1,p1));
|
|
||||||
+ p2 *= taylorInvSqrt(dot(p2,p2));
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+ vec3 g = 2.0 * vec3( dot(p0, x0), dot(p1, x1), dot(p2, x2) );
|
|
||||||
+#else
|
|
||||||
+// N points around a unit circle.
|
|
||||||
+ vec3 phi = D.z * mod(p,pParam.w) /pParam.w ;
|
|
||||||
+ vec4 a0 = sin(phi.xxyy+D.xyxy);
|
|
||||||
+ vec2 a1 = sin(phi.zz +D.xy);
|
|
||||||
+ vec3 g = vec3( dot(a0.xy, x0), dot(a0.zw, x1), dot(a1.xy, x2) );
|
|
||||||
+#endif
|
|
||||||
+// mix
|
|
||||||
+ vec3 m = max(0.5 - vec3(dot(x0,x0), dot(x1,x1), dot(x2,x2)), 0.);
|
|
||||||
+ m = m*m ;
|
|
||||||
+ return 1.66666* 70.*dot(m*m, g);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+float simplexNoise3(vec3 v)
|
|
||||||
+ {
|
|
||||||
+ const vec2 C = vec2(1./6. , 1./3. ) ;
|
|
||||||
+ const vec4 D = vec4(0., 0.5, 1.0, 2.0);
|
|
||||||
+
|
|
||||||
+// First corner
|
|
||||||
+ vec3 i = floor(v + dot(v, C.yyy) );
|
|
||||||
+ vec3 x0 = v - i + dot(i, C.xxx) ;
|
|
||||||
+
|
|
||||||
+// Other corners
|
|
||||||
+#ifdef COLLAPSE_SORTNET
|
|
||||||
+ vec3 g = vec3( greaterThan( x0.xyz, x0.yzx) );
|
|
||||||
+ vec3 l = vec3( lessThanEqual( x0.xyz, x0.yzx) );
|
|
||||||
+
|
|
||||||
+ vec3 i1 = g.xyz * l.zxy;
|
|
||||||
+ vec3 i2 = max( g.xyz, l.zxy);
|
|
||||||
+#else
|
|
||||||
+// Keeping this clean - let the compiler optimize.
|
|
||||||
+ vec3 q1;
|
|
||||||
+ q1.x = max(x0.x, x0.y);
|
|
||||||
+ q1.y = min(x0.x, x0.y);
|
|
||||||
+ q1.z = x0.z;
|
|
||||||
+
|
|
||||||
+ vec3 q2;
|
|
||||||
+ q2.x = max(q1.x,q1.z);
|
|
||||||
+ q2.z = min(q1.x,q1.z);
|
|
||||||
+ q2.y = q1.y;
|
|
||||||
+
|
|
||||||
+ vec3 q3;
|
|
||||||
+ q3.y = max(q2.y, q2.z);
|
|
||||||
+ q3.z = min(q2.y, q2.z);
|
|
||||||
+ q3.x = q2.x;
|
|
||||||
+
|
|
||||||
+ vec3 i1 = vec3(equal(q3.xxx, x0));
|
|
||||||
+ vec3 i2 = i1 + vec3(equal(q3.yyy, x0));
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+ // x0 = x0 - 0. + 0. * C
|
|
||||||
+ vec3 x1 = x0 - i1 + 1. * C.xxx;
|
|
||||||
+ vec3 x2 = x0 - i2 + 2. * C.xxx;
|
|
||||||
+ vec3 x3 = x0 - 1. + 3. * C.xxx;
|
|
||||||
+
|
|
||||||
+// Permutations
|
|
||||||
+ i = mod(i, pParam.x );
|
|
||||||
+ vec4 p = permute( permute( permute(
|
|
||||||
+ i.z + vec4(0., i1.z, i2.z, 1. ), pParam.xyz)
|
|
||||||
+ + i.y + vec4(0., i1.y, i2.y, 1. ), pParam.xyz)
|
|
||||||
+ + i.x + vec4(0., i1.x, i2.x, 1. ), pParam.xyz);
|
|
||||||
+
|
|
||||||
+// Gradients
|
|
||||||
+// ( N*N points uniformly over a square, mapped onto a octohedron.)
|
|
||||||
+ float n_ = 1.0/pParam.w ;
|
|
||||||
+ vec3 ns = n_ * D.wyz - D.xzx ;
|
|
||||||
+
|
|
||||||
+ vec4 j = p - pParam.w*pParam.w*floor(p * ns.z *ns.z); // mod(p,N*N)
|
|
||||||
+
|
|
||||||
+ vec4 x_ = floor(j * ns.z) ;
|
|
||||||
+ vec4 y_ = floor(j - pParam.w * x_ ) ; // mod(j,N)
|
|
||||||
+
|
|
||||||
+ vec4 x = x_ *ns.x + ns.yyyy;
|
|
||||||
+ vec4 y = y_ *ns.x + ns.yyyy;
|
|
||||||
+ vec4 h = 1. - abs(x) - abs(y);
|
|
||||||
+
|
|
||||||
+ vec4 b0 = vec4( x.xy, y.xy );
|
|
||||||
+ vec4 b1 = vec4( x.zw, y.zw );
|
|
||||||
+
|
|
||||||
+ vec4 s0 = vec4(lessThan(b0,D.xxxx)) *2. -1.;
|
|
||||||
+ vec4 s1 = vec4(lessThan(b1,D.xxxx)) *2. -1.;
|
|
||||||
+ vec4 sh = vec4(lessThan(h, D.xxxx));
|
|
||||||
+
|
|
||||||
+ vec4 a0 = b0.xzyw + s0.xzyw*sh.xxyy ;
|
|
||||||
+ vec4 a1 = b1.xzyw + s1.xzyw*sh.zzww ;
|
|
||||||
+
|
|
||||||
+ vec3 p0 = vec3(a0.xy,h.x);
|
|
||||||
+ vec3 p1 = vec3(a0.zw,h.y);
|
|
||||||
+ vec3 p2 = vec3(a1.xy,h.z);
|
|
||||||
+ vec3 p3 = vec3(a1.zw,h.w);
|
|
||||||
+
|
|
||||||
+#ifdef NORMALISE_GRADIENTS
|
|
||||||
+ p0 *= taylorInvSqrt(dot(p0,p0));
|
|
||||||
+ p1 *= taylorInvSqrt(dot(p1,p1));
|
|
||||||
+ p2 *= taylorInvSqrt(dot(p2,p2));
|
|
||||||
+ p3 *= taylorInvSqrt(dot(p3,p3));
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+// Mix
|
|
||||||
+ vec4 m = max(0.6 - vec4(dot(x0,x0), dot(x1,x1), dot(x2,x2), dot(x3,x3)), 0.);
|
|
||||||
+ m = m * m;
|
|
||||||
+//used to be 64.
|
|
||||||
+ return 48.0 * dot( m*m, vec4( dot(p0,x0), dot(p1,x1),
|
|
||||||
+ dot(p2,x2), dot(p3,x3) ) );
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+vec4 grad4(float j, vec4 ip)
|
|
||||||
+ {
|
|
||||||
+ const vec4 ones = vec4(1.,1.,1.,-1.);
|
|
||||||
+ vec4 p,s;
|
|
||||||
+
|
|
||||||
+ p.xyz = floor( fract (vec3(j) * ip.xyz) *pParam.w) * ip.z -1.0;
|
|
||||||
+ p.w = 1.5 - dot(abs(p.xyz), ones.xyz);
|
|
||||||
+ s = vec4(lessThan(p,vec4(0.)));
|
|
||||||
+ p.xyz = p.xyz + (s.xyz*2.-1.) * s.www;
|
|
||||||
+
|
|
||||||
+ return p;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+float simplexNoise4(vec4 v)
|
|
||||||
+ {
|
|
||||||
+ const vec2 C = vec2( 0.138196601125010504, // (5 - sqrt(5))/20 G4
|
|
||||||
+ 0.309016994374947451); // (sqrt(5) - 1)/4 F4
|
|
||||||
+// First corner
|
|
||||||
+ vec4 i = floor(v + dot(v, C.yyyy) );
|
|
||||||
+ vec4 x0 = v - i + dot(i, C.xxxx);
|
|
||||||
+
|
|
||||||
+// Other corners
|
|
||||||
+
|
|
||||||
+// Force existance of strict total ordering in sort.
|
|
||||||
+ vec4 q0 = floor(x0 * 1024.0) + vec4( 0., 1./4., 2./4. , 3./4.);
|
|
||||||
+ vec4 q1;
|
|
||||||
+ q1.xy = max(q0.xy,q0.zw); // x:z y:w
|
|
||||||
+ q1.zw = min(q0.xy,q0.zw);
|
|
||||||
+
|
|
||||||
+ vec4 q2;
|
|
||||||
+ q2.xz = max(q1.xz,q1.yw); // x:y z:w
|
|
||||||
+ q2.yw = min(q1.xz,q1.yw);
|
|
||||||
+
|
|
||||||
+ vec4 q3;
|
|
||||||
+ q3.y = max(q2.y,q2.z); // y:z
|
|
||||||
+ q3.z = min(q2.y,q2.z);
|
|
||||||
+ q3.xw = q2.xw;
|
|
||||||
+
|
|
||||||
+ vec4 i1 = vec4(lessThanEqual(q3.xxxx, q0));
|
|
||||||
+ vec4 i2 = vec4(lessThanEqual(q3.yyyy, q0));
|
|
||||||
+ vec4 i3 = vec4(lessThanEqual(q3.zzzz, q0));
|
|
||||||
+
|
|
||||||
+ // x0 = x0 - 0. + 0. * C
|
|
||||||
+ vec4 x1 = x0 - i1 + 1. * C.xxxx;
|
|
||||||
+ vec4 x2 = x0 - i2 + 2. * C.xxxx;
|
|
||||||
+ vec4 x3 = x0 - i3 + 3. * C.xxxx;
|
|
||||||
+ vec4 x4 = x0 - 1. + 4. * C.xxxx;
|
|
||||||
+
|
|
||||||
+// Permutations
|
|
||||||
+ i = mod(i, pParam.x );
|
|
||||||
+ float j0 = permute( permute( permute( permute (
|
|
||||||
+ i.w, pParam.xyz) + i.z, pParam.xyz)
|
|
||||||
+ + i.y, pParam.xyz) + i.x, pParam.xyz);
|
|
||||||
+ vec4 j1 = permute( permute( permute( permute (
|
|
||||||
+ i.w + vec4(i1.w, i2.w, i3.w, 1. ), pParam.xyz)
|
|
||||||
+ + i.z + vec4(i1.z, i2.z, i3.z, 1. ), pParam.xyz)
|
|
||||||
+ + i.y + vec4(i1.y, i2.y, i3.y, 1. ), pParam.xyz)
|
|
||||||
+ + i.x + vec4(i1.x, i2.x, i3.x, 1. ), pParam.xyz);
|
|
||||||
+// Gradients
|
|
||||||
+// ( N*N*N points uniformly over a cube, mapped onto a 4-octohedron.)
|
|
||||||
+ vec4 ip = pParam ;
|
|
||||||
+ ip.xy *= pParam.w ;
|
|
||||||
+ ip.x *= pParam.w ;
|
|
||||||
+ ip = vec4(1.,1.,1.,2.) / ip ;
|
|
||||||
+
|
|
||||||
+ vec4 p0 = grad4(j0, ip);
|
|
||||||
+ vec4 p1 = grad4(j1.x, ip);
|
|
||||||
+ vec4 p2 = grad4(j1.y, ip);
|
|
||||||
+ vec4 p3 = grad4(j1.z, ip);
|
|
||||||
+ vec4 p4 = grad4(j1.w, ip);
|
|
||||||
+
|
|
||||||
+#ifdef NORMALISE_GRADIENTS
|
|
||||||
+ p0 *= taylorInvSqrt(dot(p0,p0));
|
|
||||||
+ p1 *= taylorInvSqrt(dot(p1,p1));
|
|
||||||
+ p2 *= taylorInvSqrt(dot(p2,p2));
|
|
||||||
+ p3 *= taylorInvSqrt(dot(p3,p3));
|
|
||||||
+ p4 *= taylorInvSqrt(dot(p4,p4));
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+// Mix
|
|
||||||
+ vec3 m0 = max(0.6 - vec3(dot(x0,x0), dot(x1,x1), dot(x2,x2)), 0.);
|
|
||||||
+ vec2 m1 = max(0.6 - vec2(dot(x3,x3), dot(x4,x4) ), 0.);
|
|
||||||
+ m0 = m0 * m0;
|
|
||||||
+ m1 = m1 * m1;
|
|
||||||
+ return 32. * ( dot(m0*m0, vec3( dot( p0, x0 ), dot( p1, x1 ), dot( p2, x2 )))
|
|
||||||
+ + dot(m1*m1, vec2( dot( p3, x3 ), dot( p4, x4 ) ) ) ) ;
|
|
||||||
+
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+
|
|
||||||
diff --git a/src/glsl/skinning.vert b/src/glsl/skinning.vert
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..28970ee
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/src/glsl/skinning.vert
|
|
||||||
@@ -0,0 +1,24 @@
|
|
||||||
+// Vertex weighting/blendin shader
|
|
||||||
+// Brian Paul
|
|
||||||
+// 4 Nov 2008
|
|
||||||
+
|
|
||||||
+uniform mat4 mat0, mat1;
|
|
||||||
+attribute float weight;
|
|
||||||
+
|
|
||||||
+void main()
|
|
||||||
+{
|
|
||||||
+ // simple diffuse shading
|
|
||||||
+ // Note that we should really transform the normal vector along with
|
|
||||||
+ // the postion below... someday.
|
|
||||||
+ vec3 lightVec = vec3(0, 0, 1);
|
|
||||||
+ vec3 norm = gl_NormalMatrix * gl_Normal;
|
|
||||||
+ float dot = 0.2 + max(0.0, dot(norm, lightVec));
|
|
||||||
+ gl_FrontColor = vec4(dot);
|
|
||||||
+
|
|
||||||
+ // compute sum of weighted transformations
|
|
||||||
+ vec4 pos0 = mat0 * gl_Vertex;
|
|
||||||
+ vec4 pos1 = mat1 * gl_Vertex;
|
|
||||||
+ vec4 pos = mix(pos0, pos1, weight);
|
|
||||||
+
|
|
||||||
+ gl_Position = gl_ModelViewProjectionMatrix * pos;
|
|
||||||
+}
|
|
||||||
diff --git a/src/perf/glslstateschange1.frag b/src/perf/glslstateschange1.frag
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..0839436
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/src/perf/glslstateschange1.frag
|
|
||||||
@@ -0,0 +1,19 @@
|
|
||||||
+// Multi-texture fragment shader
|
|
||||||
+// Brian Paul
|
|
||||||
+
|
|
||||||
+// Composite second texture over first.
|
|
||||||
+// We're assuming the 2nd texture has a meaningful alpha channel.
|
|
||||||
+
|
|
||||||
+uniform sampler2D tex1;
|
|
||||||
+uniform sampler2D tex2;
|
|
||||||
+uniform vec4 UniV1;
|
|
||||||
+uniform vec4 UniV2;
|
|
||||||
+
|
|
||||||
+void main()
|
|
||||||
+{
|
|
||||||
+ vec4 t3;
|
|
||||||
+ vec4 t1 = texture2D(tex1, gl_TexCoord[0].xy);
|
|
||||||
+ vec4 t2 = texture2D(tex2, gl_TexCoord[1].xy);
|
|
||||||
+ t3 = mix(t1, t2, t2.w);
|
|
||||||
+ gl_FragColor = t3 + UniV1 + UniV2;
|
|
||||||
+}
|
|
||||||
diff --git a/src/perf/glslstateschange1.vert b/src/perf/glslstateschange1.vert
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..cef50db
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/src/perf/glslstateschange1.vert
|
|
||||||
@@ -0,0 +1,14 @@
|
|
||||||
+// Multi-texture vertex shader
|
|
||||||
+// Brian Paul
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+attribute vec4 TexCoord0, TexCoord1;
|
|
||||||
+attribute vec4 VertCoord;
|
|
||||||
+
|
|
||||||
+void main()
|
|
||||||
+{
|
|
||||||
+ gl_TexCoord[0] = TexCoord0;
|
|
||||||
+ gl_TexCoord[1] = TexCoord1;
|
|
||||||
+ // note: may use gl_Vertex or VertCoord here for testing:
|
|
||||||
+ gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
|
|
||||||
+}
|
|
||||||
diff --git a/src/perf/glslstateschange2.frag b/src/perf/glslstateschange2.frag
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..0df0319
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/src/perf/glslstateschange2.frag
|
|
||||||
@@ -0,0 +1,17 @@
|
|
||||||
+// Multi-texture fragment shader
|
|
||||||
+// Brian Paul
|
|
||||||
+
|
|
||||||
+// Composite second texture over first.
|
|
||||||
+// We're assuming the 2nd texture has a meaningful alpha channel.
|
|
||||||
+
|
|
||||||
+uniform sampler2D tex1;
|
|
||||||
+uniform sampler2D tex2;
|
|
||||||
+uniform vec4 UniV1;
|
|
||||||
+uniform vec4 UniV2;
|
|
||||||
+
|
|
||||||
+void main()
|
|
||||||
+{
|
|
||||||
+ vec4 t1 = texture2D(tex1, gl_TexCoord[0].xy);
|
|
||||||
+ vec4 t2 = texture2D(tex2, gl_TexCoord[1].xy);
|
|
||||||
+ gl_FragColor = t1 + t2 + UniV1 + UniV2;
|
|
||||||
+}
|
|
||||||
diff --git a/src/perf/glslstateschange2.vert b/src/perf/glslstateschange2.vert
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..cef50db
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/src/perf/glslstateschange2.vert
|
|
||||||
@@ -0,0 +1,14 @@
|
|
||||||
+// Multi-texture vertex shader
|
|
||||||
+// Brian Paul
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+attribute vec4 TexCoord0, TexCoord1;
|
|
||||||
+attribute vec4 VertCoord;
|
|
||||||
+
|
|
||||||
+void main()
|
|
||||||
+{
|
|
||||||
+ gl_TexCoord[0] = TexCoord0;
|
|
||||||
+ gl_TexCoord[1] = TexCoord1;
|
|
||||||
+ // note: may use gl_Vertex or VertCoord here for testing:
|
|
||||||
+ gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
|
|
||||||
+}
|
|
||||||
diff --git a/src/vpglsl/infinite-loop.glsl b/src/vpglsl/infinite-loop.glsl
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..bc7ae4b
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/src/vpglsl/infinite-loop.glsl
|
|
||||||
@@ -0,0 +1,8 @@
|
|
||||||
+void main() {
|
|
||||||
+ gl_Position = gl_Vertex;
|
|
||||||
+ vec4 sum = vec4(0);
|
|
||||||
+ for (int i = 1; i != 2; i += 2) {
|
|
||||||
+ sum += vec4(0.1, 0.1, 0.1, 0.1);
|
|
||||||
+ }
|
|
||||||
+ gl_FrontColor = sum;
|
|
||||||
+}
|
|
||||||
--
|
|
||||||
2.0.0
|
|
||||||
|
|
@ -1,234 +0,0 @@
|
|||||||
From 5e10108d76a59abac21c7e540bcfd2ddaccca2cb Mon Sep 17 00:00:00 2001
|
|
||||||
From: Drew Moseley <drew_moseley@mentor.com>
|
|
||||||
Date: Fri, 9 May 2014 11:50:24 -0400
|
|
||||||
Subject: [PATCH 4/9] Use DEMOS_DATA_DIR to locate data files
|
|
||||||
|
|
||||||
Upstream-Status: Submitted [https://bugs.freedesktop.org/show_bug.cgi?id=78496]
|
|
||||||
Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
|
|
||||||
---
|
|
||||||
src/glsl/bezier.c | 2 +-
|
|
||||||
src/glsl/blinking-teapot.c | 4 ++--
|
|
||||||
src/glsl/brick.c | 4 ++--
|
|
||||||
src/glsl/bump.c | 6 +++---
|
|
||||||
src/glsl/convolutions.c | 2 +-
|
|
||||||
src/glsl/mandelbrot.c | 4 ++--
|
|
||||||
src/glsl/multitex.c | 4 ++--
|
|
||||||
src/glsl/simplex-noise.c | 2 +-
|
|
||||||
src/glsl/skinning.c | 4 ++--
|
|
||||||
src/glsl/texdemo1.c | 8 ++++----
|
|
||||||
src/glsl/toyball.c | 4 ++--
|
|
||||||
src/objviewer/objview.c | 12 ++++++------
|
|
||||||
src/perf/glslstateschange.c | 8 ++++----
|
|
||||||
13 files changed, 32 insertions(+), 32 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/glsl/bezier.c b/src/glsl/bezier.c
|
|
||||||
index 0b56bc1..e01603d 100644
|
|
||||||
--- a/src/glsl/bezier.c
|
|
||||||
+++ b/src/glsl/bezier.c
|
|
||||||
@@ -13,7 +13,7 @@
|
|
||||||
#include "glut_wrap.h"
|
|
||||||
#include "shaderutil.h"
|
|
||||||
|
|
||||||
-static const char *filename = "bezier.geom";
|
|
||||||
+static const char *filename = DEMOS_DATA_DIR "bezier.geom";
|
|
||||||
|
|
||||||
static GLuint fragShader;
|
|
||||||
static GLuint vertShader;
|
|
||||||
diff --git a/src/glsl/blinking-teapot.c b/src/glsl/blinking-teapot.c
|
|
||||||
index e3bf24d..7662b1f 100644
|
|
||||||
--- a/src/glsl/blinking-teapot.c
|
|
||||||
+++ b/src/glsl/blinking-teapot.c
|
|
||||||
@@ -63,8 +63,8 @@ init_opengl (void)
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
- vshad_id = CompileShaderFile (GL_VERTEX_SHADER, "blinking-teapot.vert");
|
|
||||||
- fshad_id = CompileShaderFile (GL_FRAGMENT_SHADER, "blinking-teapot.frag");
|
|
||||||
+ vshad_id = CompileShaderFile (GL_VERTEX_SHADER, DEMOS_DATA_DIR "blinking-teapot.vert");
|
|
||||||
+ fshad_id = CompileShaderFile (GL_FRAGMENT_SHADER, DEMOS_DATA_DIR "blinking-teapot.frag");
|
|
||||||
prog_id = LinkShaders (vshad_id, fshad_id);
|
|
||||||
|
|
||||||
UseProgram (prog_id);
|
|
||||||
diff --git a/src/glsl/brick.c b/src/glsl/brick.c
|
|
||||||
index 3021856..fe5f190 100644
|
|
||||||
--- a/src/glsl/brick.c
|
|
||||||
+++ b/src/glsl/brick.c
|
|
||||||
@@ -14,8 +14,8 @@
|
|
||||||
#include "shaderutil.h"
|
|
||||||
|
|
||||||
|
|
||||||
-static char *FragProgFile = "CH06-brick.frag";
|
|
||||||
-static char *VertProgFile = "CH06-brick.vert";
|
|
||||||
+static char *FragProgFile = DEMOS_DATA_DIR "CH06-brick.frag";
|
|
||||||
+static char *VertProgFile = DEMOS_DATA_DIR "CH06-brick.vert";
|
|
||||||
|
|
||||||
/* program/shader objects */
|
|
||||||
static GLuint fragShader;
|
|
||||||
diff --git a/src/glsl/bump.c b/src/glsl/bump.c
|
|
||||||
index 59f62cd..3a1b20a 100644
|
|
||||||
--- a/src/glsl/bump.c
|
|
||||||
+++ b/src/glsl/bump.c
|
|
||||||
@@ -15,9 +15,9 @@
|
|
||||||
#include "readtex.h"
|
|
||||||
|
|
||||||
|
|
||||||
-static char *FragProgFile = "CH11-bumpmap.frag";
|
|
||||||
-static char *FragTexProgFile = "CH11-bumpmaptex.frag";
|
|
||||||
-static char *VertProgFile = "CH11-bumpmap.vert";
|
|
||||||
+static char *FragProgFile = DEMOS_DATA_DIR "CH11-bumpmap.frag";
|
|
||||||
+static char *FragTexProgFile = DEMOS_DATA_DIR "CH11-bumpmaptex.frag";
|
|
||||||
+static char *VertProgFile = DEMOS_DATA_DIR "CH11-bumpmap.vert";
|
|
||||||
static char *TextureFile = DEMOS_DATA_DIR "tile.rgb";
|
|
||||||
|
|
||||||
/* program/shader objects */
|
|
||||||
diff --git a/src/glsl/convolutions.c b/src/glsl/convolutions.c
|
|
||||||
index a120cfe..9312f00 100644
|
|
||||||
--- a/src/glsl/convolutions.c
|
|
||||||
+++ b/src/glsl/convolutions.c
|
|
||||||
@@ -340,7 +340,7 @@ static void init(void)
|
|
||||||
|
|
||||||
menuInit();
|
|
||||||
readTexture(textureLocation);
|
|
||||||
- createProgram("convolution.vert", "convolution.frag");
|
|
||||||
+ createProgram(DEMOS_DATA_DIR "convolution.vert", DEMOS_DATA_DIR "convolution.frag");
|
|
||||||
|
|
||||||
glEnable(GL_TEXTURE_2D);
|
|
||||||
glClearColor(1.0, 1.0, 1.0, 1.0);
|
|
||||||
diff --git a/src/glsl/mandelbrot.c b/src/glsl/mandelbrot.c
|
|
||||||
index 31ede1d..ab34a0f 100644
|
|
||||||
--- a/src/glsl/mandelbrot.c
|
|
||||||
+++ b/src/glsl/mandelbrot.c
|
|
||||||
@@ -14,8 +14,8 @@
|
|
||||||
#include "shaderutil.h"
|
|
||||||
|
|
||||||
|
|
||||||
-static char *FragProgFile = "CH18-mandel.frag";
|
|
||||||
-static char *VertProgFile = "CH18-mandel.vert";
|
|
||||||
+static char *FragProgFile = DEMOS_DATA_DIR "CH18-mandel.frag";
|
|
||||||
+static char *VertProgFile = DEMOS_DATA_DIR "CH18-mandel.vert";
|
|
||||||
|
|
||||||
/* program/shader objects */
|
|
||||||
static GLuint fragShader;
|
|
||||||
diff --git a/src/glsl/multitex.c b/src/glsl/multitex.c
|
|
||||||
index 262ea50..546bd27 100644
|
|
||||||
--- a/src/glsl/multitex.c
|
|
||||||
+++ b/src/glsl/multitex.c
|
|
||||||
@@ -35,8 +35,8 @@
|
|
||||||
|
|
||||||
static const char *Demo = "multitex";
|
|
||||||
|
|
||||||
-static const char *VertFile = "multitex.vert";
|
|
||||||
-static const char *FragFile = "multitex.frag";
|
|
||||||
+static const char *VertFile = DEMOS_DATA_DIR "multitex.vert";
|
|
||||||
+static const char *FragFile = DEMOS_DATA_DIR "multitex.frag";
|
|
||||||
|
|
||||||
static const char *TexFiles[2] =
|
|
||||||
{
|
|
||||||
diff --git a/src/glsl/simplex-noise.c b/src/glsl/simplex-noise.c
|
|
||||||
index 13fdd5d..885f01e 100644
|
|
||||||
--- a/src/glsl/simplex-noise.c
|
|
||||||
+++ b/src/glsl/simplex-noise.c
|
|
||||||
@@ -169,7 +169,7 @@ SpecialKey(int key, int x, int y)
|
|
||||||
static void
|
|
||||||
Init(void)
|
|
||||||
{
|
|
||||||
- const char *filename = "simplex-noise.glsl";
|
|
||||||
+ const char *filename = DEMOS_DATA_DIR "simplex-noise.glsl";
|
|
||||||
char noiseText[10000];
|
|
||||||
FILE *f;
|
|
||||||
int len;
|
|
||||||
diff --git a/src/glsl/skinning.c b/src/glsl/skinning.c
|
|
||||||
index bf38d77..536d475 100644
|
|
||||||
--- a/src/glsl/skinning.c
|
|
||||||
+++ b/src/glsl/skinning.c
|
|
||||||
@@ -20,8 +20,8 @@
|
|
||||||
#define M_PI 3.1415926535
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-static char *FragProgFile = "skinning.frag";
|
|
||||||
-static char *VertProgFile = "skinning.vert";
|
|
||||||
+static char *FragProgFile = DEMOS_DATA_DIR "skinning.frag";
|
|
||||||
+static char *VertProgFile = DEMOS_DATA_DIR "skinning.vert";
|
|
||||||
|
|
||||||
/* program/shader objects */
|
|
||||||
static GLuint fragShader;
|
|
||||||
diff --git a/src/glsl/texdemo1.c b/src/glsl/texdemo1.c
|
|
||||||
index 6cde239..a082342 100644
|
|
||||||
--- a/src/glsl/texdemo1.c
|
|
||||||
+++ b/src/glsl/texdemo1.c
|
|
||||||
@@ -35,11 +35,11 @@
|
|
||||||
|
|
||||||
static const char *Demo = "texdemo1";
|
|
||||||
|
|
||||||
-static const char *ReflectVertFile = "reflect.vert";
|
|
||||||
-static const char *CubeFragFile = "cubemap.frag";
|
|
||||||
+static const char *ReflectVertFile = DEMOS_DATA_DIR "reflect.vert";
|
|
||||||
+static const char *CubeFragFile = DEMOS_DATA_DIR "cubemap.frag";
|
|
||||||
|
|
||||||
-static const char *SimpleVertFile = "simple.vert";
|
|
||||||
-static const char *SimpleTexFragFile = "shadowtex.frag";
|
|
||||||
+static const char *SimpleVertFile = DEMOS_DATA_DIR "simple.vert";
|
|
||||||
+static const char *SimpleTexFragFile = DEMOS_DATA_DIR "shadowtex.frag";
|
|
||||||
|
|
||||||
static const char *GroundImage = DEMOS_DATA_DIR "tile.rgb";
|
|
||||||
|
|
||||||
diff --git a/src/glsl/toyball.c b/src/glsl/toyball.c
|
|
||||||
index 5f27951..4e7e832 100644
|
|
||||||
--- a/src/glsl/toyball.c
|
|
||||||
+++ b/src/glsl/toyball.c
|
|
||||||
@@ -14,8 +14,8 @@
|
|
||||||
#include "shaderutil.h"
|
|
||||||
|
|
||||||
|
|
||||||
-static char *FragProgFile = "CH11-toyball.frag";
|
|
||||||
-static char *VertProgFile = "CH11-toyball.vert";
|
|
||||||
+static char *FragProgFile = DEMOS_DATA_DIR "CH11-toyball.frag";
|
|
||||||
+static char *VertProgFile = DEMOS_DATA_DIR "CH11-toyball.vert";
|
|
||||||
|
|
||||||
/* program/shader objects */
|
|
||||||
static GLuint fragShader;
|
|
||||||
diff --git a/src/objviewer/objview.c b/src/objviewer/objview.c
|
|
||||||
index 6def726..78a6acf 100644
|
|
||||||
--- a/src/objviewer/objview.c
|
|
||||||
+++ b/src/objviewer/objview.c
|
|
||||||
@@ -162,12 +162,12 @@ init_model(void)
|
|
||||||
static void
|
|
||||||
init_skybox(void)
|
|
||||||
{
|
|
||||||
- SkyboxTex = LoadSkyBoxCubeTexture("alpine_east.rgb",
|
|
||||||
- "alpine_west.rgb",
|
|
||||||
- "alpine_up.rgb",
|
|
||||||
- "alpine_down.rgb",
|
|
||||||
- "alpine_south.rgb",
|
|
||||||
- "alpine_north.rgb");
|
|
||||||
+ SkyboxTex = LoadSkyBoxCubeTexture(DEMOS_DATA_DIR "alpine_east.rgb",
|
|
||||||
+ DEMOS_DATA_DIR "alpine_west.rgb",
|
|
||||||
+ DEMOS_DATA_DIR "alpine_up.rgb",
|
|
||||||
+ DEMOS_DATA_DIR "alpine_down.rgb",
|
|
||||||
+ DEMOS_DATA_DIR "alpine_south.rgb",
|
|
||||||
+ DEMOS_DATA_DIR "alpine_north.rgb");
|
|
||||||
glmSpecularTexture(Model, SkyboxTex);
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git a/src/perf/glslstateschange.c b/src/perf/glslstateschange.c
|
|
||||||
index 7422b78..dbf8332 100644
|
|
||||||
--- a/src/perf/glslstateschange.c
|
|
||||||
+++ b/src/perf/glslstateschange.c
|
|
||||||
@@ -33,10 +33,10 @@
|
|
||||||
#include "glmain.h"
|
|
||||||
#include "common.h"
|
|
||||||
|
|
||||||
-static const char *VertFile1 = "glslstateschange1.vert";
|
|
||||||
-static const char *FragFile1 = "glslstateschange1.frag";
|
|
||||||
-static const char *VertFile2 = "glslstateschange2.vert";
|
|
||||||
-static const char *FragFile2 = "glslstateschange2.frag";
|
|
||||||
+static const char *VertFile1 = DEMOS_DATA_DIR "glslstateschange1.vert";
|
|
||||||
+static const char *FragFile1 = DEMOS_DATA_DIR "glslstateschange1.frag";
|
|
||||||
+static const char *VertFile2 = DEMOS_DATA_DIR "glslstateschange2.vert";
|
|
||||||
+static const char *FragFile2 = DEMOS_DATA_DIR "glslstateschange2.frag";
|
|
||||||
static struct uniform_info Uniforms1[] = {
|
|
||||||
{ "tex1", 1, GL_SAMPLER_2D, { 0, 0, 0, 0 }, -1 },
|
|
||||||
{ "tex2", 1, GL_SAMPLER_2D, { 1, 0, 0, 0 }, -1 },
|
|
||||||
--
|
|
||||||
2.0.0
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
|||||||
SUMMARY = "Mesa demo applications"
|
|
||||||
DESCRIPTION = "This package includes the demonstration application, such as glxgears. \
|
|
||||||
These applications can be used for Mesa validation and benchmarking."
|
|
||||||
HOMEPAGE = "http://mesa3d.org"
|
|
||||||
BUGTRACKER = "https://bugs.freedesktop.org"
|
|
||||||
SECTION = "x11"
|
|
||||||
|
|
||||||
LICENSE = "MIT & PD"
|
|
||||||
LIC_FILES_CHKSUM = "file://src/xdemos/glxgears.c;beginline=1;endline=20;md5=914225785450eff644a86c871d3ae00e \
|
|
||||||
file://src/xdemos/glxdemo.c;beginline=1;endline=8;md5=b01d5ab1aee94d35b7efaa2ef48e1a06"
|
|
||||||
|
|
||||||
SRC_URI = "https://mesa.freedesktop.org/archive/demos/${PV}/${BPN}-${PV}.tar.bz2 \
|
|
||||||
file://0001-mesa-demos-Add-missing-data-files.patch \
|
|
||||||
file://0004-Use-DEMOS_DATA_DIR-to-locate-data-files.patch \
|
|
||||||
"
|
|
||||||
SRC_URI[sha256sum] = "cea2df0a80f09a30f635c4eb1a672bf90c5ddee0b8e77f4d70041668ef71aac1"
|
|
||||||
|
|
||||||
inherit meson pkgconfig features_check
|
|
||||||
# depends on virtual/egl, virtual/libgl ...
|
|
||||||
REQUIRED_DISTRO_FEATURES = "opengl x11"
|
|
||||||
|
|
||||||
EXTRA_OEMESON = "-Dwith-system-data-files=true"
|
|
||||||
|
|
||||||
PACKAGECONFIG ?= "drm egl gles1 gles2 \
|
|
||||||
${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)}"
|
|
||||||
|
|
||||||
PACKAGECONFIG[drm] = "-Dlibdrm=enabled,-Dlibdrm=disabled,libdrm"
|
|
||||||
PACKAGECONFIG[egl] = "-Degl=enabled,-Degl=disabled,virtual/egl"
|
|
||||||
PACKAGECONFIG[gles1] = "-Dgles1=enabled,-Dgles1=disabled,virtual/libgles1"
|
|
||||||
PACKAGECONFIG[gles2] = "-Dgles2=enabled,-Dgles2=disabled,virtual/libgles2"
|
|
||||||
PACKAGECONFIG[glut] = "-Dwith-glut=${STAGING_EXECPREFIXDIR},,freeglut"
|
|
||||||
PACKAGECONFIG[osmesa] = "-Dosmesa=enabled,-Dosmesa=disabled,"
|
|
||||||
PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled,virtual/libgl wayland wayland-native wayland-protocols"
|
|
||||||
PACKAGECONFIG[x11] = "-Dx11=enabled,-Dx11=disabled,virtual/libx11 libglu"
|
|
||||||
|
|
||||||
do_install:append() {
|
|
||||||
# it can be completely empty when all PACKAGECONFIG options are disabled
|
|
||||||
rmdir --ignore-fail-on-non-empty ${D}${bindir}
|
|
||||||
|
|
||||||
if [ -f ${D}${bindir}/clear ]; then
|
|
||||||
mv ${D}${bindir}/clear ${D}${bindir}/clear.mesa-demos
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
require mesa.inc
|
|
||||||
|
|
||||||
SUMMARY += " (OpenGL only, no EGL/GLES)"
|
|
||||||
|
|
||||||
PROVIDES = "virtual/libgl virtual/mesa"
|
|
||||||
|
|
||||||
S = "${WORKDIR}/mesa-${PV}"
|
|
||||||
|
|
||||||
TARGET_CFLAGS = "-I${STAGING_INCDIR}/drm"
|
|
||||||
|
|
||||||
# At least one DRI rendering engine is required to build mesa.
|
|
||||||
# When no X11 is available, use osmesa for the rendering engine.
|
|
||||||
PACKAGECONFIG ??= "opengl gallium ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}"
|
|
||||||
PACKAGECONFIG:class-target = "opengl gallium ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}"
|
|
||||||
|
|
@ -1,369 +0,0 @@
|
|||||||
SUMMARY = "A free implementation of the OpenGL API"
|
|
||||||
DESCRIPTION = "Mesa is an open-source implementation of the OpenGL specification - \
|
|
||||||
a system for rendering interactive 3D graphics. \
|
|
||||||
A variety of device drivers allows Mesa to be used in many different environments \
|
|
||||||
ranging from software emulation to complete hardware acceleration for modern GPUs. \
|
|
||||||
Mesa is used as part of the overall Direct Rendering Infrastructure and X.org \
|
|
||||||
environment."
|
|
||||||
|
|
||||||
HOMEPAGE = "http://mesa3d.org"
|
|
||||||
BUGTRACKER = "https://bugs.freedesktop.org"
|
|
||||||
SECTION = "x11"
|
|
||||||
LICENSE = "MIT"
|
|
||||||
LIC_FILES_CHKSUM = "file://docs/license.rst;md5=63779ec98d78d823a9dc533a0735ef10"
|
|
||||||
|
|
||||||
PE = "2"
|
|
||||||
|
|
||||||
SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
|
|
||||||
file://0001-meson.build-check-for-all-linux-host_os-combinations.patch \
|
|
||||||
file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \
|
|
||||||
file://0001-gallium-Fix-build-with-llvm-17.patch \
|
|
||||||
file://0001-drisw-fix-build-without-dri3.patch \
|
|
||||||
file://0002-glxext-don-t-try-zink-if-not-enabled-in-mesa.patch \
|
|
||||||
file://0001-Revert-meson-do-not-pull-in-clc-for-clover.patch \
|
|
||||||
"
|
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "94e28a8edad06d8ed2b83eb53f253b9eb5aa62c3080f939702e1b3039b56c9e8"
|
|
||||||
|
|
||||||
UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)"
|
|
||||||
|
|
||||||
#because we cannot rely on the fact that all apps will use pkgconfig,
|
|
||||||
#make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
|
|
||||||
do_install:append() {
|
|
||||||
# sed can't find EGL/eglplatform.h as it doesn't get installed when glvnd enabled.
|
|
||||||
# So, check if EGL/eglplatform.h exists before running sed.
|
|
||||||
if ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'true', 'false', d)} && [ -f ${D}${includedir}/EGL/eglplatform.h ]; then
|
|
||||||
sed -i -e 's/^#elif defined(__unix__) && defined(EGL_NO_X11)$/#elif defined(__unix__) \&\& defined(EGL_NO_X11) || ${@bb.utils.contains('PACKAGECONFIG', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
DEPENDS = "expat makedepend-native flex-native bison-native libxml2-native zlib chrpath-replacement-native python3-mako-native gettext-native"
|
|
||||||
DEPENDS:append:class-target = " ${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'mesa-native', '', d)}"
|
|
||||||
EXTRANATIVEPATH += "chrpath-native"
|
|
||||||
PROVIDES = " \
|
|
||||||
${@bb.utils.contains('PACKAGECONFIG', 'opengl', 'virtual/libgl', '', d)} \
|
|
||||||
${@bb.utils.contains('PACKAGECONFIG', 'glvnd', 'virtual/libglx', '', d)} \
|
|
||||||
${@bb.utils.contains('PACKAGECONFIG', 'gles', 'virtual/libgles1 virtual/libgles2 virtual/libgles3', '', d)} \
|
|
||||||
${@bb.utils.contains('PACKAGECONFIG', 'egl', 'virtual/egl', '', d)} \
|
|
||||||
${@bb.utils.contains('PACKAGECONFIG', 'gbm', 'virtual/libgbm', '', d)} \
|
|
||||||
virtual/mesa \
|
|
||||||
"
|
|
||||||
|
|
||||||
inherit meson pkgconfig python3native gettext features_check
|
|
||||||
|
|
||||||
BBCLASSEXTEND = "native nativesdk"
|
|
||||||
|
|
||||||
ANY_OF_DISTRO_FEATURES = "opengl vulkan"
|
|
||||||
|
|
||||||
PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)}"
|
|
||||||
|
|
||||||
# set the MESA_BUILD_TYPE to either 'release' (default) or 'debug'
|
|
||||||
# by default the upstream mesa sources build a debug release
|
|
||||||
# here we assume the user will want a release build by default
|
|
||||||
MESA_BUILD_TYPE ?= "release"
|
|
||||||
def check_buildtype(d):
|
|
||||||
_buildtype = d.getVar('MESA_BUILD_TYPE')
|
|
||||||
if _buildtype not in ['release', 'debug']:
|
|
||||||
bb.fatal("unknown build type (%s), please set MESA_BUILD_TYPE to either 'release' or 'debug'" % _buildtype)
|
|
||||||
if _buildtype == 'debug':
|
|
||||||
return 'debugoptimized'
|
|
||||||
return 'plain'
|
|
||||||
MESON_BUILDTYPE = "${@check_buildtype(d)}"
|
|
||||||
|
|
||||||
EXTRA_OEMESON = " \
|
|
||||||
-Dshared-glapi=enabled \
|
|
||||||
-Dglx-read-only-text=true \
|
|
||||||
-Dplatforms='${@",".join("${PLATFORMS}".split())}' \
|
|
||||||
"
|
|
||||||
|
|
||||||
EXTRA_OEMESON:append:class-target = " ${@bb.utils.contains('PACKAGECONFIG', 'opencl', '-Dintel-clc=system', '', d)}"
|
|
||||||
EXTRA_OEMESON:append:class-native = " ${@bb.utils.contains('PACKAGECONFIG', 'opencl', '-Dintel-clc=enabled', '', d)}"
|
|
||||||
|
|
||||||
def strip_comma(s):
|
|
||||||
return s.strip(',')
|
|
||||||
|
|
||||||
PACKAGECONFIG = " \
|
|
||||||
gallium \
|
|
||||||
video-codecs \
|
|
||||||
${@bb.utils.filter('DISTRO_FEATURES', 'x11 vulkan wayland', d)} \
|
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl egl gles gbm virgl', '', d)} \
|
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'dri3', '', d)} \
|
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \
|
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'zink', '', d)} \
|
|
||||||
"
|
|
||||||
|
|
||||||
PACKAGECONFIG:append:class-native = "gallium-llvm r600"
|
|
||||||
|
|
||||||
# "gbm" requires "opengl"
|
|
||||||
PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled"
|
|
||||||
|
|
||||||
X11_DEPS = "xorgproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes xrandr"
|
|
||||||
# "x11" requires "opengl"
|
|
||||||
PACKAGECONFIG[x11] = ",-Dglx=disabled,${X11_DEPS}"
|
|
||||||
PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols"
|
|
||||||
|
|
||||||
PACKAGECONFIG[dri3] = "-Ddri3=enabled, -Ddri3=disabled, xorgproto libxshmfence"
|
|
||||||
|
|
||||||
# Vulkan drivers need dri3 enabled
|
|
||||||
# amd could be enabled as well but requires gallium-llvm with llvm >= 3.9
|
|
||||||
VULKAN_DRIVERS = ""
|
|
||||||
VULKAN_DRIVERS:append:x86 = ",intel,amd"
|
|
||||||
VULKAN_DRIVERS:append:x86-64 = ",intel,amd"
|
|
||||||
# i686 is a 32 bit override for mesa-native
|
|
||||||
VULKAN_DRIVERS:append:i686 = ",intel,amd"
|
|
||||||
VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
|
|
||||||
VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'broadcom', ',broadcom', '', d)}"
|
|
||||||
VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', ',swrast', '', d)}"
|
|
||||||
VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'imagination', ',imagination-experimental', '', d)}"
|
|
||||||
PACKAGECONFIG[vulkan] = "-Dvulkan-drivers=${@strip_comma('${VULKAN_DRIVERS}')}, -Dvulkan-drivers='',glslang-native vulkan-loader vulkan-headers"
|
|
||||||
|
|
||||||
# mesa development and testing tools support, per driver
|
|
||||||
TOOLS = ""
|
|
||||||
TOOLS_DEPS = ""
|
|
||||||
TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}"
|
|
||||||
TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
|
|
||||||
TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}"
|
|
||||||
TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}"
|
|
||||||
TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'imagination', ',imagination', '', d)}"
|
|
||||||
|
|
||||||
# dependencies for tools.
|
|
||||||
TOOLS_DEPS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ' ncurses libxml2 ', '', d)}"
|
|
||||||
|
|
||||||
# the fdperf tool requires libconfig (a part of meta-oe) so it needs special
|
|
||||||
# treatment in addition to the usual 'freedreno tools'.
|
|
||||||
PACKAGECONFIG[freedreno-fdperf] = ",,libconfig"
|
|
||||||
|
|
||||||
PACKAGECONFIG[tools] = "-Dtools=${@strip_comma('${TOOLS}')}, -Dtools='', ${TOOLS_DEPS}"
|
|
||||||
|
|
||||||
PACKAGECONFIG[opengl] = "-Dopengl=true, -Dopengl=false"
|
|
||||||
PACKAGECONFIG[glvnd] = "-Dglvnd=true, -Dglvnd=false, libglvnd"
|
|
||||||
|
|
||||||
# "gles" requires "opengl"
|
|
||||||
PACKAGECONFIG[gles] = "-Dgles1=enabled -Dgles2=enabled, -Dgles1=disabled -Dgles2=disabled"
|
|
||||||
|
|
||||||
# "egl" requires "opengl"
|
|
||||||
PACKAGECONFIG[egl] = "-Degl=enabled, -Degl=disabled"
|
|
||||||
|
|
||||||
# "opencl" requires libclc from meta-clang and spirv-tools from OE-Core
|
|
||||||
OPENCL_NATIVE = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', '-Dopencl-native=true', '', d)}"
|
|
||||||
PACKAGECONFIG[opencl] = "-Dgallium-opencl=icd -Dopencl-spirv=true ${OPENCL_NATIVE},-Dgallium-opencl=disabled -Dopencl-spirv=false,libclc spirv-tools python3-ply-native"
|
|
||||||
|
|
||||||
PACKAGECONFIG[broadcom] = ""
|
|
||||||
PACKAGECONFIG[etnaviv] = ""
|
|
||||||
PACKAGECONFIG[freedreno] = ""
|
|
||||||
PACKAGECONFIG[kmsro] = ""
|
|
||||||
PACKAGECONFIG[vc4] = ""
|
|
||||||
PACKAGECONFIG[v3d] = ""
|
|
||||||
PACKAGECONFIG[zink] = ""
|
|
||||||
|
|
||||||
GALLIUMDRIVERS = "swrast"
|
|
||||||
# gallium swrast was found to crash Xorg on startup in x32 qemu
|
|
||||||
GALLIUMDRIVERS:x86-x32 = ""
|
|
||||||
GALLIUMDRIVERS:append:x86 = ",i915,iris,crocus"
|
|
||||||
GALLIUMDRIVERS:append:x86-64 = ",i915,iris,crocus"
|
|
||||||
# i686 is a 32 bit override for mesa-native
|
|
||||||
GALLIUMDRIVERS:append:i686 = ",i915,iris,crocus"
|
|
||||||
|
|
||||||
GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}"
|
|
||||||
GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
|
|
||||||
GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}"
|
|
||||||
GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'vc4', ',vc4', '', d)}"
|
|
||||||
GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', '', d)}"
|
|
||||||
GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'zink', ',zink', '', d)}"
|
|
||||||
|
|
||||||
# radeonsi requires LLVM
|
|
||||||
GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',radeonsi', '', d)}"
|
|
||||||
GALLIUMDRIVERS_LLVM = ",r300,nouveau${GALLIUMDRIVERS_RADEONSI}"
|
|
||||||
GALLIUMDRIVERS_LLVM:append:x86 = ",svga"
|
|
||||||
GALLIUMDRIVERS_LLVM:append:x86-64 = ",svga"
|
|
||||||
# i686 is a 32 bit override for mesa-native
|
|
||||||
GALLIUMDRIVERS_LLVM:append:i686 = ",svga"
|
|
||||||
|
|
||||||
PACKAGECONFIG[r600] = ""
|
|
||||||
PACKAGECONFIG[virgl] = ""
|
|
||||||
|
|
||||||
GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', '${GALLIUMDRIVERS_LLVM}', '', d)}"
|
|
||||||
GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',r600', '', d)}"
|
|
||||||
GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'virgl', ',virgl', '', d)}"
|
|
||||||
|
|
||||||
PACKAGECONFIG[gallium] = "-Dgallium-drivers=${@strip_comma('${GALLIUMDRIVERS}')}, -Dgallium-drivers='', libdrm"
|
|
||||||
PACKAGECONFIG[gallium-llvm] = "-Dllvm=enabled -Dshared-llvm=enabled, -Dllvm=disabled, llvm llvm-native elfutils"
|
|
||||||
PACKAGECONFIG[xa] = "-Dgallium-xa=enabled, -Dgallium-xa=disabled"
|
|
||||||
PACKAGECONFIG[va] = "-Dgallium-va=enabled,-Dgallium-va=disabled,libva-initial"
|
|
||||||
PACKAGECONFIG[vdpau] = "-Dgallium-vdpau=enabled,-Dgallium-vdpau=disabled,libvdpau"
|
|
||||||
|
|
||||||
PACKAGECONFIG[imagination] = "-Dimagination-srv=true,-Dimagination-srv=false"
|
|
||||||
|
|
||||||
PACKAGECONFIG[lima] = ""
|
|
||||||
GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}"
|
|
||||||
|
|
||||||
PACKAGECONFIG[panfrost] = ""
|
|
||||||
GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}"
|
|
||||||
|
|
||||||
PACKAGECONFIG[vulkan-beta] = "-Dvulkan-beta=true,-Dvulkan-beta=false"
|
|
||||||
|
|
||||||
PACKAGECONFIG[osmesa] = "-Dosmesa=true,-Dosmesa=false"
|
|
||||||
|
|
||||||
PACKAGECONFIG[perfetto] = "-Dperfetto=true,-Dperfetto=false,libperfetto"
|
|
||||||
|
|
||||||
PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind"
|
|
||||||
|
|
||||||
PACKAGECONFIG[lmsensors] = "-Dlmsensors=enabled,-Dlmsensors=disabled,lmsensors"
|
|
||||||
|
|
||||||
VIDEO_CODECS ?= "${@bb.utils.contains('LICENSE_FLAGS_ACCEPTED', 'commercial', 'all', 'all_free', d)}"
|
|
||||||
PACKAGECONFIG[video-codecs] = "-Dvideo-codecs=${VIDEO_CODECS}, -Dvideo-codecs=''"
|
|
||||||
|
|
||||||
# llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2)
|
|
||||||
FULL_OPTIMIZATION:append = " -fno-omit-frame-pointer"
|
|
||||||
|
|
||||||
CFLAGS:append:armv5 = " -DMISSING_64BIT_ATOMICS"
|
|
||||||
CFLAGS:append:armv6 = " -DMISSING_64BIT_ATOMICS"
|
|
||||||
|
|
||||||
# Remove the mesa dependency on mesa-dev, as mesa is empty
|
|
||||||
DEV_PKG_DEPENDENCY = ""
|
|
||||||
|
|
||||||
# Khronos documentation says that include/GLES2/gl2ext.h can be used for
|
|
||||||
# OpenGL ES 3 specification as well as for OpenGL ES 2.
|
|
||||||
# There can be applications including GLES2/gl2ext.h instead of GLES3/gl3ext.h
|
|
||||||
# meaning we should probably bring in GLES2/gl2ext.h if someone asks for
|
|
||||||
# development package of libgles3.
|
|
||||||
RDEPENDS:libgles3-mesa-dev += "libgles2-mesa-dev"
|
|
||||||
|
|
||||||
RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'libclc spirv-tools', '', d)}"
|
|
||||||
|
|
||||||
PACKAGES =+ "libegl-mesa libegl-mesa-dev \
|
|
||||||
libosmesa libosmesa-dev \
|
|
||||||
libgl-mesa libgl-mesa-dev \
|
|
||||||
libglx-mesa libglx-mesa-dev \
|
|
||||||
libglapi libglapi-dev \
|
|
||||||
libgbm libgbm-dev \
|
|
||||||
libgles1-mesa libgles1-mesa-dev \
|
|
||||||
libgles2-mesa libgles2-mesa-dev \
|
|
||||||
libgles3-mesa libgles3-mesa-dev \
|
|
||||||
libopencl-mesa libopencl-mesa-dev \
|
|
||||||
libxatracker libxatracker-dev \
|
|
||||||
mesa-megadriver mesa-vulkan-drivers \
|
|
||||||
mesa-vdpau-drivers mesa-tools \
|
|
||||||
"
|
|
||||||
|
|
||||||
do_install:append () {
|
|
||||||
# Drivers never need libtool .la files
|
|
||||||
rm -f ${D}${libdir}/dri/*.la
|
|
||||||
rm -f ${D}${libdir}/egl/*.la
|
|
||||||
rm -f ${D}${libdir}/gallium-pipe/*.la
|
|
||||||
rm -f ${D}${libdir}/gbm/*.la
|
|
||||||
|
|
||||||
# libwayland-egl has been moved to wayland 1.15+
|
|
||||||
rm -f ${D}${libdir}/libwayland-egl*
|
|
||||||
rm -f ${D}${libdir}/pkgconfig/wayland-egl.pc
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install:append:class-native () {
|
|
||||||
if ${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'true', 'false', d)}; then
|
|
||||||
install -d ${D}${bindir}
|
|
||||||
install -m0755 ${B}/src/intel/compiler/intel_clc ${D}${bindir}
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# For the packages that make up the OpenGL interfaces, inject variables so that
|
|
||||||
# they don't get Debian-renamed (which would remove the -mesa suffix), and
|
|
||||||
# RPROVIDEs/RCONFLICTs on the generic libgl name.
|
|
||||||
python __anonymous() {
|
|
||||||
pkgconfig = (d.getVar('PACKAGECONFIG') or "").split()
|
|
||||||
suffix = ""
|
|
||||||
if "-native" in d.getVar("PN"):
|
|
||||||
suffix = "-native"
|
|
||||||
for p in (("egl", "libegl", "libegl1"),
|
|
||||||
("opengl", "libgl", "libgl1"),
|
|
||||||
("glvnd", "libglx",),
|
|
||||||
("gles", "libgles1", "libglesv1-cm1"),
|
|
||||||
("gles", "libgles2", "libglesv2-2"),
|
|
||||||
("gles", "libgles3",),
|
|
||||||
("opencl", "libopencl",)):
|
|
||||||
if not p[0] in pkgconfig:
|
|
||||||
continue
|
|
||||||
mlprefix = d.getVar("MLPREFIX")
|
|
||||||
fullp = mlprefix + p[1] + "-mesa" + suffix
|
|
||||||
mlprefix = d.getVar("MLPREFIX")
|
|
||||||
pkgs = " " + " ".join(mlprefix + x + suffix for x in p[1:])
|
|
||||||
d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1")
|
|
||||||
d.appendVar("RREPLACES:" + fullp, pkgs)
|
|
||||||
d.appendVar("RPROVIDES:" + fullp, pkgs)
|
|
||||||
d.appendVar("RCONFLICTS:" + fullp, pkgs)
|
|
||||||
|
|
||||||
d.appendVar("RRECOMMENDS:" + fullp, " ${MLPREFIX}mesa-megadriver" + suffix)
|
|
||||||
|
|
||||||
# For -dev, the first element is both the Debian and original name
|
|
||||||
fullp = mlprefix + p[1] + "-mesa-dev" + suffix
|
|
||||||
pkgs = " " + mlprefix + p[1] + "-dev" + suffix
|
|
||||||
d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1")
|
|
||||||
d.appendVar("RREPLACES:" + fullp, pkgs)
|
|
||||||
d.appendVar("RPROVIDES:" + fullp, pkgs)
|
|
||||||
d.appendVar("RCONFLICTS:" + fullp, pkgs)
|
|
||||||
}
|
|
||||||
|
|
||||||
python mesa_populate_packages() {
|
|
||||||
pkgs = ['mesa', 'mesa-dev', 'mesa-dbg']
|
|
||||||
for pkg in pkgs:
|
|
||||||
d.setVar("RPROVIDES:%s" % pkg, pkg.replace("mesa", "mesa-dri", 1))
|
|
||||||
d.setVar("RCONFLICTS:%s" % pkg, pkg.replace("mesa", "mesa-dri", 1))
|
|
||||||
d.setVar("RREPLACES:%s" % pkg, pkg.replace("mesa", "mesa-dri", 1))
|
|
||||||
|
|
||||||
import re
|
|
||||||
dri_drivers_root = oe.path.join(d.getVar('PKGD'), d.getVar('libdir'), "dri")
|
|
||||||
if os.path.isdir(dri_drivers_root):
|
|
||||||
dri_pkgs = sorted(os.listdir(dri_drivers_root))
|
|
||||||
lib_name = d.expand("${MLPREFIX}mesa-megadriver")
|
|
||||||
for p in dri_pkgs:
|
|
||||||
m = re.match(r'^(.*)_dri\.so$', p)
|
|
||||||
if m:
|
|
||||||
pkg_name = " ${MLPREFIX}mesa-driver-%s" % legitimize_package_name(m.group(1))
|
|
||||||
d.appendVar("RPROVIDES:%s" % lib_name, pkg_name)
|
|
||||||
d.appendVar("RCONFLICTS:%s" % lib_name, pkg_name)
|
|
||||||
d.appendVar("RREPLACES:%s" % lib_name, pkg_name)
|
|
||||||
|
|
||||||
pipe_drivers_root = os.path.join(d.getVar('libdir'), "gallium-pipe")
|
|
||||||
do_split_packages(d, pipe_drivers_root, r'^pipe_(.*)\.so$', 'mesa-driver-pipe-%s', 'Mesa %s pipe driver', extra_depends='')
|
|
||||||
}
|
|
||||||
|
|
||||||
PACKAGESPLITFUNCS =+ "mesa_populate_packages"
|
|
||||||
|
|
||||||
PACKAGES_DYNAMIC += "^mesa-driver-.*"
|
|
||||||
PACKAGES_DYNAMIC:class-native = "^mesa-driver-.*-native"
|
|
||||||
|
|
||||||
FILES:mesa-megadriver = "${libdir}/dri/* ${datadir}/drirc.d"
|
|
||||||
FILES:mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${libdir}/libpowervr_rogue.so ${datadir}/vulkan"
|
|
||||||
FILES:${PN}-vdpau-drivers = "${libdir}/vdpau/*.so.*"
|
|
||||||
FILES:libegl-mesa = "${libdir}/libEGL*.so.* ${datadir}/glvnd/egl_vendor.d"
|
|
||||||
FILES:libgbm = "${libdir}/libgbm.so.*"
|
|
||||||
FILES:libgles1-mesa = "${libdir}/libGLESv1*.so.*"
|
|
||||||
FILES:libgles2-mesa = "${libdir}/libGLESv2.so.*"
|
|
||||||
FILES:libgl-mesa = "${libdir}/libGL.so.*"
|
|
||||||
FILES:libglx-mesa = "${libdir}/libGLX*.so.*"
|
|
||||||
FILES:libopencl-mesa = "${libdir}/libMesaOpenCL.so.* ${libdir}/gallium-pipe/*.so ${sysconfdir}/OpenCL/vendors/mesa.icd"
|
|
||||||
FILES:libglapi = "${libdir}/libglapi.so.*"
|
|
||||||
FILES:libosmesa = "${libdir}/libOSMesa.so.*"
|
|
||||||
FILES:libxatracker = "${libdir}/libxatracker.so.*"
|
|
||||||
|
|
||||||
FILES:${PN}-dev = "${libdir}/pkgconfig/dri.pc ${includedir}/vulkan ${libdir}/vdpau/*.so"
|
|
||||||
FILES:libegl-mesa-dev = "${libdir}/libEGL*.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc"
|
|
||||||
FILES:libgbm-dev = "${libdir}/libgbm.* ${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h"
|
|
||||||
FILES:libgl-mesa-dev = "${libdir}/libGL.* ${includedir}/GL ${libdir}/pkgconfig/gl.pc"
|
|
||||||
FILES:libglx-mesa-dev = "${libdir}/libGLX*.*"
|
|
||||||
FILES:libglapi-dev = "${libdir}/libglapi.*"
|
|
||||||
FILES:libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc"
|
|
||||||
FILES:libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${libdir}/pkgconfig/glesv2.pc"
|
|
||||||
FILES:libgles3-mesa-dev = "${includedir}/GLES3"
|
|
||||||
FILES:libopencl-mesa-dev = "${libdir}/libMesaOpenCL.so"
|
|
||||||
FILES:libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/GL/osmesa.h ${libdir}/pkgconfig/osmesa.pc"
|
|
||||||
FILES:libxatracker-dev = "${libdir}/libxatracker.so ${libdir}/libxatracker.la \
|
|
||||||
${includedir}/xa_tracker.h ${includedir}/xa_composite.h ${includedir}/xa_context.h \
|
|
||||||
${libdir}/pkgconfig/xatracker.pc"
|
|
||||||
# catch all to get all the tools and data
|
|
||||||
FILES:${PN}-tools = "${bindir} ${datadir}"
|
|
||||||
ALLOW_EMPTY:${PN}-tools = "1"
|
|
||||||
|
|
||||||
# Fix upgrade path from mesa to mesa-megadriver
|
|
||||||
RREPLACES:mesa-megadriver = "mesa"
|
|
||||||
RCONFLICTS:mesa-megadriver = "mesa"
|
|
||||||
RPROVIDES:mesa-megadriver = "mesa"
|
|
@ -1,2 +0,0 @@
|
|||||||
require ${BPN}.inc
|
|
||||||
|
|
@ -0,0 +1,39 @@
|
|||||||
|
From d24dc9bebaefbd8abf32707bad5efc0c811c0cd4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Wed, 18 Jan 2023 13:04:56 -0800
|
||||||
|
Subject: [PATCH] Fix -Wincompatible-function-pointer-types
|
||||||
|
|
||||||
|
Fixes warnings with clang16
|
||||||
|
testfile.c:576:31: error: incompatible function pointer types passing 'PRInt32 (void *)' (aka 'int (void *)') to parameter of type 'void (*)(void *)' [-Wincompatible-function-pointe r-types]
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
pr/tests/testfile.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/pr/tests/testfile.c b/pr/tests/testfile.c
|
||||||
|
index 79d8a05..42aa6a7 100644
|
||||||
|
--- a/pr/tests/testfile.c
|
||||||
|
+++ b/pr/tests/testfile.c
|
||||||
|
@@ -123,7 +123,7 @@ PRThread* create_new_thread(PRThreadType type,
|
||||||
|
if (native_thread) {
|
||||||
|
#if defined(_PR_PTHREADS)
|
||||||
|
pthread_t tid;
|
||||||
|
- if (!pthread_create(&tid, NULL, start, arg)) {
|
||||||
|
+ if (!pthread_create(&tid, NULL, (void*(*)(void*))start, arg)) {
|
||||||
|
return((PRThread *) tid);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
@@ -573,7 +573,7 @@ static PRInt32 RunDirTest(void)
|
||||||
|
|
||||||
|
thrarg.done= 0;
|
||||||
|
t = create_new_thread(PR_USER_THREAD,
|
||||||
|
- DirTest, &thrarg,
|
||||||
|
+ (void (*)(void *))DirTest, &thrarg,
|
||||||
|
PR_PRIORITY_NORMAL,
|
||||||
|
PR_LOCAL_THREAD,
|
||||||
|
PR_UNJOINABLE_THREAD,
|
||||||
|
--
|
||||||
|
2.39.1
|
||||||
|
|
@ -0,0 +1,30 @@
|
|||||||
|
From 13e9d66c24d1dce5179805ae5e1bf940409b4914 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mingli Yu <mingli.yu@windriver.com>
|
||||||
|
Date: Wed, 10 Aug 2022 15:21:07 +0800
|
||||||
|
Subject: [PATCH] config/nspr-config.in: don't pass LDFLAGS
|
||||||
|
|
||||||
|
Don't pass LDFLAGS to avoid exposing the build env info.
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [oe specific]
|
||||||
|
|
||||||
|
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
|
||||||
|
---
|
||||||
|
config/nspr-config.in | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/config/nspr-config.in b/config/nspr-config.in
|
||||||
|
index 2cb62a0..2bec715 100755
|
||||||
|
--- a/config/nspr-config.in
|
||||||
|
+++ b/config/nspr-config.in
|
||||||
|
@@ -136,7 +136,7 @@ if test "$echo_libs" = "yes"; then
|
||||||
|
if test -n "$lib_nspr"; then
|
||||||
|
libdirs="$libdirs -lnspr${major_version}"
|
||||||
|
fi
|
||||||
|
- os_ldflags="@LDFLAGS@"
|
||||||
|
+ os_ldflags="LDFLAGS"
|
||||||
|
for i in $os_ldflags ; do
|
||||||
|
if echo $i | grep \^-L >/dev/null; then
|
||||||
|
libdirs="$libdirs $i"
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
From 147f3c2acbd96d44025cec11800ded0282327764 Mon Sep 17 00:00:00 2001
|
From 5f6fcaeb0b7a319c8afd32ddb48b3515b63a6c0c Mon Sep 17 00:00:00 2001
|
||||||
From: Khem Raj <raj.khem@gmail.com>
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
Date: Mon, 18 Sep 2017 17:22:43 -0700
|
Date: Mon, 18 Sep 2017 17:22:43 -0700
|
||||||
Subject: [PATCH] md: Fix build with musl
|
Subject: [PATCH] md: Fix build with musl
|
||||||
@ -6,24 +6,17 @@ Subject: [PATCH] md: Fix build with musl
|
|||||||
The MIPS specific header <sgidefs.h> is not provided by musl
|
The MIPS specific header <sgidefs.h> is not provided by musl
|
||||||
linux kernel headers provide <asm/sgidefs.h> which has same definitions
|
linux kernel headers provide <asm/sgidefs.h> which has same definitions
|
||||||
|
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
||||||
---
|
|
||||||
Upstream-Status: Pending
|
Upstream-Status: Pending
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
|
||||||
|
---
|
||||||
pr/include/md/_linux.cfg | 2 +-
|
pr/include/md/_linux.cfg | 2 +-
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/pr/include/md/_linux.cfg b/pr/include/md/_linux.cfg
|
||||||
|
index aa3af78..899826f 100644
|
||||||
--- a/pr/include/md/_linux.cfg
|
--- a/pr/include/md/_linux.cfg
|
||||||
+++ b/pr/include/md/_linux.cfg
|
+++ b/pr/include/md/_linux.cfg
|
||||||
@@ -499,7 +499,7 @@
|
|
||||||
#elif defined(__mips__)
|
|
||||||
|
|
||||||
/* For _ABI64 */
|
|
||||||
-#include <sgidefs.h>
|
|
||||||
+#include <asm/sgidefs.h>
|
|
||||||
|
|
||||||
#ifdef __MIPSEB__
|
|
||||||
#define IS_BIG_ENDIAN 1
|
|
||||||
@@ -511,7 +511,7 @@
|
@@ -511,7 +511,7 @@
|
||||||
#error "Unknown MIPS endianness."
|
#error "Unknown MIPS endianness."
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
From 95bda64fb4cf1825fea745e918cfe8202843f0ba Mon Sep 17 00:00:00 2001
|
From 4760065a58153e4dae24e4e437a5136592c624bc Mon Sep 17 00:00:00 2001
|
||||||
From: Marek Vasut <marex@denx.de>
|
From: Marek Vasut <marex@denx.de>
|
||||||
Date: Sat, 30 Jan 2016 07:18:02 +0100
|
Date: Sat, 30 Jan 2016 07:18:02 +0100
|
||||||
Subject: [PATCH] Add nios2 support
|
Subject: [PATCH] Add nios2 support
|
||||||
@ -7,15 +7,14 @@ Add support for the nios2 CPU.
|
|||||||
|
|
||||||
Signed-off-by: Marek Vasut <marex@denx.de>
|
Signed-off-by: Marek Vasut <marex@denx.de>
|
||||||
Upstream-Status: Submitted [ https://bugzilla.mozilla.org/show_bug.cgi?id=1244421 ]
|
Upstream-Status: Submitted [ https://bugzilla.mozilla.org/show_bug.cgi?id=1244421 ]
|
||||||
---
|
|
||||||
nspr/pr/include/md/_linux.cfg | 45 +++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
nspr/pr/include/md/_linux.h | 14 ++++++++++++++
|
|
||||||
2 files changed, 59 insertions(+)
|
|
||||||
|
|
||||||
Index: nspr/pr/include/md/_linux.cfg
|
---
|
||||||
===================================================================
|
pr/include/md/_linux.cfg | 45 +++++++++++++++++++++++++++++++++++
|
||||||
--- nspr.orig/pr/include/md/_linux.cfg
|
pr/include/md/_linux.h | 4 +++-
|
||||||
+++ nspr/pr/include/md/_linux.cfg
|
2 files changed, 48 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
--- a/pr/include/md/_linux.cfg
|
||||||
|
+++ b/pr/include/md/_linux.cfg
|
||||||
@@ -975,6 +975,51 @@
|
@@ -975,6 +975,51 @@
|
||||||
#define PR_BYTES_PER_WORD_LOG2 2
|
#define PR_BYTES_PER_WORD_LOG2 2
|
||||||
#define PR_BYTES_PER_DWORD_LOG2 3
|
#define PR_BYTES_PER_DWORD_LOG2 3
|
||||||
@ -68,10 +67,8 @@ Index: nspr/pr/include/md/_linux.cfg
|
|||||||
#elif defined(__or1k__)
|
#elif defined(__or1k__)
|
||||||
|
|
||||||
#undef IS_LITTLE_ENDIAN
|
#undef IS_LITTLE_ENDIAN
|
||||||
Index: nspr/pr/include/md/_linux.h
|
--- a/pr/include/md/_linux.h
|
||||||
===================================================================
|
+++ b/pr/include/md/_linux.h
|
||||||
--- nspr.orig/pr/include/md/_linux.h
|
|
||||||
+++ nspr/pr/include/md/_linux.h
|
|
||||||
@@ -55,6 +55,8 @@
|
@@ -55,6 +55,8 @@
|
||||||
#define _PR_SI_ARCHITECTURE "avr32"
|
#define _PR_SI_ARCHITECTURE "avr32"
|
||||||
#elif defined(__m32r__)
|
#elif defined(__m32r__)
|
||||||
@ -81,22 +78,12 @@ Index: nspr/pr/include/md/_linux.h
|
|||||||
#elif defined(__or1k__)
|
#elif defined(__or1k__)
|
||||||
#define _PR_SI_ARCHITECTURE "or1k"
|
#define _PR_SI_ARCHITECTURE "or1k"
|
||||||
#elif defined(__riscv) && (__riscv_xlen == 32)
|
#elif defined(__riscv) && (__riscv_xlen == 32)
|
||||||
@@ -129,6 +131,18 @@ extern PRInt32 _PR_x86_64_AtomicSet(PRIn
|
@@ -143,7 +145,7 @@ extern PRInt32 _PR_x86_64_AtomicSet(PRIn
|
||||||
#define _MD_ATOMIC_SET _PR_x86_64_AtomicSet
|
#define _MD_ATOMIC_SET _PR_x86_64_AtomicSet
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+#if defined(__nios2__)
|
-#if defined(__loongarch__)
|
||||||
+#if defined(__GNUC__)
|
+#if defined(__loongarch__) || defined(__nios2__)
|
||||||
+/* Use GCC built-in functions */
|
|
||||||
+#define _PR_HAVE_ATOMIC_OPS
|
|
||||||
+#define _MD_INIT_ATOMIC()
|
|
||||||
+#define _MD_ATOMIC_INCREMENT(ptr) __sync_add_and_fetch(ptr, 1)
|
|
||||||
+#define _MD_ATOMIC_DECREMENT(ptr) __sync_sub_and_fetch(ptr, 1)
|
|
||||||
+#define _MD_ATOMIC_ADD(ptr, i) __sync_add_and_fetch(ptr, i)
|
|
||||||
+#define _MD_ATOMIC_SET(ptr, nv) __sync_lock_test_and_set(ptr, nv)
|
|
||||||
+#endif
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
#if defined(__or1k__)
|
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
/* Use GCC built-in functions */
|
/* Use GCC built-in functions */
|
||||||
|
#define _PR_HAVE_ATOMIC_OPS
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
the $srcdir is not defined at the time of gnu-configurize.
|
|
||||||
|
|
||||||
Upstream-Status: Inappropriate [OE-Core specific]
|
|
||||||
|
|
||||||
Signed-off-by: Saul Wold <sgw@linux.intel.com>
|
|
||||||
|
|
||||||
Index: nspr/configure.in
|
|
||||||
===================================================================
|
|
||||||
--- nspr.orig/configure.in
|
|
||||||
+++ nspr/configure.in
|
|
||||||
@@ -8,7 +8,7 @@ AC_PREREQ(2.61)
|
|
||||||
AC_INIT
|
|
||||||
AC_CONFIG_SRCDIR([pr/include/nspr.h])
|
|
||||||
|
|
||||||
-AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf)
|
|
||||||
+AC_CONFIG_AUX_DIR(build/autoconf)
|
|
||||||
AC_CANONICAL_TARGET
|
|
||||||
|
|
||||||
dnl ========================================================
|
|
@ -8,23 +8,23 @@ SECTION = "libs/network"
|
|||||||
SRC_URI = "http://ftp.mozilla.org/pub/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz \
|
SRC_URI = "http://ftp.mozilla.org/pub/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz \
|
||||||
file://remove-rpath-from-tests.patch \
|
file://remove-rpath-from-tests.patch \
|
||||||
file://fix-build-on-x86_64.patch \
|
file://fix-build-on-x86_64.patch \
|
||||||
file://remove-srcdir-from-configure-in.patch \
|
|
||||||
file://0002-Add-nios2-support.patch \
|
file://0002-Add-nios2-support.patch \
|
||||||
file://0001-md-Fix-build-with-musl.patch \
|
file://0001-md-Fix-build-with-musl.patch \
|
||||||
file://Makefile.in-remove-_BUILD_STRING-and-_BUILD_TIME.patch \
|
file://Makefile.in-remove-_BUILD_STRING-and-_BUILD_TIME.patch \
|
||||||
|
file://0001-config-nspr-config.in-don-t-pass-LDFLAGS.patch \
|
||||||
|
file://0001-Fix-Wincompatible-function-pointer-types.patch \
|
||||||
file://nspr.pc.in \
|
file://nspr.pc.in \
|
||||||
"
|
"
|
||||||
|
|
||||||
CACHED_CONFIGUREVARS:append:libc-musl = " CFLAGS='${CFLAGS} -D_PR_POLL_AVAILABLE \
|
CACHED_CONFIGUREVARS:append:libc-musl = " CFLAGS='${CFLAGS} -D_PR_POLL_AVAILABLE \
|
||||||
-D_PR_HAVE_OFF64_T -D_PR_INET6 -D_PR_HAVE_INET_NTOP \
|
-D_PR_HAVE_LARGE_OFF_T -D_PR_INET6 -D_PR_HAVE_INET_NTOP \
|
||||||
-D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO \
|
-D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO \
|
||||||
-D_PR_INET6_PROBE -DNO_DLOPEN_NULL'"
|
-D_PR_INET6_PROBE -DNO_DLOPEN_NULL'"
|
||||||
|
|
||||||
UPSTREAM_CHECK_URI = "http://ftp.mozilla.org/pub/nspr/releases/"
|
UPSTREAM_CHECK_URI = "http://ftp.mozilla.org/pub/nspr/releases/"
|
||||||
UPSTREAM_CHECK_REGEX = "v(?P<pver>\d+(\.\d+)+)/"
|
UPSTREAM_CHECK_REGEX = "v(?P<pver>\d+(\.\d+)+)/"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "a546926d3c8e887be02c668c1293da92"
|
SRC_URI[sha256sum] = "7ea3297ea5969b5d25a5dd8d47f2443cda88e9ee746301f6e1e1426f8a6abc8f"
|
||||||
SRC_URI[sha256sum] = "22286bdb8059d74632cc7c2865c139e63953ecfb33bf4362ab58827e86e92582"
|
|
||||||
|
|
||||||
CVE_PRODUCT = "netscape_portable_runtime"
|
CVE_PRODUCT = "netscape_portable_runtime"
|
||||||
|
|
||||||
@ -160,6 +160,8 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
|
|||||||
# preferred path upstream.
|
# preferred path upstream.
|
||||||
EXTRA_OECONF += "--includedir=${includedir}/nspr"
|
EXTRA_OECONF += "--includedir=${includedir}/nspr"
|
||||||
|
|
||||||
|
EXTRA_OEMAKE:append:class-native = " EXTRA_LIBS='-lpthread -lrt -ldl'"
|
||||||
|
|
||||||
do_compile:prepend() {
|
do_compile:prepend() {
|
||||||
oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX ${BUILD_CFLAGS}" LDFLAGS="" CC="${BUILD_CC}" -C config export
|
oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX ${BUILD_CFLAGS}" LDFLAGS="" CC="${BUILD_CC}" -C config export
|
||||||
}
|
}
|
@ -0,0 +1,47 @@
|
|||||||
|
From b1b58f122a3e05b5689358fdd3203ba110cca567 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Markus Volk <f_l_k@t-online.de>
|
||||||
|
Date: Sun, 24 Sep 2023 22:20:42 +0200
|
||||||
|
Subject: [PATCH] Reproducibility fix
|
||||||
|
|
||||||
|
This fixes:
|
||||||
|
WARNING: udisks2-2.10.1-r0 do_package_qa: QA Issue: File /usr/lib/udisks2/modules/libudisks2_btrfs.so in package udisks2 contains reference to TMPDIR
|
||||||
|
File /usr/lib/udisks2/modules/libudisks2_lvm2.so in package udisks2 contains reference to TMPDIR
|
||||||
|
File /usr/libexec/udisks2/udisksd in package udisks2 contains reference to TMPDIR [buildpaths]
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [oe-specific]
|
||||||
|
|
||||||
|
Signed-off-by: Markus Volk <f_l_k@t-online.de>
|
||||||
|
---
|
||||||
|
modules/lvm2/Makefile.am | 2 +-
|
||||||
|
src/Makefile.am | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/modules/lvm2/Makefile.am b/modules/lvm2/Makefile.am
|
||||||
|
index 67b8aa6b3..e4ae462e7 100644
|
||||||
|
--- a/modules/lvm2/Makefile.am
|
||||||
|
+++ b/modules/lvm2/Makefile.am
|
||||||
|
@@ -16,7 +16,7 @@ CPPFLAGS = \
|
||||||
|
-DLVM_HELPER_DIR=\""$(prefix)/lib/udisks2/"\" \
|
||||||
|
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
|
||||||
|
-DUDISKS_COMPILATION \
|
||||||
|
- -DBUILD_DIR=\"$(abs_top_builddir)/\" \
|
||||||
|
+ -DBUILD_DIR=\"/usr/src/\" \
|
||||||
|
$(POLKIT_GOBJECT_1_CFLAGS) \
|
||||||
|
$(GLIB_CFLAGS) \
|
||||||
|
$(GIO_CFLAGS) \
|
||||||
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||||
|
index 5a174d1ab..0da3a497b 100644
|
||||||
|
--- a/src/Makefile.am
|
||||||
|
+++ b/src/Makefile.am
|
||||||
|
@@ -20,7 +20,7 @@ CPPFLAGS = \
|
||||||
|
-DUDISKS_MODULE_DIR=\"$(libdir)/udisks2/modules\" \
|
||||||
|
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
|
||||||
|
-DUDISKS_COMPILATION \
|
||||||
|
- -DBUILD_DIR=\"$(abs_top_builddir)/\" \
|
||||||
|
+ -DBUILD_DIR=\"/usr/src/\" \
|
||||||
|
$(POLKIT_GOBJECT_1_CFLAGS) \
|
||||||
|
$(GUDEV_CFLAGS) \
|
||||||
|
$(GLIB_CFLAGS) \
|
||||||
|
--
|
||||||
|
2.42.0
|
||||||
|
|
@ -17,8 +17,11 @@ DEPENDS += "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
|
|||||||
|
|
||||||
RDEPENDS:${PN} = "acl"
|
RDEPENDS:${PN} = "acl"
|
||||||
|
|
||||||
SRC_URI = "git://github.com/storaged-project/udisks.git;branch=2.9.x-branch;protocol=https"
|
SRC_URI = " \
|
||||||
SRCREV = "c430dd9a27e158693cc783e9ee91bf6e5b2a8819"
|
git://github.com/storaged-project/udisks.git;branch=2.10.x-branch;protocol=https \
|
||||||
|
file://0001-Makefile.am-Dont-include-buildpath.patch \
|
||||||
|
"
|
||||||
|
SRCREV = "18c9faf089e306ad6f3f51f5cb887a6b9aa08350"
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
CVE_PRODUCT = "udisks"
|
CVE_PRODUCT = "udisks"
|
||||||
@ -35,10 +38,17 @@ do_configure:prepend() {
|
|||||||
touch ${S}/build-aux/config.rpath
|
touch ${S}/build-aux/config.rpath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PACKAGECONFIG ?= ""
|
||||||
|
|
||||||
|
PACKAGECONFIG[lvm2] = "--enable-lvm2,--disable-lvm2,lvm2"
|
||||||
|
PACKAGECONFIG[btrfs] = "--enable-btrfs,--disable-btrfs,,btrfs-tools"
|
||||||
|
PACKAGECONFIG[lsm] = "--enable-lsm,--disable-lsm,libstoragemgmt"
|
||||||
|
|
||||||
FILES:${PN} += " \
|
FILES:${PN} += " \
|
||||||
${datadir}/dbus-1/ \
|
${datadir}/dbus-1/ \
|
||||||
${datadir}/polkit-1 \
|
${datadir}/polkit-1 \
|
||||||
${datadir}/bash-completion \
|
${datadir}/bash-completion \
|
||||||
|
${datadir}/zsh \
|
||||||
${libdir}/polkit-1/extensions/*.so \
|
${libdir}/polkit-1/extensions/*.so \
|
||||||
${nonarch_base_libdir}/udev/* \
|
${nonarch_base_libdir}/udev/* \
|
||||||
${exec_prefix}${nonarch_base_libdir}/udisks2/* \
|
${exec_prefix}${nonarch_base_libdir}/udisks2/* \
|
@ -1,28 +0,0 @@
|
|||||||
From dec8cca59124d7f8796b54902482ceb295a71b51 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
|
||||||
Date: Mon, 6 Jan 2020 12:44:42 +0100
|
|
||||||
Subject: [PATCH] meson.build: use 'python3' directly for python
|
|
||||||
|
|
||||||
This avoids a dependency on target python (due to meson probing
|
|
||||||
its configuration).
|
|
||||||
|
|
||||||
Upstream-Status: Inappropriate [oe-core specific]
|
|
||||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
|
||||||
|
|
||||||
---
|
|
||||||
meson.build | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/meson.build b/meson.build
|
|
||||||
index 9f91ff2f..2391f89d 100644
|
|
||||||
--- a/meson.build
|
|
||||||
+++ b/meson.build
|
|
||||||
@@ -74,7 +74,7 @@ flags = [
|
|
||||||
|
|
||||||
add_project_arguments(cc.get_supported_arguments(flags), language : 'c')
|
|
||||||
|
|
||||||
-prog_python = import('python').find_installation('python3')
|
|
||||||
+prog_python = 'python3'
|
|
||||||
|
|
||||||
not_found = dependency('', required: false)
|
|
||||||
libdrm_dep = dependency('libdrm', version : '>=2.4.50', required: get_option('drm').enabled() or get_option('venus'))
|
|
@ -1,33 +0,0 @@
|
|||||||
SUMMARY = "VirGL virtual OpenGL renderer"
|
|
||||||
DESCRIPTION = "Virgil is a research project to investigate the possibility of \
|
|
||||||
creating a virtual 3D GPU for use inside qemu virtual machines, that allows \
|
|
||||||
the guest operating system to use the capabilities of the host GPU to \
|
|
||||||
accelerate 3D rendering."
|
|
||||||
HOMEPAGE = "https://virgil3d.github.io/"
|
|
||||||
|
|
||||||
LICENSE = "MIT"
|
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=c81c08eeefd9418fca8f88309a76db10"
|
|
||||||
|
|
||||||
DEPENDS = "libdrm libepoxy virtual/egl virtual/libgbm"
|
|
||||||
SRCREV = "690680e5f0f952e22424fca1538c1b24457a0868"
|
|
||||||
SRC_URI = "git://gitlab.freedesktop.org/virgl/virglrenderer.git;branch=main;protocol=https \
|
|
||||||
file://0001-meson.build-use-python3-directly-for-python.patch \
|
|
||||||
"
|
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
|
||||||
|
|
||||||
inherit meson pkgconfig features_check
|
|
||||||
|
|
||||||
PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'venus', '', d)}"
|
|
||||||
|
|
||||||
PACKAGECONFIG[venus] = "-Dvenus=true,-Dvenus=false,vulkan-loader vulkan-headers"
|
|
||||||
PACKAGECONFIG[va] = "-Dvideo=true,-Dvideo=false,libva"
|
|
||||||
PACKAGECONFIG[render-server] = "-Drender-server=true,-Drender-server=false"
|
|
||||||
PACKAGECONFIG[drm-msm-experimental] = "-Ddrm-msm-experimental=true,-Ddrm-msm-experimental=false"
|
|
||||||
PACKAGECONFIG[minigbm_allocation] = "-Dminigbm_allocation=true,-Dminigbm_allocation=false"
|
|
||||||
PACKAGECONFIG[venus-validate] = "-Dvenus-validate=true,-Dvenus-validate=false"
|
|
||||||
PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false,libcheck"
|
|
||||||
|
|
||||||
BBCLASSEXTEND = "native nativesdk"
|
|
||||||
|
|
||||||
REQUIRED_DISTRO_FEATURES = "opengl"
|
|
@ -16,7 +16,7 @@ SRC_URI[sha256sum] = "6ca3748fc1dad22c450bbf6601d4e706cb11c5e662d11bb4aeb473a9cd
|
|||||||
SRCNAME = "volume_key"
|
SRCNAME = "volume_key"
|
||||||
S = "${WORKDIR}/${SRCNAME}-${PV}"
|
S = "${WORKDIR}/${SRCNAME}-${PV}"
|
||||||
|
|
||||||
inherit autotools python3native gettext pkgconfig
|
inherit autotools python3native python3targetconfig gettext pkgconfig
|
||||||
|
|
||||||
DEPENDS += " \
|
DEPENDS += " \
|
||||||
util-linux \
|
util-linux \
|
||||||
@ -27,7 +27,7 @@ DEPENDS += " \
|
|||||||
swig-native \
|
swig-native \
|
||||||
"
|
"
|
||||||
|
|
||||||
PACKAGECONFIG ??= "python3"
|
PACKAGECONFIG ??= ""
|
||||||
PACKAGECONFIG[python3] = "--with-python3,--without-python3,python3,python3"
|
PACKAGECONFIG[python3] = "--with-python3,--without-python3,python3,python3"
|
||||||
|
|
||||||
EXTRA_OECONF = "--without-python"
|
EXTRA_OECONF = "--without-python"
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
/usr/libexec/libinput/libinput-test-suite -j1
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo 'PASS: libinput-test-suite'
|
|
||||||
else
|
|
||||||
echo 'FAIL: libinput-test-suite'
|
|
||||||
fi
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
|||||||
SUMMARY = "Library to handle input devices in Wayland compositors"
|
|
||||||
DESCRIPTION = "libinput is a library to handle input devices in Wayland \
|
|
||||||
compositors and to provide a generic X.Org input driver. It provides \
|
|
||||||
device detection, device handling, input device event processing and \
|
|
||||||
abstraction so minimize the amount of custom input code compositors need to \
|
|
||||||
provide the common set of functionality that users expect."
|
|
||||||
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/libinput/"
|
|
||||||
SECTION = "libs"
|
|
||||||
|
|
||||||
LICENSE = "MIT"
|
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=bab4ac7dc1c10bc0fb037dc76c46ef8a"
|
|
||||||
|
|
||||||
DEPENDS = "libevdev udev mtdev"
|
|
||||||
|
|
||||||
SRC_URI = "git://gitlab.freedesktop.org/libinput/libinput.git;protocol=https;branch=main \
|
|
||||||
file://run-ptest \
|
|
||||||
"
|
|
||||||
SRCREV = "3fd38d89276b679ac3565efd7c2150fd047902cb"
|
|
||||||
S = "${WORKDIR}/git"
|
|
||||||
|
|
||||||
UPSTREAM_CHECK_REGEX = "libinput-(?P<pver>\d+\.\d+\.(?!9\d+)\d+)"
|
|
||||||
|
|
||||||
inherit meson pkgconfig lib_package ptest
|
|
||||||
|
|
||||||
# Patch out build directory, otherwise it leaks into ptest binary
|
|
||||||
do_configure:append() {
|
|
||||||
sed -i -e "s,${WORKDIR},,g" config.h
|
|
||||||
if [ -e "litest-config.h" ]; then
|
|
||||||
sed -i -e "s,${WORKDIR},,g" litest-config.h
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
|
|
||||||
PACKAGECONFIG[libwacom] = "-Dlibwacom=true,-Dlibwacom=false,libwacom"
|
|
||||||
PACKAGECONFIG[gui] = "-Ddebug-gui=true,-Ddebug-gui=false,cairo gtk+3"
|
|
||||||
PACKAGECONFIG[tests] = "-Dtests=true -Dinstall-tests=true,-Dtests=false -Dinstall-tests=false,libcheck"
|
|
||||||
|
|
||||||
UDEVDIR = "`pkg-config --variable=udevdir udev`"
|
|
||||||
|
|
||||||
EXTRA_OEMESON += "-Dudev-dir=${UDEVDIR} \
|
|
||||||
-Ddocumentation=false \
|
|
||||||
-Dzshcompletiondir=no"
|
|
||||||
|
|
||||||
# package name changed in 1.8.1 upgrade: make sure package upgrades work
|
|
||||||
RPROVIDES:${PN} = "libinput"
|
|
||||||
RREPLACES:${PN} = "libinput"
|
|
||||||
RCONFLICTS:${PN} = "libinput"
|
|
||||||
|
|
||||||
FILES:${PN}-ptest += "${libexecdir}/libinput/libinput-test-suite"
|
|
@ -1,18 +0,0 @@
|
|||||||
SUMMARY = "Multitouch Protocol Translation Library"
|
|
||||||
|
|
||||||
DESCRIPTION = "mtdev is a library which transforms all variants of kernel \
|
|
||||||
multitouch events to the slotted type B protocol. The events put into mtdev may \
|
|
||||||
be from any MT device, specifically type A without contact tracking, type A with \
|
|
||||||
contact tracking, or type B with contact tracking"
|
|
||||||
|
|
||||||
HOMEPAGE = "http://bitmath.org/code/mtdev/"
|
|
||||||
SECTION = "libs"
|
|
||||||
|
|
||||||
LICENSE = "MIT"
|
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=ea6bd0268bb0fcd6b27698616ceee5d6"
|
|
||||||
|
|
||||||
SRC_URI = "http://bitmath.org/code/${BPN}/${BP}.tar.bz2"
|
|
||||||
SRC_URI[md5sum] = "bf8ef2482e84a00b5db8fbd3ce00e249"
|
|
||||||
SRC_URI[sha256sum] = "15d7b28da8ac71d8bc8c9287c2045fd174267bc740bec10cfda332dc1204e0e0"
|
|
||||||
|
|
||||||
inherit autotools pkgconfig
|
|
@ -1,8 +0,0 @@
|
|||||||
# distro features required by weston recipes
|
|
||||||
|
|
||||||
inherit features_check
|
|
||||||
|
|
||||||
# requires pam enabled if started via systemd
|
|
||||||
#
|
|
||||||
REQUIRED_DISTRO_FEATURES = "wayland opengl ${@oe.utils.conditional('VIRTUAL-RUNTIME_init_manager', 'systemd', 'pam', '', d)}"
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
|||||||
SUMMARY = "Collection of additional Wayland protocols"
|
|
||||||
DESCRIPTION = "Wayland protocols that add functionality not \
|
|
||||||
available in the Wayland core protocol. Such protocols either add \
|
|
||||||
completely new functionality, or extend the functionality of some other \
|
|
||||||
protocol either in Wayland core, or some other protocol in \
|
|
||||||
wayland-protocols."
|
|
||||||
HOMEPAGE = "http://wayland.freedesktop.org"
|
|
||||||
LICENSE = "MIT"
|
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=c7b12b6702da38ca028ace54aae3d484 \
|
|
||||||
file://stable/presentation-time/presentation-time.xml;endline=26;md5=4646cd7d9edc9fa55db941f2d3a7dc53"
|
|
||||||
|
|
||||||
SRC_URI = "https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/${PV}/downloads/wayland-protocols-${PV}.tar.xz"
|
|
||||||
SRC_URI[sha256sum] = "94f0c50b090d6e61a03f62048467b19abbe851be4e11ae7b36f65f8b98c3963a"
|
|
||||||
|
|
||||||
UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/wayland/wayland-protocols/-/tags"
|
|
||||||
|
|
||||||
inherit meson pkgconfig allarch
|
|
||||||
|
|
||||||
EXTRA_OEMESON += "-Dtests=false"
|
|
||||||
|
|
||||||
PACKAGES = "${PN}"
|
|
||||||
FILES:${PN} += "${datadir}/pkgconfig/wayland-protocols.pc"
|
|
||||||
|
|
||||||
BBCLASSEXTEND = "native nativesdk"
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
|||||||
SUMMARY = "Wayland utilities"
|
|
||||||
DESCRIPTION = "Wayland-utils contains (for now) \
|
|
||||||
wayland-info, a utility for displaying information about the Wayland \
|
|
||||||
protocols supported by a Wayland compositor. \
|
|
||||||
wayland-info is basically a standalone version of weston-info as found \
|
|
||||||
in weston repository. "
|
|
||||||
HOMEPAGE = "http://wayland.freedesktop.org"
|
|
||||||
LICENSE = "MIT"
|
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=548a66038a77415e1df51118625e832f \
|
|
||||||
"
|
|
||||||
|
|
||||||
SRC_URI = "https://gitlab.freedesktop.org/wayland/wayland-utils/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz"
|
|
||||||
SRC_URI[sha256sum] = "d9278c22554586881802540751bcc42569262bf80cd9ac9b0fd12ff4bd09a9e4"
|
|
||||||
|
|
||||||
UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/wayland/wayland-utils/-/tags"
|
|
||||||
|
|
||||||
inherit meson pkgconfig
|
|
||||||
|
|
||||||
DEPENDS += "wayland wayland-native wayland-protocols"
|
|
||||||
|
|
||||||
PACKAGECONFIG ??= "drm"
|
|
||||||
PACKAGECONFIG[drm] = "-Ddrm=enabled,-Ddrm=disabled,libdrm"
|
|
@ -1,41 +0,0 @@
|
|||||||
From b4c64b6f07743e3fb63ce52359bc664ab7d60df0 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Joshua Watt <JPEWhacker@gmail.com>
|
|
||||||
Date: Thu, 20 Feb 2020 15:20:45 -0600
|
|
||||||
Subject: [PATCH] build: Fix strndup detection on MinGW
|
|
||||||
|
|
||||||
GCC and meson conspire together to incorrectly detect that strndup()
|
|
||||||
exists on MinGW as __builtin_strndup, when no such function exists. As a
|
|
||||||
work around, meson will skip looking for __builtin functions if an
|
|
||||||
'#include' is in the prefix, so add '#include <string.h>' when looking
|
|
||||||
for strndup().
|
|
||||||
|
|
||||||
See: https://github.com/mesonbuild/meson/issues/3672
|
|
||||||
|
|
||||||
Upstream-Status: Submitted [https://gitlab.freedesktop.org/wayland/wayland/merge_requests/63]
|
|
||||||
|
|
||||||
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
|
|
||||||
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
|
|
||||||
---
|
|
||||||
meson.build | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/meson.build b/meson.build
|
|
||||||
index 3bc25c9..adde7b9 100644
|
|
||||||
--- a/meson.build
|
|
||||||
+++ b/meson.build
|
|
||||||
@@ -38,11 +38,11 @@ have_funcs = [
|
|
||||||
'prctl',
|
|
||||||
'memfd_create',
|
|
||||||
'mremap',
|
|
||||||
- 'strndup',
|
|
||||||
]
|
|
||||||
foreach f: have_funcs
|
|
||||||
config_h.set('HAVE_' + f.underscorify().to_upper(), cc.has_function(f))
|
|
||||||
endforeach
|
|
||||||
+config_h.set('HAVE_STRNDUP', cc.has_function('strndup') and cc.has_header_symbol('string.h', 'strndup'))
|
|
||||||
config_h.set10('HAVE_XUCRED_CR_PID', cc.has_member('struct xucred', 'cr_pid', prefix : '#include <sys/ucred.h>'))
|
|
||||||
have_broken_msg_cmsg_cloexec = false
|
|
||||||
if host_machine.system() == 'freebsd'
|
|
||||||
--
|
|
||||||
2.7.4
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
|||||||
From ff8ecbe8891d592e645927659318720f9e190054 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Andreas Cord-Landwehr <cordlandwehr@kde.org>
|
|
||||||
Date: Sun, 6 Feb 2022 17:23:46 +0100
|
|
||||||
Subject: [PATCH] Consider pkgconfig sysroot for pkgdatadir
|
|
||||||
|
|
||||||
For libs/cflags this is done automatically, but not for manually accessed
|
|
||||||
variables. This matches what wayland-protocols does.
|
|
||||||
|
|
||||||
Upstream-Status: Submitted [https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/272]
|
|
||||||
---
|
|
||||||
src/meson.build | 6 +++---
|
|
||||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/meson.build b/src/meson.build
|
|
||||||
index a8a1d2b..721e151 100644
|
|
||||||
--- a/src/meson.build
|
|
||||||
+++ b/src/meson.build
|
|
||||||
@@ -65,7 +65,7 @@ if get_option('scanner')
|
|
||||||
version: meson.project_version(),
|
|
||||||
variables: [
|
|
||||||
'datarootdir=' + join_paths('${prefix}', get_option('datadir')),
|
|
||||||
- 'pkgdatadir=' + join_paths('${datarootdir}', meson.project_name()),
|
|
||||||
+ 'pkgdatadir=' + join_paths('${pc_sysrootdir}${datarootdir}', meson.project_name()),
|
|
||||||
'bindir=' + join_paths('${prefix}', get_option('bindir')),
|
|
||||||
'wayland_scanner=${bindir}/wayland-scanner'
|
|
||||||
],
|
|
||||||
@@ -211,7 +211,7 @@ if get_option('libraries')
|
|
||||||
filebase: 'wayland-server',
|
|
||||||
variables: [
|
|
||||||
'datarootdir=' + join_paths('${prefix}', get_option('datadir')),
|
|
||||||
- 'pkgdatadir=' + join_paths('${datarootdir}', meson.project_name())
|
|
||||||
+ 'pkgdatadir=' + join_paths('${pc_sysrootdir}${datarootdir}', meson.project_name())
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
@@ -250,7 +250,7 @@ if get_option('libraries')
|
|
||||||
filebase: 'wayland-client',
|
|
||||||
variables: [
|
|
||||||
'datarootdir=' + join_paths('${prefix}', get_option('datadir')),
|
|
||||||
- 'pkgdatadir=' + join_paths('${datarootdir}', meson.project_name())
|
|
||||||
+ 'pkgdatadir=' + join_paths('${pc_sysrootdir}${datarootdir}', meson.project_name())
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
--
|
|
||||||
2.37.2
|
|
@ -1,17 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
export WAYLAND_SCANNER=wayland-scanner
|
|
||||||
export TEST_DATA_DIR=tests/data
|
|
||||||
export TEST_OUTPUT_DIR=tests/output
|
|
||||||
export SED=sed
|
|
||||||
export WAYLAND_EGL_LIB=/usr/lib/libwayland-egl.so.1
|
|
||||||
export NM=nm
|
|
||||||
|
|
||||||
for i in `ls tests/*-test tests/wayland-egl-symbols-check tests/scanner-test.sh`; do
|
|
||||||
$i
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo "PASS: $i"
|
|
||||||
else
|
|
||||||
echo "FAIL: $i"
|
|
||||||
fi
|
|
||||||
done
|
|
@ -1,62 +0,0 @@
|
|||||||
SUMMARY = "Wayland, a protocol between a compositor and clients"
|
|
||||||
DESCRIPTION = "Wayland is a protocol for a compositor to talk to its clients \
|
|
||||||
as well as a C library implementation of that protocol. The compositor can be \
|
|
||||||
a standalone display server running on Linux kernel modesetting and evdev \
|
|
||||||
input devices, an X application, or a wayland client itself. The clients can \
|
|
||||||
be traditional applications, X servers (rootless or fullscreen) or other \
|
|
||||||
display servers."
|
|
||||||
HOMEPAGE = "http://wayland.freedesktop.org"
|
|
||||||
LICENSE = "MIT"
|
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b31d8f53b6aaf2b4985d7dd7810a70d1 \
|
|
||||||
file://src/wayland-server.c;endline=24;md5=b8e046164a766bb1ede8ba38e9dcd7ce"
|
|
||||||
|
|
||||||
DEPENDS = "expat libffi wayland-native"
|
|
||||||
|
|
||||||
SRC_URI = "https://gitlab.freedesktop.org/wayland/wayland/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz \
|
|
||||||
file://run-ptest \
|
|
||||||
file://0001-build-Fix-strndup-detection-on-MinGW.patch \
|
|
||||||
file://0002-Consider-pkgconfig-sysroot-for-pkgdatadir.patch \
|
|
||||||
"
|
|
||||||
SRC_URI[sha256sum] = "1540af1ea698a471c2d8e9d288332c7e0fd360c8f1d12936ebb7e7cbc2425842"
|
|
||||||
|
|
||||||
UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/wayland/wayland/-/tags"
|
|
||||||
UPSTREAM_CHECK_REGEX = "wayland-(?P<pver>\d+\.\d+\.(?!9\d+)\d+)"
|
|
||||||
|
|
||||||
inherit meson pkgconfig ptest
|
|
||||||
|
|
||||||
PACKAGECONFIG ??= "dtd-validation"
|
|
||||||
PACKAGECONFIG[dtd-validation] = "-Ddtd_validation=true,-Ddtd_validation=false,libxml2,,"
|
|
||||||
|
|
||||||
EXTRA_OEMESON = "-Ddocumentation=false"
|
|
||||||
EXTRA_OEMESON:class-native = "-Ddocumentation=false"
|
|
||||||
|
|
||||||
# Wayland installs a M4 macro for other projects to use, which uses the target
|
|
||||||
# pkg-config to find files. Replace pkg-config with pkg-config-native.
|
|
||||||
do_install:append:class-native() {
|
|
||||||
sed -e 's,PKG_CHECK_MODULES(.*),,g' \
|
|
||||||
-e 's,$PKG_CONFIG,pkg-config-native,g' \
|
|
||||||
-i ${D}/${datadir}/aclocal/wayland-scanner.m4
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install_ptest() {
|
|
||||||
mkdir -p ${D}${PTEST_PATH}/tests/data
|
|
||||||
cp -rf ${B}/tests/*-test ${B}/tests/*-checker ${D}${PTEST_PATH}/tests
|
|
||||||
cp -rf ${B}/tests/*-checker ${D}${PTEST_PATH}
|
|
||||||
cp -rf ${S}/tests/scanner-test.sh ${D}${PTEST_PATH}/tests
|
|
||||||
cp -rf ${S}/tests/data/* ${D}${PTEST_PATH}/tests/data/
|
|
||||||
cp -rf ${S}/egl/wayland-egl-symbols-check ${D}${PTEST_PATH}/tests/
|
|
||||||
}
|
|
||||||
|
|
||||||
sysroot_stage_all:append:class-target () {
|
|
||||||
rm ${SYSROOT_DESTDIR}/${datadir}/aclocal/wayland-scanner.m4
|
|
||||||
cp ${STAGING_DATADIR_NATIVE}/aclocal/wayland-scanner.m4 ${SYSROOT_DESTDIR}/${datadir}/aclocal/
|
|
||||||
}
|
|
||||||
|
|
||||||
PACKAGES =+ "${PN}-tools"
|
|
||||||
|
|
||||||
FILES:${PN}-tools = "${bindir}/wayland-scanner"
|
|
||||||
FILES:${PN}-dev += "${datadir}/${BPN}/wayland-scanner.mk"
|
|
||||||
|
|
||||||
BBCLASSEXTEND = "native nativesdk"
|
|
||||||
|
|
||||||
RDEPENDS:${PN}-ptest += "binutils sed ${PN}-tools"
|
|
@ -1,106 +0,0 @@
|
|||||||
SUMMARY = "Startup script and systemd unit file for the Weston Wayland compositor"
|
|
||||||
LICENSE = "MIT"
|
|
||||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
||||||
|
|
||||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
||||||
|
|
||||||
SRC_URI = "file://init \
|
|
||||||
file://weston.env \
|
|
||||||
file://weston.ini \
|
|
||||||
file://weston.service \
|
|
||||||
file://weston.socket \
|
|
||||||
file://weston-socket.sh \
|
|
||||||
file://weston-autologin \
|
|
||||||
file://weston-start"
|
|
||||||
|
|
||||||
S = "${WORKDIR}"
|
|
||||||
|
|
||||||
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xwayland', '', d)}"
|
|
||||||
PACKAGECONFIG:append:qemuriscv64 = " use-pixman"
|
|
||||||
PACKAGECONFIG:append:qemuppc64 = " use-pixman"
|
|
||||||
|
|
||||||
PACKAGECONFIG[xwayland] = ",,"
|
|
||||||
PACKAGECONFIG[no-idle-timeout] = ",,"
|
|
||||||
PACKAGECONFIG[use-pixman] = ",,"
|
|
||||||
|
|
||||||
DEFAULTBACKEND ??= ""
|
|
||||||
DEFAULTBACKEND:qemuall ?= "drm"
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
# Install weston-start script
|
|
||||||
if [ "${VIRTUAL-RUNTIME_init_manager}" != "systemd" ]; then
|
|
||||||
install -Dm755 ${WORKDIR}/weston-start ${D}${bindir}/weston-start
|
|
||||||
sed -i 's,@DATADIR@,${datadir},g' ${D}${bindir}/weston-start
|
|
||||||
sed -i 's,@LOCALSTATEDIR@,${localstatedir},g' ${D}${bindir}/weston-start
|
|
||||||
install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston
|
|
||||||
sed -i 's#ROOTHOME#${ROOT_HOME}#' ${D}/${sysconfdir}/init.d/weston
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install Weston systemd service
|
|
||||||
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
|
||||||
install -D -p -m0644 ${WORKDIR}/weston.service ${D}${systemd_system_unitdir}/weston.service
|
|
||||||
install -D -p -m0644 ${WORKDIR}/weston.socket ${D}${systemd_system_unitdir}/weston.socket
|
|
||||||
install -D -p -m0644 ${WORKDIR}/weston-socket.sh ${D}${sysconfdir}/profile.d/weston-socket.sh
|
|
||||||
sed -i -e s:/etc:${sysconfdir}:g \
|
|
||||||
-e s:/usr/bin:${bindir}:g \
|
|
||||||
-e s:/var:${localstatedir}:g \
|
|
||||||
${D}${systemd_system_unitdir}/weston.service
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then
|
|
||||||
install -D -p -m0644 ${WORKDIR}/weston-autologin ${D}${sysconfdir}/pam.d/weston-autologin
|
|
||||||
fi
|
|
||||||
|
|
||||||
install -D -p -m0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
||||||
install -Dm644 ${WORKDIR}/weston.env ${D}${sysconfdir}/default/weston
|
|
||||||
|
|
||||||
if [ -n "${DEFAULTBACKEND}" ]; then
|
|
||||||
sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "yes" ]; then
|
|
||||||
sed -i -e "/^\[core\]/a xwayland=true" ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${@bb.utils.contains('PACKAGECONFIG', 'no-idle-timeout', 'yes', 'no', d)}" = "yes" ]; then
|
|
||||||
sed -i -e "/^\[core\]/a idle-time=0" ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${@bb.utils.contains('PACKAGECONFIG', 'use-pixman', 'yes', 'no', d)}" = "yes" ]; then
|
|
||||||
sed -i -e "/^\[core\]/a use-pixman=true" ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
||||||
fi
|
|
||||||
|
|
||||||
install -dm 755 -o weston -g weston ${D}/home/weston
|
|
||||||
}
|
|
||||||
|
|
||||||
INHIBIT_UPDATERCD_BBCLASS = "${@oe.utils.conditional('VIRTUAL-RUNTIME_init_manager', 'systemd', '1', '', d)}"
|
|
||||||
|
|
||||||
inherit update-rc.d systemd useradd
|
|
||||||
|
|
||||||
USERADD_PACKAGES = "${PN}"
|
|
||||||
|
|
||||||
# rdepends on weston which depends on virtual/egl
|
|
||||||
#
|
|
||||||
require ${THISDIR}/required-distro-features.inc
|
|
||||||
|
|
||||||
RDEPENDS:${PN} = "weston kbd"
|
|
||||||
|
|
||||||
INITSCRIPT_NAME = "weston"
|
|
||||||
INITSCRIPT_PARAMS = "start 9 5 2 . stop 20 0 1 6 ."
|
|
||||||
|
|
||||||
FILES:${PN} += "\
|
|
||||||
${sysconfdir}/xdg/weston/weston.ini \
|
|
||||||
${sysconfdir}/profile.d/weston-socket.sh \
|
|
||||||
${systemd_system_unitdir}/weston.service \
|
|
||||||
${systemd_system_unitdir}/weston.socket \
|
|
||||||
${sysconfdir}/default/weston \
|
|
||||||
${sysconfdir}/pam.d/ \
|
|
||||||
/home/weston \
|
|
||||||
"
|
|
||||||
|
|
||||||
CONFFILES:${PN} += "${sysconfdir}/xdg/weston/weston.ini ${sysconfdir}/default/weston"
|
|
||||||
|
|
||||||
SYSTEMD_SERVICE:${PN} = "weston.service weston.socket"
|
|
||||||
USERADD_PARAM:${PN} = "--home /home/weston --shell /bin/sh --user-group -G video,input,render,wayland weston"
|
|
||||||
GROUPADD_PARAM:${PN} = "-r wayland; -r render"
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
### BEGIN INIT INFO
|
|
||||||
# Provides: weston
|
|
||||||
# Required-Start: $local_fs $remote_fs
|
|
||||||
# Required-Stop: $local_fs $remote_fs
|
|
||||||
# Default-Start: 2 3 4 5
|
|
||||||
# Default-Stop: 0 1 6
|
|
||||||
### END INIT INFO
|
|
||||||
|
|
||||||
if test -e /etc/default/weston ; then
|
|
||||||
. /etc/default/weston
|
|
||||||
fi
|
|
||||||
|
|
||||||
killproc() {
|
|
||||||
pid=`/bin/pidof $1`
|
|
||||||
[ "$pid" != "" ] && kill $pid
|
|
||||||
}
|
|
||||||
|
|
||||||
read CMDLINE < /proc/cmdline
|
|
||||||
for x in $CMDLINE; do
|
|
||||||
case $x in
|
|
||||||
weston=false)
|
|
||||||
echo "Weston disabled"
|
|
||||||
exit 0;
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
start)
|
|
||||||
. /etc/profile
|
|
||||||
export HOME=ROOTHOME
|
|
||||||
|
|
||||||
WESTON_USER=weston weston-start $OPTARGS &
|
|
||||||
;;
|
|
||||||
|
|
||||||
stop)
|
|
||||||
echo "Stopping Weston"
|
|
||||||
killproc weston
|
|
||||||
;;
|
|
||||||
|
|
||||||
restart)
|
|
||||||
$0 stop
|
|
||||||
sleep 1
|
|
||||||
$0 start
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
echo "usage: $0 { start | stop | restart }"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
|
@ -1,11 +0,0 @@
|
|||||||
auth required pam_nologin.so
|
|
||||||
auth required pam_unix.so try_first_pass nullok
|
|
||||||
|
|
||||||
account required pam_nologin.so
|
|
||||||
account required pam_unix.so
|
|
||||||
|
|
||||||
session required pam_env.so
|
|
||||||
session required pam_unix.so
|
|
||||||
-session optional pam_systemd.so type=wayland class=user desktop=weston
|
|
||||||
-session optional pam_loginuid.so
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# set weston variables for use with global weston socket
|
|
||||||
global_socket="/run/wayland-0"
|
|
||||||
if [ -e "$global_socket" ]; then
|
|
||||||
weston_group=$(stat -c "%G" "$global_socket")
|
|
||||||
if [ "$(id -u)" = "0" ]; then
|
|
||||||
export WAYLAND_DISPLAY="$global_socket"
|
|
||||||
else
|
|
||||||
case "$(groups "$USER")" in
|
|
||||||
*"$weston_group"*)
|
|
||||||
export WAYLAND_DISPLAY="$global_socket"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
unset weston_group
|
|
||||||
fi
|
|
||||||
unset global_socket
|
|
@ -1,71 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# Copyright (C) 2016 O.S. Systems Software LTDA.
|
|
||||||
# Copyright (C) 2016 Freescale Semiconductor
|
|
||||||
|
|
||||||
export PATH="/sbin:/usr/sbin:/bin:/usr/bin"
|
|
||||||
|
|
||||||
usage() {
|
|
||||||
cat <<EOF
|
|
||||||
$0 [<weston options>]
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
|
|
||||||
## Module support
|
|
||||||
modules_dir=@DATADIR@/weston-start
|
|
||||||
|
|
||||||
# Add weston extra argument
|
|
||||||
add_weston_argument() {
|
|
||||||
weston_args="$weston_args $1"
|
|
||||||
}
|
|
||||||
|
|
||||||
## Add module to --modules argument
|
|
||||||
add_weston_module() {
|
|
||||||
if [[ "x${weston_modules}" == "x" ]]; then
|
|
||||||
weston_modules="--modules "
|
|
||||||
fi;
|
|
||||||
weston_modules+="${1},"
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ -n "$WAYLAND_DISPLAY" ]; then
|
|
||||||
echo "ERROR: A Wayland compositor is already running, nested Weston instance is not supported yet."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$WESTON_USER" ]; then
|
|
||||||
if [ -z "$WESTON_GROUP" ]; then
|
|
||||||
# no explicit WESTON_GROUP given, therefore use WESTON_USER
|
|
||||||
export WESTON_GROUP="${WESTON_USER}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
weston_args=$*
|
|
||||||
|
|
||||||
# Load and run modules
|
|
||||||
if [ -d "$modules_dir" ]; then
|
|
||||||
for m in "$modules_dir"/*; do
|
|
||||||
# Skip backup files
|
|
||||||
if [ "`echo $m | sed -e 's/\~$//'`" != "$m" ]; then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
# process module
|
|
||||||
. $m
|
|
||||||
if [[ x"{$weston_modules}" != "x" ]]; then
|
|
||||||
add_weston_argument "${weston_modules}"
|
|
||||||
fi;
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -z "$XDG_RUNTIME_DIR"; then
|
|
||||||
export XDG_RUNTIME_DIR=/run/user/`id -u ${WESTON_USER}`
|
|
||||||
if ! test -d "$XDG_RUNTIME_DIR"; then
|
|
||||||
mkdir --parents $XDG_RUNTIME_DIR
|
|
||||||
chmod 0700 $XDG_RUNTIME_DIR
|
|
||||||
fi
|
|
||||||
if [ -n "$WESTON_USER" ]
|
|
||||||
then
|
|
||||||
chown $WESTON_USER:$WESTON_GROUP $XDG_RUNTIME_DIR
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
su -c "XDG_RUNTIME_DIR=/run/user/`id -u ${WESTON_USER}` weston $weston_args --log=/tmp/weston.log" $WESTON_USER
|
|
@ -1,75 +0,0 @@
|
|||||||
# configuration file for Weston
|
|
||||||
|
|
||||||
[core]
|
|
||||||
#modules=xwayland.so,cms-colord.so
|
|
||||||
#shell=desktop-shell.so
|
|
||||||
#gbm-format=xrgb2101010
|
|
||||||
require-input=false
|
|
||||||
|
|
||||||
#[shell]
|
|
||||||
#background-image=/usr/share/backgrounds/gnome/Aqua.jpg
|
|
||||||
#background-color=0xff002244
|
|
||||||
#background-type=tile
|
|
||||||
#clock-format=minutes
|
|
||||||
#panel-color=0x90ff0000
|
|
||||||
#locking=true
|
|
||||||
#animation=zoom
|
|
||||||
#startup-animation=fade
|
|
||||||
#binding-modifier=ctrl
|
|
||||||
#num-workspaces=6
|
|
||||||
#cursor-theme=whiteglass
|
|
||||||
#cursor-size=24
|
|
||||||
|
|
||||||
#lockscreen-icon=/usr/share/icons/gnome/256x256/actions/lock.png
|
|
||||||
#lockscreen=/usr/share/backgrounds/gnome/Garden.jpg
|
|
||||||
#homescreen=/usr/share/backgrounds/gnome/Blinds.jpg
|
|
||||||
#animation=fade
|
|
||||||
|
|
||||||
#[launcher]
|
|
||||||
#icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
|
|
||||||
#path=/usr/bin/gnome-terminal
|
|
||||||
|
|
||||||
#[launcher]
|
|
||||||
#icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
|
|
||||||
#path=/usr/bin/weston-terminal
|
|
||||||
|
|
||||||
#[launcher]
|
|
||||||
#icon=/usr/share/icons/hicolor/24x24/apps/google-chrome.png
|
|
||||||
#path=/usr/bin/google-chrome
|
|
||||||
|
|
||||||
#[launcher]
|
|
||||||
#icon=/usr/share/icons/gnome/24x24/apps/arts.png
|
|
||||||
#path=/build/weston-0lEgCh/weston-1.11.0/weston-flower
|
|
||||||
|
|
||||||
#[input-method]
|
|
||||||
#path=/usr/libexec/weston-keyboard
|
|
||||||
|
|
||||||
#[output]
|
|
||||||
#name=LVDS1
|
|
||||||
#mode=1680x1050
|
|
||||||
#transform=90
|
|
||||||
#icc_profile=/usr/share/color/icc/colord/Bluish.icc
|
|
||||||
|
|
||||||
#[output]
|
|
||||||
#name=VGA1
|
|
||||||
#mode=173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
|
|
||||||
#transform=flipped
|
|
||||||
|
|
||||||
#[output]
|
|
||||||
#name=X1
|
|
||||||
#mode=1024x768
|
|
||||||
#transform=flipped-90
|
|
||||||
|
|
||||||
#[libinput]
|
|
||||||
#enable_tap=true
|
|
||||||
|
|
||||||
#[touchpad]
|
|
||||||
#constant_accel_factor = 50
|
|
||||||
#min_accel_factor = 0.16
|
|
||||||
#max_accel_factor = 1.0
|
|
||||||
|
|
||||||
[screen-share]
|
|
||||||
command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize
|
|
||||||
|
|
||||||
#[xwayland]
|
|
||||||
#path=/usr/bin/Xwayland
|
|
@ -1,71 +0,0 @@
|
|||||||
# This is a system unit for launching Weston with auto-login as the
|
|
||||||
# user configured here.
|
|
||||||
#
|
|
||||||
# Weston must be built with systemd support, and your weston.ini must load
|
|
||||||
# the plugin systemd-notify.so.
|
|
||||||
[Unit]
|
|
||||||
Description=Weston, a Wayland compositor, as a system service
|
|
||||||
Documentation=man:weston(1) man:weston.ini(5)
|
|
||||||
Documentation=http://wayland.freedesktop.org/
|
|
||||||
|
|
||||||
# Make sure we are started after logins are permitted.
|
|
||||||
Requires=systemd-user-sessions.service
|
|
||||||
After=systemd-user-sessions.service
|
|
||||||
|
|
||||||
# If Plymouth is used, we want to start when it is on its way out.
|
|
||||||
After=plymouth-quit-wait.service
|
|
||||||
|
|
||||||
# D-Bus is necessary for contacting logind. Logind is required.
|
|
||||||
Wants=dbus.socket
|
|
||||||
After=dbus.socket
|
|
||||||
|
|
||||||
# Ensure the socket is present
|
|
||||||
Requires=weston.socket
|
|
||||||
|
|
||||||
# Since we are part of the graphical session, make sure we are started before
|
|
||||||
# it is complete.
|
|
||||||
Before=graphical.target
|
|
||||||
|
|
||||||
# Prevent starting on systems without virtual consoles, Weston requires one
|
|
||||||
# for now.
|
|
||||||
ConditionPathExists=/dev/tty0
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
# Requires systemd-notify.so Weston plugin.
|
|
||||||
Type=notify
|
|
||||||
EnvironmentFile=/etc/default/weston
|
|
||||||
ExecStart=/usr/bin/weston --modules=systemd-notify.so
|
|
||||||
|
|
||||||
# Optional watchdog setup
|
|
||||||
#TimeoutStartSec=60
|
|
||||||
#WatchdogSec=20
|
|
||||||
|
|
||||||
# The user to run Weston as.
|
|
||||||
User=weston
|
|
||||||
Group=weston
|
|
||||||
|
|
||||||
# Make sure the working directory is the users home directory
|
|
||||||
WorkingDirectory=/home/weston
|
|
||||||
|
|
||||||
# Set up a full user session for the user, required by Weston.
|
|
||||||
PAMName=weston-autologin
|
|
||||||
|
|
||||||
# A virtual terminal is needed.
|
|
||||||
TTYPath=/dev/tty7
|
|
||||||
TTYReset=yes
|
|
||||||
TTYVHangup=yes
|
|
||||||
TTYVTDisallocate=yes
|
|
||||||
|
|
||||||
# Fail to start if not controlling the tty.
|
|
||||||
StandardInput=tty-fail
|
|
||||||
StandardOutput=journal
|
|
||||||
StandardError=journal
|
|
||||||
|
|
||||||
# Log this user with utmp, letting it show up with commands 'w' and 'who'.
|
|
||||||
UtmpIdentifier=tty7
|
|
||||||
UtmpMode=user
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
# Note: If you only want weston to start on-demand, remove this line with a
|
|
||||||
# service drop file
|
|
||||||
WantedBy=graphical.target
|
|
@ -1,14 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Weston socket
|
|
||||||
RequiresMountsFor=/run
|
|
||||||
|
|
||||||
[Socket]
|
|
||||||
ListenStream=/run/wayland-0
|
|
||||||
SocketMode=0775
|
|
||||||
SocketUser=weston
|
|
||||||
SocketGroup=wayland
|
|
||||||
RemoveOnStop=yes
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=sockets.target
|
|
||||||
|
|
@ -1,48 +0,0 @@
|
|||||||
From 2b53236ac637dfa7fb0f438f7391a73f6ef92a06 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Khem Raj <raj.khem@gmail.com>
|
|
||||||
Date: Thu, 14 Dec 2023 09:13:54 -0800
|
|
||||||
Subject: [PATCH] libweston,tools: Include libgen.h for basename signature
|
|
||||||
|
|
||||||
Latest musl has removed the declaration from string.h [1] as it only
|
|
||||||
implements POSIX version alone and string.h in glibc implements GNU
|
|
||||||
version of basename. This now results in compile errors on musl.
|
|
||||||
|
|
||||||
This might be a warning with older compilers but it is error with
|
|
||||||
Clang-17+ as it treats -Wimplicit-function-declaration as error
|
|
||||||
|
|
||||||
[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7
|
|
||||||
|
|
||||||
Upstream-Status: Submitted [https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1420]
|
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
||||||
---
|
|
||||||
libweston/backend-drm/libbacklight.c | 1 +
|
|
||||||
tools/zunitc/src/zunitc_impl.c | 1 +
|
|
||||||
2 files changed, 2 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/libweston/backend-drm/libbacklight.c b/libweston/backend-drm/libbacklight.c
|
|
||||||
index ca7f2d68..74690fa7 100644
|
|
||||||
--- a/libweston/backend-drm/libbacklight.c
|
|
||||||
+++ b/libweston/backend-drm/libbacklight.c
|
|
||||||
@@ -41,6 +41,7 @@
|
|
||||||
#include <drm.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <malloc.h>
|
|
||||||
+#include <libgen.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <errno.h>
|
|
||||||
|
|
||||||
diff --git a/tools/zunitc/src/zunitc_impl.c b/tools/zunitc/src/zunitc_impl.c
|
|
||||||
index 18f03015..9b460fa0 100644
|
|
||||||
--- a/tools/zunitc/src/zunitc_impl.c
|
|
||||||
+++ b/tools/zunitc/src/zunitc_impl.c
|
|
||||||
@@ -27,6 +27,7 @@
|
|
||||||
|
|
||||||
#include <errno.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
+#include <libgen.h>
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
--
|
|
||||||
2.43.0
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# SPDX-FileCopyrightText: Huawei Inc.
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
|
|
||||||
if [[ -x "/usr/lib/weston/systemd-notify.so" ]]; then
|
|
||||||
add_weston_module "systemd-notify.so"
|
|
||||||
fi
|
|
@ -1,9 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Encoding=UTF-8
|
|
||||||
Type=Application
|
|
||||||
Name=Weston
|
|
||||||
Comment=Wayland Compostitor
|
|
||||||
Exec=weston
|
|
||||||
Icon=weston
|
|
||||||
Terminal=false
|
|
||||||
Categories=Utility;
|
|
Binary file not shown.
Before Width: | Height: | Size: 2.3 KiB |
@ -1,6 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if type Xwayland >/dev/null 2>/dev/null; then
|
|
||||||
mkdir -m 775 -p /tmp/.X11-unix
|
|
||||||
chown root:video /tmp/.X11-unix
|
|
||||||
fi
|
|
@ -1,146 +0,0 @@
|
|||||||
SUMMARY = "Weston, a Wayland compositor"
|
|
||||||
DESCRIPTION = "Weston is the reference implementation of a Wayland compositor"
|
|
||||||
HOMEPAGE = "http://wayland.freedesktop.org"
|
|
||||||
LICENSE = "MIT"
|
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70 \
|
|
||||||
file://libweston/compositor.c;endline=27;md5=eb6d5297798cabe2ddc65e2af519bcf0 \
|
|
||||||
"
|
|
||||||
|
|
||||||
SRC_URI = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz \
|
|
||||||
file://0001-libweston-tools-Include-libgen.h-for-basename-signat.patch \
|
|
||||||
file://weston.png \
|
|
||||||
file://weston.desktop \
|
|
||||||
file://xwayland.weston-start \
|
|
||||||
file://systemd-notify.weston-start \
|
|
||||||
"
|
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "52ff1d4aa2394a2e416c85a338b627ce97fa71d43eb762fd4aaf145d36fc795a"
|
|
||||||
|
|
||||||
UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/wayland/weston/-/tags"
|
|
||||||
UPSTREAM_CHECK_REGEX = "weston-(?P<pver>\d+\.\d+\.(?!9\d+)\d+)"
|
|
||||||
|
|
||||||
inherit meson pkgconfig useradd
|
|
||||||
|
|
||||||
# depends on virtual/egl
|
|
||||||
#
|
|
||||||
require ${THISDIR}/required-distro-features.inc
|
|
||||||
|
|
||||||
DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0"
|
|
||||||
DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native"
|
|
||||||
|
|
||||||
LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'lto', '-Wl,-z,undefs', '', d)}"
|
|
||||||
|
|
||||||
WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}"
|
|
||||||
|
|
||||||
EXTRA_OEMESON += "-Dpipewire=false"
|
|
||||||
|
|
||||||
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms wayland egl clients', '', d)} \
|
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland', '', d)} \
|
|
||||||
${@bb.utils.filter('DISTRO_FEATURES', 'systemd x11', d)} \
|
|
||||||
${@bb.utils.contains_any('DISTRO_FEATURES', 'wayland x11', '', 'headless', d)} \
|
|
||||||
image-jpeg \
|
|
||||||
screenshare \
|
|
||||||
shell-desktop \
|
|
||||||
shell-fullscreen \
|
|
||||||
shell-ivi \
|
|
||||||
shell-kiosk \
|
|
||||||
"
|
|
||||||
|
|
||||||
# Can be 'damage', 'im', 'egl', 'shm', 'touch', 'dmabuf-feedback', 'dmabuf-v4l', 'dmabuf-egl' or 'all'
|
|
||||||
SIMPLECLIENTS ?= "all"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Compositor choices
|
|
||||||
#
|
|
||||||
# Weston on KMS
|
|
||||||
PACKAGECONFIG[kms] = "-Dbackend-drm=true,-Dbackend-drm=false,drm udev seatd virtual/egl virtual/libgles2 virtual/libgbm mtdev"
|
|
||||||
# Weston on Wayland (nested Weston)
|
|
||||||
PACKAGECONFIG[wayland] = "-Dbackend-wayland=true,-Dbackend-wayland=false,virtual/egl virtual/libgles2"
|
|
||||||
# Weston on X11
|
|
||||||
PACKAGECONFIG[x11] = "-Dbackend-x11=true,-Dbackend-x11=false,virtual/libx11 libxcb libxcursor"
|
|
||||||
# Headless Weston
|
|
||||||
PACKAGECONFIG[headless] = "-Dbackend-headless=true,-Dbackend-headless=false"
|
|
||||||
# Weston on RDP
|
|
||||||
PACKAGECONFIG[rdp] = "-Dbackend-rdp=true,-Dbackend-rdp=false,freerdp"
|
|
||||||
# VA-API desktop recorder
|
|
||||||
PACKAGECONFIG[vaapi] = "-Dbackend-drm-screencast-vaapi=true,-Dbackend-drm-screencast-vaapi=false,libva"
|
|
||||||
# Weston with EGL support
|
|
||||||
PACKAGECONFIG[egl] = "-Drenderer-gl=true,-Drenderer-gl=false,virtual/egl"
|
|
||||||
# Weston with lcms support
|
|
||||||
PACKAGECONFIG[lcms] = "-Dcolor-management-lcms=true,-Dcolor-management-lcms=false,lcms"
|
|
||||||
# Weston with webp support
|
|
||||||
PACKAGECONFIG[webp] = "-Dimage-webp=true,-Dimage-webp=false,libwebp"
|
|
||||||
# Weston with systemd support
|
|
||||||
PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd dbus"
|
|
||||||
# Weston with Xwayland support (requires X11 and Wayland)
|
|
||||||
PACKAGECONFIG[xwayland] = "-Dxwayland=true,-Dxwayland=false,libxcb libxcursor xcb-util-cursor xwayland"
|
|
||||||
# colord CMS support
|
|
||||||
PACKAGECONFIG[colord] = "-Ddeprecated-color-management-colord=true,-Ddeprecated-color-management-colord=false,colord"
|
|
||||||
# Clients support
|
|
||||||
PACKAGECONFIG[clients] = "-Dsimple-clients=${SIMPLECLIENTS} -Ddemo-clients=true,-Dsimple-clients= -Ddemo-clients=false"
|
|
||||||
# Virtual remote output with GStreamer on DRM backend
|
|
||||||
PACKAGECONFIG[remoting] = "-Dremoting=true,-Dremoting=false,gstreamer1.0 gstreamer1.0-plugins-base"
|
|
||||||
# Weston with screen-share support
|
|
||||||
PACKAGECONFIG[screenshare] = "-Dscreenshare=true,-Dscreenshare=false"
|
|
||||||
# Traditional desktop shell
|
|
||||||
PACKAGECONFIG[shell-desktop] = "-Dshell-desktop=true,-Dshell-desktop=false"
|
|
||||||
# Fullscreen shell
|
|
||||||
PACKAGECONFIG[shell-fullscreen] = "-Dshell-fullscreen=true,-Dshell-fullscreen=false"
|
|
||||||
# In-Vehicle Infotainment (IVI) shell
|
|
||||||
PACKAGECONFIG[shell-ivi] = "-Dshell-ivi=true,-Dshell-ivi=false"
|
|
||||||
# Kiosk shell
|
|
||||||
PACKAGECONFIG[shell-kiosk] = "-Dshell-kiosk=true,-Dshell-kiosk=false"
|
|
||||||
# JPEG image loading support
|
|
||||||
PACKAGECONFIG[image-jpeg] = "-Dimage-jpeg=true,-Dimage-jpeg=false, jpeg"
|
|
||||||
# screencasting via PipeWire
|
|
||||||
PACKAGECONFIG[pipewire] = "-Dbackend-pipewire=true,-Dbackend-pipewire=false,pipewire"
|
|
||||||
# VNC remote screensharing
|
|
||||||
PACKAGECONFIG[vnc] = "-Dbackend-vnc=true,-Dbackend-vnc=false,neatvnc"
|
|
||||||
|
|
||||||
|
|
||||||
do_install:append() {
|
|
||||||
# Weston doesn't need the .la files to load modules, so wipe them
|
|
||||||
rm -f ${D}/${libdir}/libweston-${WESTON_MAJOR_VERSION}/*.la
|
|
||||||
|
|
||||||
# If X11, ship a desktop file to launch it
|
|
||||||
if [ "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" ]; then
|
|
||||||
install -d ${D}${datadir}/applications
|
|
||||||
install ${WORKDIR}/weston.desktop ${D}${datadir}/applications
|
|
||||||
|
|
||||||
install -d ${D}${datadir}/icons/hicolor/48x48/apps
|
|
||||||
install ${WORKDIR}/weston.png ${D}${datadir}/icons/hicolor/48x48/apps
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "yes" ]; then
|
|
||||||
install -Dm 644 ${WORKDIR}/xwayland.weston-start ${D}${datadir}/weston-start/xwayland
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'yes', 'no', d)}" = "yes" ]; then
|
|
||||||
install -Dm 644 ${WORKDIR}/systemd-notify.weston-start ${D}${datadir}/weston-start/systemd-notify
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${@bb.utils.contains('PACKAGECONFIG', 'launch', 'yes', 'no', d)}" = "yes" ]; then
|
|
||||||
chmod u+s ${D}${bindir}/weston-launch
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', '${PN}-xwayland', '', d)} \
|
|
||||||
libweston-${WESTON_MAJOR_VERSION} ${PN}-examples"
|
|
||||||
|
|
||||||
FILES:${PN}-dev += "${libdir}/${BPN}/libexec_weston.so"
|
|
||||||
FILES:${PN} = "${sysconfdir} ${bindir}/weston ${bindir}/weston-terminal ${bindir}/weston-info ${bindir}/weston-launch ${bindir}/wcap-decode ${libexecdir} ${libdir}/${BPN}/*.so* ${datadir}"
|
|
||||||
|
|
||||||
FILES:libweston-${WESTON_MAJOR_VERSION} = "${libdir}/lib*${SOLIBS} ${libdir}/libweston-${WESTON_MAJOR_VERSION}/*.so"
|
|
||||||
SUMMARY:libweston-${WESTON_MAJOR_VERSION} = "Helper library for implementing 'wayland window managers'."
|
|
||||||
|
|
||||||
FILES:${PN}-examples = "${bindir}/*"
|
|
||||||
|
|
||||||
FILES:${PN}-xwayland = "${libdir}/libweston-${WESTON_MAJOR_VERSION}/xwayland.so"
|
|
||||||
RDEPENDS:${PN}-xwayland += "xwayland"
|
|
||||||
|
|
||||||
RDEPENDS:${PN} += "xkeyboard-config"
|
|
||||||
RRECOMMENDS:${PN} = "weston-init liberation-fonts"
|
|
||||||
RRECOMMENDS:${PN}-dev += "wayland-protocols"
|
|
||||||
|
|
||||||
USERADD_PACKAGES = "${PN}"
|
|
||||||
GROUPADD_PARAM:${PN} = "--system weston-launch"
|
|
@ -1,7 +1,7 @@
|
|||||||
# We have a conf and classes directory, add to BBPATH
|
# We have a conf and classes directory, add to BBPATH
|
||||||
BBPATH .= ":${LAYERDIR}"
|
BBPATH .= ":${LAYERDIR}"
|
||||||
|
|
||||||
LAYERSERIES_COMPAT_meta-gnome = "mickledore"
|
LAYERSERIES_COMPAT_meta-gnome = "scarthgap"
|
||||||
|
|
||||||
# We have recipes-* directories, add to BBFILES
|
# We have recipes-* directories, add to BBFILES
|
||||||
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
|
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
|
||||||
|
@ -7,7 +7,6 @@ LIC_FILES_CHKSUM = " \
|
|||||||
file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \
|
file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \
|
||||||
"
|
"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
inherit gnomebase gettext systemd gobject-introspection bash-completion
|
inherit gnomebase gettext systemd gobject-introspection bash-completion
|
||||||
|
|
||||||
DEPENDS = "glib-2.0 libgudev libxslt-native dbus"
|
DEPENDS = "glib-2.0 libgudev libxslt-native dbus"
|
||||||
|
@ -21,7 +21,6 @@ DEPENDS = " \
|
|||||||
"
|
"
|
||||||
DEPENDS:append:class-target = " bash-completion"
|
DEPENDS:append:class-target = " bash-completion"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
inherit gnomebase gettext update-rc.d systemd gobject-introspection gtk-doc update-alternatives upstream-version-is-even
|
inherit gnomebase gettext update-rc.d systemd gobject-introspection gtk-doc update-alternatives upstream-version-is-even
|
||||||
|
|
||||||
SRC_URI = " \
|
SRC_URI = " \
|
||||||
|
@ -6,6 +6,7 @@ LICENSE = "GPL-2.0-or-later"
|
|||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||||
|
|
||||||
SECTION = "x11/gnome"
|
SECTION = "x11/gnome"
|
||||||
|
GNOMEBASEBUILDCLASS = "autotools"
|
||||||
inherit gnomebase allarch
|
inherit gnomebase allarch
|
||||||
|
|
||||||
SRC_URI = "${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive"
|
SRC_URI = "${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive"
|
||||||
|
@ -10,7 +10,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c84cac88e46fc07647ea07e6c24eeb7c \
|
|||||||
file://COPYING_CCBYSA3;md5=96143d33de3a79321b1006c4e8ed07e7 \
|
file://COPYING_CCBYSA3;md5=96143d33de3a79321b1006c4e8ed07e7 \
|
||||||
file://COPYING_LGPL;md5=e6a600fd5e1d9cbde2d983680233ad02"
|
file://COPYING_LGPL;md5=e6a600fd5e1d9cbde2d983680233ad02"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
inherit gnomebase allarch gtk-icon-cache
|
inherit gnomebase allarch gtk-icon-cache
|
||||||
|
|
||||||
SRC_URI[archive.sha256sum] = "4bcb539bd75d64da385d6fa08cbaa9ddeaceb6ac8e82b85ba6c41117bf5ba64e"
|
SRC_URI[archive.sha256sum] = "4bcb539bd75d64da385d6fa08cbaa9ddeaceb6ac8e82b85ba6c41117bf5ba64e"
|
||||||
|
@ -7,8 +7,6 @@ SRC_URI[archive.sha256sum] = "cf7f22a4c9200421d8d3325c5c1b8b93a36843650c9f95d645
|
|||||||
|
|
||||||
DEPENDS = "dbus glib-2.0 xmlto-native glib-2.0-native"
|
DEPENDS = "dbus glib-2.0 xmlto-native glib-2.0-native"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
inherit gnomebase bash-completion vala
|
inherit gnomebase bash-completion vala
|
||||||
|
|
||||||
SRC_URI += "file://0001-meson.build-do-not-compile-docs.patch"
|
SRC_URI += "file://0001-meson.build-do-not-compile-docs.patch"
|
||||||
|
@ -16,8 +16,6 @@ DEPENDS = " \
|
|||||||
REQUIRED_DISTRO_FEATURES = "x11 systemd pam polkit gobject-introspection-data"
|
REQUIRED_DISTRO_FEATURES = "x11 systemd pam polkit gobject-introspection-data"
|
||||||
GIR_MESON_OPTION = ""
|
GIR_MESON_OPTION = ""
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
inherit gnomebase gsettings pkgconfig gobject-introspection gettext systemd useradd itstool gnome-help features_check
|
inherit gnomebase gsettings pkgconfig gobject-introspection gettext systemd useradd itstool gnome-help features_check
|
||||||
SRC_URI = "https://download.gnome.org/sources/gdm/${@oe.utils.trim_version("${PV}", 1)}/gdm-${PV}.tar.xz"
|
SRC_URI = "https://download.gnome.org/sources/gdm/${@oe.utils.trim_version("${PV}", 1)}/gdm-${PV}.tar.xz"
|
||||||
SRC_URI[sha256sum] = "6572578c05e3c6569d6ed269f7de2aaf3a035657654586d8243907bb7a6ffa85"
|
SRC_URI[sha256sum] = "6572578c05e3c6569d6ed269f7de2aaf3a035657654586d8243907bb7a6ffa85"
|
||||||
|
@ -3,7 +3,6 @@ SUMMARY = "A convenience library for the geocoding"
|
|||||||
LICENSE = "LGPL-2.0-only"
|
LICENSE = "LGPL-2.0-only"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=55ca817ccb7d5b5b66355690e9abc605"
|
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=55ca817ccb7d5b5b66355690e9abc605"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
GIR_MESON_OPTION = "enable-introspection"
|
GIR_MESON_OPTION = "enable-introspection"
|
||||||
GTKDOC_MESON_OPTION = "enable-gtk-doc"
|
GTKDOC_MESON_OPTION = "enable-gtk-doc"
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=625f055f41728f84a8d7938acc35bdc2"
|
|||||||
|
|
||||||
DEPENDS = "exiv2 python3-pygobject-native"
|
DEPENDS = "exiv2 python3-pygobject-native"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
GTKDOC_MESON_OPTION = "gtk_doc"
|
GTKDOC_MESON_OPTION = "gtk_doc"
|
||||||
|
|
||||||
inherit gnomebase gobject-introspection gtk-doc python3native
|
inherit gnomebase gobject-introspection gtk-doc python3native
|
||||||
|
@ -2,8 +2,6 @@ SUMMARY = "Javascript bindings for GNOME"
|
|||||||
LICENSE = "MIT & LGPL-2.0-or-later"
|
LICENSE = "MIT & LGPL-2.0-or-later"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=8dcea832f6acf45d856abfeb2d51ec48"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=8dcea832f6acf45d856abfeb2d51ec48"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
DEPENDS = "mozjs-115 cairo"
|
DEPENDS = "mozjs-115 cairo"
|
||||||
|
|
||||||
inherit gnomebase gsettings gobject-introspection gettext features_check upstream-version-is-even pkgconfig
|
inherit gnomebase gsettings gobject-introspection gettext features_check upstream-version-is-even pkgconfig
|
||||||
|
@ -7,7 +7,6 @@ DEPENDS = " \
|
|||||||
libarchive \
|
libarchive \
|
||||||
"
|
"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
GIR_MESON_ENABLE_FLAG = 'enabled'
|
GIR_MESON_ENABLE_FLAG = 'enabled'
|
||||||
GIR_MESON_DISABLE_FLAG = 'disabled'
|
GIR_MESON_DISABLE_FLAG = 'disabled'
|
||||||
GTKDOC_MESON_OPTION = "gtk_doc"
|
GTKDOC_MESON_OPTION = "gtk_doc"
|
||||||
|
@ -4,8 +4,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b52fb0a6df395efb7047cb6fc56bfd7e"
|
|||||||
|
|
||||||
SECTION = "x11/gnome"
|
SECTION = "x11/gnome"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
inherit gnomebase gettext allarch
|
inherit gnomebase gettext allarch
|
||||||
|
|
||||||
SRC_URI[archive.sha256sum] = "4ddd3ac439a4a067876805921bb75f4d3c8b85a218d47c276dddde8928443c2e"
|
SRC_URI[archive.sha256sum] = "4ddd3ac439a4a067876805921bb75f4d3c8b85a218d47c276dddde8928443c2e"
|
||||||
|
@ -18,7 +18,6 @@ DEPENDS = " \
|
|||||||
libadwaita \
|
libadwaita \
|
||||||
"
|
"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
GTKDOC_MESON_OPTION = "gtk_doc"
|
GTKDOC_MESON_OPTION = "gtk_doc"
|
||||||
GTKIC_VERSION = "4"
|
GTKIC_VERSION = "4"
|
||||||
|
|
||||||
|
@ -3,14 +3,13 @@ DESCRIPTION = "GNOME Settings is GNOME's main interface for configuration of var
|
|||||||
LICENSE = "GPL-2.0-only"
|
LICENSE = "GPL-2.0-only"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=75859989545e37968a99b631ef42722e"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=75859989545e37968a99b631ef42722e"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
GTKIC_VERSION = "4"
|
GTKIC_VERSION = "4"
|
||||||
export XDG_DATA_DIRS = "${STAGING_DATADIR}:${STAGING_LIBDIR}"
|
export XDG_DATA_DIRS = "${STAGING_DATADIR}:${STAGING_LIBDIR}"
|
||||||
|
|
||||||
DEPENDS = " \
|
DEPENDS = " \
|
||||||
accountsservice \
|
accountsservice \
|
||||||
colord-gtk \
|
colord-gtk \
|
||||||
gcr3 \
|
gcr \
|
||||||
gdk-pixbuf \
|
gdk-pixbuf \
|
||||||
glib-2.0 \
|
glib-2.0 \
|
||||||
gnome-bluetooth \
|
gnome-bluetooth \
|
||||||
|
@ -6,8 +6,6 @@ LIC_FILES_CHKSUM = " \
|
|||||||
file://COPYING.LIB;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
|
file://COPYING.LIB;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
|
||||||
"
|
"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
inherit gnomebase itstool pkgconfig upstream-version-is-even gobject-introspection features_check gtk-doc
|
inherit gnomebase itstool pkgconfig upstream-version-is-even gobject-introspection features_check gtk-doc
|
||||||
|
|
||||||
REQUIRED_DISTRO_FEATURES = "x11 opengl"
|
REQUIRED_DISTRO_FEATURES = "x11 opengl"
|
||||||
|
@ -16,8 +16,6 @@ DEPENDS = " \
|
|||||||
xz \
|
xz \
|
||||||
"
|
"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
inherit gnomebase gsettings gtk-icon-cache gettext features_check mime-xdg
|
inherit gnomebase gsettings gtk-icon-cache gettext features_check mime-xdg
|
||||||
|
|
||||||
ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
|
ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
|
||||||
|
@ -6,8 +6,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
|
|||||||
|
|
||||||
SECTION = "x11/gnome"
|
SECTION = "x11/gnome"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
inherit features_check gnomebase gettext upstream-version-is-even pkgconfig
|
inherit features_check gnomebase gettext upstream-version-is-even pkgconfig
|
||||||
|
|
||||||
SRC_URI += " file://0001-meson-remove-extraneous-positional-argument.patch"
|
SRC_URI += " file://0001-meson-remove-extraneous-positional-argument.patch"
|
||||||
|
@ -14,8 +14,6 @@ DEPENDS = " \
|
|||||||
systemd \
|
systemd \
|
||||||
"
|
"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
inherit gnomebase gettext gsettings upstream-version-is-even features_check
|
inherit gnomebase gettext gsettings upstream-version-is-even features_check
|
||||||
|
|
||||||
REQUIRED_DISTRO_FEATURES = "polkit systemd pam gobject-introspection-data"
|
REQUIRED_DISTRO_FEATURES = "polkit systemd pam gobject-introspection-data"
|
||||||
|
@ -2,8 +2,6 @@ SUMMARY = "Window navigation construction toolkit"
|
|||||||
LICENSE = "LGPL-2.0-only"
|
LICENSE = "LGPL-2.0-only"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
inherit gnomebase gsettings gobject-introspection gettext features_check upstream-version-is-even
|
inherit gnomebase gsettings gobject-introspection gettext features_check upstream-version-is-even
|
||||||
|
|
||||||
DEPENDS = " \
|
DEPENDS = " \
|
||||||
|
@ -11,8 +11,6 @@ SRCREV = "fdacdf5cc80a94e04549d864f2d4dbac5f15f4bc"
|
|||||||
EXTERNAL_TREE_VAR="CITADEL_GNOME_SHELL_PATH"
|
EXTERNAL_TREE_VAR="CITADEL_GNOME_SHELL_PATH"
|
||||||
GIT_URI = "gitsm://github.com/brl/gnome-shell.git;branch=citadel-46.0;protocol=https"
|
GIT_URI = "gitsm://github.com/brl/gnome-shell.git;branch=citadel-46.0;protocol=https"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
DEPENDS = " \
|
DEPENDS = " \
|
||||||
libxml2-native \
|
libxml2-native \
|
||||||
sassc-native \
|
sassc-native \
|
||||||
@ -24,7 +22,6 @@ DEPENDS = " \
|
|||||||
gnome-autoar \
|
gnome-autoar \
|
||||||
polkit \
|
polkit \
|
||||||
libsoup-3.0 \
|
libsoup-3.0 \
|
||||||
libcroco \
|
|
||||||
startup-notification \
|
startup-notification \
|
||||||
ibus \
|
ibus \
|
||||||
gsettings-desktop-schemas \
|
gsettings-desktop-schemas \
|
||||||
|
@ -16,8 +16,6 @@ DEPENDS = " \
|
|||||||
libhandy \
|
libhandy \
|
||||||
"
|
"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
inherit gnomebase gsettings gnome-help itstool gtk-icon-cache features_check gettext
|
inherit gnomebase gsettings gnome-help itstool gtk-icon-cache features_check gettext
|
||||||
|
|
||||||
ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
|
ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
|
||||||
|
@ -5,8 +5,6 @@ LIC_FILES_CHKSUM = " \
|
|||||||
file://COPYING.GFDL;md5=a22d0be1ce2284b67950a4d1673dd1b0 \
|
file://COPYING.GFDL;md5=a22d0be1ce2284b67950a4d1673dd1b0 \
|
||||||
"
|
"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
inherit gnomebase gsettings gnome-help gettext itstool upstream-version-is-even
|
inherit gnomebase gsettings gnome-help gettext itstool upstream-version-is-even
|
||||||
|
|
||||||
DEPENDS = " \
|
DEPENDS = " \
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
SUMMARY = "GNOME desktop-wide GSettings schemas"
|
|
||||||
DESCRIPTION = "GSettings desktop-wide schemas contains a collection of \
|
|
||||||
GSettings schemas for settings shared by various components of a desktop."
|
|
||||||
HOMEPAGE = "https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas"
|
|
||||||
BUGTRACKER = "https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas/issues"
|
|
||||||
|
|
||||||
LICENSE = "LGPL-2.1-only"
|
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
|
|
||||||
|
|
||||||
DEPENDS = "glib-2.0"
|
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
inherit gnomebase gsettings gobject-introspection gettext
|
|
||||||
|
|
||||||
SRC_URI[archive.sha256sum] = "493a46a1161b6388d57aa72f632a79ce96c42d5ffbd1d0b00f496ec5876f8575"
|
|
@ -2,7 +2,6 @@ DESCRIPTION = "gvfs is a userspace virtual filesystem"
|
|||||||
LICENSE = "LGPL-2.0-only"
|
LICENSE = "LGPL-2.0-only"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=05df38dd77c35ec8431f212410a3329e"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=05df38dd77c35ec8431f212410a3329e"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
inherit gnomebase gsettings bash-completion gettext upstream-version-is-even features_check useradd
|
inherit gnomebase gsettings bash-completion gettext upstream-version-is-even features_check useradd
|
||||||
|
|
||||||
DEPENDS += "\
|
DEPENDS += "\
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
SUMMARY = "Building blocks for modern GNOME applications"
|
|
||||||
HOMEPAGE = "https://gitlab.gnome.org/GNOME/libadwaita"
|
|
||||||
LICENSE="LGPL-2.1-or-later"
|
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
|
|
||||||
|
|
||||||
|
|
||||||
DEPENDS = " \
|
|
||||||
gtk4 \
|
|
||||||
appstream \
|
|
||||||
"
|
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
inherit gnomebase gobject-introspection gi-docgen vala features_check
|
|
||||||
|
|
||||||
SRC_URI[archive.sha256sum] = "fd92287df9bb95c963654fb6e70d3e082e2bcb37b147e0e3c905567167993783"
|
|
||||||
|
|
||||||
ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
|
|
||||||
REQUIRED_DISTRO_FEATURES = "opengl"
|
|
||||||
|
|
||||||
GIR_MESON_ENABLE_FLAG = 'enabled'
|
|
||||||
GIR_MESON_DISABLE_FLAG = 'disabled'
|
|
||||||
GTKDOC_MESON_OPTION = 'gtk_doc'
|
|
||||||
|
|
||||||
PACKAGECONFIG[examples] = "-Dexamples=true,-Dexamples=false"
|
|
||||||
|
|
||||||
FILES:${PN} += "${datadir}/metainfo"
|
|
||||||
|
|
||||||
EXTRA_OEMESON += "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=true', '-Dvapi=false', d)}"
|
|
@ -6,7 +6,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
|||||||
GNOMEBN = "libgweather"
|
GNOMEBN = "libgweather"
|
||||||
S = "${WORKDIR}/${GNOMEBN}-${PV}"
|
S = "${WORKDIR}/${GNOMEBN}-${PV}"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
inherit gnomebase gsettings gobject-introspection gettext gi-docgen vala features_check
|
inherit gnomebase gsettings gobject-introspection gettext gi-docgen vala features_check
|
||||||
|
|
||||||
REQUIRED_DISTRO_FEATURES = "opengl"
|
REQUIRED_DISTRO_FEATURES = "opengl"
|
||||||
|
@ -43,8 +43,6 @@ SRCREV = "ab32580b4c916914aec8429b3d4d68fef1dd583e"
|
|||||||
EXTERNAL_TREE_VAR="CITADEL_MUTTER_PATH"
|
EXTERNAL_TREE_VAR="CITADEL_MUTTER_PATH"
|
||||||
GIT_URI = "git://github.com/brl/mutter.git;branch=citadel-46.0;protocol=https"
|
GIT_URI = "git://github.com/brl/mutter.git;branch=citadel-46.0;protocol=https"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
inherit gnomebase gsettings gobject-introspection gettext upstream-version-is-even features_check external-tree
|
inherit gnomebase gsettings gobject-introspection gettext upstream-version-is-even features_check external-tree
|
||||||
|
|
||||||
# x11 is still mandatory - see meson.build
|
# x11 is still mandatory - see meson.build
|
||||||
|
@ -4,7 +4,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
|||||||
|
|
||||||
DEPENDS = "gtk+3 libnma libnotify libsecret libgudev networkmanager iso-codes nss"
|
DEPENDS = "gtk+3 libnma libnotify libsecret libgudev networkmanager iso-codes nss"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
inherit features_check gnomebase gsettings gtk-icon-cache gettext
|
inherit features_check gnomebase gsettings gtk-icon-cache gettext
|
||||||
|
|
||||||
REQUIRED_DISTRO_FEATURES = "x11"
|
REQUIRED_DISTRO_FEATURES = "x11"
|
||||||
|
@ -3,8 +3,6 @@ HOMEPAGE = "https://wiki.gnome.org/Projects/Librest"
|
|||||||
LICENSE = "LGPL-2.1-only"
|
LICENSE = "LGPL-2.1-only"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
DEPENDS = " \
|
DEPENDS = " \
|
||||||
gi-docgen \
|
gi-docgen \
|
||||||
gi-docgen-native \
|
gi-docgen-native \
|
||||||
|
@ -5,8 +5,6 @@ LIC_FILES_CHKSUM = " \
|
|||||||
file://COPYING.GPL;md5=eb723b61539feef013de476e68b5c50a \
|
file://COPYING.GPL;md5=eb723b61539feef013de476e68b5c50a \
|
||||||
"
|
"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
inherit gnomebase itstool
|
inherit gnomebase itstool
|
||||||
|
|
||||||
DEPENDS += " \
|
DEPENDS += " \
|
||||||
|
@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = " \
|
|||||||
file://COPYING.LGPL;md5=a6f89e2100d9b6cdffcea4f398e37343 \
|
file://COPYING.LGPL;md5=a6f89e2100d9b6cdffcea4f398e37343 \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
GNOMEBASEBUILDCLASS = "autotools"
|
||||||
inherit gnomebase gettext itstool
|
inherit gnomebase gettext itstool
|
||||||
|
|
||||||
DEPENDS += "libxml2"
|
DEPENDS += "libxml2"
|
||||||
|
@ -3,8 +3,6 @@ SECTION = "x11/gnome"
|
|||||||
LICENSE = "LGPL-2.1-or-later"
|
LICENSE = "LGPL-2.1-or-later"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
|
|
||||||
inherit gnomebase pkgconfig itstool gnome-help features_check gettext
|
inherit gnomebase pkgconfig itstool gnome-help features_check gettext
|
||||||
|
|
||||||
DEPENDS = " \
|
DEPENDS = " \
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
From 79bf322768990b28c29a9d907edcca52ff48e0b8 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>
|
|
||||||
Date: Wed, 26 Jul 2023 23:21:10 +0400
|
|
||||||
Subject: meson: do not rely on an exe wrapper
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
||||||
|
|
||||||
Upstream-Status: Backport [https://github.com/ximion/appstream/commit/79bf322768990b28c29a9d907edcca52ff48e0b8]
|
|
||||||
---
|
|
||||||
data/meson.build | 7 +++++++
|
|
||||||
1 file changed, 7 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/data/meson.build b/data/meson.build
|
|
||||||
index aea0cb25..ec0e434f 100644
|
|
||||||
--- a/data/meson.build
|
|
||||||
+++ b/data/meson.build
|
|
||||||
@@ -7,6 +7,13 @@ install_data('its/metainfo.its',
|
|
||||||
install_data('its/metainfo.loc',
|
|
||||||
install_dir: join_paths(get_option('datadir'), 'gettext', 'its'))
|
|
||||||
|
|
||||||
+# Do not rely on an exe wrapper for rel-info, use the system one in that case
|
|
||||||
+if meson.is_cross_build()
|
|
||||||
+ dependency('appstream', version: '>=' + as_version, native: true,
|
|
||||||
+ not_found_message: 'Native appstream required for cross-building')
|
|
||||||
+ ascli_exe = find_program('appstreamcli')
|
|
||||||
+endif
|
|
||||||
+
|
|
||||||
# NOTE: We do not translate the release notes on purpose here.
|
|
||||||
# If you do want to give translators a chance to translate them,
|
|
||||||
# ascli news-to-metainfo needs to produce a temporary file to translate
|
|
||||||
--
|
|
||||||
2.41.0
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
|||||||
From 6ab00a4279823829a9b82dc9e4d055da4de88c6e Mon Sep 17 00:00:00 2001
|
|
||||||
From: Markus Volk <f_l_k@t-online.de>
|
|
||||||
Date: Mon, 12 Dec 2022 15:42:42 +0100
|
|
||||||
Subject: [PATCH] remove hardcoded path
|
|
||||||
|
|
||||||
Signed-off-by: Markus Volk <f_l_k@t-online.de>
|
|
||||||
|
|
||||||
Dont include hardcoded path. This fixes:
|
|
||||||
| cc1: error: include location "/usr/include" is unsafe for cross-compilation [-Werror=poison-system-directories]
|
|
||||||
|
|
||||||
Upstream-Status: Inappropriate [oe-specific]
|
|
||||||
---
|
|
||||||
meson.build | 2 +-
|
|
||||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/meson.build b/meson.build
|
|
||||||
index fd0e3373..2f273ada 100644
|
|
||||||
--- a/meson.build
|
|
||||||
+++ b/meson.build
|
|
||||||
@@ -124,7 +124,7 @@ if get_option ('gir')
|
|
||||||
dependency('gobject-introspection-1.0', version: '>=1.56')
|
|
||||||
endif
|
|
||||||
|
|
||||||
-stemmer_inc_dirs = include_directories(['/usr/include'])
|
|
||||||
+stemmer_inc_dirs = include_directories([''])
|
|
||||||
if get_option('stemming')
|
|
||||||
stemmer_lib = cc.find_library('stemmer', required: true)
|
|
||||||
if not cc.has_header('libstemmer.h')
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
@ -1,45 +0,0 @@
|
|||||||
SUMMARY = "AppStream is a collaborative effort for making machine-readable software metadata easily available."
|
|
||||||
HOMEPAGE = "https://github.com/ximion/appstream"
|
|
||||||
LICENSE = "LGPL-2.1-only"
|
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=435ed639f84d4585d93824e7da3d85da"
|
|
||||||
|
|
||||||
DEPENDS = " \
|
|
||||||
appstream-native \
|
|
||||||
curl-native \
|
|
||||||
curl \
|
|
||||||
docbook-xml-dtd4-native \
|
|
||||||
gperf-native \
|
|
||||||
glib-2.0 \
|
|
||||||
libyaml \
|
|
||||||
libxml2 \
|
|
||||||
libxmlb \
|
|
||||||
libxslt-native \
|
|
||||||
itstool-native \
|
|
||||||
docbook-xsl-stylesheets-native \
|
|
||||||
python3-pygments-native \
|
|
||||||
"
|
|
||||||
|
|
||||||
inherit meson gobject-introspection gettext gtk-doc pkgconfig vala
|
|
||||||
|
|
||||||
GIR_MESON_OPTION = "gir"
|
|
||||||
GTKDOC_MESON_OPTION = "apidocs"
|
|
||||||
|
|
||||||
SRC_URI = " \
|
|
||||||
https://www.freedesktop.org/software/appstream/releases/AppStream-${PV}.tar.xz \
|
|
||||||
file://0001-remove-hardcoded-path.patch \
|
|
||||||
file://0001-meson-do-not-rely-on-an-exe-wrapper.patch \
|
|
||||||
"
|
|
||||||
SRC_URI[sha256sum] = "081c917646e94d7221c9e4aae54dacda95a27c607fa93cd8e6344a2b318b98b1"
|
|
||||||
|
|
||||||
S = "${WORKDIR}/AppStream-${PV}"
|
|
||||||
|
|
||||||
PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
|
|
||||||
|
|
||||||
PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd"
|
|
||||||
PACKAGECONFIG[stemming] = "-Dstemming=true,-Dstemming=false,libstemmer"
|
|
||||||
|
|
||||||
FILES:${PN} += "${datadir}"
|
|
||||||
|
|
||||||
EXTRA_OEMESON += "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=true', '-Dvapi=false', d)}"
|
|
||||||
|
|
||||||
BBCLASSEXTEND = "native"
|
|
@ -1,59 +0,0 @@
|
|||||||
SUMMARY = "A library for bits of crypto UI and parsing etc"
|
|
||||||
DESCRIPTION = "GCR is a library for displaying certificates, and crypto UI, \
|
|
||||||
accessing key stores. It also provides the viewer for crypto files on the \
|
|
||||||
GNOME desktop."
|
|
||||||
HOMEPAGE = "https://gitlab.gnome.org/GNOME/gcr"
|
|
||||||
BUGTRACKER = "https://gitlab.gnome.org/GNOME/gcr/issues"
|
|
||||||
|
|
||||||
LICENSE = "GPL-2.0-only"
|
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605"
|
|
||||||
|
|
||||||
DEPENDS = "p11-kit glib-2.0 libgcrypt gnupg-native \
|
|
||||||
${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'libxslt-native', '', d)}"
|
|
||||||
|
|
||||||
CACHED_CONFIGUREVARS += "ac_cv_path_GPG='gpg2'"
|
|
||||||
|
|
||||||
CFLAGS += "-D_GNU_SOURCE"
|
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS = "meson"
|
|
||||||
GTKDOC_MESON_OPTION = "gtk_doc"
|
|
||||||
inherit gnomebase gtk-icon-cache gi-docgen features_check vala gobject-introspection gettext mime mime-xdg
|
|
||||||
|
|
||||||
REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl', '', d)}"
|
|
||||||
|
|
||||||
SRC_URI[archive.sha256sum] = "e15e31329e0171229d552d25563f176c5b6179795bf91fae2b141f69a9b7c480"
|
|
||||||
|
|
||||||
PACKAGECONFIG ??= " \
|
|
||||||
${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
|
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', '', d)} \
|
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'gtk', '', d)} \
|
|
||||||
${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vapi', '', d)} \
|
|
||||||
"
|
|
||||||
PACKAGECONFIG[gtk] = "-Dgtk4=true,-Dgtk4=false,gtk4"
|
|
||||||
PACKAGECONFIG[ssh_agent] = "-Dssh_agent=true,-Dssh_agent=false,libsecret,openssh"
|
|
||||||
#'Use systemd socket activation for server programs'
|
|
||||||
PACKAGECONFIG[systemd] = "-Dsystemd=enabled,-Dsystemd=disabled,systemd"
|
|
||||||
PACKAGECONFIG[vapi] = "-Dvapi=true,-Dvapi=false,"
|
|
||||||
|
|
||||||
FILES:${PN} += " \
|
|
||||||
${datadir}/dbus-1 \
|
|
||||||
${datadir}/gcr-4 \
|
|
||||||
${systemd_user_unitdir}/gcr-ssh-agent.socket \
|
|
||||||
${systemd_user_unitdir}/gcr-ssh-agent.service \
|
|
||||||
"
|
|
||||||
|
|
||||||
# http://errors.yoctoproject.org/Errors/Details/20229/
|
|
||||||
ARM_INSTRUCTION_SET:armv4 = "arm"
|
|
||||||
ARM_INSTRUCTION_SET:armv5 = "arm"
|
|
||||||
ARM_INSTRUCTION_SET:armv6 = "arm"
|
|
||||||
|
|
||||||
EXTRA_OEMESON += "--cross-file=${WORKDIR}/meson-${PN}.cross"
|
|
||||||
|
|
||||||
do_write_config:append() {
|
|
||||||
cat >${WORKDIR}/meson-${PN}.cross <<EOF
|
|
||||||
[binaries]
|
|
||||||
gpg2 = '${bindir}/gpg2'
|
|
||||||
ssh-add = '${bindir}/ssh-add'
|
|
||||||
ssh-agent = '${bindir}/ssh-agent'
|
|
||||||
EOF
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user