Skip to contentSkip to conversation

physfs: upgrade 3.0.2 -> latest revision

PATCH New Gyorgy Sarvari 1 participant 6 messages Dec 27, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 physfs: upgrade 3.0.2 -> latest revision

License-Update: small formatting changes and copyright year update. License hasn't changed.

The previous version of the recipe, 3.0.2 was released in 2019. The last release, 3.2.0 was done in 2022.
However the project is still actively developed (it just moved to Github) - fetch the latest revision, at least until there is a new release.

Shortlog:
https://github.com/icculus/physfs/commits/main?since=2019-03-19&until=2025-12-26

---
 .../0001-allow-build-with-cmake-4.patch       | 43 -------------------
 .../recipes-support/physfs/physfs_3.0.2.bb    | 16 -------
 .../recipes-support/physfs/physfs_3.2.0.bb    | 19 ++++++++
 3 files changed, 19 insertions(+), 59 deletions(-)
 delete mode 100644 meta-filesystems/recipes-support/physfs/physfs/0001-allow-build-with-cmake-4.patch
 delete mode 100644 meta-filesystems/recipes-support/physfs/physfs_3.0.2.bb
 create mode 100644 meta-filesystems/recipes-support/physfs/physfs_3.2.0.bb
meta-filesystems/recipes-support/physfs/physfs/0001-allow-build-with-cmake-4.patch deleted +0 -43
deleted file mode 100644
index 1584921e65..0000000000
@@ -1,43 +0,0 @@
-From 09f8ca5776f5265571d95454b7307bbee56474da Mon Sep 17 00:00:00 2001
-From: Alper Ak <[email protected]>
-Date: Thu, 10 Jul 2025 13:19:24 +0300
-Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
- compatibility
-
-Fix:
-
-| CMake Error at CMakeLists.txt:12 (cmake_minimum_required):
-|   Compatibility with CMake < 3.5 has been removed from CMake.
-|
-|   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
-|   to tell CMake that the project requires at least <min> but has been updated
-|   to work with policies introduced by <max> or earlier.
-|
-|   Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-|
-|
-| -- Configuring incomplete, errors occurred!
-
-Upstream-Status: Backport [https://github.com/icculus/physfs/commit/f7d24ce8486d9229207cca1ff98858fe60ffe583]
-
-Signed-off-by: Alper Ak <[email protected]>
----
- CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 4a67c27..f0f0183 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -9,7 +9,7 @@
- #  compile, using preprocessor checks for platform-specific bits instead of
- #  testing in here.
- 
--cmake_minimum_required(VERSION 2.8.4)
-+cmake_minimum_required(VERSION 3.5)
- 
- project(PhysicsFS)
- set(PHYSFS_VERSION 3.0.2)
--- 
-2.43.0
-
meta-filesystems/recipes-support/physfs/physfs_3.0.2.bb deleted +0 -16
deleted file mode 100644
index 2571d3f6a0..0000000000
@@ -1,16 +0,0 @@
-SUMMARY = "PhysicsFS is a library to provide abstract access to various archives"
-HOMEPAGE = "http://icculus.org/physfs"
-LICENSE = "Zlib"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=96801882d1120239dcafbf888e821a6e"
-DEPENDS = "readline zlib"
-
-inherit cmake
-
-PE = "1"
-
-SRC_URI = "http://icculus.org/${BPN}/downloads/${BP}.tar.bz2 \
-        file://0001-allow-build-with-cmake-4.patch"
-SRC_URI[md5sum] = "dc751294aaf59d1359bbe34e693d1d87"
-SRC_URI[sha256sum] = "304df76206d633df5360e738b138c94e82ccf086e50ba84f456d3f8432f9f863"
-
-EXTRA_OECMAKE = "-DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')}"
meta-filesystems/recipes-support/physfs/physfs_3.2.0.bb new file +19 -0
new file mode 100644
index 0000000000..958dde8902
@@ -0,0 +1,19 @@
+SUMMARY = "PhysicsFS is a library to provide abstract access to various archives"
+HOMEPAGE = "http://icculus.org/physfs"
+LICENSE = "Zlib"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e64c08153665a18b56559d0683a64909"
+DEPENDS = "readline zlib"
+
+inherit cmake
+
+PE = "1"
+PV .= "+git"
+
+SRC_URI = "git://github.com/icculus/physfs.git;protocol=https;branch=main"
+SRCREV = "d70c3fcf06814f8608c8327d3e8136063ee0133d"
+
+do_install:append(){
+    sed -i 's|${RECIPE_SYSROOT}|\$\{CMAKE_SYSROOT\}|g' ${D}${libdir}/cmake/PhysFS/PhysFS-static-targets.cmake
+}
+
+FILES:${PN} += "${datadir}/licenses/PhysicsFS3"
#1 lore raw

PATCH 2/6 exfatprogs: add ptest support

It takes about a second to execute the suite.

Sample output (the "ERRORs" are coming from negative tests):

root@qemux86-64:~# ptest-runner
START: ptest-runner
2025-12-26T20:19
BEGIN: /usr/lib/exfatprogs/ptest
Running ./bad_file_size
-----------------------------------
exfatprogs version : 1.2.6
ERROR: /dir_01/bad_child_01: less clusters are allocated. truncates to 8192 bytes at 0x206060. Truncate (y/N)? y
ERROR: /dir_02/bad_child_02: more clusters are allocated. truncate to 8192 bytes at 0x209060. Truncate (y/N)? y
exfat.img: clean. directories 3, files 9
exfat.img: files corrupted 0, files fixed 1

exfatprogs version : 1.2.6
exfat.img: clean. directories 4, files 10

PASS: ./bad_file_size
[...many lines...]
PASS: ./bad_num_chain
Running ./loop_chain
-----------------------------------
exfatprogs version : 1.2.6
ERROR: /dir_01/bad_child_01: more clusters are allocated. truncate to 16384 bytes at 0x206060. Truncate (y/N)? y
ERROR: /dir_02/bad_child_02: cluster is already allocated for the other file. truncated to 8192 bytes at 0x209060. Truncate (y/N)? y exfat.img: clean. directories 3, files 9
exfat.img: files corrupted 0, files fixed 1

exfatprogs version : 1.2.6
exfat.img: clean. directories 4, files 10

PASS: ./loop_chain

PASS: 17 of 17
DURATION: 1
END: /usr/lib/exfatprogs/ptest
2025-12-26T20:21
STOP: ptest-runner
TOTAL: 1 FAIL: 0

---
 .../include/ptest-packagelists-meta-filesystems.inc  |  1 +
 .../recipes-utils/exfatprogs/exfatprogs/run-ptest    |  3 +++
 .../recipes-utils/exfatprogs/exfatprogs_1.2.6.bb     | 12 ++++++++++--
 3 files changed, 14 insertions(+), 2 deletions(-)
 create mode 100644 meta-filesystems/recipes-utils/exfatprogs/exfatprogs/run-ptest
meta-filesystems/conf/include/ptest-packagelists-meta-filesystems.inc +1 -0
index 3dc6986d6f..26917a93c9 100644
@@ -8,6 +8,7 @@
 
 PTESTS_FAST_META_FILESYSTEMS = "\
     e2tools \
+    exfatprogs \
     unionfs-fuse \
 "
 
meta-filesystems/recipes-utils/exfatprogs/exfatprogs/run-ptest new file +3 -0
new file mode 100644
index 0000000000..337f2029dd
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd tests
+./test_fsck.sh
meta-filesystems/recipes-utils/exfatprogs/exfatprogs_1.2.6.bb +10 -2
index 39411b4cee..8e7d86f307 100644
@@ -11,14 +11,22 @@ SECTION = "universe/otherosfs"
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz"
+SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz \
+           file://run-ptest"
 SRC_URI[sha256sum] = "89d05b7a9537f2413079b724ec8d02d7a2e291c29c52e7256303e9456200fb0f"
 
 UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
 UPSTREAM_CHECK_REGEX = "${BPN}-(?P<pver>\d+(\.\d+)+)"
 
-inherit autotools
+inherit autotools ptest
 
 RPROVIDES:${PN} = "exfat-utils"
 RCONFLICTS:${PN} = "exfat-utils"
 RREPLACES:${PN} = "exfat-utils"
+RDEPENDS:${PN}-ptest += "bash xz"
+
+do_install_ptest(){
+    cp -r ${S}/tests ${D}${PTEST_PATH}
+    sed -i "s,Passed,PASS:," ${D}${PTEST_PATH}/tests/test_fsck.sh
+    sed -i "s,Failed,FAIL:," ${D}${PTEST_PATH}/tests/test_fsck.sh
+}
#2 lore raw

PATCH 3/6 overlayfs-tools: upgrade 2024.07 -> 2025.01

In reply to Gyorgy Sarvari

Drop the patches that were merged in this release.

Shortlog:
show why files can't be open using errno
Fix memory free
Allow force to execute script, and keep upper dir while merge Fix broken long option for ignore
Change program_name to have const attribute
always use glibc basename()

---
 .../0001-always-use-glibc-basename.patch      | 38 -------------
 ...program_name-to-have-const-attribute.patch | 56 -------------------
 ...2024.07.bb => overlayfs-tools_v2025.01.bb} |  7 +--
 3 files changed, 2 insertions(+), 99 deletions(-)
 delete mode 100644 meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0001-always-use-glibc-basename.patch
 delete mode 100644 meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0002-Change-program_name-to-have-const-attribute.patch
 rename meta-filesystems/recipes-utils/overlayfs/{overlayfs-tools_v2024.07.bb => overlayfs-tools_v2025.01.bb} (64%)
meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0001-always-use-glibc-basename.patch deleted +0 -38
deleted file mode 100644
index 78802e39ab..0000000000
@@ -1,38 +0,0 @@
-From 2fa94fc7adf05fae46204f4665216c8b019010f3 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Fri, 5 Jul 2024 23:16:38 -0700
-Subject: [PATCH 1/2] always use glibc basename()
-
-There is a use of basename() which expects it to be GNU version of
-basename, which is not available in other libcs e.g. musl on Linux
-therefore provide a version for such cases
-
-Upstream-Status: Submitted [https://github.com/kmxz/overlayfs-tools/pull/26]
-Signed-off-by: Khem Raj <[email protected]>
----
- main.c | 12 ++++++++++++
- 1 file changed, 12 insertions(+)
-
-diff --git a/main.c b/main.c
-index 7b669eb..ea0f5a5 100644
---- a/main.c
-+++ b/main.c
-@@ -30,6 +30,18 @@ bool brief;
- bool ignore;
- extern char *program_name;
- 
-+#ifndef __GLIBC__
-+/*
-+ * GNU basename implementation
-+ */
-+static const char *__basename(const char *filename) {
-+    char *p = strrchr(filename, '/');
-+    return p ? p + 1 : filename;
-+}
-+
-+#define basename(x) __basename(x)
-+#endif
-+
- void print_help(const char *program) {
-     printf("Usage: %s command options\n", program);
-     puts("");
meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0002-Change-program_name-to-have-const-attribute.patch deleted +0 -56

56 lines not on this page · raw message

meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_v2025.01.bb renamed from meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_v2024.07.bb +2 -5
similarity index 64%
rename from meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_v2024.07.bb
rename to meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_v2025.01.bb
index 708bbfcf02..c83233a9a0 100644
@@ -4,13 +4,10 @@ LICENSE = "WTFPL"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f312a7c4d02230e8f2b537295d375c69"
 
 SRC_URI = "\
-    git://github.com/kmxz/overlayfs-tools.git;protocol=https;branch=master \
-    file://0001-always-use-glibc-basename.patch \
-    file://0002-Change-program_name-to-have-const-attribute.patch \
+    git://github.com/kmxz/overlayfs-tools.git;protocol=https;branch=master;tag=${PV} \
 "
 
-SRCREV = "7a4a0c4f2c6c86aa46a40e3468e394fd4a237491"
-
+SRCREV = "6e925bbbe747fbb58bc4a95a646907a2101741f6"
 
 inherit meson pkgconfig
 
#3 lore raw

PATCH 4/6 ncp: update SRC_URI

In reply to Gyorgy Sarvari

The https link does not work anymore, it just refuses the connection. http still works though.

---
 meta-networking/recipes-support/ncp/ncp_1.2.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/ncp/ncp_1.2.4.bb +1 -1
index 516beede5f..ec6d918744 100644
@@ -7,7 +7,7 @@ LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
 DEPENDS = "libowfat"
 
-SRC_URI = "https://dl.fefe.de/${BP}.tar.bz2"
+SRC_URI = "http://dl.fefe.de/${BP}.tar.bz2"
 SRC_URI[md5sum] = "421c4855bd3148b7d0a4342942b4bf13"
 SRC_URI[sha256sum] = "6cfa72edd5f7717bf7a4a93ccc74c4abd89892360e2e0bb095a73c24b9359b88"
 
#4 lore raw

PATCH 5/6 libowfat: update SRC_URI

In reply to Gyorgy Sarvari

The https link does not work anymore, it just refuses the connection. http still works though.

---
 meta-networking/recipes-support/ncp/libowfat_0.32.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/ncp/libowfat_0.32.bb +1 -1
index cc67d9aefa..2f00da34c5 100644
@@ -6,7 +6,7 @@ HOMEPAGE = "http://www.fefe.de/libowfat"
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
 
-SRC_URI = "https://www.fefe.de/${BPN}/${BP}.tar.xz \
+SRC_URI = "http://www.fefe.de/${BPN}/${BP}.tar.xz \
            file://0001-Depend-on-haveuint128.h-for-umult64.c.patch \
            file://0001-replace-__pure__-with-compiler-attribute-pure.patch \
            file://0001-fix-incompatible-type-error-with-gcc-15.patch \
#5 lore raw

PATCH 6/6 tigervnc: compare vendored xserver version to oe-core's xserver

In reply to Gyorgy Sarvari

TigerVNC compiles its own xserver from a separate tarball, it doesn't use oe-core's xserver for most of the compilation.

The vendored xserver code should be still kept in sync with oe-core to minimize incompatibilities, feature and bug-discrepepancies (...)

However it is easy to miss when xserver is updated in oe-core, TigerVNC's xserver gets out of sync frequently.

This change adds a small check before do_configure that compares the vendored and oe-core's xserver version, and issues a warning if TigerVNC recipe needs to be synced to oe-core.

---
 meta-oe/recipes-graphics/tigervnc/tigervnc_1.15.0.bb | 10 ++++++++++
 1 file changed, 10 insertions(+)
meta-oe/recipes-graphics/tigervnc/tigervnc_1.15.0.bb +10 -0
index 53832939e1..dd4957fe6e 100644
@@ -44,6 +44,16 @@ do_patch_xserver () {
     patch -p1 -b --suffix .vnc --directory ${XSERVER_SOURCE_DIR} <${S}/unix/xserver21.patch
 }
 
+# It is very easy to miss xserver updates in oe-core, and this recipe's xserver
+# gets out of sync due to this. Hopefully this warning will help.
+do_configure[prefuncs] += "do_verify_xserver_version"
+do_verify_xserver_version() {
+    OE_CORE_XSERVER_VERSION=$(pkg-config --modversion xorg-server)
+    if [ "$OE_CORE_XSERVER_VERSION" != "${XORG_PV}" ]; then
+        bbwarn "TigerVNC xorg-server version (${XORG_PV}) is different from oe-core's xorg-xserver version ($OE_CORE_XSERVER_VERSION)"
+    fi
+}
+
 EXTRA_OECONF = "--disable-xorg --disable-xnest --disable-xvfb \
         --disable-xwin --disable-xephyr --disable-kdrive --with-pic \
         --disable-static --disable-xinerama \