diff options
| -rw-r--r-- | meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei/0001-Remove-strip-option-from-executable-build.patch | 29 | ||||
| -rw-r--r-- | meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei/0001-util-consideredharmful-Use-overloadable-func-attribu.patch | 58 | ||||
| -rw-r--r-- | meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei_1.4.3.bb (renamed from meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei_1.4.2.bb) | 12 |
3 files changed, 5 insertions, 94 deletions
diff --git a/meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei/0001-Remove-strip-option-from-executable-build.patch b/meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei/0001-Remove-strip-option-from-executable-build.patch deleted file mode 100644 index aa36c2c3f8..0000000000 --- a/meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei/0001-Remove-strip-option-from-executable-build.patch +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | From 6c86f8aea2a29c33af3f212afa9f0ea180822d1e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Thomas Perrot <thomas.perrot@bootlin.com> | ||
| 3 | Date: Wed, 6 Nov 2024 21:02:54 +0100 | ||
| 4 | Subject: [PATCH] Remove strip option from executable build | ||
| 5 | |||
| 6 | To improve debugging experience, OE tasks will strip binaries. | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [oe-specific] | ||
| 9 | |||
| 10 | Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com> | ||
| 11 | --- | ||
| 12 | meson.build | 1 - | ||
| 13 | 1 file changed, 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/meson.build b/meson.build | ||
| 16 | index 88d4d53263ae..8a1f540836e0 100644 | ||
| 17 | --- a/meson.build | ||
| 18 | +++ b/meson.build | ||
| 19 | @@ -73,7 +73,6 @@ project('taisei', 'c', | ||
| 20 | |||
| 21 | # You may want to change these for a debug build dir | ||
| 22 | 'buildtype=release', | ||
| 23 | - 'strip=true', | ||
| 24 | 'b_lto=true', | ||
| 25 | 'b_ndebug=if-release', | ||
| 26 | ] | ||
| 27 | -- | ||
| 28 | 2.47.0 | ||
| 29 | |||
diff --git a/meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei/0001-util-consideredharmful-Use-overloadable-func-attribu.patch b/meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei/0001-util-consideredharmful-Use-overloadable-func-attribu.patch deleted file mode 100644 index 09f4be300c..0000000000 --- a/meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei/0001-util-consideredharmful-Use-overloadable-func-attribu.patch +++ /dev/null | |||
| @@ -1,58 +0,0 @@ | |||
| 1 | From 6f40a8cfbc4dd5ca4c3156338e8e35f25d4d4599 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 22 Nov 2024 01:16:25 -0800 | ||
| 4 | Subject: [PATCH] util/consideredharmful: Use overloadable func attribute with | ||
| 5 | clang | ||
| 6 | |||
| 7 | When building with glibc HEAD, it has fortified headers with clang as well | ||
| 8 | and clang reports errors e.g. | ||
| 9 | |||
| 10 | | ../git/src/util/consideredharmful.h:33:7: error: redeclaration of 'strncat' must have the 'overloadable' attribute | ||
| 11 | | 33 | char* strncat(); | ||
| 12 | | | ^ | ||
| 13 | | /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/taisei/1.4.2/recipe-sysroot/usr/include/bits/string_fortified.h:145:8: note: previous overload of function is here | ||
| 14 | | 145 | __NTH (strncat (__fortify_clang_overload_arg (char *, __restrict, __dest), | ||
| 15 | | | ^ | ||
| 16 | |||
| 17 | Upstream-Status: Submitted [https://github.com/taisei-project/taisei/pull/393] | ||
| 18 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 19 | --- | ||
| 20 | src/util/consideredharmful.h | 4 ++-- | ||
| 21 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 22 | |||
| 23 | --- a/src/util/consideredharmful.h | ||
| 24 | +++ b/src/util/consideredharmful.h | ||
| 25 | @@ -8,6 +8,7 @@ | ||
| 26 | |||
| 27 | #pragma once | ||
| 28 | #include "taisei.h" | ||
| 29 | +#include "util/compat.h" | ||
| 30 | |||
| 31 | #include <stdio.h> | ||
| 32 | |||
| 33 | @@ -24,17 +25,23 @@ PRAGMA(GCC diagnostic ignored "-Wstrict- | ||
| 34 | // clang generates lots of these warnings with _FORTIFY_SOURCE | ||
| 35 | PRAGMA(GCC diagnostic ignored "-Wignored-attributes") | ||
| 36 | |||
| 37 | +#ifdef __GLIBC__ | ||
| 38 | +#define OVERLOADABLE __attribute__((overloadable)) | ||
| 39 | +#else | ||
| 40 | +#define OVERLOADABLE | ||
| 41 | +#endif | ||
| 42 | + | ||
| 43 | #undef fopen | ||
| 44 | attr_deprecated("Use vfs_open or SDL_RWFromFile instead") | ||
| 45 | FILE* fopen(); | ||
| 46 | |||
| 47 | #undef strncat | ||
| 48 | attr_deprecated("This function likely doesn't do what you expect, use strlcat") | ||
| 49 | -char* strncat(); | ||
| 50 | +char* OVERLOADABLE strncat(); | ||
| 51 | |||
| 52 | #undef strncpy | ||
| 53 | attr_deprecated("This function likely doesn't do what you expect, use strlcpy") | ||
| 54 | -char* strncpy(); | ||
| 55 | +char* OVERLOADABLE strncpy(); | ||
| 56 | |||
| 57 | #undef errx | ||
| 58 | attr_deprecated("Use log_fatal instead") | ||
diff --git a/meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei_1.4.2.bb b/meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei_1.4.3.bb index ee65f89ab7..239237ceaf 100644 --- a/meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei_1.4.2.bb +++ b/meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei_1.4.3.bb | |||
| @@ -12,7 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1a11ffd7e1bdd1d3156cecec60a2846f" | |||
| 12 | DEPENDS = "\ | 12 | DEPENDS = "\ |
| 13 | cglm \ | 13 | cglm \ |
| 14 | freetype \ | 14 | freetype \ |
| 15 | virtual/libsdl2 \ | 15 | libsdl3 \ |
| 16 | libwebp \ | 16 | libwebp \ |
| 17 | opusfile \ | 17 | opusfile \ |
| 18 | zstd \ | 18 | zstd \ |
| @@ -32,12 +32,8 @@ RDEPENDS_${PN} = "\ | |||
| 32 | zlib \ | 32 | zlib \ |
| 33 | " | 33 | " |
| 34 | 34 | ||
| 35 | SRC_URI = "gitsm://github.com/taisei-project/taisei.git;branch=v1.4.x;protocol=https \ | 35 | SRC_URI = "gitsm://github.com/taisei-project/taisei.git;branch=v1.4.x;protocol=https;tag=v${PV}" |
| 36 | file://0001-util-consideredharmful-Use-overloadable-func-attribu.patch \ | 36 | SRCREV = "02b7c71ae7d7a53202378e384f2cb26df9164f22" |
| 37 | file://0001-Remove-strip-option-from-executable-build.patch" | ||
| 38 | |||
| 39 | SRCREV = "c098579d4fa0f004ccc204c5bc46eac3717cba28" | ||
| 40 | |||
| 41 | 37 | ||
| 42 | inherit features_check meson mime mime-xdg pkgconfig python3native | 38 | inherit features_check meson mime mime-xdg pkgconfig python3native |
| 43 | 39 | ||
| @@ -49,4 +45,6 @@ PACKAGECONFIG[a_null] = "-Da_null=true,-Da_null=false" | |||
| 49 | PACKAGECONFIG[developer] = "-Ddeveloper=true,-Ddeveloper=false" | 45 | PACKAGECONFIG[developer] = "-Ddeveloper=true,-Ddeveloper=false" |
| 50 | PACKAGECONFIG[docs] = "-Ddocs=true,-Ddocs=false,python3-docutils-native" | 46 | PACKAGECONFIG[docs] = "-Ddocs=true,-Ddocs=false,python3-docutils-native" |
| 51 | 47 | ||
| 48 | EXTRA_OEMESON += "-Dstrip=false" | ||
| 49 | |||
| 52 | FILES:${PN} += "${datadir}" | 50 | FILES:${PN} += "${datadir}" |
