[oe] [meta-oe][PATCH] recipes: Drop remaining PR values from recipes
* as oe-core did in: https://git.openembedded.org/openembedded-core/commit/?id=d4c346e8ab * when people are have to maintain own PRs for recipes in oe-core, they might add them for meta-oe recipes at the same time when upgrading to next LTS Signed-off-by: Martin Jansa --- .../recipes-graphics/packagegroups/packagegroup-core-clutter.bb | 1 - meta-networking/recipes-protocols/frr/frr_9.1.bb | 1 - meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.15.bb | 1 - meta-networking/recipes-protocols/zeroconf/zeroconf_0.9.bb | 1 - meta-networking/recipes-support/netcat/netcat_0.7.1.bb | 1 - .../dynamic-layers/meta-python/recipes-devtools/nanopb/nanopb.bb | 1 - meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb | 1 - meta-oe/recipes-benchmark/tiobench/tiobench_0.3.3.bb | 1 - meta-oe/recipes-bsp/cpufrequtils/cpufrequtils_008.bb | 1 - meta-oe/recipes-bsp/pcmciautils/pcmciautils_018.bb | 1 - meta-oe/recipes-bsp/pointercal/pointercal_0.0.bb | 1 - meta-oe/recipes-core/dbus/dbus-daemon-proxy_git.bb | 1 - meta-oe/recipes-core/meta/distro-feed-configs.bb | 1 - meta-oe/recipes-core/packagegroups/packagegroup-basic.bb | 1 - meta-oe/recipes-core/packagegroups/packagegroup-boot.bb | 1 - meta-oe/recipes-core/proxy-libintl/proxy-libintl_20100902.bb | 1 - meta-oe/recipes-dbs/libdbi/libdbi_0.9.0.bb | 1 - .../recipes-devtools/packagegroups/packagegroup-sdk-target.bb| 1 - meta-oe/recipes-extended/libimobiledevice/libplist_2.3.0.bb | 1 - meta-oe/recipes-extended/libwmf/libwmf_0.2.8.4.bb| 1 - meta-oe/recipes-extended/uml-utilities/uml-utilities_20040406.bb | 1 - meta-oe/recipes-extended/zram/zram_0.2.bb| 1 - meta-oe/recipes-graphics/dietsplash/dietsplash_git.bb| 1 - meta-oe/recipes-graphics/libsdl/libsdl_1.2.15.bb | 1 - .../packagegroups/packagegroup-fonts-truetype.bb | 1 - meta-oe/recipes-graphics/ttf-fonts/ttf-arphic-uming_20080216.bb | 1 - meta-oe/recipes-graphics/ttf-fonts/ttf-dejavu_2.37.bb| 1 - meta-oe/recipes-graphics/ttf-fonts/ttf-droid_git.bb | 1 - meta-oe/recipes-graphics/ttf-fonts/ttf-gentium_1.02.bb | 1 - meta-oe/recipes-graphics/ttf-fonts/ttf-hunkyfonts_0.3.1.bb | 1 - meta-oe/recipes-graphics/ttf-fonts/ttf-liberation_0.2.bb | 1 - meta-oe/recipes-graphics/ttf-fonts/ttf-mplus_027.bb | 1 - meta-oe/recipes-graphics/ttf-fonts/ttf-sazanami_20040629.bb | 1 - .../recipes-graphics/ttf-fonts/ttf-ubuntu-font-family_0.83.bb| 1 - meta-oe/recipes-graphics/xorg-driver/xf86-input-void_1.4.2.bb| 1 - meta-oe/recipes-graphics/xserver-common/xserver-common_1.34.bb | 1 - meta-oe/recipes-kernel/crash/crash-cross-canadian_8.0.4.bb | 1 - meta-oe/recipes-kernel/crash/crash_8.0.4.bb | 1 - meta-oe/recipes-multimedia/id3lib/id3lib_3.8.3.bb| 1 - meta-oe/recipes-multimedia/libid3tag/libid3tag_0.15.1b.bb| 1 - meta-oe/recipes-multimedia/libmad/libmad_0.15.1b.bb | 1 - meta-oe/recipes-multimedia/v4l2apps/yavta_git.bb | 1 - meta-oe/recipes-support/eject/eject_2.1.5.bb | 1 - meta-oe/recipes-support/fbset/fbset-modes.bb | 1 - meta-oe/recipes-support/fbset/fbset_2.1.bb | 1 - meta-oe/recipes-support/gpm/gpm_git.bb | 1 - meta-oe/recipes-support/hddtemp/hddtemp_0.3-beta15.bb| 1 - meta-oe/recipes-support/libtinyxml/libtinyxml_2.6.2.bb | 1 - meta-oe/recipes-support/p910nd/p910nd_0.97.bb| 1 - meta-perl/recipes-perl/libmodule/libmodule-pluggable-perl_5.2.bb | 1 - .../recipes-connectivity/telepathy/telepathy-python3_0.15.19.bb | 1 - meta-xfce/recipes-xfce/packagegroups/packagegroup-xfce-base.bb | 1 - .../recipes-xfce/packagegroups/packagegroup-xfce-extended.bb | 1 - 53 files changed, 53 deletions(-) diff --git a/meta-gnome/recipes-graphics/packagegroups/packagegroup-core-clutter.bb b/meta-gnome/recipes-graphics/packagegroups/packagegroup-core-clutter.bb index d4df611639..a3c274240a 100644 --- a/meta-gnome/recipes-graphics/packagegroups/packagegroup-core-clutter.bb +++ b/meta-gnome/recipes-graphics/packagegroups/packagegroup-core-clutter.bb @@ -4,7 +4,6 @@ SUMMARY = "Clutter package groups" -PR = "r6" # clutter-1.0 gets debian renamed to libclutter-1.0-0 # clutter-gtk-1.0 gets debian renamed to libclutter-gtk-1.0-0 diff --git a/meta-networking/recipes-protocols/frr/frr_9.1.bb b/meta-networking/recipes-protocols/frr/frr_9.1.bb index 0926f84214..8ea917afaa 100644 --- a/meta-networking/recipes-protocols/frr/frr_9.1.bb +++ b/meta-networking/recipes-protocols/frr/frr_9.1.bb @@ -9,7 +9,6 @@ LICENSE = "GPL-2.0-only & LGPL-2.1-only"
Re: [oe] [meta-oe][PATCH] postgresql: fix a runtime error
On Thu, Mar 14, 2024 at 10:25 PM Changqing Li wrote: > > > On 3/15/24 13:10, Khem Raj wrote: > > CAUTION: This email comes from a non Wind River email account! > Do not click links or open attachments unless you recognize the sender and > know the content is safe. > > On Thu, Mar 14, 2024 at 10:01 PM Changqing Li > wrote: > > On 3/15/24 01:12, Khem Raj wrote: > > CAUTION: This email comes from a non Wind River email account! > Do not click links or open attachments unless you recognize the sender and > know the content is safe. > > On Thu, Mar 14, 2024 at 12:22 AM Changqing Li > wrote: > > From: Changqing Li > > initdb on target will fail with below error: > 2024-03-13 08:40:23.253 UTC [4410] FATAL: could not load library > "/usr/lib64/postgresql/dict_snowball.so": > /usr/lib64/postgresql/dict_snowball.so: undefined symbol: CurrentMemoryContext > > Refer [1][2], for cross compile, --export-dynamic is assumed as not > supported, and cause above error. For oe, both gcc and clang support > --export-dynamic, fixed by set LDFLAGS_EX_BE directly > > [1] > https://www.postgresql.org/message-id/79e63515-0f5e-30f4-136d-96e23b1a817d%40posteo.de > [2] > https://github.com/postgres/postgres/commit/9db49fc5bfdc0126be03f4b8986013e59d93b91d#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810 > > Signed-off-by: Changqing Li > --- > meta-oe/recipes-dbs/postgresql/postgresql.inc | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc > b/meta-oe/recipes-dbs/postgresql/postgresql.inc > index 868a2e443..e29a5bef7 100644 > --- a/meta-oe/recipes-dbs/postgresql/postgresql.inc > +++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc > @@ -35,6 +35,7 @@ LEAD_SONAME = "libpq.so" > > # LDFLAGS for shared libraries > export LDFLAGS_SL = "${LDFLAGS}" > +export LDFLAGS_EX_BE = "-Wl,--export-dynamic" > > this will add all the symbols into dynamic symbol table which may not > be best scenario, can we just export the ones needed ? > perhaps look into using --dynamic-list. > > Hi, Khem > > I tried to use --dynamic-list as you recommended and test command > "postgresql_setup initdb", > > after I added all the symbols in dict_snowball.so, it will report undefined > symbols for another lib. I know I can try to > > add all the symbols for all the libs. but there are nearly 80+ libs generated > by postgresql. There will be many symbols. > > And I also worried that, we may missing some symbols since I may cannot cover > all the runtime cases. > > From [2], we can know that postgresql use "-Wl,--export-dynamic" before. > > So maybe it is better to still use "-Wl,--export-dynamic" like before? what > is your opinion? > > Yes this maybe ok. I would like you to open a discussion upstream as well. > > Do you mean open an discussion about what symbols should in the symbol files? > About the the original issue > > "undefined symbol: CurrentMemoryContext", Upstream said that > "Cross-compiling isn't really a supported thing". hmmm I guess this ends that then > > > //Changqing > > Thanks > > Changqing > > inherit autotools pkgconfig perlnative python3native python3targetconfig > useradd update-rc.d systemd gettext cpan-base multilib_header > > -- > 2.25.1 > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109332): https://lists.openembedded.org/g/openembedded-devel/message/109332 Mute This Topic: https://lists.openembedded.org/mt/10496/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH] postgresql: fix a runtime error
On 3/15/24 13:10, Khem Raj wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Thu, Mar 14, 2024 at 10:01 PM Changqing Li wrote: On 3/15/24 01:12, Khem Raj wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Thu, Mar 14, 2024 at 12:22 AM Changqing Li wrote: From: Changqing Li initdb on target will fail with below error: 2024-03-13 08:40:23.253 UTC [4410] FATAL: could not load library "/usr/lib64/postgresql/dict_snowball.so": /usr/lib64/postgresql/dict_snowball.so: undefined symbol: CurrentMemoryContext Refer [1][2], for cross compile, --export-dynamic is assumed as not supported, and cause above error. For oe, both gcc and clang support --export-dynamic, fixed by set LDFLAGS_EX_BE directly [1]https://www.postgresql.org/message-id/79e63515-0f5e-30f4-136d-96e23b1a817d%40posteo.de [2]https://github.com/postgres/postgres/commit/9db49fc5bfdc0126be03f4b8986013e59d93b91d#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810 Signed-off-by: Changqing Li --- meta-oe/recipes-dbs/postgresql/postgresql.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc index 868a2e443..e29a5bef7 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql.inc +++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc @@ -35,6 +35,7 @@ LEAD_SONAME = "libpq.so" # LDFLAGS for shared libraries export LDFLAGS_SL = "${LDFLAGS}" +export LDFLAGS_EX_BE = "-Wl,--export-dynamic" this will add all the symbols into dynamic symbol table which may not be best scenario, can we just export the ones needed ? perhaps look into using --dynamic-list. Hi, Khem I tried to use --dynamic-list as you recommended and test command "postgresql_setup initdb", after I added all the symbols in dict_snowball.so, it will report undefined symbols for another lib. I know I can try to add all the symbols for all the libs. but there are nearly 80+ libs generated by postgresql. There will be many symbols. And I also worried that, we may missing some symbols since I may cannot cover all the runtime cases. From [2], we can know that postgresql use "-Wl,--export-dynamic" before. So maybe it is better to still use "-Wl,--export-dynamic" like before? what is your opinion? Yes this maybe ok. I would like you to open a discussion upstream as well. Do you mean open an discussion about what symbols should in the symbol files? About the the original issue "undefined symbol: CurrentMemoryContext", Upstream said that "Cross-compiling isn't really a supported thing". //Changqing Thanks Changqing inherit autotools pkgconfig perlnative python3native python3targetconfig useradd update-rc.d systemd gettext cpan-base multilib_header -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109331): https://lists.openembedded.org/g/openembedded-devel/message/109331 Mute This Topic: https://lists.openembedded.org/mt/10496/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][kirkstone][PATCH] openjpeg: Backport fix CVE-2021-3575
Upstream-Status: Backport from https://github.com/uclouvain/openjpeg/commit/7bd884f8750892de4f50bf4642fcfbe7011c6bdf Signed-off-by: Vivek Kumbhar --- .../openjpeg/openjpeg/CVE-2021-3575.patch | 45 +++ .../openjpeg/openjpeg_2.4.0.bb| 1 + 2 files changed, 46 insertions(+) create mode 100644 meta-oe/recipes-graphics/openjpeg/openjpeg/CVE-2021-3575.patch diff --git a/meta-oe/recipes-graphics/openjpeg/openjpeg/CVE-2021-3575.patch b/meta-oe/recipes-graphics/openjpeg/openjpeg/CVE-2021-3575.patch new file mode 100644 index 00..0322f55cc7 --- /dev/null +++ b/meta-oe/recipes-graphics/openjpeg/openjpeg/CVE-2021-3575.patch @@ -0,0 +1,45 @@ +From 7bd884f8750892de4f50bf4642fcfbe7011c6bdf Mon Sep 17 00:00:00 2001 +From: Even Rouault +Date: Sun, 18 Feb 2024 17:02:25 +0100 +Subject: [PATCH] opj_decompress: fix off-by-one read heap-buffer-overflow in + sycc420_to_rgb() when x0 and y0 are odd (CVE-2021-3575, fixes #1347) + +Upstream-Status: Backport [https://github.com/uclouvain/openjpeg/commit/7bd884f8750892de4f50bf4642fcfbe7011c6bdf] +CVE: CVE-2021-3575 +Signed-off-by: Vivek Kumbhar +--- + src/bin/common/color.c | 12 ++-- + 1 file changed, 10 insertions(+), 2 deletions(-) + +diff --git a/src/bin/common/color.c b/src/bin/common/color.c +index 27f15f13..ae5d648d 100644 +--- a/src/bin/common/color.c b/src/bin/common/color.c +@@ -358,7 +358,15 @@ static void sycc420_to_rgb(opj_image_t *img) + if (i < loopmaxh) { + size_t j; + +-for (j = 0U; j < (maxw & ~(size_t)1U); j += 2U) { ++if (offx > 0U) { ++sycc_to_rgb(offset, upb, *y, 0, 0, r, g, b); ++++y; ++++r; ++++g; ++++b; ++} ++ ++for (j = 0U; j < (loopmaxw & ~(size_t)1U); j += 2U) { + sycc_to_rgb(offset, upb, *y, *cb, *cr, r, g, b); + + ++y; +@@ -375,7 +383,7 @@ static void sycc420_to_rgb(opj_image_t *img) + ++cb; + ++cr; + } +-if (j < maxw) { ++if (j < loopmaxw) { + sycc_to_rgb(offset, upb, *y, *cb, *cr, r, g, b); + } + } +-- +2.39.3 diff --git a/meta-oe/recipes-graphics/openjpeg/openjpeg_2.4.0.bb b/meta-oe/recipes-graphics/openjpeg/openjpeg_2.4.0.bb index 1c090fdea5..a619c07aa4 100644 --- a/meta-oe/recipes-graphics/openjpeg/openjpeg_2.4.0.bb +++ b/meta-oe/recipes-graphics/openjpeg/openjpeg_2.4.0.bb @@ -11,6 +11,7 @@ SRC_URI = " \ file://0001-This-patch-fixed-include-dir-to-usr-include-.-Obviou.patch \ file://CVE-2021-29338.patch \ file://CVE-2022-1122.patch \ +file://CVE-2021-3575.patch \ " SRCREV = "37ac30ceff6640bbab502388c5e0fa0bff23f505" S = "${WORKDIR}/git" -- 2.39.3 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109330): https://lists.openembedded.org/g/openembedded-devel/message/109330 Mute This Topic: https://lists.openembedded.org/mt/104942301/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCH] unionfs-fuse, dropwatch, postgresql, yasm, multipath-tools, python3-pybind11: add missing Upstream-Status
* add Pending to .patch files where it was accidentally droped with upgrades or modifications in: f88e5b146e postgresql: upgrade 15.5 -> 16.2 c904e169db multipath-tools: upgrade 0.9.3 -> 0.9.8 105be9b3d9 unionfs-fuse: upgrade 2.2 --> 3.4 or new patches where the author didn't notice/care: 2a7f74cdb0 dropwatch: Use header files from sysroot instead of build host f5cc9f272a yasm: improve reproducibility 39028d0d9d python3-pybind11: Restore strip prevention patch authors of these added to CC, please be more careful with removing or not adding these or enable patch-status in ERROR_QA for your builds, see: https://lists.openembedded.org/g/openembedded-core/topic/104922136#197113 * added with: for p in `/OE/layers/openembedded-core/scripts/contrib/patchreview.py -v . | grep Missing.Upstream-Status.tag | sed 's/.*(//g;s/)$//g'`; do grep -q ^Upstream-Status: $p || sed -i "s/^---$/\nUpstream-Status: Pending\n---/g" $p; grep -q ^Upstream-Status: $p || sed -i "1iUpstream-Status: Pending\n" $p; done Signed-off-by: Martin Jansa --- .../unionfs-fuse/files/0001-support-cross-compiling.patch | 2 ++ ...1-fix-bug-build-with-sysroot-head-file-instead-of-loca.patch | 2 ++ .../postgresql/files/0001-Add-support-for-RISC-V.patch | 2 ++ .../yasm/0001-yasm-Set-build-date-to-SOURCE_DATE_EPOCH.patch| 2 ++ .../yasm/0002-yasm-Use-BUILD_DATE-for-reproducibility.patch | 2 ++ .../files/0001-RH-fixup-udev-rules-for-redhat.patch | 2 ++ ...002-RH-Remove-the-property-blacklist-exception-builtin.patch | 2 ++ .../files/0011-fix-bug-of-do_compile-and-do_install.patch | 2 ++ .../python/python3-pybind11/0001-Do-not-strip-binaries.patch| 2 ++ 9 files changed, 18 insertions(+) diff --git a/meta-filesystems/recipes-filesystems/unionfs-fuse/files/0001-support-cross-compiling.patch b/meta-filesystems/recipes-filesystems/unionfs-fuse/files/0001-support-cross-compiling.patch index 13e782fa70..9b4d0f6cae 100644 --- a/meta-filesystems/recipes-filesystems/unionfs-fuse/files/0001-support-cross-compiling.patch +++ b/meta-filesystems/recipes-filesystems/unionfs-fuse/files/0001-support-cross-compiling.patch @@ -7,6 +7,8 @@ Do not override OE CMAKE variables Signed-off-by: Hongxu Jia Signed-off-by: Alper Ak + +Upstream-Status: Pending --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-networking/recipes-support/dropwatch/dropwatch/0001-fix-bug-build-with-sysroot-head-file-instead-of-loca.patch b/meta-networking/recipes-support/dropwatch/dropwatch/0001-fix-bug-build-with-sysroot-head-file-instead-of-loca.patch index 33b72e05f0..d0baceb15b 100755 --- a/meta-networking/recipes-support/dropwatch/dropwatch/0001-fix-bug-build-with-sysroot-head-file-instead-of-loca.patch +++ b/meta-networking/recipes-support/dropwatch/dropwatch/0001-fix-bug-build-with-sysroot-head-file-instead-of-loca.patch @@ -5,6 +5,8 @@ Subject: [PATCH] fix bug: build with sysroot head file instead of local head file:net_dropmon.h Signed-off-by: chenheyun + +Upstream-Status: Pending --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch b/meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch index 34d34ecad9..ebd3e03685 100644 --- a/meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch +++ b/meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch @@ -5,6 +5,8 @@ Subject: [PATCH 1/5] Add support for RISC-V. The architecture is sufficiently similar to aarch64 that simply extending the existing aarch64 macro works. + +Upstream-Status: Pending --- src/include/storage/s_lock.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta-oe/recipes-devtools/yasm/yasm/0001-yasm-Set-build-date-to-SOURCE_DATE_EPOCH.patch b/meta-oe/recipes-devtools/yasm/yasm/0001-yasm-Set-build-date-to-SOURCE_DATE_EPOCH.patch index e65c9853e0..42f5559e3f 100644 --- a/meta-oe/recipes-devtools/yasm/yasm/0001-yasm-Set-build-date-to-SOURCE_DATE_EPOCH.patch +++ b/meta-oe/recipes-devtools/yasm/yasm/0001-yasm-Set-build-date-to-SOURCE_DATE_EPOCH.patch @@ -7,6 +7,8 @@ If SOURCE_DATE_EPOCH is set, use it to generate a reproducible string for BUILD_DATE. Signed-off-by: Oleh Matiusha + +Upstream-Status: Pending --- configure.ac | 8 1 file changed, 8 insertions(+) diff --git a/meta-oe/recipes-devtools/yasm/yasm/0002-yasm-Use-BUILD_DATE-for-reproducibility.patch b/meta-oe/recipes-devtools/yasm/yasm/0002-yasm-Use-BUILD_DATE-for-reproducibility.patch index 665f3afc9f..4b9c933d01 100644 --- a/meta-oe/recipes-devtools/yasm/yasm/0002-yasm-Use-BUILD_DATE-for-reproducibility.patch +++ b/meta-oe/recipes-devtools/yasm/yasm/0002-yasm-Use-BUILD_DATE-for-reproducibility.patch @@ -7,6 +7,8 @@ Use reproducible build date instead of compilation time and date.
Re: [oe] [meta-multimedia][PATCH v2] spandsp: new telephony DSP library
Not much to do with musl, it fails when I use clang on my desktop as well. you can see the same errors with clang on host CC=clang ./configure make On Thu, Mar 14, 2024 at 9:37 PM Khem Raj wrote: > > fails to build with musl/clang > > https://snips.sh/f/qCR86Rwwz1 > > On Thu, Mar 14, 2024 at 12:43 PM Jörg Sommer via > lists.openembedded.org > wrote: > > > > From: Jörg Sommer > > > > Signed-off-by: Jörg Sommer > > --- > > .../spandsp/spandsp/configure.patch | 56 ++ > > .../spandsp/spandsp/makefile.patch| 161 ++ > > .../recipes-multimedia/spandsp/spandsp_git.bb | 47 + > > 3 files changed, 264 insertions(+) > > create mode 100644 > > meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch > > create mode 100644 > > meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch > > create mode 100644 > > meta-multimedia/recipes-multimedia/spandsp/spandsp_git.bb > > > > diff --git > > a/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch > > b/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch > > new file mode 100644 > > index 0..af504be76 > > --- /dev/null > > +++ b/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch > > @@ -0,0 +1,56 @@ > > +From: =?UTF-8?q?J=C3=B6rg=20Sommer?= > > +Date: Thu, 14 Mar 2024 09:41:57 +0100 > > +Subject: [PATCH 2/2] configure: Replace manual search for libxml by > > + AC_CHECK_LIB > > +MIME-Version: 1.0 > > +Content-Type: text/plain; charset=UTF-8 > > +Content-Transfer-Encoding: 8bit > > + > > +The manual search fails if the include directories (and build environment) > > +are located somewhere else. > > + > > +Signed-off-by: Jörg Sommer > > +Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74] > > +--- > > + > > +ERROR: spandsp-3.0.0+git-r0 do_configure: QA Issue: This autoconf log > > indicates errors, it looked at host include and/or library paths while > > determining system capabilities. > > + > > + configure.ac | 22 +- > > + 1 file changed, 5 insertions(+), 17 deletions(-) > > + > > +diff --git a/configure.ac b/configure.ac > > +index 2140837..b5138d6 100644 > > +--- a/configure.ac > > b/configure.ac > > +@@ -185,23 +185,11 @@ then > > + fi > > + > > + # Determine XML2 include path > > +-AC_MSG_CHECKING(for libxml/xmlmemory.h) > > +- > > +-# Can we include headers using system include dirs? > > +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], > > [[int a = 1;]])],[XML2_INCLUDE=" "],[XML2_INCLUDE=]) > > +- > > +-# Hunt through several possible directories to find the includes for > > libxml2 > > +-if test "x$XML2_INCLUDE" = "x"; then > > +-old_CPPFLAGS="$CPPFLAGS" > > +-for i in $xml2_include_dir /usr/include /usr/local/include > > /usr/include/libxml2 /usr/local/include/libxml2 ; do > > +-CPPFLAGS="$old_CPPFLAGS -I$i" > > +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include > > ]], [[int a = > > 1;]])],[XML2_INCLUDE="-I$i"],[XML2_INCLUDE= > > +-]) > > +-if test "x$XML2_INCLUDE" != "x"; then > > +-break; > > +-fi > > +-done > > +-CPPFLAGS="$old_CPPFLAGS $XML2_INCLUDE" > > ++AC_CHECK_LIB([xml2], [xmlParseFile], [libxml2_found=yes]) > > ++if test "$libxml2_found" = "yes" ; then > > ++AC_DEFINE(HAVE_LIBXML2,1,[defined when libxml2 is available]) > > ++else > > ++AC_MSG_WARN([libxml2 not found. Disabling cache.]) > > + fi > > + > > + AC_CHECK_HEADERS([libxml/xmlmemory.h]) > > +-- > > +2.34.1 > > + > > diff --git > > a/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch > > b/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch > > new file mode 100644 > > index 0..d3eb047fe > > --- /dev/null > > +++ b/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch > > @@ -0,0 +1,161 @@ > > +From: =?UTF-8?q?J=C3=B6rg=20Sommer?= > > +Date: Thu, 14 Mar 2024 08:08:13 +0100 > > +Subject: [PATCH 1/2] configure: Use AX_PROG_CC_FOR_BUILD for cross > > compiling > > +MIME-Version: 1.0 > > +Content-Type: text/plain; charset=UTF-8 > > +Content-Transfer-Encoding: 8bit > > + > > +The macro AX_PROG_CC_FOR_BUILD [1] sets the variables CC_FOR_BUILD and > > +..._FLAGS_FOR_BUILD they can be used [2] to build binaries used at compile > > +time. > > + > > +[1]: > > https://www.gnu.org/software/autoconf-archive/ax_prog_cc_for_build.html > > +[2]: > > https://stackoverflow.com/questions/24201260/autotools-cross-compilation-and-generated-sources/24208587#24208587 > > + > > +Signed-off-by: Jörg Sommer > > +Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74] > > +--- > > + configure.ac| 49 +--- > > + src/Makefile.am | 54 + > > + 2 files changed, 29 insertions(+), 74 deletions(-) > > + > > +diff --git a/configure.ac b/configure.ac > > +index 96fd022..2140837 100644 > > +---
Re: [oe] [meta-oe][PATCH] postgresql: fix a runtime error
On Thu, Mar 14, 2024 at 10:01 PM Changqing Li wrote: > > > On 3/15/24 01:12, Khem Raj wrote: > > CAUTION: This email comes from a non Wind River email account! > Do not click links or open attachments unless you recognize the sender and > know the content is safe. > > On Thu, Mar 14, 2024 at 12:22 AM Changqing Li > wrote: > > From: Changqing Li > > initdb on target will fail with below error: > 2024-03-13 08:40:23.253 UTC [4410] FATAL: could not load library > "/usr/lib64/postgresql/dict_snowball.so": > /usr/lib64/postgresql/dict_snowball.so: undefined symbol: CurrentMemoryContext > > Refer [1][2], for cross compile, --export-dynamic is assumed as not > supported, and cause above error. For oe, both gcc and clang support > --export-dynamic, fixed by set LDFLAGS_EX_BE directly > > [1] > https://www.postgresql.org/message-id/79e63515-0f5e-30f4-136d-96e23b1a817d%40posteo.de > [2] > https://github.com/postgres/postgres/commit/9db49fc5bfdc0126be03f4b8986013e59d93b91d#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810 > > Signed-off-by: Changqing Li > --- > meta-oe/recipes-dbs/postgresql/postgresql.inc | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc > b/meta-oe/recipes-dbs/postgresql/postgresql.inc > index 868a2e443..e29a5bef7 100644 > --- a/meta-oe/recipes-dbs/postgresql/postgresql.inc > +++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc > @@ -35,6 +35,7 @@ LEAD_SONAME = "libpq.so" > > # LDFLAGS for shared libraries > export LDFLAGS_SL = "${LDFLAGS}" > +export LDFLAGS_EX_BE = "-Wl,--export-dynamic" > > this will add all the symbols into dynamic symbol table which may not > be best scenario, can we just export the ones needed ? > perhaps look into using --dynamic-list. > > Hi, Khem > > I tried to use --dynamic-list as you recommended and test command > "postgresql_setup initdb", > > after I added all the symbols in dict_snowball.so, it will report undefined > symbols for another lib. I know I can try to > > add all the symbols for all the libs. but there are nearly 80+ libs generated > by postgresql. There will be many symbols. > > And I also worried that, we may missing some symbols since I may cannot cover > all the runtime cases. > > From [2], we can know that postgresql use "-Wl,--export-dynamic" before. > > So maybe it is better to still use "-Wl,--export-dynamic" like before? what > is your opinion? > Yes this maybe ok. I would like you to open a discussion upstream as well. > Thanks > > Changqing > > inherit autotools pkgconfig perlnative python3native python3targetconfig > useradd update-rc.d systemd gettext cpan-base multilib_header > > -- > 2.25.1 > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109327): https://lists.openembedded.org/g/openembedded-devel/message/109327 Mute This Topic: https://lists.openembedded.org/mt/10496/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH] postgresql: fix a runtime error
On 3/15/24 01:12, Khem Raj wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Thu, Mar 14, 2024 at 12:22 AM Changqing Li wrote: From: Changqing Li initdb on target will fail with below error: 2024-03-13 08:40:23.253 UTC [4410] FATAL: could not load library "/usr/lib64/postgresql/dict_snowball.so": /usr/lib64/postgresql/dict_snowball.so: undefined symbol: CurrentMemoryContext Refer [1][2], for cross compile, --export-dynamic is assumed as not supported, and cause above error. For oe, both gcc and clang support --export-dynamic, fixed by set LDFLAGS_EX_BE directly [1]https://www.postgresql.org/message-id/79e63515-0f5e-30f4-136d-96e23b1a817d%40posteo.de [2]https://github.com/postgres/postgres/commit/9db49fc5bfdc0126be03f4b8986013e59d93b91d#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810 Signed-off-by: Changqing Li --- meta-oe/recipes-dbs/postgresql/postgresql.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc index 868a2e443..e29a5bef7 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql.inc +++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc @@ -35,6 +35,7 @@ LEAD_SONAME = "libpq.so" # LDFLAGS for shared libraries export LDFLAGS_SL = "${LDFLAGS}" +export LDFLAGS_EX_BE = "-Wl,--export-dynamic" this will add all the symbols into dynamic symbol table which may not be best scenario, can we just export the ones needed ? perhaps look into using --dynamic-list. Hi, Khem I tried to use --dynamic-list as you recommended and test command "postgresql_setup initdb", after I added all the symbols in dict_snowball.so, it will report undefined symbolsfor another lib. I know I can try to add all the symbols for all the libs. but there are nearly 80+ libs generated by postgresql. There will be many symbols. And I also worried that, we may missing some symbols since I may cannot cover all the runtime cases. From [2], we can know that postgresql use "-Wl,--export-dynamic" before. So maybe it is better to still use "-Wl,--export-dynamic" like before? what is your opinion? Thanks Changqing inherit autotools pkgconfig perlnative python3native python3targetconfig useradd update-rc.d systemd gettext cpan-base multilib_header -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109326): https://lists.openembedded.org/g/openembedded-devel/message/109326 Mute This Topic: https://lists.openembedded.org/mt/10496/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-multimedia][PATCH v2] spandsp: new telephony DSP library
fails to build with musl/clang https://snips.sh/f/qCR86Rwwz1 On Thu, Mar 14, 2024 at 12:43 PM Jörg Sommer via lists.openembedded.org wrote: > > From: Jörg Sommer > > Signed-off-by: Jörg Sommer > --- > .../spandsp/spandsp/configure.patch | 56 ++ > .../spandsp/spandsp/makefile.patch| 161 ++ > .../recipes-multimedia/spandsp/spandsp_git.bb | 47 + > 3 files changed, 264 insertions(+) > create mode 100644 > meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch > create mode 100644 > meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch > create mode 100644 meta-multimedia/recipes-multimedia/spandsp/spandsp_git.bb > > diff --git > a/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch > b/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch > new file mode 100644 > index 0..af504be76 > --- /dev/null > +++ b/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch > @@ -0,0 +1,56 @@ > +From: =?UTF-8?q?J=C3=B6rg=20Sommer?= > +Date: Thu, 14 Mar 2024 09:41:57 +0100 > +Subject: [PATCH 2/2] configure: Replace manual search for libxml by > + AC_CHECK_LIB > +MIME-Version: 1.0 > +Content-Type: text/plain; charset=UTF-8 > +Content-Transfer-Encoding: 8bit > + > +The manual search fails if the include directories (and build environment) > +are located somewhere else. > + > +Signed-off-by: Jörg Sommer > +Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74] > +--- > + > +ERROR: spandsp-3.0.0+git-r0 do_configure: QA Issue: This autoconf log > indicates errors, it looked at host include and/or library paths while > determining system capabilities. > + > + configure.ac | 22 +- > + 1 file changed, 5 insertions(+), 17 deletions(-) > + > +diff --git a/configure.ac b/configure.ac > +index 2140837..b5138d6 100644 > +--- a/configure.ac > b/configure.ac > +@@ -185,23 +185,11 @@ then > + fi > + > + # Determine XML2 include path > +-AC_MSG_CHECKING(for libxml/xmlmemory.h) > +- > +-# Can we include headers using system include dirs? > +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[int > a = 1;]])],[XML2_INCLUDE=" "],[XML2_INCLUDE=]) > +- > +-# Hunt through several possible directories to find the includes for libxml2 > +-if test "x$XML2_INCLUDE" = "x"; then > +-old_CPPFLAGS="$CPPFLAGS" > +-for i in $xml2_include_dir /usr/include /usr/local/include > /usr/include/libxml2 /usr/local/include/libxml2 ; do > +-CPPFLAGS="$old_CPPFLAGS -I$i" > +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include > ]], [[int a = 1;]])],[XML2_INCLUDE="-I$i"],[XML2_INCLUDE= > +-]) > +-if test "x$XML2_INCLUDE" != "x"; then > +-break; > +-fi > +-done > +-CPPFLAGS="$old_CPPFLAGS $XML2_INCLUDE" > ++AC_CHECK_LIB([xml2], [xmlParseFile], [libxml2_found=yes]) > ++if test "$libxml2_found" = "yes" ; then > ++AC_DEFINE(HAVE_LIBXML2,1,[defined when libxml2 is available]) > ++else > ++AC_MSG_WARN([libxml2 not found. Disabling cache.]) > + fi > + > + AC_CHECK_HEADERS([libxml/xmlmemory.h]) > +-- > +2.34.1 > + > diff --git > a/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch > b/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch > new file mode 100644 > index 0..d3eb047fe > --- /dev/null > +++ b/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch > @@ -0,0 +1,161 @@ > +From: =?UTF-8?q?J=C3=B6rg=20Sommer?= > +Date: Thu, 14 Mar 2024 08:08:13 +0100 > +Subject: [PATCH 1/2] configure: Use AX_PROG_CC_FOR_BUILD for cross compiling > +MIME-Version: 1.0 > +Content-Type: text/plain; charset=UTF-8 > +Content-Transfer-Encoding: 8bit > + > +The macro AX_PROG_CC_FOR_BUILD [1] sets the variables CC_FOR_BUILD and > +..._FLAGS_FOR_BUILD they can be used [2] to build binaries used at compile > +time. > + > +[1]: https://www.gnu.org/software/autoconf-archive/ax_prog_cc_for_build.html > +[2]: > https://stackoverflow.com/questions/24201260/autotools-cross-compilation-and-generated-sources/24208587#24208587 > + > +Signed-off-by: Jörg Sommer > +Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74] > +--- > + configure.ac| 49 +--- > + src/Makefile.am | 54 + > + 2 files changed, 29 insertions(+), 74 deletions(-) > + > +diff --git a/configure.ac b/configure.ac > +index 96fd022..2140837 100644 > +--- a/configure.ac > b/configure.ac > +@@ -55,54 +55,7 @@ AC_LANG([C]) > + > + AX_COMPILER_VENDOR > + > +-if test "${build}" != "${host}" > +-then > +-# If we are doing a Canadian Cross, in which the host and build systems > +-# are not the same, we set reasonable default values for the tools. > +- > +-CC_FOR_BUILD=${CC_FOR_BUILD-gcc} > +-CPPFLAGS_FOR_BUILD="\$(CPPFLAGS)" > +-CC=${CC-${host_alias}-gcc} > +-CFLAGS=${CFLAGS-"-g -O2"} > +-
Re: [oe] [meta-oe][PATCHv2 2/3] lvgl: remove useless FILES include
On 3/14/24 8:21 PM, Christophe Chapuis wrote: As ${includedir}${PN} is already listed in FILES, there is no need to add one of its subdirectories. Signed-off-by: Christophe Chapuis Reviewed-by: Marek Vasut Thanks ! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109323): https://lists.openembedded.org/g/openembedded-devel/message/109323 Mute This Topic: https://lists.openembedded.org/mt/104933490/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCHv2 3/3] lvgl: add more variables to lv-conf.inc
On 3/14/24 8:21 PM, Christophe Chapuis wrote: As it can be usefull to customize these other variables, let's add them in lv-conf.inc. Also, fix the install path to use ${PN} instead of "lvgl". Separate commit would be nice. btw when sending V3, please CC Khem and co. if you didn't yet. Also, I'll likely be sending LVGL 9.1 update next week, it should be out then. Signed-off-by: Christophe Chapuis --- meta-oe/recipes-graphics/lvgl/lv-conf.inc | 49 +++ 1 file changed, 33 insertions(+), 16 deletions(-) diff --git a/meta-oe/recipes-graphics/lvgl/lv-conf.inc b/meta-oe/recipes-graphics/lvgl/lv-conf.inc index cd14412e1..088842490 100644 --- a/meta-oe/recipes-graphics/lvgl/lv-conf.inc +++ b/meta-oe/recipes-graphics/lvgl/lv-conf.inc @@ -12,8 +12,17 @@ LVGL_CONFIG_USE_SDL = "${@bb.utils.contains('PACKAGECONFIG', 'sdl', '1', '0', d) LVGL_CONFIG_SDL_FULLSCREEN ?= "0" LVGL_CONFIG_LV_MEM_CUSTOM ?= "0" +LVGL_CONFIG_LV_MEM_SIZE ?= "(64 * 1024U)" LVGL_CONFIG_LV_COLOR_DEPTH ?= "32" +LVGL_CONFIG_LV_USE_LOG?= "0" +LVGL_CONFIG_LV_LOG_LEVEL ?= "LV_LOG_LEVEL_WARN" +LVGL_CONFIG_LV_LOG_PRINTF ?= "0" + +LVGL_CONFIG_LV_USE_FONT_COMPRESSED ?= "0" + +LVGL_CONFIG_LV_THEME_DEFAULT_DARK ?= "0" + DEBUG_BUILD ??= "0" ALLOW_EMPTY:${PN} = "1" @@ -26,34 +35,42 @@ do_configure:append() { sed -e "s|#if 0 .*Set it to \"1\" to enable content.*|#if 1 // Enabled by ${PN}|g" \ \ --e "s|\(^#define LV_USE_LINUX_DRM \).*|#define LV_USE_LINUX_DRM ${LVGL_CONFIG_USE_DRM}|g" \ +-e "s|\(^#define LV_USE_LINUX_DRM \).*|\1${LVGL_CONFIG_USE_DRM}|g" \ I'd say, make this clean up a separate patch, otherwise this is difficult to review. Then, add the extra features on top. Thanks ! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109324): https://lists.openembedded.org/g/openembedded-devel/message/109324 Mute This Topic: https://lists.openembedded.org/mt/104933491/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCHv2 1/3] lvgl: fix typo and install lv_conf.h
On 3/14/24 8:21 PM, Christophe Chapuis wrote: * Fix a typo in the first sed instruction, and therefore the #if 0 is never changed to #if 1 at the beginning of lv_conf.h. * Add an install append to copy the generated lv_conf.h as part of the lvgl package, so that it will be found and used by the recipes that want to use lvgl. I'd probably split this in two patches. Signed-off-by: Christophe Chapuis --- meta-oe/recipes-graphics/lvgl/lv-conf.inc | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-graphics/lvgl/lv-conf.inc b/meta-oe/recipes-graphics/lvgl/lv-conf.inc index cb676ac62..cd14412e1 100644 --- a/meta-oe/recipes-graphics/lvgl/lv-conf.inc +++ b/meta-oe/recipes-graphics/lvgl/lv-conf.inc @@ -24,7 +24,7 @@ do_configure:append() { # If there is a configuration template, start from that [ -r "${S}/lv_conf_template.h" ] && cp -Lv "${S}/lv_conf_template.h" "${S}/lv_conf.h" -sed -e "s|#if 0 .*Set it to \"1\" to enable the content.*|#if 1 // Enabled by ${PN}|g" \ +sed -e "s|#if 0 .*Set it to \"1\" to enable content.*|#if 1 // Enabled by ${PN}|g" \ Uh, the lv_demo_fb has this unconditionally enabled, so I never spotted this, thanks for finding and fixing it. Reviewed-by: Marek Vasut -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109322): https://lists.openembedded.org/g/openembedded-devel/message/109322 Mute This Topic: https://lists.openembedded.org/mt/104933489/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-multimedia][PATCH v2] spandsp: new telephony DSP library
From: Jörg Sommer Signed-off-by: Jörg Sommer --- .../spandsp/spandsp/configure.patch | 56 ++ .../spandsp/spandsp/makefile.patch| 161 ++ .../recipes-multimedia/spandsp/spandsp_git.bb | 47 + 3 files changed, 264 insertions(+) create mode 100644 meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch create mode 100644 meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch create mode 100644 meta-multimedia/recipes-multimedia/spandsp/spandsp_git.bb diff --git a/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch b/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch new file mode 100644 index 0..af504be76 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch @@ -0,0 +1,56 @@ +From: =?UTF-8?q?J=C3=B6rg=20Sommer?= +Date: Thu, 14 Mar 2024 09:41:57 +0100 +Subject: [PATCH 2/2] configure: Replace manual search for libxml by + AC_CHECK_LIB +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The manual search fails if the include directories (and build environment) +are located somewhere else. + +Signed-off-by: Jörg Sommer +Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74] +--- + +ERROR: spandsp-3.0.0+git-r0 do_configure: QA Issue: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities. + + configure.ac | 22 +- + 1 file changed, 5 insertions(+), 17 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 2140837..b5138d6 100644 +--- a/configure.ac b/configure.ac +@@ -185,23 +185,11 @@ then + fi + + # Determine XML2 include path +-AC_MSG_CHECKING(for libxml/xmlmemory.h) +- +-# Can we include headers using system include dirs? +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[int a = 1;]])],[XML2_INCLUDE=" "],[XML2_INCLUDE=]) +- +-# Hunt through several possible directories to find the includes for libxml2 +-if test "x$XML2_INCLUDE" = "x"; then +-old_CPPFLAGS="$CPPFLAGS" +-for i in $xml2_include_dir /usr/include /usr/local/include /usr/include/libxml2 /usr/local/include/libxml2 ; do +-CPPFLAGS="$old_CPPFLAGS -I$i" +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[int a = 1;]])],[XML2_INCLUDE="-I$i"],[XML2_INCLUDE= +-]) +-if test "x$XML2_INCLUDE" != "x"; then +-break; +-fi +-done +-CPPFLAGS="$old_CPPFLAGS $XML2_INCLUDE" ++AC_CHECK_LIB([xml2], [xmlParseFile], [libxml2_found=yes]) ++if test "$libxml2_found" = "yes" ; then ++AC_DEFINE(HAVE_LIBXML2,1,[defined when libxml2 is available]) ++else ++AC_MSG_WARN([libxml2 not found. Disabling cache.]) + fi + + AC_CHECK_HEADERS([libxml/xmlmemory.h]) +-- +2.34.1 + diff --git a/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch b/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch new file mode 100644 index 0..d3eb047fe --- /dev/null +++ b/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch @@ -0,0 +1,161 @@ +From: =?UTF-8?q?J=C3=B6rg=20Sommer?= +Date: Thu, 14 Mar 2024 08:08:13 +0100 +Subject: [PATCH 1/2] configure: Use AX_PROG_CC_FOR_BUILD for cross compiling +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The macro AX_PROG_CC_FOR_BUILD [1] sets the variables CC_FOR_BUILD and +..._FLAGS_FOR_BUILD they can be used [2] to build binaries used at compile +time. + +[1]: https://www.gnu.org/software/autoconf-archive/ax_prog_cc_for_build.html +[2]: https://stackoverflow.com/questions/24201260/autotools-cross-compilation-and-generated-sources/24208587#24208587 + +Signed-off-by: Jörg Sommer +Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74] +--- + configure.ac| 49 +--- + src/Makefile.am | 54 + + 2 files changed, 29 insertions(+), 74 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 96fd022..2140837 100644 +--- a/configure.ac b/configure.ac +@@ -55,54 +55,7 @@ AC_LANG([C]) + + AX_COMPILER_VENDOR + +-if test "${build}" != "${host}" +-then +-# If we are doing a Canadian Cross, in which the host and build systems +-# are not the same, we set reasonable default values for the tools. +- +-CC_FOR_BUILD=${CC_FOR_BUILD-gcc} +-CPPFLAGS_FOR_BUILD="\$(CPPFLAGS)" +-CC=${CC-${host_alias}-gcc} +-CFLAGS=${CFLAGS-"-g -O2"} +-CXX=${CXX-${host_alias}-c++} +-CXXFLAGS=${CXXFLAGS-"-g -O2"} +-else +-# Set reasonable default values for some tools even if not Canadian. +-# Of course, these are different reasonable default values, originally +-# specified directly in the Makefile. +-# We don't export, so that autoconf can do its job. +-# Note that all these settings are above the fragment inclusion point +-# in
[oe] [meta-oe][PATCHv2 3/3] lvgl: add more variables to lv-conf.inc
As it can be usefull to customize these other variables, let's add them in lv-conf.inc. Also, fix the install path to use ${PN} instead of "lvgl". Signed-off-by: Christophe Chapuis --- meta-oe/recipes-graphics/lvgl/lv-conf.inc | 49 +++ 1 file changed, 33 insertions(+), 16 deletions(-) diff --git a/meta-oe/recipes-graphics/lvgl/lv-conf.inc b/meta-oe/recipes-graphics/lvgl/lv-conf.inc index cd14412e1..088842490 100644 --- a/meta-oe/recipes-graphics/lvgl/lv-conf.inc +++ b/meta-oe/recipes-graphics/lvgl/lv-conf.inc @@ -12,8 +12,17 @@ LVGL_CONFIG_USE_SDL = "${@bb.utils.contains('PACKAGECONFIG', 'sdl', '1', '0', d) LVGL_CONFIG_SDL_FULLSCREEN ?= "0" LVGL_CONFIG_LV_MEM_CUSTOM ?= "0" +LVGL_CONFIG_LV_MEM_SIZE ?= "(64 * 1024U)" LVGL_CONFIG_LV_COLOR_DEPTH ?= "32" +LVGL_CONFIG_LV_USE_LOG?= "0" +LVGL_CONFIG_LV_LOG_LEVEL ?= "LV_LOG_LEVEL_WARN" +LVGL_CONFIG_LV_LOG_PRINTF ?= "0" + +LVGL_CONFIG_LV_USE_FONT_COMPRESSED ?= "0" + +LVGL_CONFIG_LV_THEME_DEFAULT_DARK ?= "0" + DEBUG_BUILD ??= "0" ALLOW_EMPTY:${PN} = "1" @@ -26,34 +35,42 @@ do_configure:append() { sed -e "s|#if 0 .*Set it to \"1\" to enable content.*|#if 1 // Enabled by ${PN}|g" \ \ --e "s|\(^#define LV_USE_LINUX_DRM \).*|#define LV_USE_LINUX_DRM ${LVGL_CONFIG_USE_DRM}|g" \ +-e "s|\(^#define LV_USE_LINUX_DRM \).*|\1${LVGL_CONFIG_USE_DRM}|g" \ \ --e "s|\(^#define LV_USE_LINUX_FBDEV \).*|#define LV_USE_LINUX_FBDEV ${LVGL_CONFIG_USE_FBDEV}|g" \ +-e "s|\(^#define LV_USE_LINUX_FBDEV \).*|\1${LVGL_CONFIG_USE_FBDEV}|g" \ \ --e "s|\(^#define LV_USE_SDL \).*|#define LV_USE_SDL ${LVGL_CONFIG_USE_SDL}|g" \ --e "s|\(^#define LV_USE_DRAW_SDL \).*|#define LV_USE_DRAW_SDL ${LVGL_CONFIG_USE_SDL}|g" \ --e "s|\(^#define LV_SDL_BUF_COUNT \).*|#define LV_SDL_BUF_COUNT 2|g" \ --e "s|\(^#define LV_SDL_FULLSCREEN \).*|#define LV_SDL_FULLSCREEN ${LVGL_CONFIG_SDL_FULLSCREEN}|g" \ +-e "s|\(^#define LV_USE_SDL \).*|\1${LVGL_CONFIG_USE_SDL}|g" \ +-e "s|\(^#define LV_USE_DRAW_SDL \).*|\1${LVGL_CONFIG_USE_SDL}|g" \ +-e "s|\(^ \+#define LV_SDL_BUF_COUNT \).*|\1 2|g" \ +-e "s|\(^ \+#define LV_SDL_FULLSCREEN \).*|\1${LVGL_CONFIG_SDL_FULLSCREEN}|g" \ \ --e "s|\(^#define LV_COLOR_DEPTH \).*|#define LV_COLOR_DEPTH ${LVGL_CONFIG_LV_COLOR_DEPTH}|g" \ --e "s|\(#define LV_MEM_CUSTOM .*\)0|\1${LVGL_CONFIG_LV_MEM_CUSTOM}|g" \ +-e "s|\(^#define LV_COLOR_DEPTH \).*|\1${LVGL_CONFIG_LV_COLOR_DEPTH}|g" \ +-e "s|\(#define LV_MEM_CUSTOM .*\).*|\1${LVGL_CONFIG_LV_MEM_CUSTOM}|g" \ +-e "s|\(^ \+#define LV_MEM_SIZE \).*|\1${LVGL_CONFIG_LV_MEM_SIZE}|g" \ \ -e "s|\(#define LV_TICK_CUSTOM \).*|\1 1|g" \ -e "s|\(#define LV_TICK_CUSTOM_INCLUDE \).*|\1 |g" \ -e "s|\(#define LV_TICK_CUSTOM_SYS_TIME_EXPR \).*|extern uint32_t custom_tick_get(void);\n\1 (custom_tick_get())|g" \ \ --e "s|\(^#define LV_USE_EVDEV \).*|#define LV_USE_EVDEV ${LVGL_CONFIG_USE_EVDEV}|g" \ +-e "s|\(^#define LV_USE_EVDEV \).*|\1${LVGL_CONFIG_USE_EVDEV}|g" \ +\ +-e "s|\(^#define LV_USE_ASSERT_NULL \).*|\1${DEBUG_BUILD}|g" \ +-e "s|\(^#define LV_USE_ASSERT_MALLOC \).*|\1${DEBUG_BUILD}|g" \ +-e "s|\(^#define LV_USE_ASSERT_STYLE \).*|\1${DEBUG_BUILD}|g" \ +-e "s|\(^#define LV_USE_ASSERT_MEM_INTEGRITY \).*|\1${DEBUG_BUILD}|g" \ +-e "s|\(^#define LV_USE_ASSERT_OBJ \).*|\1${DEBUG_BUILD}|g" \ +\ +-e "s|\(^#define LV_USE_LOG \).*|\1${LVGL_CONFIG_LV_USE_LOG}|g" \ +-e "s|\(^ \+#define LV_LOG_LEVEL \).*|\1${LVGL_CONFIG_LV_LOG_LEVEL}|g" \ +-e "s|\(^ \+#define LV_LOG_PRINTF \).*|\1${LVGL_CONFIG_LV_LOG_PRINTF}|g" \ \ --e "s|\(^#define LV_USE_ASSERT_NULL \).*|#define LV_USE_ASSERT_NULL ${DEBUG_BUILD}|g" \ --e "s|\(^#define LV_USE_ASSERT_MALLOC \).*|#define LV_USE_ASSERT_MALLOC ${DEBUG_BUILD}|g" \ --e "s|\(^#define LV_USE_ASSERT_STYLE \).*|#define LV_USE_ASSERT_STYLE ${DEBUG_BUILD}|g" \ --e "s|\(^#define LV_USE_ASSERT_MEM_INTEGRITY \).*|#define LV_USE_ASSERT_MEM_INTEGRITY ${DEBUG_BUILD}|g" \ --e "s|\(^#define LV_USE_ASSERT_OBJ \).*|#define LV_USE_ASSERT_OBJ ${DEBUG_BUILD}|g" \ +-e "s|\(^#define LV_USE_FONT_COMPRESSED \).*|\1${LVGL_CONFIG_LV_USE_FONT_COMPRESSED}|g" \ +-e "s|\(^ \+#define LV_THEME_DEFAULT_DARK \).*|\1${LVGL_CONFIG_LV_THEME_DEFAULT_DARK}|g" \ \ -i "${S}/lv_conf.h" } do_install:append() { -install -d "${D}${includedir}/lvgl" -install -m 0644 "${S}/lv_conf.h" "${D}${includedir}/lvgl/lv_conf.h" +install -d "${D}${includedir}/${PN}" +install -m 0644 "${S}/lv_conf.h" "${D}${includedir}/${PN}/lv_conf.h" } -- 2.44.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109320):
[oe] [meta-oe][PATCHv2 1/3] lvgl: fix typo and install lv_conf.h
* Fix a typo in the first sed instruction, and therefore the #if 0 is never changed to #if 1 at the beginning of lv_conf.h. * Add an install append to copy the generated lv_conf.h as part of the lvgl package, so that it will be found and used by the recipes that want to use lvgl. Signed-off-by: Christophe Chapuis --- meta-oe/recipes-graphics/lvgl/lv-conf.inc | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-graphics/lvgl/lv-conf.inc b/meta-oe/recipes-graphics/lvgl/lv-conf.inc index cb676ac62..cd14412e1 100644 --- a/meta-oe/recipes-graphics/lvgl/lv-conf.inc +++ b/meta-oe/recipes-graphics/lvgl/lv-conf.inc @@ -24,7 +24,7 @@ do_configure:append() { # If there is a configuration template, start from that [ -r "${S}/lv_conf_template.h" ] && cp -Lv "${S}/lv_conf_template.h" "${S}/lv_conf.h" -sed -e "s|#if 0 .*Set it to \"1\" to enable the content.*|#if 1 // Enabled by ${PN}|g" \ +sed -e "s|#if 0 .*Set it to \"1\" to enable content.*|#if 1 // Enabled by ${PN}|g" \ \ -e "s|\(^#define LV_USE_LINUX_DRM \).*|#define LV_USE_LINUX_DRM ${LVGL_CONFIG_USE_DRM}|g" \ \ @@ -52,3 +52,8 @@ do_configure:append() { \ -i "${S}/lv_conf.h" } + +do_install:append() { +install -d "${D}${includedir}/lvgl" +install -m 0644 "${S}/lv_conf.h" "${D}${includedir}/lvgl/lv_conf.h" +} -- 2.44.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109318): https://lists.openembedded.org/g/openembedded-devel/message/109318 Mute This Topic: https://lists.openembedded.org/mt/104933489/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCHv2 2/3] lvgl: remove useless FILES include
As ${includedir}${PN} is already listed in FILES, there is no need to add one of its subdirectories. Signed-off-by: Christophe Chapuis --- meta-oe/recipes-graphics/lvgl/lvgl_9.0.0.bb | 1 - 1 file changed, 1 deletion(-) diff --git a/meta-oe/recipes-graphics/lvgl/lvgl_9.0.0.bb b/meta-oe/recipes-graphics/lvgl/lvgl_9.0.0.bb index b84fc5a3d..0b7eba538 100644 --- a/meta-oe/recipes-graphics/lvgl/lvgl_9.0.0.bb +++ b/meta-oe/recipes-graphics/lvgl/lvgl_9.0.0.bb @@ -28,7 +28,6 @@ require lv-conf.inc FILES:${PN}-dev += "\ ${includedir}/${PN}/ \ -${includedir}/${PN}/lvgl/ \ " SOLIBS = ".so" FILES_SOLIBSDEV = "" -- 2.44.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109319): https://lists.openembedded.org/g/openembedded-devel/message/109319 Mute This Topic: https://lists.openembedded.org/mt/104933490/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH] lvgl: fix typo and install lv_conf.h
Hi I realize there is no context in that patch proposal, let me clarify a bit. First, there is a typo in the first sed instruction, and therefore the #if 0 is never changed to #if 1 at the beginning of lv_conf.h. Secondly I added an install append to copy the generated lv_conf.h as part of the lvgl package, so that it will be found and used by the recipes that want to use lvgl. With these changes I have a working build for my lvgl app; I added some additional changes in a bbappend of my own, but I didn't want to put too many of these in the main lv-conf.inc file so I didn't propose it here. Christophe On Thu, Mar 14, 2024 at 7:28 PM Tofe via lists.openembedded.org wrote: > Signed-off-by: Christophe Chapuis > --- > meta-oe/recipes-graphics/lvgl/lv-conf.inc | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/meta-oe/recipes-graphics/lvgl/lv-conf.inc > b/meta-oe/recipes-graphics/lvgl/lv-conf.inc > index cb676ac62..cd14412e1 100644 > --- a/meta-oe/recipes-graphics/lvgl/lv-conf.inc > +++ b/meta-oe/recipes-graphics/lvgl/lv-conf.inc > @@ -24,7 +24,7 @@ do_configure:append() { > # If there is a configuration template, start from that > [ -r "${S}/lv_conf_template.h" ] && cp -Lv "${S}/lv_conf_template.h" > "${S}/lv_conf.h" > > -sed -e "s|#if 0 .*Set it to \"1\" to enable the content.*|#if 1 // > Enabled by ${PN}|g" \ > +sed -e "s|#if 0 .*Set it to \"1\" to enable content.*|#if 1 // > Enabled by ${PN}|g" \ > \ > -e "s|\(^#define LV_USE_LINUX_DRM \).*|#define LV_USE_LINUX_DRM > ${LVGL_CONFIG_USE_DRM}|g" \ > \ > @@ -52,3 +52,8 @@ do_configure:append() { > \ > -i "${S}/lv_conf.h" > } > + > +do_install:append() { > +install -d "${D}${includedir}/lvgl" > +install -m 0644 "${S}/lv_conf.h" "${D}${includedir}/lvgl/lv_conf.h" > +} > -- > 2.44.0 > > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109317): https://lists.openembedded.org/g/openembedded-devel/message/109317 Mute This Topic: https://lists.openembedded.org/mt/104932391/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCH] lvgl: fix typo and install lv_conf.h
Signed-off-by: Christophe Chapuis --- meta-oe/recipes-graphics/lvgl/lv-conf.inc | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-graphics/lvgl/lv-conf.inc b/meta-oe/recipes-graphics/lvgl/lv-conf.inc index cb676ac62..cd14412e1 100644 --- a/meta-oe/recipes-graphics/lvgl/lv-conf.inc +++ b/meta-oe/recipes-graphics/lvgl/lv-conf.inc @@ -24,7 +24,7 @@ do_configure:append() { # If there is a configuration template, start from that [ -r "${S}/lv_conf_template.h" ] && cp -Lv "${S}/lv_conf_template.h" "${S}/lv_conf.h" -sed -e "s|#if 0 .*Set it to \"1\" to enable the content.*|#if 1 // Enabled by ${PN}|g" \ +sed -e "s|#if 0 .*Set it to \"1\" to enable content.*|#if 1 // Enabled by ${PN}|g" \ \ -e "s|\(^#define LV_USE_LINUX_DRM \).*|#define LV_USE_LINUX_DRM ${LVGL_CONFIG_USE_DRM}|g" \ \ @@ -52,3 +52,8 @@ do_configure:append() { \ -i "${S}/lv_conf.h" } + +do_install:append() { +install -d "${D}${includedir}/lvgl" +install -m 0644 "${S}/lv_conf.h" "${D}${includedir}/lvgl/lv_conf.h" +} -- 2.44.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109316): https://lists.openembedded.org/g/openembedded-devel/message/109316 Mute This Topic: https://lists.openembedded.org/mt/104932391/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-multimedia][PATCH] spandsp: new telephony DSP library
On Thu, Mar 14, 2024 at 2:10 AM Jörg Sommer via lists.openembedded.org wrote: > > From: Jörg Sommer > > Signed-off-by: Jörg Sommer > --- > .../spandsp/spandsp/configure.patch | 56 ++ > .../spandsp/spandsp/makefile.patch| 161 ++ > .../recipes-multimedia/spandsp/spandsp_git.bb | 47 + > 3 files changed, 264 insertions(+) > create mode 100644 > meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch > create mode 100644 > meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch > create mode 100644 meta-multimedia/recipes-multimedia/spandsp/spandsp_git.bb > > diff --git > a/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch > b/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch > new file mode 100644 > index 0..af504be76 > --- /dev/null > +++ b/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch > @@ -0,0 +1,56 @@ > +From: =?UTF-8?q?J=C3=B6rg=20Sommer?= > +Date: Thu, 14 Mar 2024 09:41:57 +0100 > +Subject: [PATCH 2/2] configure: Replace manual search for libxml by > + AC_CHECK_LIB > +MIME-Version: 1.0 > +Content-Type: text/plain; charset=UTF-8 > +Content-Transfer-Encoding: 8bit > + > +The manual search fails if the include directories (and build environment) > +are located somewhere else. > + > +Signed-off-by: Jörg Sommer > +Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74] > +--- > + > +ERROR: spandsp-3.0.0+git-r0 do_configure: QA Issue: This autoconf log > indicates errors, it looked at host include and/or library paths while > determining system capabilities. > + > + configure.ac | 22 +- > + 1 file changed, 5 insertions(+), 17 deletions(-) > + > +diff --git a/configure.ac b/configure.ac > +index 2140837..b5138d6 100644 > +--- a/configure.ac > b/configure.ac > +@@ -185,23 +185,11 @@ then > + fi > + > + # Determine XML2 include path > +-AC_MSG_CHECKING(for libxml/xmlmemory.h) > +- > +-# Can we include headers using system include dirs? > +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[int > a = 1;]])],[XML2_INCLUDE=" "],[XML2_INCLUDE=]) > +- > +-# Hunt through several possible directories to find the includes for libxml2 > +-if test "x$XML2_INCLUDE" = "x"; then > +-old_CPPFLAGS="$CPPFLAGS" > +-for i in $xml2_include_dir /usr/include /usr/local/include > /usr/include/libxml2 /usr/local/include/libxml2 ; do > +-CPPFLAGS="$old_CPPFLAGS -I$i" > +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include > ]], [[int a = 1;]])],[XML2_INCLUDE="-I$i"],[XML2_INCLUDE= > +-]) > +-if test "x$XML2_INCLUDE" != "x"; then > +-break; > +-fi > +-done > +-CPPFLAGS="$old_CPPFLAGS $XML2_INCLUDE" > ++AC_CHECK_LIB([xml2], [xmlParseFile], [libxml2_found=yes]) > ++if test "$libxml2_found" = "yes" ; then > ++AC_DEFINE(HAVE_LIBXML2,1,[defined when libxml2 is available]) > ++else > ++AC_MSG_WARN([libxml2 not found. Disabling cache.]) > + fi > + > + AC_CHECK_HEADERS([libxml/xmlmemory.h]) > +-- > +2.34.1 > + > diff --git > a/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch > b/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch > new file mode 100644 > index 0..d3eb047fe > --- /dev/null > +++ b/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch > @@ -0,0 +1,161 @@ > +From: =?UTF-8?q?J=C3=B6rg=20Sommer?= > +Date: Thu, 14 Mar 2024 08:08:13 +0100 > +Subject: [PATCH 1/2] configure: Use AX_PROG_CC_FOR_BUILD for cross compiling > +MIME-Version: 1.0 > +Content-Type: text/plain; charset=UTF-8 > +Content-Transfer-Encoding: 8bit > + > +The macro AX_PROG_CC_FOR_BUILD [1] sets the variables CC_FOR_BUILD and > +..._FLAGS_FOR_BUILD they can be used [2] to build binaries used at compile > +time. > + > +[1]: https://www.gnu.org/software/autoconf-archive/ax_prog_cc_for_build.html > +[2]: > https://stackoverflow.com/questions/24201260/autotools-cross-compilation-and-generated-sources/24208587#24208587 > + > +Signed-off-by: Jörg Sommer > +Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74] > +--- > + configure.ac| 49 +--- > + src/Makefile.am | 54 + > + 2 files changed, 29 insertions(+), 74 deletions(-) > + > +diff --git a/configure.ac b/configure.ac > +index 96fd022..2140837 100644 > +--- a/configure.ac > b/configure.ac > +@@ -55,54 +55,7 @@ AC_LANG([C]) > + > + AX_COMPILER_VENDOR > + > +-if test "${build}" != "${host}" > +-then > +-# If we are doing a Canadian Cross, in which the host and build systems > +-# are not the same, we set reasonable default values for the tools. > +- > +-CC_FOR_BUILD=${CC_FOR_BUILD-gcc} > +-CPPFLAGS_FOR_BUILD="\$(CPPFLAGS)" > +-CC=${CC-${host_alias}-gcc} > +-CFLAGS=${CFLAGS-"-g -O2"} > +-CXX=${CXX-${host_alias}-c++} > +-CXXFLAGS=${CXXFLAGS-"-g -O2"} > +-else > +-
Re: [oe] [meta-oe][PATCH] postgresql: fix a runtime error
On Thu, Mar 14, 2024 at 12:22 AM Changqing Li wrote: > > From: Changqing Li > > initdb on target will fail with below error: > 2024-03-13 08:40:23.253 UTC [4410] FATAL: could not load library > "/usr/lib64/postgresql/dict_snowball.so": > /usr/lib64/postgresql/dict_snowball.so: undefined symbol: CurrentMemoryContext > > Refer [1][2], for cross compile, --export-dynamic is assumed as not > supported, and cause above error. For oe, both gcc and clang support > --export-dynamic, fixed by set LDFLAGS_EX_BE directly > > [1] > https://www.postgresql.org/message-id/79e63515-0f5e-30f4-136d-96e23b1a817d%40posteo.de > [2] > https://github.com/postgres/postgres/commit/9db49fc5bfdc0126be03f4b8986013e59d93b91d#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810 > > Signed-off-by: Changqing Li > --- > meta-oe/recipes-dbs/postgresql/postgresql.inc | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc > b/meta-oe/recipes-dbs/postgresql/postgresql.inc > index 868a2e443..e29a5bef7 100644 > --- a/meta-oe/recipes-dbs/postgresql/postgresql.inc > +++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc > @@ -35,6 +35,7 @@ LEAD_SONAME = "libpq.so" > > # LDFLAGS for shared libraries > export LDFLAGS_SL = "${LDFLAGS}" > +export LDFLAGS_EX_BE = "-Wl,--export-dynamic" this will add all the symbols into dynamic symbol table which may not be best scenario, can we just export the ones needed ? perhaps look into using --dynamic-list. > > inherit autotools pkgconfig perlnative python3native python3targetconfig > useradd update-rc.d systemd gettext cpan-base multilib_header > > -- > 2.25.1 > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109314): https://lists.openembedded.org/g/openembedded-devel/message/109314 Mute This Topic: https://lists.openembedded.org/mt/10496/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [PATCH] sngrep: new recipe for ncurses SIP Messages flow viewer
From: Jörg Sommer Signed-off-by: Jörg Sommer --- .../recipes-support/sngrep/sngrep_1.8.0.bb| 37 +++ 1 file changed, 37 insertions(+) create mode 100644 meta-networking/recipes-support/sngrep/sngrep_1.8.0.bb diff --git a/meta-networking/recipes-support/sngrep/sngrep_1.8.0.bb b/meta-networking/recipes-support/sngrep/sngrep_1.8.0.bb new file mode 100644 index 0..2824dde88 --- /dev/null +++ b/meta-networking/recipes-support/sngrep/sngrep_1.8.0.bb @@ -0,0 +1,37 @@ +SUMMARY = "Ncurses SIP Messages flow viewer" +DESCRIPTION = "Tool for displaying SIP calls message flows from terminal" +HOMEPAGE = "https://github.com/irontec/sngrep; +BUGTRACKER = "https://github.com/irontec/sngrep/issues; +SECTION = "console/network" +LICENSE = "GPL-3.0-or-later & OpenSSL" +LIC_FILES_CHKSUM = "\ +file://LICENSE;md5=d32239bcb673463ab874e80d47fae504 \ +file://LICENSE.OpenSSL;md5=e39170c41c6f83de36426dbf49a03632 \ + file://README;beginline=100;endline=124;md5=758a88cf2b27572df05996a3810066b3 \ +" + +DEPENDS = "\ +libpcap \ +ncurses \ +" + +SRC_URI = "git://github.com/irontec/sngrep.git;protocol=https;branch=master" +SRCREV = "f7b36df3b79617892958b67cb4ad9313c6ce72d2" + +S = "${WORKDIR}/git" + +inherit cmake pkgconfig + +PACKAGECONFIG ?= "\ +openssl \ +${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \ +unicode \ +" + +PACKAGECONFIG[openssl] = "-DWITH_OPENSSL=ON,-DWITH_OPENSSL=OFF,openssl" +PACKAGECONFIG[gnutls] = "-DWITH_GNUTLS=ON,-DWITH_GNUTLS=OFF,gnutls libgcrypt" +PACKAGECONFIG[pcre] = "-DWITH_PCRE=OFF,-DWITH_PCRE=OFF,libpcre" +PACKAGECONFIG[zlib] = "-DWITH_ZLIB=ON,-DWITH_ZLIB=OFF,zlib" +PACKAGECONFIG[unicode] = "-DWITH_UNICODE=ON,-DWITH_UNICODE=OFF" +PACKAGECONFIG[ipv6] = "-DUSE_IPV6=ON,-DUSE_IPV6=OFF" +PACKAGECONFIG[eep] = "-DUSE_EEP=ON,-DUSE_EEP=OFF" -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109313): https://lists.openembedded.org/g/openembedded-devel/message/109313 Mute This Topic: https://lists.openembedded.org/mt/104923036/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-multimedia][PATCH] spandsp: new telephony DSP library
From: Jörg Sommer Signed-off-by: Jörg Sommer --- .../spandsp/spandsp/configure.patch | 56 ++ .../spandsp/spandsp/makefile.patch| 161 ++ .../recipes-multimedia/spandsp/spandsp_git.bb | 47 + 3 files changed, 264 insertions(+) create mode 100644 meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch create mode 100644 meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch create mode 100644 meta-multimedia/recipes-multimedia/spandsp/spandsp_git.bb diff --git a/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch b/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch new file mode 100644 index 0..af504be76 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/spandsp/spandsp/configure.patch @@ -0,0 +1,56 @@ +From: =?UTF-8?q?J=C3=B6rg=20Sommer?= +Date: Thu, 14 Mar 2024 09:41:57 +0100 +Subject: [PATCH 2/2] configure: Replace manual search for libxml by + AC_CHECK_LIB +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The manual search fails if the include directories (and build environment) +are located somewhere else. + +Signed-off-by: Jörg Sommer +Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74] +--- + +ERROR: spandsp-3.0.0+git-r0 do_configure: QA Issue: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities. + + configure.ac | 22 +- + 1 file changed, 5 insertions(+), 17 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 2140837..b5138d6 100644 +--- a/configure.ac b/configure.ac +@@ -185,23 +185,11 @@ then + fi + + # Determine XML2 include path +-AC_MSG_CHECKING(for libxml/xmlmemory.h) +- +-# Can we include headers using system include dirs? +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[int a = 1;]])],[XML2_INCLUDE=" "],[XML2_INCLUDE=]) +- +-# Hunt through several possible directories to find the includes for libxml2 +-if test "x$XML2_INCLUDE" = "x"; then +-old_CPPFLAGS="$CPPFLAGS" +-for i in $xml2_include_dir /usr/include /usr/local/include /usr/include/libxml2 /usr/local/include/libxml2 ; do +-CPPFLAGS="$old_CPPFLAGS -I$i" +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[int a = 1;]])],[XML2_INCLUDE="-I$i"],[XML2_INCLUDE= +-]) +-if test "x$XML2_INCLUDE" != "x"; then +-break; +-fi +-done +-CPPFLAGS="$old_CPPFLAGS $XML2_INCLUDE" ++AC_CHECK_LIB([xml2], [xmlParseFile], [libxml2_found=yes]) ++if test "$libxml2_found" = "yes" ; then ++AC_DEFINE(HAVE_LIBXML2,1,[defined when libxml2 is available]) ++else ++AC_MSG_WARN([libxml2 not found. Disabling cache.]) + fi + + AC_CHECK_HEADERS([libxml/xmlmemory.h]) +-- +2.34.1 + diff --git a/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch b/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch new file mode 100644 index 0..d3eb047fe --- /dev/null +++ b/meta-multimedia/recipes-multimedia/spandsp/spandsp/makefile.patch @@ -0,0 +1,161 @@ +From: =?UTF-8?q?J=C3=B6rg=20Sommer?= +Date: Thu, 14 Mar 2024 08:08:13 +0100 +Subject: [PATCH 1/2] configure: Use AX_PROG_CC_FOR_BUILD for cross compiling +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The macro AX_PROG_CC_FOR_BUILD [1] sets the variables CC_FOR_BUILD and +..._FLAGS_FOR_BUILD they can be used [2] to build binaries used at compile +time. + +[1]: https://www.gnu.org/software/autoconf-archive/ax_prog_cc_for_build.html +[2]: https://stackoverflow.com/questions/24201260/autotools-cross-compilation-and-generated-sources/24208587#24208587 + +Signed-off-by: Jörg Sommer +Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74] +--- + configure.ac| 49 +--- + src/Makefile.am | 54 + + 2 files changed, 29 insertions(+), 74 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 96fd022..2140837 100644 +--- a/configure.ac b/configure.ac +@@ -55,54 +55,7 @@ AC_LANG([C]) + + AX_COMPILER_VENDOR + +-if test "${build}" != "${host}" +-then +-# If we are doing a Canadian Cross, in which the host and build systems +-# are not the same, we set reasonable default values for the tools. +- +-CC_FOR_BUILD=${CC_FOR_BUILD-gcc} +-CPPFLAGS_FOR_BUILD="\$(CPPFLAGS)" +-CC=${CC-${host_alias}-gcc} +-CFLAGS=${CFLAGS-"-g -O2"} +-CXX=${CXX-${host_alias}-c++} +-CXXFLAGS=${CXXFLAGS-"-g -O2"} +-else +-# Set reasonable default values for some tools even if not Canadian. +-# Of course, these are different reasonable default values, originally +-# specified directly in the Makefile. +-# We don't export, so that autoconf can do its job. +-# Note that all these settings are above the fragment inclusion point +-# in
[oe] [meta-oe][PATCH] postgresql: fix a runtime error
From: Changqing Li initdb on target will fail with below error: 2024-03-13 08:40:23.253 UTC [4410] FATAL: could not load library "/usr/lib64/postgresql/dict_snowball.so": /usr/lib64/postgresql/dict_snowball.so: undefined symbol: CurrentMemoryContext Refer [1][2], for cross compile, --export-dynamic is assumed as not supported, and cause above error. For oe, both gcc and clang support --export-dynamic, fixed by set LDFLAGS_EX_BE directly [1] https://www.postgresql.org/message-id/79e63515-0f5e-30f4-136d-96e23b1a817d%40posteo.de [2] https://github.com/postgres/postgres/commit/9db49fc5bfdc0126be03f4b8986013e59d93b91d#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810 Signed-off-by: Changqing Li --- meta-oe/recipes-dbs/postgresql/postgresql.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc index 868a2e443..e29a5bef7 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql.inc +++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc @@ -35,6 +35,7 @@ LEAD_SONAME = "libpq.so" # LDFLAGS for shared libraries export LDFLAGS_SL = "${LDFLAGS}" +export LDFLAGS_EX_BE = "-Wl,--export-dynamic" inherit autotools pkgconfig perlnative python3native python3targetconfig useradd update-rc.d systemd gettext cpan-base multilib_header -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109311): https://lists.openembedded.org/g/openembedded-devel/message/109311 Mute This Topic: https://lists.openembedded.org/mt/10496/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-