r643 - trunk/util-linux

jim at linuxfromscratch.org jim at linuxfromscratch.org
Mon Sep 13 19:29:15 PDT 2004


Author: jim
Date: 2004-09-13 20:29:14 -0600 (Mon, 13 Sep 2004)
New Revision: 643

Added:
   trunk/util-linux/util-linux-2.12b-sfdisk-1.patch
Log:
Added: util-linux-2.12b-sfdisk-1.patch

Added: trunk/util-linux/util-linux-2.12b-sfdisk-1.patch
===================================================================
--- trunk/util-linux/util-linux-2.12b-sfdisk-1.patch	2004-09-14 02:28:37 UTC (rev 642)
+++ trunk/util-linux/util-linux-2.12b-sfdisk-1.patch	2004-09-14 02:29:14 UTC (rev 643)
@@ -0,0 +1,26 @@
+Submitted By: Jeremy Utley (jeremy at linuxfromscratch.org)
+Date: 2004-09-13
+Initial Package Version: 2.12b
+Upstream Status: Not submitted - fixes GCC miscompilation
+Origin: Created from troubleshooting on IRC
+Description: When using GCC 3.4.{1,2}, the sfdisk program is miscompiled,
+causing a seek error to be output.  Troubleshooting narrowed the problem down
+to the fact that Util-Linux by default uses the -O2 optimization level,
+which includes the unit-at-a-time optimization, exposing this problem.  This
+patch passes -fno-unit-at-a-time to the sfdisk, fdisk, and cfdisk programs,
+resolving this error.  Developed by Matthew Burgess, Ronald Hummelink, and
+Jeremy Utley.
+
+
+diff -Naur util-linux-2.12b/fdisk/Makefile util-linux-2.12b-new/fdisk/Makefile
+--- util-linux-2.12b/fdisk/Makefile	2002-11-24 17:33:58.000000000 +0000
++++ util-linux-2.12b-new/fdisk/Makefile	2004-09-14 00:45:31.303286087 +0000
+@@ -6,6 +6,8 @@
+ include ../make_include
+ include ../MCONFIG
+ 
++CFLAGS:=$(CFLAGS) -fno-unit-at-a-time
++
+ MAN8=
+ SBIN=
+ CFDISK=cfdisk




More information about the patches mailing list