LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 704|回复: 3

谁能给小弟一个Util-Linux Sfdisk Patch补丁?

[复制链接]
发表于 2004-9-23 16:32:59 | 显示全部楼层 |阅读模式
最新的SVN版本中的如下补丁链接不可用,util-linux本身的网站上又没有...

http://www.linuxfromscratch.org/ ... .12g-sfdisk-1.patch
发表于 2004-9-23 21:50:53 | 显示全部楼层
http://lfs.osuosl.org/patches/lf ... .12b-sfdisk-1.patch
b和g的补丁差得多么?如果差得多,就打开相应的文件,手动来改
发表于 2004-9-23 21:53:04 | 显示全部楼层
就加了两行字,好改:
Submitted By: Jeremy Utley (jeremy@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
 楼主| 发表于 2004-9-23 22:38:52 | 显示全部楼层
晕。。我不会手动改patch文件阿。。。谢谢版主大哥
还有不知道b和g的源码变动大不大,有没有涉及到sfdisk功能,所以不敢贸然下手。。。

多谢多谢:)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表