public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/partclone] epel10: Merge remote branch 'origin/main' into epel10
@ 2026-11-30  0:27 Robert Scheck
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Scheck @ 2026-11-30  0:27 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/partclone
Branch : epel10
Commit : f698221b25579fbb7d0ec66ecc4b54e2f90aa0ec
Author : Robert Scheck <robert@fedoraproject.org>
Date   : 2026-11-30T01:27:38+01:00
Stats  : +7/-76 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/partclone/c/f698221b25579fbb7d0ec66ecc4b54e2f90aa0ec?branch=epel10

Log:
Merge remote branch 'origin/main' into epel10

---
diff --git a/partclone-0.3.54-s390x.patch b/partclone-0.3.54-s390x.patch
deleted file mode 100644
index 91e9b67..0000000
--- a/partclone-0.3.54-s390x.patch
+++ /dev/null
@@ -1,71 +0,0 @@
-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 8d259b5..a2fb817 100644
--- a/partclone.spec
+++ b/partclone.spec
@@ -3,7 +3,7 @@
 
 Summary:        Utility to clone and restore a partition
 Name:           partclone
-Version:        0.3.54
+Version:        0.3.55
 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,7 +18,6 @@ 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/327.patch#/partclone-0.3.54-s390x.patch
 BuildRequires:  gcc
 BuildRequires:  make
 BuildRequires:  libuuid-devel
@@ -133,6 +132,9 @@ make check || { cat tests/test-suite.log; exit 1; }
 %{_mandir}/man8/%{name}*.8*
 
 %changelog
+* Sun Nov 29 2026 Robert Scheck <robert@fedoraproject.org> 0.3.55-1
+- Upgrade to 0.3.55 (#2585339)
+
 * Mon Nov 16 2026 Robert Scheck <robert@fedoraproject.org> 0.3.54-1
 - Upgrade to 0.3.54 (#2571474)
 

diff --git a/sources b/sources
index 5bedeb2..be095f1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (partclone-0.3.54.tar.gz) = 4db7c93fa60dfd127ac6c1b45969208ebec349fdc9bf83d7565135aaf833f96a5f87ace252a85f0646a8496456f5dd783990683d229aeb06c08433be0146a437
+SHA512 (partclone-0.3.55.tar.gz) = dc33c607a7558ff0bb9a1a8267b1f961db8e4ad9ab40ab24d39ea7047d92f301cd49964d3bc9d53f8da9c065775eb8745e35d5dc7c4fcb9b0297e98c7ed0fa41

diff --git a/partclone.spec b/partclone.spec
index dbdfac4..a2fb817 100644
--- a/partclone.spec
+++ b/partclone.spec
@@ -144,8 +144,8 @@ make check || { cat tests/test-suite.log; exit 1; }
 * Sat Oct 31 2026 Robert Scheck <robert@fedoraproject.org> 0.3.52-1
 - Upgrade to 0.3.52 (#2561536)
 
-* Fri Sep 25 2026 Tom Callaway <spot@fedoraproject.org> - 0.3.50-2
-- rebuild for new ntfs-3g (sover 91)
+* Mon Sep 28 2026 Tom Callaway <spot@fedoraproject.org> - 0.3.50-2
+- rebuild for new ntfs-3g
 
 * Sat Sep 12 2026 Robert Scheck <robert@fedoraproject.org> 0.3.50-1
 - Upgrade to 0.3.50 (#2529139 #c1)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [rpms/partclone] epel10: Merge remote branch 'origin/main' into epel10
@ 2026-11-01 20:26 Robert Scheck
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Scheck @ 2026-11-01 20:26 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/partclone
Branch : epel10
Commit : 79ecfba3eac390cd98fa542b387989d864129f42
Author : Robert Scheck <robert@fedoraproject.org>
Date   : 2026-11-01T21:26:26+01:00
Stats  : +31/-2 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/partclone/c/79ecfba3eac390cd98fa542b387989d864129f42?branch=epel10

Log:
Merge remote branch 'origin/main' into epel10

---
diff --git a/partclone-0.3.52-s390x.patch b/partclone-0.3.52-s390x.patch
new file mode 100644
index 0000000..ef38c88
--- /dev/null
+++ b/partclone-0.3.52-s390x.patch
@@ -0,0 +1,28 @@
+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.spec b/partclone.spec
index 608cf4f..a52841e 100644
--- a/partclone.spec
+++ b/partclone.spec
@@ -19,6 +19,7 @@ License:        BSD-2-Clause AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-o
 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
 BuildRequires:  gcc
 BuildRequires:  make
 BuildRequires:  libuuid-devel

diff --git a/partclone.spec b/partclone.spec
index b11ca65..a52841e 100644
--- a/partclone.spec
+++ b/partclone.spec
@@ -137,8 +137,8 @@ make check || { cat tests/test-suite.log; exit 1; }
 * Sat Oct 31 2026 Robert Scheck <robert@fedoraproject.org> 0.3.52-1
 - Upgrade to 0.3.52 (#2561536)
 
-* Fri Sep 25 2026 Tom Callaway <spot@fedoraproject.org> - 0.3.50-2
-- rebuild for new ntfs-3g (sover 91)
+* Mon Sep 28 2026 Tom Callaway <spot@fedoraproject.org> - 0.3.50-2
+- rebuild for new ntfs-3g
 
 * Sat Sep 12 2026 Robert Scheck <robert@fedoraproject.org> 0.3.50-1
 - Upgrade to 0.3.50 (#2529139 #c1)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-30  0:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30  0:27 [rpms/partclone] epel10: Merge remote branch 'origin/main' into epel10 Robert Scheck
  -- strict thread matches above, loose matches on Subject: below --
2026-11-01 20:26 Robert Scheck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox