Skip to contentSkip to conversation

openh264: update 2.3.1 -> 2.5.0

PATCH Markus Volk 2 participants 3 messages Jan 8, 2025 – Jan 10, 2025 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

v2: also remove unneeded patches

Quoted 299 lines · Markus Volk

- switch to meson buildsystem

Signed-off-by Markus Volk <[email protected] <mailto:[email protected]>>
Signed-off-by Khem Raj <[email protected] <mailto:[email protected]>>
---
 ...Use-cp-options-to-preserve-file-mode.patch |  32 ------
 ...ossibility-to-disable-NEON-extension.patch | 103 
------------------
 .../openh264/openh264_2.3.1.bb                |  55 ----------
 .../openh264/openh264_2.5.0.bb                |  20 ++++
 4 files changed, 20 insertions(+), 190 deletions(-)
 delete mode 100644 
meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch
 delete mode 100644 
meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch
 delete mode 100644 
meta-multimedia/recipes-multimedia/openh264/openh264_2.3.1.bb
 create mode 100644 

meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb

meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch deleted +0 -1
deleted file mode 100644
index 92f32948b2..0000000000
--- 

a/meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch +++ /dev/null

meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch deleted +0 -1
@@ -1,32 +0,0 @@
-From 1c3bda45c55d2334af384caf9e7f240b7aaf2eb5 Mon Sep 17 00:00:00 

2001

meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch deleted +0 -6
-From: Khem Raj <[email protected] <mailto:[email protected]>>
-Date: Tue, 3 Mar 2020 22:28:25 -0800
-Subject: [PATCH] Makefile: Use cp options to preserve file mode
-
-This fixes packaging issues e.g.
-openh264: /usr/lib/libopenh264.so is owned by uid 1000, which is the 

same as the user running bitbake

meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch deleted +0 -2
-
-Upstream-Status: Submitted 

[<https://github.com/cisco/openh264/pull/3245>]
-Signed-off-by: Khem Raj <[email protected]
<mailto:[email protected]>>
----
- Makefile | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)

meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch deleted +0 -6
-
-diff --git a/Makefile b/Makefile
-index 74ff029d..ac643412 100644
---- a/Makefile
-+++ b/Makefile
-@@ -306,8 +306,8 @@ install-shared: 

$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX) install-headers $

meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch deleted +0 -2
- 	mkdir -p $(DESTDIR)$(SHAREDLIB_DIR)
- 	install -m 755 

$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXFULLVER) $(DESTDIR)$(SHAREDLIB_DIR)

meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch deleted +0 -2
- 	if [ "$(SHAREDLIBSUFFIXFULLVER)" != "$(SHAREDLIBSUFFIX)" ]; then \
--	  cp -a $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXMAJORVER) 

$(DESTDIR)$(SHAREDLIB_DIR) ; \
-- cp -a $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX)
$(DESTDIR)$(SHAREDLIB_DIR) ; \
-+ cp -R --no-dereference --preserve=mode,links
$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXMAJORVER) $(DESTDIR)$(SHAREDLIB_DIR) ; \
-+ cp -R --no-dereference --preserve=mode,links
$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR) ; \

meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch deleted +0 -3
- 	fi
- 	mkdir -p $(DESTDIR)$(PREFIX)/$(LIBDIR_NAME)/pkgconfig
- 	install -m 644 $(PROJECT_NAME).pc 

$(DESTDIR)$(PREFIX)/$(LIBDIR_NAME)/pkgconfig
---
-2.25.1

meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch deleted +0 -1
-
meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch deleted +0 -1
deleted file mode 100644
index 298ac1c013..0000000000
--- 

a/meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch +++ /dev/null

meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch deleted +0 -1
@@ -1,103 +0,0 @@
-From bc3a3baeaccfe9c1286848b348baf92dfbd05346 Mon Sep 17 00:00:00 

2001
-From: Benjamin Bara <[email protected]
<mailto:[email protected]>>

meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch deleted +0 -2
-Date: Thu, 31 Aug 2023 09:27:31 +0200
-Subject: [PATCH 2/2] Makefile: add possibility to disable NEON 

extension

meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch deleted +0 -2
-
-README states that the NEON extension is optional. However, 

currently it

meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch deleted +0 -3
-cannot be turned off, therefore add an option to disable it.
-
-Upstream-Status: Submitted 

[<https://github.com/cisco/openh264/pull/3679>]
-Signed-off-by: Benjamin Bara <[email protected] <mailto:[email protected]>>
----

- Makefile                   |  1 +
- build/arch.mk              |  4 ++++
- build/msvc-common.mk       | 10 ++++++++--
- build/platform-mingw_nt.mk |  5 ++++-

- 4 files changed, 17 insertions(+), 3 deletions(-)

meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch deleted +0 -18
-
-diff --git a/Makefile b/Makefile
-index baed53a7..cc22c4aa 100644
---- a/Makefile
-+++ b/Makefile
-@@ -35,6 +35,7 @@ CCASFLAGS=$(CFLAGS)
- STATIC_LDFLAGS=-lstdc++
- STRIP ?= strip
- USE_STACK_PROTECTOR = Yes
-+USE_NEON=Yes
-
- SHAREDLIB_MAJORVERSION=7
- FULL_VERSION := 2.3.1
-diff --git a/build/arch.mk b/build/arch.mk
-index 4e1538c4..fd6a81e4 100644
---- a/build/arch.mk
-+++ b/build/arch.mk
-@@ -17,18 +17,22 @@ ifneq ($(filter-out arm64 arm64e, $(filter arm%, 

$(ARCH))),)
- ifeq ($(USE_ASM), Yes)
- ASM_ARCH = arm
- ASMFLAGS += -I$(SRC_PATH)codec/common/arm/
-+ifeq ($(USE_NEON), Yes)
- CFLAGS += -DHAVE_NEON
- endif
- endif
-+endif

meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch deleted +0 -61
-
- #for arm64
- ifneq ($(filter arm64 aarch64 arm64e, $(ARCH)),)
- ifeq ($(USE_ASM), Yes)
- ASM_ARCH = arm64
- ASMFLAGS += -I$(SRC_PATH)codec/common/arm64/
-+ifeq ($(USE_NEON), Yes)
- CFLAGS += -DHAVE_NEON_AARCH64
- endif
- endif
-+endif
-
- #for mips
- ifneq ($(filter mips mips64, $(ARCH)),)
-diff --git a/build/msvc-common.mk b/build/msvc-common.mk
-index 5891ea4e..5a1e2582 100644
---- a/build/msvc-common.mk
-+++ b/build/msvc-common.mk
-@@ -10,7 +10,10 @@ else
- endif
- ifeq ($(ASM_ARCH), arm)
- CCAS = gas-preprocessor.pl -as-type armasm -force-thumb -- armasm
--CCASFLAGS = -nologo -DHAVE_NEON -ignore 4509
-+CCASFLAGS = -nologo -ignore 4509
-+ifeq ($(USE_NEON), Yes)
-+CCASFLAGS += -DHAVE_NEON
-+endif
- endif
-
- CC=cl
-@@ -20,7 +23,10 @@ CXX_O=-Fo$@
-
- ifeq ($(ASM_ARCH), arm64)
- CCAS = clang-cl
--CCASFLAGS = -nologo -DHAVE_NEON_AARCH64 --target=arm64-windows
-+CCASFLAGS = -nologo --target=arm64-windows
-+ifeq ($(USE_NEON), Yes)
-+CCASFLAGS += -DHAVE_NEON_AARCH64
-+endif
- endif
-
-
-diff --git a/build/platform-mingw_nt.mk b/build/platform-mingw_nt.mk
-index b7a5495d..d73e362a 100644
---- a/build/platform-mingw_nt.mk
-+++ b/build/platform-mingw_nt.mk
-@@ -17,7 +17,10 @@ endif
- endif
- ifeq ($(ASM_ARCH), arm)
- CCAS = gas-preprocessor.pl -as-type clang -force-thumb -- $(CC)
--CCASFLAGS = -DHAVE_NEON -mimplicit-it=always
-+CCASFLAGS = -mimplicit-it=always
-+ifeq ($(USE_NEON), Yes)
-+CCASFLAGS += -DHAVE_NEON
-+endif
- endif
- EXEEXT = .exe
-
---
-2.34.1
-
meta-multimedia/recipes-multimedia/openh264/openh264_2.3.1.bb deleted +0 -2
deleted file mode 100644
index 6dfd759355..0000000000
@@ -1,55 +0,0 @@
-SUMMARY = "Open Source H.264 Codec"
-DESCRIPTION = "OpenH264 is a codec library which supports H.264 

encoding and \
-decoding. It is suitable for use in real time applications such as WebRTC."

meta-multimedia/recipes-multimedia/openh264/openh264_2.3.1.bb deleted +0 -9
-HOMEPAGE = "<http://www.openh264.org/>"
-SECTION = "libs/multimedia"
-
-DEPENDS:append:x86 = " nasm-native"
-DEPENDS:append:x86-64 = " nasm-native"
-
-LICENSE = "BSD-2-Clause"
-LICENSE_FLAGS = "commercial"
-LIC_FILES_CHKSUM = 

"file://LICENSE;md5=bb6d3771da6a07d33fd50d4d9aa73bcf" <file://license;md5=bb6d3771da6a07d33fd50d4d9aa73bcf/>

meta-multimedia/recipes-multimedia/openh264/openh264_2.3.1.bb deleted +0 -5
-
-S = "${WORKDIR}/git"
-SRCREV = "0a48f4d2e9be2abb4fb01b4c3be83cf44ce91a6e"
-BRANCH = "openh264v${PV}"
-SRC_URI = 

"git://github.com/cisco/openh264.git;protocol=https;branch=${BRANCH} \
-
file://0001-Makefile-Use-cp-options-to-preserve-file-mode.patch <file://0001-makefile-use-cp-options-to-preserve-file-mode.patch/> \
-
file://0002-Makefile-add-possibility-to-disable-NEON-extension.patch <file://0002-makefile-add-possibility-to-disable-neon-extension.patch/> \

meta-multimedia/recipes-multimedia/openh264/openh264_2.3.1.bb deleted +0 -20
-           "
-
-COMPATIBLE_MACHINE:armv7a = "(.*)"
-COMPATIBLE_MACHINE:aarch64 = "(.*)"
-COMPATIBLE_MACHINE:x86 = "(.*)"
-COMPATIBLE_MACHINE:x86-64 = "(.*)"
-COMPATIBLE_MACHINE:mips = "(.*)"
-COMPATIBLE_MACHINE:mips64 = "(.*)"
-COMPATIBLE_MACHINE:powerpc64le = "null"
-
-EXTRA_OEMAKE:armv7a = "ARCH=arm"
-EXTRA_OEMAKE:armv7ve = "ARCH=arm"
-EXTRA_OEMAKE:aarch64 = "ARCH=arm64"
-EXTRA_OEMAKE:x86 = "ARCH=i386"
-EXTRA_OEMAKE:x86-64 = "ARCH=x86_64"
-EXTRA_OEMAKE:mips = "ARCH=mips"
-EXTRA_OEMAKE:mips64 = "ARCH=mips64"
-EXTRA_OEMAKE:riscv64 = "ARCH=riscv64"
-
-EXTRA_OEMAKE:append:armv7a = "${@bb.utils.contains 

<mailto:${@bb.utils.contains>("TUNE_FEATURES","neon",""," USE_NEON=No",d)}" -EXTRA_OEMAKE:append:armv7ve = "${@bb.utils.contains <mailto:${@bb.utils.contains>("TUNE_FEATURES","neon",""," USE_NEON=No",d)}"

meta-multimedia/recipes-multimedia/openh264/openh264_2.3.1.bb deleted +0 -12
-
-EXTRA_OEMAKE:append = " ENABLEPIC=Yes"
-do_configure() {
-    :
-}
-
-do_compile() {
-    oe_runmake
-}
-
-do_install() {
-    oe_runmake install DESTDIR=${D} PREFIX=${prefix} 

LIBDIR_NAME=${baselib} SHAREDLIB_DIR=${libdir}

meta-multimedia/recipes-multimedia/openh264/openh264_2.3.1.bb deleted +0 -3
-}
-
-CLEANBROKEN = "1"
meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb new file +2 -0
new file mode 100644
index 0000000000..04e93ce790
@@ -0,0 +1,20 @@
+SUMMARY = "Open Source H.264 Codec"
+DESCRIPTION = "OpenH264 is a codec library which supports H.264 

encoding and \
+decoding. It is suitable for use in real time applications such as WebRTC."

meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb new file +5 -0
+HOMEPAGE = "<http://www.openh264.org/>"
+SECTION = "libs/multimedia"
+LICENSE = "BSD-2-Clause"
+LICENSE_FLAGS = "commercial"
+LIC_FILES_CHKSUM = 

"file://LICENSE;md5=bb6d3771da6a07d33fd50d4d9aa73bcf" <file://license;md5=bb6d3771da6a07d33fd50d4d9aa73bcf/>

meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb new file +9 -0
+
+DEPENDS = " nasm-native"
+
+inherit meson pkgconfig
+
+S = "${WORKDIR}/git"
+SRCREV = "8c7008aeb6335e7d36ab0d9a023a63f82a8eaac0"
+BRANCH = "openh264v${PV}"
+SRC_URI = 

"git://github.com/cisco/openh264.git;protocol=https;branch=${BRANCH}"

meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb new file +3 -1
+
+COMPATIBLE_MACHINE:powerpc64le = "null"
+
--

2.47.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#114731): <https://lists.openembedded.org/g/openembedded-devel/message/114731>
Mute This Topic: <https://lists.openembedded.org/mt/110490016/3618223>
Group Owner: [email protected] <mailto:[email protected]>
Unsubscribe: <https://lists.openembedded.org/g/openembedded-devel/unsub> [[email protected] <mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

there is this error showing up

ERROR: packagegroup-meta-multimedia-1.0-r0 do_package_write_ipk: An allarch packagegroup shouldn't depend on packages which are dynamically renamed (openh264-dev to libopenh264-dev)
ERROR: packagegroup-meta-multimedia-1.0-r0 do_package_write_ipk: An allarch packagegroup shouldn't depend on packages which are dynamically renamed (libde265 to libde265-0)
ERROR: packagegroup-meta-multimedia-1.0-r0 do_package_write_ipk: An allarch packagegroup shouldn't depend on packages which are dynamically renamed (openh264 to libopenh264-7)
ERROR: packagegroup-meta-multimedia-1.0-r0 do_package_write_ipk: An allarch packagegroup shouldn't depend on packages which are dynamically renamed (openh264-dbg to libopenh264-dbg)

Quoted 9 lines · Markus Volk

v2: also remove unneeded patches

On Wed, Jan 8 2025 at 02:30:21 +01:00:00, Markus Volk <[email protected]> wrote:

- switch to meson buildsystem Signed-off-by: Markus Volk <[email protected]> Signed-off-by: Khem Raj <[email protected]> --- ...Use-cp-options-to-preserve-file-mode.patch | 32 ------ ...ossibility-to-disable-NEON-extension.patch | 103 ------------------ .../openh264/openh264_2.3.1.bb | 55 ---------- .../openh264/openh264_2.5.0.bb | 20 ++++ 4 files changed, 20 insertions(+), 190 deletions(-) delete mode 100644 meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch delete mode 100644 meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch delete mode 100644 meta-multimedia/recipes-multimedia/openh264/openh264_2.3.1.bb create mode 100644 meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb diff --git a/meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch b/meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch deleted file mode 100644 index 92f32948b2..0000000000 --- a/meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 1c3bda45c55d2334af384caf9e7f240b7aaf2eb5 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Tue, 3 Mar 2020 22:28:25 -0800 -Subject: [PATCH] Makefile: Use cp options to preserve file mode - -This fixes packaging issues e.g. -openh264: /usr/lib/libopenh264.so is owned by uid 1000, which is the same as the user running bitbake - -Upstream-Status: Submitted [https://github.com/cisco/openh264/pull/3245] -Signed-off-by: Khem Raj <[email protected]> ---- - Makefile | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/Makefile b/Makefile -index 74ff029d..ac643412 100644 ---- a/Makefile -+++ b/Makefile -@@ -306,8 +306,8 @@ install-shared: $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX) install-headers $ - mkdir -p $(DESTDIR)$(SHAREDLIB_DIR) - install -m 755 $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXFULLVER) $(DESTDIR)$(SHAREDLIB_DIR) - if [ "$(SHAREDLIBSUFFIXFULLVER)" != "$(SHAREDLIBSUFFIX)" ]; then \ -- cp -a $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXMAJORVER) $(DESTDIR)$(SHAREDLIB_DIR) ; \ -- cp -a $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR) ; \ -+ cp -R --no-dereference --preserve=mode,links $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXMAJORVER) $(DESTDIR)$(SHAREDLIB_DIR) ; \ -+ cp -R --no-dereference --preserve=mode,links $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR) ; \ - fi - mkdir -p $(DESTDIR)$(PREFIX)/$(LIBDIR_NAME)/pkgconfig - install -m 644 $(PROJECT_NAME).pc $(DESTDIR)$(PREFIX)/$(LIBDIR_NAME)/pkgconfig --- -2.25.1 - diff --git a/meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch b/meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch deleted file mode 100644 index 298ac1c013..0000000000 --- a/meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch +++ /dev/null @@ -1,103 +0,0 @@ -From bc3a3baeaccfe9c1286848b348baf92dfbd05346 Mon Sep 17 00:00:00 2001 -From: Benjamin Bara <[email protected]> -Date: Thu, 31 Aug 2023 09:27:31 +0200 -Subject: [PATCH 2/2] Makefile: add possibility to disable NEON extension - -README states that the NEON extension is optional. However, currently it -cannot be turned off, therefore add an option to disable it. - -Upstream-Status: Submitted [https://github.com/cisco/openh264/pull/3679] -Signed-off-by: Benjamin Bara <[email protected]> ---- - Makefile | 1 + - build/arch.mk | 4 ++++ - build/msvc-common.mk | 10 ++++++++-- - build/platform-mingw_nt.mk | 5 ++++- - 4 files changed, 17 insertions(+), 3 deletions(-) - -diff --git a/Makefile b/Makefile -index baed53a7..cc22c4aa 100644 ---- a/Makefile -+++ b/Makefile -@@ -35,6 +35,7 @@ CCASFLAGS=$(CFLAGS) - STATIC_LDFLAGS=-lstdc++ - STRIP ?= strip - USE_STACK_PROTECTOR = Yes -+USE_NEON=Yes - - SHAREDLIB_MAJORVERSION=7 - FULL_VERSION := 2.3.1 -diff --git a/build/arch.mk b/build/arch.mk -index 4e1538c4..fd6a81e4 100644 ---- a/build/arch.mk -+++ b/build/arch.mk -@@ -17,18 +17,22 @@ ifneq ($(filter-out arm64 arm64e, $(filter arm%, $(ARCH))),) - ifeq ($(USE_ASM), Yes) - ASM_ARCH = arm - ASMFLAGS += -I$(SRC_PATH)codec/common/arm/ -+ifeq ($(USE_NEON), Yes) - CFLAGS += -DHAVE_NEON - endif - endif -+endif - - #for arm64 - ifneq ($(filter arm64 aarch64 arm64e, $(ARCH)),) - ifeq ($(USE_ASM), Yes) - ASM_ARCH = arm64 - ASMFLAGS += -I$(SRC_PATH)codec/common/arm64/ -+ifeq ($(USE_NEON), Yes) - CFLAGS += -DHAVE_NEON_AARCH64 - endif - endif -+endif - - #for mips - ifneq ($(filter mips mips64, $(ARCH)),) -diff --git a/build/msvc-common.mk b/build/msvc-common.mk -index 5891ea4e..5a1e2582 100644 ---- a/build/msvc-common.mk -+++ b/build/msvc-common.mk -@@ -10,7 +10,10 @@ else - endif - ifeq ($(ASM_ARCH), arm) - CCAS = gas-preprocessor.pl -as-type armasm -force-thumb -- armasm --CCASFLAGS = -nologo -DHAVE_NEON -ignore 4509 -+CCASFLAGS = -nologo -ignore 4509 -+ifeq ($(USE_NEON), Yes) -+CCASFLAGS += -DHAVE_NEON -+endif - endif - - CC=cl -@@ -20,7 +23,10 @@ CXX_O=-Fo$@ - - ifeq ($(ASM_ARCH), arm64) - CCAS = clang-cl --CCASFLAGS = -nologo -DHAVE_NEON_AARCH64 --target=arm64-windows -+CCASFLAGS = -nologo --target=arm64-windows -+ifeq ($(USE_NEON), Yes) -+CCASFLAGS += -DHAVE_NEON_AARCH64 -+endif - endif - - -diff --git a/build/platform-mingw_nt.mk b/build/platform-mingw_nt.mk -index b7a5495d..d73e362a 100644 ---- a/build/platform-mingw_nt.mk -+++ b/build/platform-mingw_nt.mk -@@ -17,7 +17,10 @@ endif - endif - ifeq ($(ASM_ARCH), arm) - CCAS = gas-preprocessor.pl -as-type clang -force-thumb -- $(CC) --CCASFLAGS = -DHAVE_NEON -mimplicit-it=always -+CCASFLAGS = -mimplicit-it=always -+ifeq ($(USE_NEON), Yes) -+CCASFLAGS += -DHAVE_NEON -+endif - endif - EXEEXT = .exe - --- -2.34.1 - diff --git a/meta-multimedia/recipes-multimedia/openh264/openh264_2.3.1.bb b/meta-multimedia/recipes-multimedia/openh264/openh264_2.3.1.bb deleted file mode 100644 index 6dfd759355..0000000000 --- a/meta-multimedia/recipes-multimedia/openh264/openh264_2.3.1.bb +++ /dev/null @@ -1,55 +0,0 @@ -SUMMARY = "Open Source H.264 Codec" -DESCRIPTION = "OpenH264 is a codec library which supports H.264 encoding and \ -decoding. It is suitable for use in real time applications such as WebRTC." -HOMEPAGE = "http://www.openh264.org/" -SECTION = "libs/multimedia" - -DEPENDS:append:x86 = " nasm-native" -DEPENDS:append:x86-64 = " nasm-native" - -LICENSE = "BSD-2-Clause" -LICENSE_FLAGS = "commercial" -LIC_FILES_CHKSUM = "file://LICENSE;md5=bb6d3771da6a07d33fd50d4d9aa73bcf" - -S = "${WORKDIR}/git" -SRCREV = "0a48f4d2e9be2abb4fb01b4c3be83cf44ce91a6e" -BRANCH = "openh264v${PV}" -SRC_URI = "git://github.com/cisco/openh264.git;protocol=https;branch=${BRANCH} \ - file://0001-Makefile-Use-cp-options-to-preserve-file-mode.patch \ - file://0002-Makefile-add-possibility-to-disable-NEON-extension.patch \ - " - -COMPATIBLE_MACHINE:armv7a = "(.*)" -COMPATIBLE_MACHINE:aarch64 = "(.*)" -COMPATIBLE_MACHINE:x86 = "(.*)" -COMPATIBLE_MACHINE:x86-64 = "(.*)" -COMPATIBLE_MACHINE:mips = "(.*)" -COMPATIBLE_MACHINE:mips64 = "(.*)" -COMPATIBLE_MACHINE:powerpc64le = "null" - -EXTRA_OEMAKE:armv7a = "ARCH=arm" -EXTRA_OEMAKE:armv7ve = "ARCH=arm" -EXTRA_OEMAKE:aarch64 = "ARCH=arm64" -EXTRA_OEMAKE:x86 = "ARCH=i386" -EXTRA_OEMAKE:x86-64 = "ARCH=x86_64" -EXTRA_OEMAKE:mips = "ARCH=mips" -EXTRA_OEMAKE:mips64 = "ARCH=mips64" -EXTRA_OEMAKE:riscv64 = "ARCH=riscv64" - -EXTRA_OEMAKE:append:armv7a = "${@bb.utils.contains("TUNE_FEATURES","neon",""," USE_NEON=No",d)}" -EXTRA_OEMAKE:append:armv7ve = "${@bb.utils.contains("TUNE_FEATURES","neon",""," USE_NEON=No",d)}" - -EXTRA_OEMAKE:append = " ENABLEPIC=Yes" -do_configure() { - : -} - -do_compile() { - oe_runmake -} - -do_install() { - oe_runmake install DESTDIR=${D} PREFIX=${prefix} LIBDIR_NAME=${baselib} SHAREDLIB_DIR=${libdir} -} - -CLEANBROKEN = "1" diff --git a/meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb b/meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb new file mode 100644 index 0000000000..04e93ce790 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb @@ -0,0 +1,20 @@ +SUMMARY = "Open Source H.264 Codec" +DESCRIPTION = "OpenH264 is a codec library which supports H.264 encoding and \ +decoding. It is suitable for use in real time applications such as WebRTC." +HOMEPAGE = "http://www.openh264.org/" +SECTION = "libs/multimedia" +LICENSE = "BSD-2-Clause" +LICENSE_FLAGS = "commercial" +LIC_FILES_CHKSUM = "file://LICENSE;md5=bb6d3771da6a07d33fd50d4d9aa73bcf" + +DEPENDS = " nasm-native" + +inherit meson pkgconfig + +S = "${WORKDIR}/git" +SRCREV = "8c7008aeb6335e7d36ab0d9a023a63f82a8eaac0" +BRANCH = "openh264v${PV}" +SRC_URI = "git://github.com/cisco/openh264.git;protocol=https;branch=${BRANCH}" + +COMPATIBLE_MACHINE:powerpc64le = "null" + --
2.47.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#114731): https://lists.openembedded.org/g/openembedded-devel/message/114731 Mute This Topic: https://lists.openembedded.org/mt/110490016/3618223 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

This is the first time I've seen this error. But according to the documentation in packagegroup.bbclass this might help:

meta-multimedia/recipes-multimedia/packagegroups/packagegroup-meta-multimedia.bb +0 -0
index 83efaaa125..0573af7ebe 100644
@@ -1,5 +1,6 @@

SUMMARY = "Meta-multimedia packagegroups"

+PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit packagegroup

PROVIDES = "${PACKAGES}"

I'll check that out and will send a patch if it helps

Quoted 108 lines · Khem Raj via lists.openembedded.org

there is this error showing up

ERROR: packagegroup-meta-multimedia-1.0-r0 do_package_write_ipk: An allarch packagegroup shouldn't depend on packages which are dynamically renamed (openh264-dev to libopenh264-dev)
ERROR: packagegroup-meta-multimedia-1.0-r0 do_package_write_ipk: An allarch packagegroup shouldn't depend on packages which are dynamically renamed (libde265 to libde265-0)
ERROR: packagegroup-meta-multimedia-1.0-r0 do_package_write_ipk: An allarch packagegroup shouldn't depend on packages which are dynamically renamed (openh264 to libopenh264-7)
ERROR: packagegroup-meta-multimedia-1.0-r0 do_package_write_ipk: An allarch packagegroup shouldn't depend on packages which are dynamically renamed (openh264-dbg to libopenh264-dbg)

Quoted 74 lines · On Tue, Jan 7, 2025 at 5:31 PM Markus Volk <[email protected]…

v2: also remove unneeded patches

On Wed, Jan 8 2025 at 02:30:21 +01:00:00, Markus Volk
<[email protected] <mailto:[email protected]>> wrote:

- switch to meson buildsystem Signed-off-by: Markus Volk
<[email protected] <mailto:[email protected]>> Signed-off-by: Khem Raj <[email protected] <mailto:[email protected]>> --- ...Use-cp-options-to-preserve-file-mode.patch | 32 ------ ...ossibility-to-disable-NEON-extension.patch | 103
------------------ .../openh264/openh264_2.3.1.bb | 55 ----------
.../openh264/openh264_2.5.0.bb | 20 ++++ 4 files changed, 20 insertions(+), 190 deletions(-) delete mode 100644 meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch delete mode 100644 meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch delete mode 100644 meta-multimedia/recipes-multimedia/openh264/openh264_2.3.1.bb create mode 100644 meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb diff --git
a/meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch b/meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch deleted file mode 100644 index 92f32948b2..0000000000 --- a/meta-multimedia/recipes-multimedia/openh264/openh264/0001-Makefile-Use-cp-options-to-preserve-file-mode.patch
+++ /dev/null @@ -1,32 +0,0 @@ -From
1c3bda45c55d2334af384caf9e7f240b7aaf2eb5 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]> -Date: Tue, 3 Mar 2020 22:28:25
-0800 -Subject: [PATCH] Makefile: Use cp options to preserve file
mode - -This fixes packaging issues e.g. -openh264: /usr/lib/libopenh264.so is owned by uid 1000, which is the same as the user running bitbake - -Upstream-Status: Submitted [https://github.com/cisco/openh264/pull/3245] -Signed-off-by: Khem Raj <[email protected]> ---- - Makefile | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/Makefile b/Makefile
-index 74ff029d..ac643412 100644 ---- a/Makefile -+++ b/Makefile -@@
-306,8 +306,8 @@ install-shared:
$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX) install-headers $ - mkdir -p $(DESTDIR)$(SHAREDLIB_DIR) - install -m 755 $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXFULLVER) $(DESTDIR)$(SHAREDLIB_DIR) - if [ "$(SHAREDLIBSUFFIXFULLVER)" != "$(SHAREDLIBSUFFIX)" ]; then \ -- cp -a $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXMAJORVER) $(DESTDIR)$(SHAREDLIB_DIR) ; \ -- cp -a $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR) ; \ -+ cp -R --no-dereference --preserve=mode,links
$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXMAJORVER) $(DESTDIR)$(SHAREDLIB_DIR) ; \ -+ cp -R --no-dereference
--preserve=mode,links $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX)
$(DESTDIR)$(SHAREDLIB_DIR) ; \ - fi - mkdir -p $(DESTDIR)$(PREFIX)/$(LIBDIR_NAME)/pkgconfig - install -m 644 $(PROJECT_NAME).pc $(DESTDIR)$(PREFIX)/$(LIBDIR_NAME)/pkgconfig ---
-2.25.1 - diff --git
a/meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch b/meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch deleted file mode 100644 index 298ac1c013..0000000000 --- a/meta-multimedia/recipes-multimedia/openh264/openh264/0002-Makefile-add-possibility-to-disable-NEON-extension.patch
+++ /dev/null @@ -1,103 +0,0 @@ -From
bc3a3baeaccfe9c1286848b348baf92dfbd05346 Mon Sep 17 00:00:00 2001
-From: Benjamin Bara <[email protected]> -Date: Thu, 31 Aug
2023 09:27:31 +0200 -Subject: [PATCH 2/2] Makefile: add possibility to disable NEON extension - -README states that the NEON extension is optional. However, currently it -cannot be turned off, therefore add an option to disable it. - -Upstream-Status: Submitted [https://github.com/cisco/openh264/pull/3679] -Signed-off-by: Benjamin Bara <[email protected]> ---- - Makefile | 1 + - build/arch.mk | 4 ++++ - build/msvc-common.mk | 10 ++++++++-- - build/platform-mingw_nt.mk | 5 ++++- - 4 files changed, 17 insertions(+), 3 deletions(-) - -diff --git a/Makefile b/Makefile -index baed53a7..cc22c4aa 100644 ---- a/Makefile -+++ b/Makefile -@@
-35,6 +35,7 @@ CCASFLAGS=$(CFLAGS) - STATIC_LDFLAGS=-lstdc++ - STRIP
?= strip - USE_STACK_PROTECTOR = Yes -+USE_NEON=Yes - - SHAREDLIB_MAJORVERSION=7 - FULL_VERSION := 2.3.1 -diff --git a/build/arch.mk b/build/arch.mk -index 4e1538c4..fd6a81e4 100644
---- a/build/arch.mk -+++ b/build/arch.mk -@@ -17,18 +17,22 @@ ifneq
($(filter-out arm64 arm64e, $(filter arm%, $(ARCH))),) - ifeq ($(USE_ASM), Yes) - ASM_ARCH = arm - ASMFLAGS +=

(quoted diff) +0 -2
-I$(SRC_PATH)codec/common/arm/ -+ifeq ($(USE_NEON), Yes) - CFLAGS += 
-DHAVE_NEON - endif - endif -+endif - - #for arm64 - ifneq ($(filter 

arm64 aarch64 arm64e, $(ARCH)),) - ifeq ($(USE_ASM), Yes) - ASM_ARCH = arm64 - ASMFLAGS += -I$(SRC_PATH)codec/common/arm64/ -+ifeq ($(USE_NEON), Yes) - CFLAGS += -DHAVE_NEON_AARCH64 - endif - endif -+endif - - #for mips - ifneq ($(filter mips mips64, $(ARCH)),)
-diff --git a/build/msvc-common.mk b/build/msvc-common.mk -index
5891ea4e..5a1e2582 100644 ---- a/build/msvc-common.mk -+++ b/build/msvc-common.mk -@@ -10,7 +10,10 @@ else - endif - ifeq ($(ASM_ARCH), arm) - CCAS = gas-preprocessor.pl -as-type armasm -force-thumb -- armasm --CCASFLAGS = -nologo -DHAVE_NEON -ignore
4509 -+CCASFLAGS = -nologo -ignore 4509 -+ifeq ($(USE_NEON), Yes)
-+CCASFLAGS += -DHAVE_NEON -+endif - endif - - CC=cl -@@ -20,7
+23,10 @@ CXX_O=-Fo$@ - - ifeq ($(ASM_ARCH), arm64) - CCAS =
clang-cl --CCASFLAGS = -nologo -DHAVE_NEON_AARCH64
--target=arm64-windows -+CCASFLAGS = -nologo --target=arm64-windows
-+ifeq ($(USE_NEON), Yes) -+CCASFLAGS += -DHAVE_NEON_AARCH64 -+endif
- endif - - -diff --git a/build/platform-mingw_nt.mk
b/build/platform-mingw_nt.mk -index b7a5495d..d73e362a 100644 ---- a/build/platform-mingw_nt.mk -+++ b/build/platform-mingw_nt.mk -@@
-17,7 +17,10 @@ endif - endif - ifeq ($(ASM_ARCH), arm) - CCAS =
gas-preprocessor.pl -as-type clang -force-thumb -- $(CC) --CCASFLAGS = -DHAVE_NEON -mimplicit-it=always -+CCASFLAGS =

(quoted diff) +0 -3
-mimplicit-it=always -+ifeq ($(USE_NEON), Yes) -+CCASFLAGS += 
-DHAVE_NEON -+endif - endif - EXEEXT = .exe - --- -2.34.1 - diff 
--git 

a/meta-multimedia/recipes-multimedia/openh264/openh264_2.3.1.bb b/meta-multimedia/recipes-multimedia/openh264/openh264_2.3.1.bb deleted file mode 100644 index 6dfd759355..0000000000 --- a/meta-multimedia/recipes-multimedia/openh264/openh264_2.3.1.bb +++ /dev/null @@ -1,55 +0,0 @@ -SUMMARY = "Open Source H.264 Codec" -DESCRIPTION = "OpenH264 is a codec library which supports H.264
encoding and \ -decoding. It is suitable for use in real time applications such as WebRTC." -HOMEPAGE = "http://www.openh264.org/"

(quoted diff) +0 -3
-SECTION = "libs/multimedia" - -DEPENDS:append:x86 = " nasm-native" 
-DEPENDS:append:x86-64 = " nasm-native" - -LICENSE = "BSD-2-Clause" 
-LICENSE_FLAGS = "commercial" -LIC_FILES_CHKSUM = 

"file://LICENSE;md5=bb6d3771da6a07d33fd50d4d9aa73bcf" - -S = "${WORKDIR}/git" -SRCREV = "0a48f4d2e9be2abb4fb01b4c3be83cf44ce91a6e" -BRANCH = "openh264v${PV}" -SRC_URI = "git://github.com/cisco/openh264.git;protocol=https;branch=${BRANCH} \ - file://0001-Makefile-Use-cp-options-to-preserve-file-mode.patch \ - file://0002-Makefile-add-possibility-to-disable-NEON-extension.patch \ - " - -COMPATIBLE_MACHINE:armv7a = "(.*)" -COMPATIBLE_MACHINE:aarch64 = "(.*)" -COMPATIBLE_MACHINE:x86 =
"(.*)" -COMPATIBLE_MACHINE:x86-64 = "(.*)" -COMPATIBLE_MACHINE:mips = "(.*)" -COMPATIBLE_MACHINE:mips64 = "(.*)"
-COMPATIBLE_MACHINE:powerpc64le = "null" - -EXTRA_OEMAKE:armv7a =
"ARCH=arm" -EXTRA_OEMAKE:armv7ve = "ARCH=arm" -EXTRA_OEMAKE:aarch64 = "ARCH=arm64" -EXTRA_OEMAKE:x86 = "ARCH=i386" -EXTRA_OEMAKE:x86-64 = "ARCH=x86_64" -EXTRA_OEMAKE:mips = "ARCH=mips"
-EXTRA_OEMAKE:mips64 = "ARCH=mips64" -EXTRA_OEMAKE:riscv64 =
"ARCH=riscv64" - -EXTRA_OEMAKE:append:armv7a = "${@bb.utils.contains("TUNE_FEATURES","neon",""," USE_NEON=No",d)}"
-EXTRA_OEMAKE:append:armv7ve =
"${@bb.utils.contains("TUNE_FEATURES","neon",""," USE_NEON=No",d)}"
- -EXTRA_OEMAKE:append = " ENABLEPIC=Yes" -do_configure() { - : -} -
-do_compile() { - oe_runmake -} - -do_install() { - oe_runmake
install DESTDIR=${D} PREFIX=${prefix} LIBDIR_NAME=${baselib} SHAREDLIB_DIR=${libdir} -} - -CLEANBROKEN = "1" diff --git a/meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb b/meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb new file mode 100644 index 0000000000..04e93ce790 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/openh264/openh264_2.5.0.bb @@ -0,0 +1,20 @@ +SUMMARY = "Open Source H.264 Codec" +DESCRIPTION =

Quoted 9 lines

"OpenH264 is a codec library which supports H.264 encoding and \
+decoding. It is suitable for use in real time applications such as
WebRTC." +HOMEPAGE = "http://www.openh264.org/" +SECTION = "libs/multimedia" +LICENSE = "BSD-2-Clause" +LICENSE_FLAGS = "commercial" +LIC_FILES_CHKSUM = "file://LICENSE;md5=bb6d3771da6a07d33fd50d4d9aa73bcf" + +DEPENDS = " nasm-native" + +inherit meson pkgconfig + +S = "${WORKDIR}/git" +SRCREV = "8c7008aeb6335e7d36ab0d9a023a63f82a8eaac0" +BRANCH =
"openh264v${PV}" +SRC_URI = "git://github.com/cisco/openh264.git;protocol=https;branch=${BRANCH}"
+ +COMPATIBLE_MACHINE:powerpc64le = "null" +
--
2.47.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#114783): <https://lists.openembedded.org/g/openembedded-devel/message/114783>
Mute This Topic: <https://lists.openembedded.org/mt/110490016/3618223>
Group Owner: [email protected] <mailto:[email protected]>
Unsubscribe: <https://lists.openembedded.org/g/openembedded-devel/unsub> [[email protected] <mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-