I am totally lost here
Matthew Carpenter
matt
Mon May 17 11:37:16 PDT 2004
I'm really sorry it I missed anything, mate. I just got this email (long story).
How has the reading come? the toughest things for me to figure out were patches, and setup scripts.
One way of using %setup creates the source directory right in "/usr/src/OpenLinux/BUILD" and another creates an initial directory in BUILD and then untargz's the source INTO that one, creating an additional layer...
%patch-s are simple now that I figured out how to use "diff" and "patch" pretty well. That %patch -p1 just means that patch strips off one layer of path from the front of the paths (which are indicated within the patch file). You create patches simply by using diff... I have come to like "-u3 -r" as options for diff, which give context and information on the file-locations in question.
diff -u3 -r <initial-file> <file-with-changes-made> >> thispatch.patch
this should be done from the /usr/src/OpenLinux/BUILD directory with the source extracted in BUILD as well (or however you're going to lay it out). If %setup puts the files one layer deeper, just de/increment the %patch -p# until it works :)
begin Keith Antoine <kantoine at bigpond.net.au>
(Thu, 8 Aug 2002 07:54:51 +1000)
> I can see from what I have learnt in the past few days re rpms that there are
> many ways to skin a cat. I can also see that I am going to have to do a bit
> more reading, it seems its not as complicated as it was; still not easy but!!
> I will be bothering you BTW but have you tried the -ta option on a tarball
> also the new kernel build using 'make xconfig rpm'..............
--
Matthew Carpenter
matt at eisgr.com http://www.eisgr.com/
Enterprise Information Systems
*Network Consulting, Integration & Support
*Web Development and E-Business
More information about the Linux-users
mailing list