public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/partclone] f45: Upgrade to 0.3.54 (#2571474)
@ 2026-11-16 0:01 Robert Scheck
0 siblings, 0 replies; only message in thread
From: Robert Scheck @ 2026-11-16 0:01 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/partclone
Branch : f45
Commit : db45c9e4497e63bef5671107b4e514328a570cc0
Author : Robert Scheck <robert@fedoraproject.org>
Date : 2026-11-16T01:00:57+01:00
Stats : +80/-75 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/partclone/c/db45c9e4497e63bef5671107b4e514328a570cc0?branch=f45
Log:
Upgrade to 0.3.54 (#2571474)
---
diff --git a/partclone-0.3.52-pthread.patch b/partclone-0.3.52-pthread.patch
deleted file mode 100644
index 32bd6d4..0000000
--- a/partclone-0.3.52-pthread.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From bd518167184d9b3ea8291c99d9fd9f4ee14a4971 Mon Sep 17 00:00:00 2001
-From: Robert Scheck <robert-scheck@users.noreply.github.com>
-Date: Sat, 31 Oct 2026 02:06:36 +0100
-Subject: [PATCH] Fix undefined reference to symbol 'pthread_join@@GLIBC_2.2.5'
- on RHEL 8
-
-Commit b9f9a6e39b0c67fbe80aa2e1d524da24641a386e introduced a build-time failure on
-CentOS/RHEL/Rocky Linux 8, because it ships glibc 2.28, where -lpthread is needed.
-https://developers.redhat.com/articles/2021/12/17/why-glibc-234-removed-libpthread
-provides more information in general.
-
-/usr/bin/ld: partclone_dd-main.o: undefined reference to symbol 'pthread_join@@GLIBC_2.2.5'
-//usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
-collect2: error: ld returned 1 exit status
-
-/usr/bin/ld: partclone_chkimg-main.o: undefined reference to symbol 'pthread_join@@GLIBC_2.2.5'
-//usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
-collect2: error: ld returned 1 exit status
-
-/usr/bin/ld: partclone_imager-main.o: undefined reference to symbol 'pthread_join@@GLIBC_2.2.5'
-//usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
-collect2: error: ld returned 1 exit status
-
-/usr/bin/ld: partclone_hfsp-main.o: undefined reference to symbol 'pthread_join@@GLIBC_2.2.5'
-//usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
-collect2: error: ld returned 1 exit status
----
- configure.ac | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index 97e32bfd..88bcdf3a 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -144,7 +144,7 @@ fuse_version="${fuse_version_major}.${fuse_version_minor}"
- AC_MSG_RESULT([$fuse_version])
- fi
-
--AC_CHECK_LIB([pthread], [pthread_create], [:], AC_MSG_ERROR([*** pthread library (libpthread) not found]))
-+AC_CHECK_LIB([pthread], [pthread_create], [], AC_MSG_ERROR([*** pthread library (libpthread) not found]))
-
- ##ext2/3##
- AC_ARG_ENABLE([extfs],
diff --git a/partclone-0.3.52-s390x.patch b/partclone-0.3.52-s390x.patch
deleted file mode 100644
index ef38c88..0000000
--- a/partclone-0.3.52-s390x.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 4122d46cabd03489cccc8f783a9a74ec3fb4581d Mon Sep 17 00:00:00 2001
-From: Robert Scheck <robert-scheck@users.noreply.github.com>
-Date: Sun, 1 Nov 2026 20:44:25 +0100
-Subject: [PATCH] tests: fix exFAT last-cluster test on big-endian
- architectures
-
-Explicitly specify `--endian=little` for `od -t u4` when reading the exFAT cluster
-count and cluster heap offset. Otherwise, `od` uses the host's native byte order,
-resulting in incorrect offset calculations on s390x and causing the test to hang.
----
- tests/exfat_last_clusters.test | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/tests/exfat_last_clusters.test b/tests/exfat_last_clusters.test
-index 3fa300a3..c7ac3ddc 100755
---- a/tests/exfat_last_clusters.test
-+++ b/tests/exfat_last_clusters.test
-@@ -85,8 +85,8 @@ f.close()
- EOF
-
- echo -e "fill the last two clusters with a random pattern\n"
--ccount=$(od -An -j 0x5C -N 4 -t u4 "$raw")
--heap=$(od -An -j 0x58 -N 4 -t u4 "$raw")
-+ccount=$(od --endian=little -An -j 0x5C -N 4 -t u4 "$raw")
-+heap=$(od --endian=little -An -j 0x58 -N 4 -t u4 "$raw")
- bps=$((1 << $(od -An -j 0x6C -N 1 -t u1 "$raw")))
- spcs=$((1 << $(od -An -j 0x6D -N 1 -t u1 "$raw")))
- off=$(( heap*bps + (ccount-2)*bps*spcs ))
diff --git a/partclone-0.3.54-s390x.patch b/partclone-0.3.54-s390x.patch
new file mode 100644
index 0000000..91e9b67
--- /dev/null
+++ b/partclone-0.3.54-s390x.patch
@@ -0,0 +1,71 @@
+From 93528e5384406ebe57dcb510df691f7e9481a91e Mon Sep 17 00:00:00 2001
+From: Robert Scheck <robert-scheck@users.noreply.github.com>
+Date: Mon, 16 Nov 2026 00:25:09 +0100
+Subject: [PATCH] bitmap: address bits per byte to fix big-endian image bitmaps
+
+The block bitmap is kept in memory as an array of unsigned long with
+bits addressed per long, but it is written to and read from the image
+as pc_BITS_TO_BYTES(totalblock) raw bytes. On little-endian hosts both
+layouts coincide; on big-endian hosts (s390x, ppc64) the bits of the
+last, partially used long live in its highest-addressed bytes, which
+are cut off when totalblock is not a multiple of BITS_PER_LONG.
+
+Since 0.3.51 partclone.ntfs appends a partial block for the Boot
+Record copy after the end of the volume, so totalblock becomes e.g.
+16385 and the bit of the final block is lost on restore. The new
+tests/ntfs_partial_tail.test (0.3.53) exposes this on s390x: the last
+chunk covers one block less, the checksum check fails and the backup
+boot sector is not restored.
+
+Address the bitmap per byte in pc_test_bit/pc_set_bit/pc_clear_bit.
+The in-memory layout then equals the on-disk layout on every host;
+images produced on little-endian hosts are unchanged.
+
+Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
+---
+ src/bitmap.h | 18 +++++++++---------
+ 1 file changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/src/bitmap.h b/src/bitmap.h
+index 2f6640bc..6fca4668 100644
+--- a/src/bitmap.h
++++ b/src/bitmap.h
+@@ -39,9 +39,9 @@ pc_test_bit(unsigned long int nr, unsigned long *bitmap,
+ printf("test block %lu out of boundary(%llu)\n", nr, total);
+ exit(1);
+ }
+- unsigned long offset = nr / PART_BITS_PER_LONG;
+- unsigned long bit = nr & (PART_BITS_PER_LONG - 1);
+- return (bitmap[offset] >> bit) & 1;
++ unsigned long offset = nr / PART_BITS_PER_BYTE;
++ unsigned long bit = nr & (PART_BITS_PER_BYTE - 1);
++ return (((unsigned char *)bitmap)[offset] >> bit) & 1;
+ }
+
+ static inline void
+@@ -54,9 +54,9 @@ pc_set_bit(unsigned long int nr, unsigned long *bitmap,
+ printf("set block %lu out of boundary(%llu)\n", nr, total);
+ exit(1);
+ }
+- unsigned long offset = nr / PART_BITS_PER_LONG;
+- unsigned long bit = nr & (PART_BITS_PER_LONG - 1);
+- bitmap[offset] |= 1UL << bit;
++ unsigned long offset = nr / PART_BITS_PER_BYTE;
++ unsigned long bit = nr & (PART_BITS_PER_BYTE - 1);
++ ((unsigned char *)bitmap)[offset] |= 1U << bit;
+ }
+
+ static inline void
+@@ -69,9 +69,9 @@ pc_clear_bit(unsigned long int nr, unsigned long *bitmap,
+ printf("clear block %lu out of boundary(%llu)\n", nr, total);
+ exit(1);
+ }
+- unsigned long offset = nr / PART_BITS_PER_LONG;
+- unsigned long bit = nr & (PART_BITS_PER_LONG - 1);
+- bitmap[offset] &= ~(1UL << bit);
++ unsigned long offset = nr / PART_BITS_PER_BYTE;
++ unsigned long bit = nr & (PART_BITS_PER_BYTE - 1);
++ ((unsigned char *)bitmap)[offset] &= ~(1U << bit);
+ }
+
+ static inline unsigned long* pc_alloc_bitmap(unsigned long bits)
diff --git a/partclone.spec b/partclone.spec
index b11ca65..6934d20 100644
--- a/partclone.spec
+++ b/partclone.spec
@@ -3,7 +3,7 @@
Summary: Utility to clone and restore a partition
Name: partclone
-Version: 0.3.52
+Version: 0.3.54
Release: 1%{?dist}
# Partclone itself is GPL-2.0-or-later but uses other source codes, breakdown:
# GPL-3.0-or-later: fail-mbr/fail-mbr.S
@@ -18,8 +18,7 @@ Release: 1%{?dist}
License: BSD-2-Clause AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-only AND LGPL-2.0-or-later AND LGPL-3.0-or-later
URL: https://partclone.org/
Source0: https://github.com/Thomas-Tsai/partclone/archive/%{version}/%{name}-%{version}.tar.gz
-Patch0: https://github.com/Thomas-Tsai/partclone/pull/322.patch#/partclone-0.3.52-pthread.patch
-Patch1: https://github.com/Thomas-Tsai/partclone/pull/323.patch#/partclone-0.3.52-s390x.patch
+Patch0: https://github.com/Thomas-Tsai/partclone/pull/327.patch#/partclone-0.3.54-s390x.patch
BuildRequires: gcc
BuildRequires: make
BuildRequires: libuuid-devel
@@ -134,6 +133,12 @@ make check || { cat tests/test-suite.log; exit 1; }
%{_mandir}/man8/%{name}*.8*
%changelog
+* Mon Nov 16 2026 Robert Scheck <robert@fedoraproject.org> 0.3.54-1
+- Upgrade to 0.3.54 (#2571474)
+
+* Sat Nov 14 2026 Robert Scheck <robert@fedoraproject.org> 0.3.53-1
+- Upgrade to 0.3.53 (#2571474)
+
* Sat Oct 31 2026 Robert Scheck <robert@fedoraproject.org> 0.3.52-1
- Upgrade to 0.3.52 (#2561536)
diff --git a/sources b/sources
index d21e429..5bedeb2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (partclone-0.3.52.tar.gz) = 7437d7bca9a3b019ae619ceb1036cfdae5f0e1d1be001a72149487b26fb07c324fc0398457f5ce9b6dfd663968cd6ef620c8d85d89ba19d946cecc4738133349
+SHA512 (partclone-0.3.54.tar.gz) = 4db7c93fa60dfd127ac6c1b45969208ebec349fdc9bf83d7565135aaf833f96a5f87ace252a85f0646a8496456f5dd783990683d229aeb06c08433be0146a437
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-16 0:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-16 0:01 [rpms/partclone] f45: Upgrade to 0.3.54 (#2571474) Robert Scheck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox