From 1fa9bc7cf8551bafee2b41cbd310ea592f4b33543dc1941a9c90607d99536e15 Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Mon, 30 Dec 2013 09:20:53 +0000 Subject: [PATCH] - Fix partition device names on MMC devices (bnc#847580) - libparted-fix-mmcblk-partition-name.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=77 --- libparted-fix-mmcblk-partition-name.patch | 18 ++++++++++++++++++ parted.changes | 6 ++++++ parted.spec | 2 ++ 3 files changed, 26 insertions(+) create mode 100644 libparted-fix-mmcblk-partition-name.patch diff --git a/libparted-fix-mmcblk-partition-name.patch b/libparted-fix-mmcblk-partition-name.patch new file mode 100644 index 0000000..96fb5ea --- /dev/null +++ b/libparted-fix-mmcblk-partition-name.patch @@ -0,0 +1,18 @@ +--- + libparted/arch/linux.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +Index: parted-2.4/libparted/arch/linux.c +=================================================================== +--- parted-2.4.orig/libparted/arch/linux.c ++++ parted-2.4/libparted/arch/linux.c +@@ -2227,7 +2227,8 @@ _device_get_part_path (PedDevice *dev, i + (int) (path_len - 5), dev->path, num); + } else { + const char *p; +- if (dev->type == PED_DEVICE_CPQARRAY) ++ if (dev->type == PED_DEVICE_CPQARRAY || ++ dev->type == PED_DEVICE_SDMMC) + p = "p"; + else + p = (dev->type == PED_DEVICE_DAC960 diff --git a/parted.changes b/parted.changes index 2c72540..59700fb 100644 --- a/parted.changes +++ b/parted.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Dec 30 09:15:06 UTC 2013 - puzel@suse.com + +- Fix partition device names on MMC devices (bnc#847580) + - libparted-fix-mmcblk-partition-name.patch + ------------------------------------------------------------------- Tue Sep 17 08:27:12 UTC 2013 - mlin@suse.com diff --git a/parted.spec b/parted.spec index 16c18bf..d305e1f 100644 --- a/parted.spec +++ b/parted.spec @@ -53,6 +53,7 @@ Patch22: fix-error-informing-the-kernel.patch Patch23: parted-fix-gpt-sync-on-BE-systems.patch Patch24: parted-btrfs-support.patch Patch25: parted-Add-Intel-Rapid-Start-Technology-partition.patch +Patch26: libparted-fix-mmcblk-partition-name.patch Requires: /sbin/udevadm BuildRequires: check-devel BuildRequires: device-mapper-devel >= 1.02.33 @@ -130,6 +131,7 @@ to develop applications that require these. %patch23 -p1 %patch24 -p1 %patch25 -p1 +%patch26 -p1 %build export CFLAGS="%{optflags} `ncursesw6-config --cflags`"