Skip to contentSkip to conversation

cmark: upgrade 0.30.2 -> 0.30.3

PATCH New Gyorgy Sarvari 1 participant 9 messages Sep 19, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/9 cmark: upgrade 0.30.2 -> 0.30.3

From: Wang Mingyu <[email protected]>

Changelog:
===========
* Fix quadratic complexity bug with repeated '![[]()'.

    Resolves CVE-2023-22486. Add new pathological test.

* Allow declarations with no space, as per spec

* Set 'enumi*' counter correctly in LaTeX output

* Allow '<!DOCTYPE' to be case-insensitive.
existing spec.)

* Fixed HTML comment scanning. Need to handle this case: '<!--> and -->'. Since the scanner finds the longest match, we had to
move some of the logic outside of the scanner.

* Fix quadratic parsing issue with repeated '<!--' (this was not introduced by the previous fix, and not in a released version of cmark). Resolves CVE-2023-22484. Add new pathological test.

* Update HTML comment scanner to accord with commonmark/commonmark-spec#713

* Pathological tests: half the number of repetitions, and the timeout. This reduces the time needed for the pathological tests.

* Shrink 'struct cmark_node' (#446). The 'internal_offset' member is only used for headings and can be moved to 'struct cmark_heading'. This reduces the size of 'struct cmark_node' from 112 to 104 bytes on 64-bit systems.

* Add '-Wstrict-prototypes' and fix offending functions.

* Fix quadratic behavior involving 'get_containing_block' (#431). Instead of searching for the containing block, update the tight list status when entering a child of a list item or exiting a list.

* Fix 'pathological_tests.py'
- Use a multiprocessing.Queue to actually get results from spawned tests processes.
- Fix the 'allowed_failures' test.
- Truncate actual output when printed.
- Prepare for testing pathological behavior of the Commonmark renderer.

* Fix source position bug with backticks

(cherry picked from commit 69aea3d8f7d84b4214948c0553fe1744f254bbf6)
---
 .../recipes-support/cmark/{cmark_0.30.2.bb => cmark_0.30.3.bb}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-support/cmark/{cmark_0.30.2.bb => cmark_0.30.3.bb} (89%)
meta-oe/recipes-support/cmark/cmark_0.30.3.bb renamed from meta-oe/recipes-support/cmark/cmark_0.30.2.bb +1 -1
similarity index 89%
rename from meta-oe/recipes-support/cmark/cmark_0.30.2.bb
rename to meta-oe/recipes-support/cmark/cmark_0.30.3.bb
index 6d6d3e5850..6697dfe07f 100644
@@ -4,7 +4,7 @@ LICENSE = "BSD-2-Clause & MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=81f9cae6293cc0345a9144b78152ab62"
 
 SRC_URI = "git://github.com/commonmark/cmark.git;branch=master;protocol=https"
-SRCREV = "a8da5a2f252b96eca60ae8bada1a9ba059a38401"
+SRCREV = "5ba25ff40eba44c811f79ab6a792baf945b8307c"
 S = "${WORKDIR}/git"
 
 inherit cmake lib_package
#1 lore raw

PATCH 2/9 colord: upgrade 1.4.5 -> 1.4.6

From: Wang Mingyu <[email protected]>

Changelog:
==========
Bugfixes:
- Add missing copyright notices
- Add Spyder X entry
- Document where to send patches
- Don't use exact floating point comparisons
- Drop option for removed reverse engineering tools
- Drop references to hughski.com
- Fix a small memory leak in sqlite3_exec()
- Fix typo in device-removed signal documentation
- Make introspection optional in meson

(cherry picked from commit 706cfeb2504ebec37872e6ee051a5b07385412b7)
---
 meta-oe/recipes-support/colord/colord.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-support/colord/colord.inc +2 -2
index 41962cd63c..0ae1a30fe6 100644
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = " \
     file://meson.build;beginline=3;endline=3;md5=f42198707d793be58b274d34fd5238c3 \
 "
 
-PV = "1.4.5"
+PV = "1.4.6"
 SRC_URI = "https://www.freedesktop.org/software/colord/releases/${BPN}-${PV}.tar.xz"
-SRC_URI[sha256sum] = "b774ea443d239f4a2ee1853bd678426e669ddeda413dcb71cea1638c4d6c5e17"
+SRC_URI[sha256sum] = "7407631a27bfe5d1b672e7ae42777001c105d860b7b7392283c8c6300de88e6f"
 
#2 lore raw

PATCH 3/9 colord-native: upgrade 1.4.6 -> 1.4.7

In reply to Gyorgy Sarvari

From: Wang Mingyu <[email protected]>

0001-Move-the-function-cd_icc_create_from_edid-to-avoid-u.patch refreshed for 1.4.7

Changelog:
===========
- Add various hardenings to the systemd service
- Always close the ICC profile when loading fails
- Avoid destructing LCMS plugin twice with lcms 2.14
- Do not make state files executable in tmpfiles.d/colord.conf
- Fix a double free spotted by Coverity
- Fix an error check when parsing the DTP94 data
- Fix a -Wincompatible-pointer-types warning
- Fix potential crash when reading from broken Huey hardware
- Set FILE_OFFSET_BITS explicitly
- Use a 64-bit time_t
- Use thread context for Gamut Alarm codes

(cherry picked from commit f016f77796504de03a4148a13383fd9fd5754a73)
---
 ...the-function-cd_icc_create_from_edid-to-avoid-u.patch | 9 +++------
 meta-oe/recipes-support/colord/colord.inc                | 4 ++--
 2 files changed, 5 insertions(+), 8 deletions(-)
meta-oe/recipes-support/colord/colord-native/0001-Move-the-function-cd_icc_create_from_edid-to-avoid-u.patch +3 -6
index aae2be8c1e..a120b73114 100644
@@ -1,4 +1,4 @@
-From cbb8f5c05fce1d56ae2e5fa9f57fc49c47bed5ab Mon Sep 17 00:00:00 2001
+From d16aed3118bee1e0a7d0bc9e0f34c427a405a6d8 Mon Sep 17 00:00:00 2001
 From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
 Date: Sun, 12 May 2019 21:58:02 +0200
 Subject: [PATCH] Move the function cd_icc_create_from_edid to avoid udev
@@ -89,10 +89,10 @@ index a5e2328..dec509a 100644
 +}
 +
 diff --git a/lib/colord/cd-icc.c b/lib/colord/cd-icc.c
-index 8beec43..398ff7a 100644
+index 3937d8a..daf6f4d 100644
 --- a/lib/colord/cd-icc.c
 +++ b/lib/colord/cd-icc.c
-@@ -3114,68 +3114,6 @@ cd_icc_create_default (CdIcc *icc, GError **error)
+@@ -3117,68 +3117,6 @@ cd_icc_create_default (CdIcc *icc, GError **error)
  	return cd_icc_create_default_full (icc, CD_ICC_LOAD_FLAGS_NONE, error);
  }
  
@@ -161,6 +161,3 @@ index 8beec43..398ff7a 100644
  /**
   * cd_icc_create_from_edid:
   * @icc: A valid #CdIcc
--- 
-2.20.1
-
meta-oe/recipes-support/colord/colord.inc +2 -2
index 0ae1a30fe6..cafbaaa696 100644
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = " \
     file://meson.build;beginline=3;endline=3;md5=f42198707d793be58b274d34fd5238c3 \
 "
 
-PV = "1.4.6"
+PV = "1.4.7"
 SRC_URI = "https://www.freedesktop.org/software/colord/releases/${BPN}-${PV}.tar.xz"
-SRC_URI[sha256sum] = "7407631a27bfe5d1b672e7ae42777001c105d860b7b7392283c8c6300de88e6f"
+SRC_URI[sha256sum] = "de02d9910634ae159547585cec414e450f711c27235453b4f9b38a9f2361a653"
 
#3 lore raw

PATCH 4/9 ctapi-common: Point to working SRC_URI locations

In reply to Gyorgy Sarvari

From: Khem Raj <[email protected]>

Drop md5sum checksum

(cherry picked from commit 7687cb73b26e09c566adecb4e5ac71a270800004)
---
 .../recipes-support/ctapi-common/ctapi-common_1.1-14.bb    | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
meta-oe/recipes-support/ctapi-common/ctapi-common_1.1-14.bb +3 -4
index 25d5b09e7f..b7a9d3e936 100644
@@ -4,10 +4,9 @@ SECTION = "System Environment/Libraries"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://../ctapi-common.LICENSE;md5=8744cd52545ecb45befebd0da6f70f0a"
 
-SRC_URI = "http://ftp.riken.jp/Linux/fedora/releases/23/Everything/source/SRPMS/c/${BPN}-${PV}.fc23.src.rpm;extract=ctapi-common.LICENSE \
-           http://ftp.riken.jp/Linux/fedora/releases/23/Everything/source/SRPMS/c/${BPN}-${PV}.fc23.src.rpm;extract=ctapi-common.README"
-SRC_URI[md5sum] = "5b7259ef1c8cd9ae801fca7a5cb548c1"
-SRC_URI[sha256sum] = "87a74eb0a66055c34ba2c5c919e74f3211c5950ae1c2cbab967fdf4137f5de91"
+SRC_URI = "https://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux/autoimports/Sisyphus/x86_64/SRPMS.autoimports/ctapi-common-1.1-alt1_14.src.rpm;extract=ctapi-common.LICENSE \
+           https://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux/autoimports/Sisyphus/x86_64/SRPMS.autoimports/ctapi-common-1.1-alt1_14.src.rpm;extract=ctapi-common.README"
+SRC_URI[sha256sum] = "0531a6db39271166f1e9060f81a0b2d47f878210dfb4f465c703fe205cc3a8ce"
 
 do_compile() {
     install -pm 644 ${WORKDIR}/ctapi-common.LICENSE LICENSE
#4 lore raw

PATCH 5/9 ctapi-common: Use archives.fedoraproject.org to fetch srpm

In reply to Gyorgy Sarvari

From: Khem Raj <[email protected]>

This is a better place to fetch the srpm as it is fedora's location

(cherry picked from commit e36553fcd9b98889fc356a2517645c030f8315e9)
---
 meta-oe/recipes-support/ctapi-common/ctapi-common_1.1-14.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-oe/recipes-support/ctapi-common/ctapi-common_1.1-14.bb +3 -3
index b7a9d3e936..0e994d8b09 100644
@@ -4,9 +4,9 @@ SECTION = "System Environment/Libraries"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://../ctapi-common.LICENSE;md5=8744cd52545ecb45befebd0da6f70f0a"
 
-SRC_URI = "https://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux/autoimports/Sisyphus/x86_64/SRPMS.autoimports/ctapi-common-1.1-alt1_14.src.rpm;extract=ctapi-common.LICENSE \
-           https://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux/autoimports/Sisyphus/x86_64/SRPMS.autoimports/ctapi-common-1.1-alt1_14.src.rpm;extract=ctapi-common.README"
-SRC_URI[sha256sum] = "0531a6db39271166f1e9060f81a0b2d47f878210dfb4f465c703fe205cc3a8ce"
+SRC_URI = "https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/23/Everything/source/SRPMS/c/${BPN}-${PV}.fc23.src.rpm;extract=ctapi-common.LICENSE \
+           https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/23/Everything/source/SRPMS/c/${BPN}-${PV}.fc23.src.rpm;extract=ctapi-common.README"
+SRC_URI[sha256sum] = "87a74eb0a66055c34ba2c5c919e74f3211c5950ae1c2cbab967fdf4137f5de91"
 
 do_compile() {
     install -pm 644 ${WORKDIR}/ctapi-common.LICENSE LICENSE
#5 lore raw

PATCH 6/9 fltk-native: fix libdl link issue

In reply to Gyorgy Sarvari

From: Kai Kang <[email protected]>

It fails to build fltk-native on Ubuntu 20.04 with glibc 2.31:

| /path_to/tmp/hosttools/ld: lib/libfltk.a(Fl_Native_File_Chooser.cxx.o): in function `fl_dlopen(char const*, char const*)':
| Fl_Native_File_Chooser.cxx:(.text+0x61a): undefined reference to `dlopen'
| /path_to/tmp/hosttools/ld: lib/libfltk.a(Fl_Native_File_Chooser.cxx.o): in function `Fl_GTK_File_Chooser::probe_for_GTK_libs()':
| Fl_Native_File_Chooser.cxx:(.text+0xf92): undefined reference to `dlerror'

The original fix in fltk-native recipe does not work any more because '-ldl' appears before lib/libfltk.a and causes dlopen() unresolved. The reason why it doesn't fail on other hosts is that the functions dlopen(), dlerror() etc. have been moved to libc.so since glibc 2.34 via the commits in glibc:

0c1c3a771e dlfcn: Move dlopen into libc
add8d7ea01 dlfcn: Move dlvsym into libc
6dfc0207eb dlfcn: Move dlinfo into libc
492560a32e dlfcn: Move dladdr1 into libc
6a1ed32789 dlfcn: Move dlmopen into libc
77f876c0e3 dlfcn: Move dlsym into libc
602252b553 dlfcn: Move dladdr into libc
d8cce17d2a dlfcn: Move dlclose into libc

Append 'dl' to fltk link items explictly to fix the error.

(cherry picked from commit e3606c223e8195dc57a41c64ca670958f1809d6f)
---
 meta-oe/recipes-support/fltk/fltk-native.bb   |  5 +--
 .../fltk/fltk/fltk-native-link-libdl.patch    | 44 +++++++++++++++++++
 2 files changed, 46 insertions(+), 3 deletions(-)
 create mode 100644 meta-oe/recipes-support/fltk/fltk/fltk-native-link-libdl.patch
meta-oe/recipes-support/fltk/fltk-native.bb +2 -3
index 8d3992a6ec..3e8e2cdf77 100644
@@ -2,6 +2,8 @@ require ${BPN}.inc
 
 DEPENDS = "zlib-native jpeg-native libpng-native libxext-native libxft-native"
 
+SRC_URI += "file://fltk-native-link-libdl.patch"
+
 inherit native
 
 EXTRA_OECMAKE += " \
@@ -15,9 +17,6 @@ EXTRA_OECMAKE += " \
     -DOPTION_USE_XCURSOR=OFF \
 "
 
-# lib/libfltk.a(Fl_Native_File_Chooser.cxx.o): undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
-LDFLAGS += "-ldl"
-
 do_install:append() {
     # make sure native fltk-config is not used accidentaly
     rm -f ${D}${bindir}/fltk-config
meta-oe/recipes-support/fltk/fltk/fltk-native-link-libdl.patch new file +44 -0

44 lines not on this page · raw message

#6 lore raw

PATCH 7/9 fltk: upgrade 1.3.8 -> 1.3.9

In reply to Gyorgy Sarvari

From: Yi Zhao <[email protected]>

Release Notes:
https://www.fltk.org/articles.php?L1898

(cherry picked from commit 7e124168f9134ab77910f262d3d0b0e49b1c3e4a)
---
 meta-oe/recipes-support/fltk/fltk.inc                         | 4 ++--
 ...Fl_Preferences.cxx-do-not-use-dlopen-in-case-glibc-s.patch | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
meta-oe/recipes-support/fltk/fltk.inc +2 -2
index b1bc83578f..0b2921095c 100644
@@ -11,8 +11,8 @@ SRC_URI = " \
     file://0002-always-build-fluid-and-export-pointers.patch \
 "
 
-PV = "1.3.8"
-SRC_URI[sha256sum] = "1d9832409fc08c908c64ab40ad9fd8b0e8af5d203651eb9690b810f41e2f412d"
+PV = "1.3.9"
+SRC_URI[sha256sum] = "103441134915402808fd45424d4061778609437e804334434e946cfd26b196c2"
 
 inherit cmake pkgconfig
 
meta-oe/recipes-support/fltk/fltk/0001-Fl_Preferences.cxx-do-not-use-dlopen-in-case-glibc-s.patch +1 -0
index e6e68a0cb8..3f18d74c90 100644
@@ -16,6 +16,7 @@ Content-Transfer-Encoding: 8bit
 |                                     ^
 | src/CMakeFiles/fltk.dir/build.make:1217: recipe for target 'src/CMakeFiles/fltk.dir/Fl_Preferences.cxx.o' failed
 
+Upstream-Status: Pending
 Signed-off-by: Andreas Müller <[email protected]>
 ---
  src/Fl_Preferences.cxx | 2 +-
#7 lore raw

PATCH 8/9 gnulib: Update SRC_URI

In reply to Gyorgy Sarvari

From: Mingli Yu <[email protected]>

Update the SRC_URI to fix the do_fetch warning.

(cherry picked from commit 37d158db78cda787a5833c098423650b8caba0fa)
---
 meta-oe/recipes-support/gnulib/gnulib_2018-12-18.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/gnulib/gnulib_2018-12-18.bb +1 -1
index a27968079e..9e09b971c9 100644
@@ -13,7 +13,7 @@ LICENSE = "LGPL-2.0-or-later"
 LIC_FILES_CHKSUM = "file://COPYING;md5=56a22a6e5bcce45e2c8ac184f81412b5"
 SRCREV = "0d6e3307bbdb8df4d56043d5f373eeeffe4cbef3"
 
-SRC_URI = "git://git.savannah.gnu.org/git/gnulib.git;branch=master \
+SRC_URI = "git://git.savannah.gnu.org/git/gnulib.git;branch=master;protocol=https \
 "
 
 S = "${WORKDIR}/git"
#8 lore raw

PATCH 9/9 hddtemp: Add missing prototype for ata_get_powermode in sata.c

In reply to Gyorgy Sarvari

From: Khem Raj <[email protected]>

(cherry picked from commit fdb8bc38b1e959006a0a5d98c84c8443c785e49d)
---
 ...-Declare-ata_get_powermode-prototype.patch | 33 +++++++++++++++++++
 .../hddtemp/hddtemp_0.3-beta15.bb             |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-oe/recipes-support/hddtemp/hddtemp/0001-sata.c-Declare-ata_get_powermode-prototype.patch
meta-oe/recipes-support/hddtemp/hddtemp/0001-sata.c-Declare-ata_get_powermode-prototype.patch new file +33 -0
new file mode 100644
index 0000000000..5703d3c241
@@ -0,0 +1,33 @@
+From c5ca31940d1d1889ef2cc6974c18ff24ab406748 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Wed, 31 Aug 2022 16:42:23 -0700
+Subject: [PATCH] sata.c: Declare ata_get_powermode prototype
+
+Fixes build warnings/errors
+
+sata.c:127:10: error: call to undeclared function 'ata_get_powermode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
+|   switch(ata_get_powermode(dsk->fd))
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/sata.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/sata.c b/src/sata.c
+index d67621f..4172245 100644
+--- a/src/sata.c
++++ b/src/sata.c
+@@ -52,7 +52,8 @@
+                 (((u16)(__x) & (u16)0xff00U) >> 8) )); \
+ })
+ 
+- 
++extern enum e_powermode ata_get_powermode(int device);
++
+ static int sata_probe(int device) {
+   int bus_num;
+   unsigned char cmd[4] = { WIN_IDENTIFY, 0, 0, 1 };
+-- 
+2.37.3
+
meta-oe/recipes-support/hddtemp/hddtemp_0.3-beta15.bb +1 -0
index b4be39feb5..e9d30977fe 100644
@@ -10,6 +10,7 @@ SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/hddtemp/hddtemp-0.3-beta15.tar.bz2 \
            file://hddtemp-0.3-beta15-autodetect-717479.patch \
            file://0001-backtrace-Replace-struct-ucontext-with-ucontext_t.patch \
            file://0001-configure.ac-Rename-to-configure.ac-and-use-external.patch \
+           file://0001-sata.c-Declare-ata_get_powermode-prototype.patch \
            file://hddtemp.db \
            file://init \
 "