public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Robert Scheck <robert@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/partclone] epel9: Merge remote branch 'origin/main' into epel9
Date: Mon, 16 Nov 2026 00:02:33 GMT	[thread overview]
Message-ID: <179478735311.1.3200304014966651558.rpms-partclone-25b16e640806@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/partclone
Branch : epel9
Commit : 25b16e640806cbebc159cf838e1f61915aba4170
Author : Robert Scheck <robert@fedoraproject.org>
Date   : 2026-11-16T01:02:23+01:00
Stats  : +82/-48 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/partclone/c/25b16e640806cbebc159cf838e1f61915aba4170?branch=epel9

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

---
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.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 608cf4f..8d259b5 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,7 +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
+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 +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

diff --git a/partclone.spec b/partclone.spec
index 6934d20..8d259b5 100644
--- a/partclone.spec
+++ b/partclone.spec
@@ -142,8 +142,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)

                 reply	other threads:[~2026-11-16  0:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179478735311.1.3200304014966651558.rpms-partclone-25b16e640806@fedoraproject.org \
    --to=robert@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox