From a8b33b2fab602f6c88241a3074cd77a31251d90e249424ad4c26e20dfe51e579 Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Fri, 25 May 2012 12:04:05 +0000 Subject: [PATCH 1/2] - build with RPM_OPT_FLAGS again (removed by mistake) OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=132 --- util-linux.changes | 5 +++++ util-linux.spec | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/util-linux.changes b/util-linux.changes index 3228dfb..8bd3a02 100644 --- a/util-linux.changes +++ b/util-linux.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 25 12:03:07 UTC 2012 - puzel@suse.com + +- build with RPM_OPT_FLAGS again (removed by mistake) + ------------------------------------------------------------------- Thu Apr 12 09:09:05 UTC 2012 - puzel@suse.com diff --git a/util-linux.spec b/util-linux.spec index 9848dd6..f985511 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -248,7 +248,6 @@ make %{?_smp_mflags} setctsid CFLAGS="%{optflags}" CC="%{__cc}" autoreconf -fi export SUID_CFLAGS="-fpie" export SUID_LDFLAGS="-pie" -export CFLAGS="-ggdb3 -O0" %configure \ --with-audit \ --with-selinux \ From 24d446192ff4e860b076ee0818eaaff4f0d26ef92ca65cd1e13acd061a0f1dce Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Fri, 25 May 2012 12:17:08 +0000 Subject: [PATCH 2/2] update to 2.21.2 OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=133 --- ...fix-calculation-due-to-type-mismatch.patch | 59 ------------------- util-linux-2.21.1.tar.bz2 | 3 - util-linux-2.21.2.tar.bz2 | 3 + util-linux.changes | 8 +++ util-linux.spec | 4 +- 5 files changed, 12 insertions(+), 65 deletions(-) delete mode 100644 sfdisk-fix-calculation-due-to-type-mismatch.patch delete mode 100644 util-linux-2.21.1.tar.bz2 create mode 100644 util-linux-2.21.2.tar.bz2 diff --git a/sfdisk-fix-calculation-due-to-type-mismatch.patch b/sfdisk-fix-calculation-due-to-type-mismatch.patch deleted file mode 100644 index 2bc4804..0000000 --- a/sfdisk-fix-calculation-due-to-type-mismatch.patch +++ /dev/null @@ -1,59 +0,0 @@ -From 9c45d49fe01c1c8f971d7d2d664e40dd82d00cf5 Mon Sep 17 00:00:00 2001 -From: Petr Uzel -Date: Fri, 6 Apr 2012 16:53:13 +0200 -Subject: [PATCH] sfdisk: fix calculation due to type mismatch (ix86) - -Instructing sfdisk to create one partition spanning -across entire disk (",,") on 32bit system, if the disk -is sufficiently large (~2TB) leads to wrong calculation -in compute_start_sect() due to type mismatch. - -Can be reproduced as: - --------------------------- -linux-3ln5:~ # modprobe scsi_debug virtual_gb=2000 -linux-3ln5:~ # sfdisk /dev/sda <<< ',,' -Checking that no-one is using this disk right now ... -OK - -Disk /dev/sda: 261083 cylinders, 255 heads, 63 sectors/track - -sfdisk: ERROR: sector 0 does not have an msdos signature -sfdisk: /dev/sda: unrecognized partition table type - -Old situation: -sfdisk: No partitions found - -no room for partition descriptor -sfdisk: bad input --------------------------- - -Addresses: https://bugzilla.novell.com/show_bug.cgi?id=754789 -Reported-by: Dan Mares -Signed-off-by: Petr Uzel ---- - fdisk/sfdisk.c | 4 ++-- - 1 files changed, 2 insertions(+), 2 deletions(-) - -Index: util-linux-2.21.1/fdisk/sfdisk.c -=================================================================== ---- util-linux-2.21.1.orig/fdisk/sfdisk.c -+++ util-linux-2.21.1/fdisk/sfdisk.c -@@ -1990,7 +1990,7 @@ static int - compute_start_sect(struct part_desc *p, struct part_desc *ep) { - unsigned long long base; - int inc = (DOS && B.sectors) ? B.sectors : 1; -- int delta; -+ long long delta; - - if (ep && p->start + p->size >= ep->start + 1) - delta = p->start - ep->start - inc; -@@ -2005,7 +2005,7 @@ compute_start_sect(struct part_desc *p, - p->size += delta; - if (is_extended(p->p.sys_type) && boxes == ONESECTOR) - p->size = inc; -- else if ((ssize_t) old_size <= (ssize_t) - delta) { -+ else if ((long long) old_size <= -delta) { - my_warn(_("no room for partition descriptor\n")); - return 0; - } diff --git a/util-linux-2.21.1.tar.bz2 b/util-linux-2.21.1.tar.bz2 deleted file mode 100644 index 1193c1f..0000000 --- a/util-linux-2.21.1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4bf9641fd58454106589be8a8d1cfd61e7694f0a6912d8095d17b1fb94b85abe -size 4842473 diff --git a/util-linux-2.21.2.tar.bz2 b/util-linux-2.21.2.tar.bz2 new file mode 100644 index 0000000..4f0bf75 --- /dev/null +++ b/util-linux-2.21.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:066f9d8e51bfabd809d266edcd54eefba1cdca57725b95c074fd47fe6fba3d30 +size 4858985 diff --git a/util-linux.changes b/util-linux.changes index 8bd3a02..437618a 100644 --- a/util-linux.changes +++ b/util-linux.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri May 25 12:12:09 UTC 2012 - puzel@suse.com + +- update to util-linux-2.21.2 + - bugfix release +- drop sfdisk-fix-calculation-due-to-type-mismatch.patch + (fixed upstream) + ------------------------------------------------------------------- Fri May 25 12:03:07 UTC 2012 - puzel@suse.com diff --git a/util-linux.spec b/util-linux.spec index f985511..8bcb2b4 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -32,7 +32,7 @@ BuildRequires: pam-devel BuildRequires: pkg-config BuildRequires: readline-devel BuildRequires: zlib-devel -Version: 2.21.1 +Version: 2.21.2 Release: 0 # util-linux is a base package and uuidd pre-requiring pwdutils pulls # that into the core build cycle. pwdutils also pulls in the whole @@ -87,7 +87,6 @@ Source51: blkid.conf Patch1: util-linux-2.12r-fdisk_remove_bogus_warnings.patch Patch2: util-linux-2.20-libmount-deps.patch Patch3: fdisk-tinfo.patch -Patch4: sfdisk-fix-calculation-due-to-type-mismatch.patch ## ## adjtimex @@ -194,7 +193,6 @@ Files to develop applications using the libmount library. %patch1 -p1 %patch2 -p1 %patch3 -p1 -%patch4 -p1 # cd adjtimex-*