Hi, In SuSE8.1, the gcc package version is 3.2-36. I installed gcc source package from the CDs, and I found it includes lots patches. But I have no idea to patch those patches into gcc3.2. Would any one guide me to patch? Thanks in advance. Best Regards, Joseph
On Fri, 18 Oct 2002 16:48:05 +0800
"Joseph"
Hi, In SuSE8.1, the gcc package version is 3.2-36. I installed gcc source package from the CDs, and I found it includes lots patches. But I have no idea to patch those patches into gcc3.2. Would any one guide me to patch? Thanks in advance. Best Regards, Joseph
Well generally you can do "patch -p0
"Joseph"
I installed gcc source package from the CDs, and I found it includes lots patches. But I have no idea to patch those patches into gcc3.2.
Why don't you just recompile the source rpm (rpm -bb <specfile>), possibly changing the compile options for gcc? That way you don't have to care about order of the patches. But if you want to apply the patches manually, read the accompanying gcc.spec. At the top you'll see the patches listed as Patch0, Patch1 etc. and a bit later you'll see the commands to patch the sources. Looks something like this: Patch: abc.diff Patch0: def.dif Patch1: xyz.dif %setup %patch -p1 %patch0 -p1 %patch1 If the %patchN line has no additional option, you have to pass -p0 to patch, otherwise the option listed on the line. Philipp -- Philipp Thomas work: pthomas@suse.de Development SuSE Linux AG private: pth@t-link.de
Hi Philipp, Thanks a lot, I will try what you say. Because I want to add some options into GCC, so I think "rpm -bb" is not useful. But the method of patch seems to be fine. Thanks again. BR, Joseph ----------------------------------------------------------------- < 每天都 Yahoo!奇摩 > www.yahoo.com.tw
participants (4)
-
Graham Murray
-
Joseph
-
Philipp Thomas
-
zentara