Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2020-04-25 20:07:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and      /work/SRC/openSUSE:Factory/.parted.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "parted"

Sat Apr 25 20:07:51 2020 rev:130 rq:795528 version:3.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/parted/parted.changes    2020-01-15 
16:43:15.325118919 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new.2738/parted.changes  2020-04-25 
20:08:03.135514083 +0200
@@ -1,0 +2,9 @@
+Wed Apr  8 17:37:47 UTC 2020 - Anna Maresova <ani...@suse.com>
+
+- print maximum number of partitions for yast
+  (bsc#1168756, bsc#1161783) 
+ - add parted-print-max-partitions-for-yast.patch
+- make parted work with pmemXs devices (bsc#1164260)
+ - add libparted-linux-pmem-path.patch
+
+-------------------------------------------------------------------

New:
----
  libparted-linux-pmem-path.patch
  parted-print-max-partitions-for-yast.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ parted.spec ++++++
--- /var/tmp/diff_new_pack.bzZT7V/_old  2020-04-25 20:08:07.227522520 +0200
+++ /var/tmp/diff_new_pack.bzZT7V/_new  2020-04-25 20:08:07.231522528 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package parted
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,7 +22,7 @@
 Summary:        GNU partitioner
 License:        GPL-3.0-or-later
 Group:          System/Filesystems
-Url:            http://www.gnu.org/software/parted/
+URL:            http://www.gnu.org/software/parted/
 Source0:        ftp://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz
 Source1:        ftp://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz.sig
 Source2:        
https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=parted&download=1#/%{name}.keyring
@@ -63,6 +63,13 @@
 Patch33:        libparted-use-BLKRRPART-only-when-needed.patch
 Patch34:        libparted-canonicalize-dev-md-paths.patch
 Patch35:        parted-fix-end_input-usage.patch 
+
+# bsc#1168756
+Patch36:        libparted-linux-pmem-path.patch
+
+# bsc#1164260
+Patch37:        parted-print-max-partitions-for-yast.patch
+
 # Fatresize
 Patch100:       parted-fatresize-autoconf.patch
 Patch101:       fatresize-fix-getting-dev-name.patch
@@ -149,6 +156,8 @@
 %patch33 -p1
 %patch34 -p1
 %patch35 -p1
+%patch36 -p1
+%patch37 -p1
 %patch100 -p1
 %patch101 -p1
 %patch156 -p1

++++++ libparted-linux-pmem-path.patch ++++++
 libparted/arch/linux.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Index: parted-3.3/libparted/arch/linux.c
===================================================================
--- parted-3.3.orig/libparted/arch/linux.c
+++ parted-3.3/libparted/arch/linux.c
@@ -2489,7 +2489,7 @@ _device_get_part_path (PedDevice const *
                     dev->type == PED_DEVICE_CPQARRAY ||
                     dev->type == PED_DEVICE_DAC960 ||
                     dev->type == PED_DEVICE_NVME ||
-                    dev->type == PED_DEVICE_PMEM ||
+                    ((dev->type == PED_DEVICE_PMEM) && (!isdigit 
(devpath[path_len -1 ]))) ||
                     dev->type == PED_DEVICE_SDMMC)
                         p = "p";
                 else if (dev->type == PED_DEVICE_DM)

++++++ parted-print-max-partitions-for-yast.patch ++++++
From: Anna Maresova <ani...@suse.cz>
Date: Wed Mar 25 18:17:28 CET 2020
Subject: parted: print maximum number of partitions for yast
Patch-mainline: no, custom SUSE patch

Index: parted-3.3/parted/parted.c
===================================================================
--- parted-3.3.orig/parted/parted.c
+++ parted-3.3/parted/parted.c
@@ -1125,10 +1125,13 @@ _print_disk_info (const PedDevice *dev,
                                         break;
 
             }
-            printf ("%s:%s:%s:%lld:%lld:%s:%s:%s;\n",
+            printf ("%s:%s:%s:%lld:%lld:%s:%s:%s",
                     path, end, transport[dev->type],
                     dev->sector_size, dev->phys_sector_size,
                     pt_name, dev->model, disk_flags);
+           if (getenv("PARTED_PRINT_NUMBER_OF_PARTITION_SLOTS"))
+                    printf(":%lld", diskp && 
diskp->type->ops->get_max_primary_partition_count ? 
diskp->type->ops->get_max_primary_partition_count(diskp) : 0);
+           printf(";\n");
             free(path);
         } else {
             printf (_("Model: %s (%s)\n"),


Reply via email to