diff --git a/util-linux-2.12r-fdisk_remove_bogus_warnings.patch b/util-linux-2.12r-fdisk_remove_bogus_warnings.patch new file mode 100644 index 0000000..ed08fe1 --- /dev/null +++ b/util-linux-2.12r-fdisk_remove_bogus_warnings.patch @@ -0,0 +1,20 @@ +Index: util-linux-2.12r/fdisk/fdisk.c +=================================================================== +--- util-linux-2.12r.orig/fdisk/fdisk.c ++++ util-linux-2.12r/fdisk/fdisk.c +@@ -1496,6 +1496,7 @@ static void check_consistency(struct par + /* compute logical ending (c, h, s) */ + long2chs(get_start_sect(p) + get_nr_sects(p) - 1, &lec, &leh, &les); + ++#if 0 + /* Same physical / logical beginning? */ + if (cylinders <= 1024 && (pbc != lbc || pbh != lbh || pbs != lbs)) { + printf(_("Partition %d has different physical/logical " +@@ -1512,7 +1513,6 @@ static void check_consistency(struct par + printf(_("logical=(%d, %d, %d)\n"),lec, leh, les); + } + +-#if 0 + /* Beginning on cylinder boundary? */ + if (pbh != !pbc || pbs != 1) { + printf(_("Partition %i does not start on cylinder " diff --git a/util-linux.changes b/util-linux.changes index ff33713..a388eb5 100644 --- a/util-linux.changes +++ b/util-linux.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 12 17:22:45 CET 2007 - mkoenig@suse.de + +- remove legacy warnings from fdisk [#241372] + ------------------------------------------------------------------- Fri Feb 2 13:27:31 CET 2007 - mkoenig@suse.de diff --git a/util-linux.spec b/util-linux.spec index ed1e651..88a8e90 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -20,7 +20,7 @@ License: BSD License and BSD-like, GNU General Public License (GPL) Group: System/Base Autoreqprov: on Version: 2.12r -Release: 70 +Release: 73 Summary: A collection of basic system utilities Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/%name-%version.tar.bz2 Source2: nologin.c @@ -109,6 +109,7 @@ Patch107: util-linux-2.12r-mkswap_fix.patch Patch108: util-linux-2.12r-nfs_remount_options.patch Patch109: util-linux-2.12r-losetup_password.patch Patch110: util-linux-2.12r-mkfs_open_exclusive.patch +Patch111: util-linux-2.12r-fdisk_remove_bogus_warnings.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %insserv_prereq %fillup_prereq /bin/sed @@ -183,6 +184,7 @@ cd - %patch108 -p1 %patch109 -p1 %patch110 -p1 +%patch111 -p1 # setctsid cp %{S:22} %{S:23} . # nologin and guessfstype @@ -616,6 +618,8 @@ fi %endif %changelog -n util-linux +* Mon Feb 12 2007 - mkoenig@suse.de +- remove legacy warnings from fdisk [#241372] * Fri Feb 02 2007 - mkoenig@suse.de - do not use O_EXCL for mkfs.cramfs [#241466] * Wed Jan 31 2007 - mkoenig@suse.de