forked from buildroot/buildroot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'buildroot/master' into HEAD
- Loading branch information
Showing
12 changed files
with
95 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
package/libheif/0001-libheif-plugins-encoder_jpeg.cc-fix-libjpeg-build.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
From 33eb948240365434c845b618854403e82a229012 Mon Sep 17 00:00:00 2001 | ||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com> | ||
Date: Wed, 31 Jan 2024 21:04:37 +0100 | ||
Subject: [PATCH] libheif/plugins/encoder_jpeg.cc: fix libjpeg build | ||
|
||
Fix the following libjpeg build failure raised since version 1.17.0 and | ||
https://github.com/strukturag/libheif/commit/ebd13a20b8b7f1964939642b08b662ef7e483f39 | ||
because third argument of jpeg_mem_dest is defined as size_t* on libjpeg | ||
instead of unsigned long* on jpeg-turbo: | ||
|
||
/home/buildroot/autobuild/instance-3/output-1/build/libheif-1.17.5/libheif/plugins/encoder_jpeg.cc: In function 'heif_error jpeg_encode_image(void*, const heif_image*, heif_image_input_class)': | ||
/home/buildroot/autobuild/instance-3/output-1/build/libheif-1.17.5/libheif/plugins/encoder_jpeg.cc:366:37: error: invalid conversion from 'long unsigned int*' to 'size_t*' {aka 'unsigned int*'} [-fpermissive] | ||
366 | jpeg_mem_dest(&cinfo, &outbuffer, &outlength); | ||
| ^~~~~~~~~~ | ||
| | | ||
| long unsigned int* | ||
|
||
Fix #1008 and #1086 | ||
|
||
Fixes: | ||
- http://autobuild.buildroot.org/results/8ca909564c8dabe28ad08c96ebbc04b25592e727 | ||
|
||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> | ||
Upstream: https://github.com/strukturag/libheif/pull/1120 | ||
--- | ||
libheif/plugins/encoder_jpeg.cc | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git a/libheif/plugins/encoder_jpeg.cc b/libheif/plugins/encoder_jpeg.cc | ||
index d6c7854..21a5541 100644 | ||
--- a/libheif/plugins/encoder_jpeg.cc | ||
+++ b/libheif/plugins/encoder_jpeg.cc | ||
@@ -360,7 +360,11 @@ struct heif_error jpeg_encode_image(void* encoder_raw, const struct heif_image* | ||
} | ||
|
||
uint8_t* outbuffer = nullptr; | ||
+#ifdef LIBJPEG_TURBO_VERSION | ||
unsigned long outlength = 0; | ||
+#else | ||
+ size_t outlength = 0; | ||
+#endif | ||
|
||
jpeg_create_compress(&cinfo); | ||
jpeg_mem_dest(&cinfo, &outbuffer, &outlength); | ||
-- | ||
2.43.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Locally computed | ||
sha256 71ef96c35fced367d6da74da294510ad2c912563f12cd716ab02b6ed10a733ef poco-1.12.4.tar.gz | ||
sha256 c01221870aa9bccedf1de39890279699207848fe61a0cfb6aeec7c5942c4627f poco-1.13.2.tar.gz | ||
sha256 c4b1e1e5f36d8331737231fefcc30f5714326aec7c387ad59a8115eb0ba7d6b5 LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# From https://www.python.org/downloads/release/python-3116/ | ||
md5 d0c5a1a31efe879723e51addf56dd206 Python-3.11.6.tar.xz | ||
# From https://www.python.org/downloads/release/python-3118/ | ||
md5 b353b8433e560e1af2b130f56dfbd973 Python-3.11.8.tar.xz | ||
# Locally computed | ||
sha256 0fab78fa7f133f4f38210c6260d90d7c0d5c7198446419ce057ec7ac2e6f5f38 Python-3.11.6.tar.xz | ||
sha256 9e06008c8901924395bc1da303eac567a729ae012baa182ab39269f650383bb3 Python-3.11.8.tar.xz | ||
sha256 3b2f81fe21d181c499c59a256c8e1968455d6689d269aa85373bfb6af41da3bf LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters