kpmcore 4.0.1-2 (x86_64;znver1;i686;i686;znver1;x86_64) 2020-10510
9999

Status published
Submitter bero [@T] lindev.ch
Platform 4.1
Repository main
URL https://abf.openmandriva.org/build_lists/679842
Packages
kpmcore-4.0.1-2.x86_64.binary
kpmcore-4.0.1-2.x86_64.source
kpmcore-debuginfo-4.0.1-2.x86_64.debuginfo
lib64kpmcore8-4.0.1-2.x86_64.binary
lib64kpmcore8-debuginfo-4.0.1-2.x86_64.debuginfo
lib64kpmcore-devel-4.0.1-2.x86_64.binary
kpmcore-4.0.1-2.znver1.source
kpmcore-4.0.1-2.znver1.binary
kpmcore-debuginfo-4.0.1-2.znver1.debuginfo
lib64kpmcore8-4.0.1-2.znver1.binary
lib64kpmcore8-debuginfo-4.0.1-2.znver1.debuginfo
lib64kpmcore-devel-4.0.1-2.znver1.binary
kpmcore-4.0.1-2.i686.binary
kpmcore-4.0.1-2.i686.source
kpmcore-debuginfo-4.0.1-2.i686.debuginfo
libkpmcore8-4.0.1-2.i686.binary
libkpmcore8-debuginfo-4.0.1-2.i686.debuginfo
libkpmcore-devel-4.0.1-2.i686.binary
kpmcore-4.0.1-2.i686.binary
kpmcore-4.0.1-2.i686.source
kpmcore-debuginfo-4.0.1-2.i686.debuginfo
libkpmcore8-4.0.1-2.i686.binary
libkpmcore8-debuginfo-4.0.1-2.i686.debuginfo
libkpmcore-devel-4.0.1-2.i686.binary
kpmcore-4.0.1-2.znver1.binary
kpmcore-4.0.1-2.znver1.source
kpmcore-debuginfo-4.0.1-2.znver1.debuginfo
lib64kpmcore8-4.0.1-2.znver1.binary
lib64kpmcore8-debuginfo-4.0.1-2.znver1.debuginfo
lib64kpmcore-devel-4.0.1-2.znver1.binary
kpmcore-4.0.1-2.x86_64.binary
kpmcore-4.0.1-2.x86_64.source
kpmcore-debuginfo-4.0.1-2.x86_64.debuginfo
lib64kpmcore8-4.0.1-2.x86_64.binary
lib64kpmcore8-debuginfo-4.0.1-2.x86_64.debuginfo
lib64kpmcore-devel-4.0.1-2.x86_64.binary
Build Date 2020-02-04 13:08:18 +0000 UTC
Last Updated 2020-02-16 17:04:47.003943413 +0000 UTC
$ git show --format=fuller --patch-with-stat --summary 1186e7d96c72085caa7b81c8b3f27d457f0d8d64

commit 1186e7d96c72085caa7b81c8b3f27d457f0d8d64
Author:     Bernhard Rosenkraenzer <bero@lindev.ch>
AuthorDate: Tue Feb 4 02:08:05 2020 +0100
Commit:     Bernhard Rosenkraenzer <bero@lindev.ch>
CommitDate: Tue Feb 4 13:49:52 2020 +0100

    Use partx instead of blockdev to update partition table in kernel
---
 13beb9931951cf5972e341a871263146d2bdafbe.patch | 37 ++++++++++++++++++++++++++
 kpmcore.spec                                   |  3 ++-
 2 files changed, 39 insertions(+), 1 deletion(-)
 create mode 100644 13beb9931951cf5972e341a871263146d2bdafbe.patch

diff --git a/13beb9931951cf5972e341a871263146d2bdafbe.patch b/13beb9931951cf5972e341a871263146d2bdafbe.patch
new file mode 100644
index 0000000..4a3a846
--- /dev/null
+++ b/13beb9931951cf5972e341a871263146d2bdafbe.patch
@@ -0,0 +1,37 @@
+From 13beb9931951cf5972e341a871263146d2bdafbe Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= <andrius@stikonas.eu>
+Date: Mon, 18 Nov 2019 20:42:32 +0200
+Subject: [PATCH] Use partx instead of blockdev to update partition table in
+ the kernel.
+
+CCBUG: 413883
+---
+ src/plugins/sfdisk/sfdiskpartitiontable.cpp | 2 +-
+ src/util/externalcommand_whitelist.h        | 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/plugins/sfdisk/sfdiskpartitiontable.cpp b/src/plugins/sfdisk/sfdiskpartitiontable.cpp
+index 552c973..d4e9db0 100644
+--- a/src/plugins/sfdisk/sfdiskpartitiontable.cpp
++++ b/src/plugins/sfdisk/sfdiskpartitiontable.cpp
+@@ -57,7 +57,7 @@ bool SfdiskPartitionTable::commit(quint32 timeout)
+         ExternalCommand(QStringLiteral("udevadm"), { QStringLiteral("control"), QStringLiteral("--stop-exec-queue") }).run();
+ 
+     ExternalCommand(QStringLiteral("udevadm"), { QStringLiteral("settle"), QStringLiteral("--timeout=") + QString::number(timeout) }).run();
+-    ExternalCommand(QStringLiteral("blockdev"), { QStringLiteral("--rereadpt"), m_device->deviceNode() }).run();
++    ExternalCommand(QStringLiteral("partx"), { QStringLiteral("--update"), m_device->deviceNode() }).run();
+     ExternalCommand(QStringLiteral("udevadm"), { QStringLiteral("trigger") }).run();
+ 
+     if (m_device->type() == Device::Type::SoftwareRAID_Device)
+diff --git a/src/util/externalcommand_whitelist.h b/src/util/externalcommand_whitelist.h
+index ba8d087..9ddcb2b 100644
+--- a/src/util/externalcommand_whitelist.h
++++ b/src/util/externalcommand_whitelist.h
+@@ -25,6 +25,7 @@ QStringLiteral("udevadm"),
+ 
+ //Core programs
+ QStringLiteral("blockdev"),
++QStringLiteral("partx"),
+ QStringLiteral("sfdisk"),
+ QStringLiteral("wipefs"),
+ QStringLiteral("lvm"),
diff --git a/kpmcore.spec b/kpmcore.spec
index 1160f3e..53ea268 100644
--- a/kpmcore.spec
+++ b/kpmcore.spec
@@ -5,11 +5,12 @@
 Summary:	Library for managing partitions
 Name:		kpmcore
 Version:	4.0.1
-Release:	1
+Release:	2
 License:	GPLv3
 Group:		System/Libraries
 Url:		http://www.kde.org
 Source0:	http://download.kde.org/stable/kpmcore/%{version}/src/%{name}-%{version}.tar.xz
+Patch0:	https://git.stikonas.eu/andrius/kpmcore/commit/13beb9931951cf5972e341a871263146d2bdafbe.patch
 BuildRequires:	cmake(ECM)
 BuildRequires:	pkgconfig(blkid) >= 2.33.2
 BuildRequires:	pkgconfig(libatasmart)
Not Available

benbullard79 [@T] cox.netThese *should* be OK1501d 22hrs
benbullard79 [@T] cox.netThese *should* be OK1501d 22hrs