package/libde265: new package
PATCH 1/7 package/libde265: new package
Optional dependency of the upcoming libheif package.
--- DEVELOPERS | 1 + package/Config.in | 1 + package/libde265/Config.in | 12 ++++++++++++ package/libde265/libde265.hash | 3 +++ package/libde265/libde265.mk | 13 +++++++++++++ 5 files changed, 30 insertions(+) create mode 100644 package/libde265/Config.in create mode 100644 package/libde265/libde265.hash create mode 100644 package/libde265/libde265.mk
DEVELOPERS +1 -0
@@ -366,6 +366,7 @@ F: package/libcdio/ F: package/libcec/ F: package/libcodec2/ F: package/libcrossguid/ +F: package/libde265/ F: package/libdeflate/ F: package/libdrm/ F: package/libdvbcsa/
package/Config.in +1 -0
@@ -1831,6 +1831,7 @@ menu "Multimedia" source "package/libbluray/Config.in" source "package/libcamera/Config.in" source "package/libcamera-apps/Config.in" + source "package/libde265/Config.in" source "package/libdvbcsa/Config.in" source "package/libdvbpsi/Config.in" source "package/libdvbsi/Config.in"
package/libde265/Config.in new file +12 -0
@@ -0,0 +1,12 @@ +config BR2_PACKAGE_LIBDE265 + bool "libde265" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_HAS_THREADS + help + libde265 is an open source implementation of the h.265 video + codec. + + https://github.com/strukturag/libde265 + +comment "libde265 needs a toolchain w/ threads, C++" + depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP
package/libde265/libde265.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed +sha256 62185ea2182e68cf68bba20cc6eb4c287407b509cf0a827d7ddb75614db77b5c libde265-1.0.12.tar.gz +sha256 02cc1585a20677992e0ba578fa692635dc193735f2691dc81de924b51c4e8020 COPYING
package/libde265/libde265.mk new file +13 -0
@@ -0,0 +1,13 @@ +################################################################################ +# +# libde265 +# +################################################################################ + +LIBDE265_VERSION = 1.0.12 +LIBDE265_SITE = https://github.com/strukturag/libde265/releases/download/v$(LIBDE265_VERSION) +LIBDE265_LICENSE = LGPL-3.0+ +LIBDE265_LICENSE_FILES = COPYING +LIBDE265_INSTALL_STAGING = YES + +$(eval $(cmake-package))
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/7 package/libheif: new package
--- DEVELOPERS | 1 + package/Config.in | 1 + package/libheif/Config.in | 14 +++++++++ package/libheif/libheif.hash | 3 ++ package/libheif/libheif.mk | 59 ++++++++++++++++++++++++++++++++++++ 5 files changed, 78 insertions(+) create mode 100644 package/libheif/Config.in create mode 100644 package/libheif/libheif.hash create mode 100644 package/libheif/libheif.mk
DEVELOPERS +1 -0
@@ -380,6 +380,7 @@ F: package/libglew/ F: package/libglfw/ F: package/libglu/ F: package/libhdhomerun/ +F: package/libheif/ F: package/libilbc/ F: package/libks/ F: package/libldns/
package/Config.in +1 -0
@@ -1840,6 +1840,7 @@ menu "Multimedia" source "package/libdvdread/Config.in" source "package/libebml/Config.in" source "package/libhdhomerun/Config.in" + source "package/libheif/Config.in" source "package/libimxvpuapi/Config.in" source "package/libmatroska/Config.in" source "package/libmms/Config.in"
package/libheif/Config.in new file +14 -0
@@ -0,0 +1,14 @@ +config BR2_PACKAGE_LIBHEIF + bool "libheif" + # avoid build error + # Internal error in emit_expr_encoded at dw2gencfi.c:215 + depends on !BR2_m68k_cf + depends on BR2_INSTALL_LIBSTDCPP + help + libheif is an HEIF and AVIF file format decoder and encoder. + + https://github.com/strukturag/libheif + +comment "libheif needs a toolchain w/ C++" + depends on !BR2_m68k_cf + depends on !BR2_INSTALL_LIBSTDCPP
package/libheif/libheif.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed: +sha256 7f97e4205c0bd9f9b8560536c8bd2e841d1c9a6d610401eb3eb87ed9cdfe78ea libheif-1.16.2.tar.gz +sha256 b2eb4f6588b005bebac44cfb2dfd23f6a16c5ca9b8a619a315158b0215a917a3 COPYING
package/libheif/libheif.mk new file +59 -0
59 lines not on this page · raw message
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/7] package/libheif: new package
Hello Bernd,
I've applied, but I have some comments below. Giuliu, there is also a question for you.
package/libheif/Config.in line 5
Quoted 11 lines · On Sat, 8 Jul 2023 22:04:42 +0200 Bernd Kuhls <[email protected]> wrote:
package/libheif/Config.in new file +5
-0@@ -0,0 +1,14 @@ +config BR2_PACKAGE_LIBHEIF + bool "libheif" + # avoid build error + # Internal error in emit_expr_encoded at dw2gencfi.c:215 + depends on !BR2_m68k_cf
Giulio, do we have a BR2_TOOLCHAIN_HAS_..._BUG for this? Are other packages affected by this? I see quite a few BR2_m68k_cf conditionals sprinkled all over the places in Buildroot.
package/libheif/Config.in line 6
Quoted 1 line
package/libheif/Config.in new file +1
-0+ depends on BR2_INSTALL_LIBSTDCPP
I've added a dependency on gcc >= 4.8, because this package uses C++11. I have verified it builds fine with GCC 4.8.
Applied with this tweak.
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/7] package/libheif: new package
Hi Thomas, All,
Quoted 8 lines · Thomas Petazzoni via buildroot
Hello Bernd,
I've applied, but I have some comments below. Giuliu, there is also a question for you.
On Sat, 8 Jul 2023 22:04:42 +0200
Bernd Kuhls <[email protected]> wrote:
Quoted 15 lines
package/libheif/Config.in line 5
Quoted 11 lines
package/libheif/Config.in new file +5
-0@@ -0,0 +1,14 @@ +config BR2_PACKAGE_LIBHEIF + bool "libheif" + # avoid build error + # Internal error in emit_expr_encoded at dw2gencfi.c:215 + depends on !BR2_m68k_cfGiulio, do we have a BR2_TOOLCHAIN_HAS_..._BUG for this? Are other packages affected by this? I see quite a few
BR2_m68k_cfconditionals sprinkled all over the places in Buildroot.
there is a possible toolchain gcc bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79509
but they point this to be a binutils bug, so I'm going to open a bug in Sourceware. I can't find it already, so yes, it must be open. We then need to add a BR2_TOOLCHAIN_HAS_BINUTILS_BUG_ and then I can check against it with the workaround(-fno-dwarf2-cfi-asm) and see if someone will fix it in binutils and backport patches.
BUT I see only now that for BR2_m68k_cf C/CXXFLAGS have by default -fno-dwarf2-cfi-asm enabled and if that doesn't make the trick I need to find another work-around, or maybe it's completely another bug at this point. Soon I'll be on holidays and I will have more time so I will look into it.
Best regards
Signature · 6 lines
Giulio Benetti CEO&CTO@Benetti Engineering sas _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/7] package/libheif: new package
Quoted 13 lines · On Sun, 30 Jul 2023 12:56:42 +0200 Giulio Benetti…
there is a possible toolchain gcc bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79509but they point this to be a binutils bug, so I'm going to open a bug in Sourceware. I can't find it already, so yes, it must be open. We then need to add a
BR2_TOOLCHAIN_HAS_BINUTILS_BUG_and then I can check against it with the workaround(-fno-dwarf2-cfi-asm) and see if someone will fix it in binutils and backport patches.
BUT I see only now that forBR2_m68k_cfC/CXXFLAGS have by default -fno-dwarf2-cfi-asm enabled and if that doesn't make the trick I need to find another work-around, or maybe it's completely another bug at this point. Soon I'll be on holidays and I will have more time so I will look into it.
Thanks for the feedback. I don't think we really need to find a workaround, as I don't think we care much about m68k_cf support. It's just that I prefer to have a clear relationship between an exclusion in Buildroot (don't build this package) and a gcc or binutils bug, rather than random architecture exclusions.
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/7 package/gd: add optional support for libheif
In reply to Bernd Kuhls--- package/gd/gd.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/gd/gd.mk +7 -0
@@ -44,6 +44,13 @@ GD_DEPENDENCIES += jpeg GD_CONF_OPTS += --with-jpeg endif +ifeq ($(BR2_PACKAGE_LIBHEIF),y) +GD_DEPENDENCIES += libheif +GD_CONF_OPTS += --with-heif +else +GD_CONF_OPTS += --without-heif +endif + ifeq ($(BR2_PACKAGE_LIBPNG),y) GD_DEPENDENCIES += libpng GD_CONF_OPTS += --with-png
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedRe: [Buildroot] [PATCH 3/7] package/gd: add optional support for libheif
Quoted 4 lines · On Sat, 8 Jul 2023 22:04:43 +0200 Bernd Kuhls <[email protected]> wrote:
Signed-off-by Bernd Kuhls <[email protected]>--- package/gd/gd.mk | 7 +++++++ 1 file changed, 7 insertions(+)
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 4/7 package/imagemagick: add optional support for libheif
In reply to Bernd Kuhls--- package/imagemagick/imagemagick.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
package/imagemagick/imagemagick.mk +7 -1
@@ -32,7 +32,6 @@ IMAGEMAGICK_CONF_OPTS = \ --without-fpx \ --without-gslib \ --without-gvc \ - --without-heic \ --without-jbig \ --without-jxl \ --without-lqr \
@@ -84,6 +83,13 @@ else IMAGEMAGICK_CONF_OPTS += --without-lcms endif +ifeq ($(BR2_PACKAGE_LIBHEIF),y) +IMAGEMAGICK_CONF_OPTS += --with-heic +IMAGEMAGICK_DEPENDENCIES += libheif +else +IMAGEMAGICK_CONF_OPTS += --without-heic +endif + ifeq ($(BR2_PACKAGE_LIBPNG),y) IMAGEMAGICK_CONF_OPTS += --with-png IMAGEMAGICK_DEPENDENCIES += libpng
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedRe: [Buildroot] [PATCH 4/7] package/imagemagick: add optional support for libheif
Quoted 4 lines · On Sat, 8 Jul 2023 22:04:44 +0200 Bernd Kuhls <[email protected]> wrote:
Signed-off-by Bernd Kuhls <[email protected]>--- package/imagemagick/imagemagick.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 5/7 package/libvips: add optional support for libheif
In reply to Bernd Kuhls--- package/libvips/libvips.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/libvips/libvips.mk +7 -0
@@ -132,6 +132,13 @@ else LIBVIPS_CONF_OPTS += --without-libexif endif +ifeq ($(BR2_PACKAGE_LIBHEIF),y) +LIBVIPS_CONF_OPTS += --with-heif +LIBVIPS_DEPENDENCIES += libheif +else +LIBVIPS_CONF_OPTS += --without-heif +endif + ifeq ($(BR2_PACKAGE_WEBP_DEMUX)$(BR2_PACKAGE_WEBP_MUX),yy) LIBVIPS_CONF_OPTS += --with-libwebp LIBVIPS_DEPENDENCIES += webp
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedRe: [Buildroot] [PATCH 5/7] package/libvips: add optional support for libheif
Quoted 4 lines · On Sat, 8 Jul 2023 22:04:45 +0200 Bernd Kuhls <[email protected]> wrote:
Signed-off-by Bernd Kuhls <[email protected]>--- package/libvips/libvips.mk | 7 +++++++ 1 file changed, 7 insertions(+)
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 6/7 package/kodi-imagedecoder-heif: new package
In reply to Bernd Kuhls--- package/kodi-imagedecoder-heif/Config.in | 9 +++++++++ .../kodi-imagedecoder-heif.hash | 3 +++ .../kodi-imagedecoder-heif.mk | 13 +++++++++++++ package/kodi/Config.in | 4 ++++ 4 files changed, 29 insertions(+) create mode 100644 package/kodi-imagedecoder-heif/Config.in create mode 100644 package/kodi-imagedecoder-heif/kodi-imagedecoder-heif.hash create mode 100644 package/kodi-imagedecoder-heif/kodi-imagedecoder-heif.mk
package/kodi-imagedecoder-heif/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_KODI_IMAGEDECODER_HEIF + bool "kodi-imagedecoder-heif" + select BR2_PACKAGE_LIBDE265 + select BR2_PACKAGE_LIBHEIF + select BR2_PACKAGE_TINYXML2 + help + HEIF image decoder add-on for Kodi + + https://github.com/xbmc/imagedecoder.heif
package/kodi-imagedecoder-heif/kodi-imagedecoder-heif.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed +sha256 17f50aada11528c02db2ff3871a355c89709ab7e2a5e6b5e33957b790cf207ff kodi-imagedecoder-heif-20.1.0-Nexus.tar.gz +sha256 310782e1abd43c4de6217c513e328bddf999d39302d67c6e05b10a59959827af LICENSE.md
package/kodi-imagedecoder-heif/kodi-imagedecoder-heif.mk new file +13 -0
@@ -0,0 +1,13 @@ +################################################################################ +# +# kodi-imagedecoder-heif +# +################################################################################ + +KODI_IMAGEDECODER_HEIF_VERSION = 20.1.0-Nexus +KODI_IMAGEDECODER_HEIF_SITE = $(call github,xbmc,imagedecoder.heif,$(KODI_IMAGEDECODER_HEIF_VERSION)) +KODI_IMAGEDECODER_HEIF_LICENSE = GPL-2.0+ +KODI_IMAGEDECODER_HEIF_LICENSE_FILES = LICENSE.md +KODI_IMAGEDECODER_HEIF_DEPENDENCIES = kodi libde265 libheif tinyxml2 + +$(eval $(cmake-package))
package/kodi/Config.in +4 -0
@@ -290,6 +290,10 @@ menu "Audio encoder addons" source "package/kodi-audioencoder-wav/Config.in" endmenu +menu "Image decoder addons" + source "package/kodi-imagedecoder-heif/Config.in" +endmenu + menu "Peripheral addons" source "package/kodi-peripheral-joystick/Config.in" source "package/kodi-peripheral-xarcade/Config.in"
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedRe: [Buildroot] [PATCH 6/7] package/kodi-imagedecoder-heif: new package
Quoted 10 lines · On Sat, 8 Jul 2023 22:04:46 +0200 Bernd Kuhls <[email protected]> wrote:
Signed-off-by Bernd Kuhls <[email protected]>--- package/kodi-imagedecoder-heif/Config.in | 9 +++++++++ .../kodi-imagedecoder-heif.hash | 3 +++ .../kodi-imagedecoder-heif.mk | 13 +++++++++++++ package/kodi/Config.in | 4 ++++ 4 files changed, 29 insertions(+) create mode 100644 package/kodi-imagedecoder-heif/Config.in create mode 100644 package/kodi-imagedecoder-heif/kodi-imagedecoder-heif.hash create mode 100644 package/kodi-imagedecoder-heif/kodi-imagedecoder-heif.mk
Applied to master, after adding the missing "depends on" in the Config.in file as well as the Config.in comment.
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 7/7 package/kodi-imagedecoder-raw: new package
In reply to Bernd Kuhls--- package/kodi-imagedecoder-raw/Config.in | 9 +++++++++ .../kodi-imagedecoder-raw.hash | 3 +++ .../kodi-imagedecoder-raw/kodi-imagedecoder-raw.mk | 13 +++++++++++++ package/kodi/Config.in | 1 + 4 files changed, 26 insertions(+) create mode 100644 package/kodi-imagedecoder-raw/Config.in create mode 100644 package/kodi-imagedecoder-raw/kodi-imagedecoder-raw.hash create mode 100644 package/kodi-imagedecoder-raw/kodi-imagedecoder-raw.mk
package/kodi-imagedecoder-raw/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_KODI_IMAGEDECODER_RAW + bool "kodi-imagedecoder-raw" + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LCMS2 + select BR2_PACKAGE_LIBRAW + help + RAW image decoder add-on for Kodi + + https://github.com/xbmc/imagedecoder.raw
package/kodi-imagedecoder-raw/kodi-imagedecoder-raw.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed +sha256 6235c0be431bbb814b3e464753af9ad17febf6001f77cbf030e6c6e1cdc41a04 kodi-imagedecoder-raw-20.1.0-Nexus.tar.gz +sha256 310782e1abd43c4de6217c513e328bddf999d39302d67c6e05b10a59959827af LICENSE.md
package/kodi-imagedecoder-raw/kodi-imagedecoder-raw.mk new file +13 -0
@@ -0,0 +1,13 @@ +################################################################################ +# +# kodi-imagedecoder-raw +# +################################################################################ + +KODI_IMAGEDECODER_RAW_VERSION = 20.1.0-Nexus +KODI_IMAGEDECODER_RAW_SITE = $(call github,xbmc,imagedecoder.raw,$(KODI_IMAGEDECODER_RAW_VERSION)) +KODI_IMAGEDECODER_RAW_LICENSE = GPL-2.0+ +KODI_IMAGEDECODER_RAW_LICENSE_FILES = LICENSE.md +KODI_IMAGEDECODER_RAW_DEPENDENCIES = kodi jpeg lcms2 libraw + +$(eval $(cmake-package))
package/kodi/Config.in +1 -0
@@ -292,6 +292,7 @@ endmenu menu "Image decoder addons" source "package/kodi-imagedecoder-heif/Config.in" + source "package/kodi-imagedecoder-raw/Config.in" endmenu menu "Peripheral addons"
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedRe: [Buildroot] [PATCH 7/7] package/kodi-imagedecoder-raw: new package
Quoted 10 lines · On Sat, 8 Jul 2023 22:04:47 +0200 Bernd Kuhls <[email protected]> wrote:
Signed-off-by Bernd Kuhls <[email protected]>--- package/kodi-imagedecoder-raw/Config.in | 9 +++++++++ .../kodi-imagedecoder-raw.hash | 3 +++ .../kodi-imagedecoder-raw/kodi-imagedecoder-raw.mk | 13 +++++++++++++ package/kodi/Config.in | 1 + 4 files changed, 26 insertions(+) create mode 100644 package/kodi-imagedecoder-raw/Config.in create mode 100644 package/kodi-imagedecoder-raw/kodi-imagedecoder-raw.hash create mode 100644 package/kodi-imagedecoder-raw/kodi-imagedecoder-raw.mk
Applied to master after adding "depends on" + Config.in comment. Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedQuoted 13 lines · On Sat, 8 Jul 2023 22:04:41 +0200 Bernd Kuhls <[email protected]> wrote:
Optional dependency of the upcoming libheif package.
Signed-off-by Bernd Kuhls <[email protected]>--- DEVELOPERS | 1 + package/Config.in | 1 + package/libde265/Config.in | 12 ++++++++++++ package/libde265/libde265.hash | 3 +++ package/libde265/libde265.mk | 13 +++++++++++++ 5 files changed, 30 insertions(+) create mode 100644 package/libde265/Config.in create mode 100644 package/libde265/libde265.hash create mode 100644 package/libde265/libde265.mk
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot