You are not logged in.
I am writing a package that applies a patch to rsync.
Based on other packages I have seen, it seems that the patch should be applied in the build() function, but I'm not sure why. Am I correct that this is the right place to apply patches? Why should this not be done in package()?
Thanks in advance.
Last edited by jalu (2010-08-28 03:34:50)
Offline
Whenever possible, opt to patch in the build function. The package function should serve only to move the proper files in place -- in the classical Makefile sense, it should run 'make install' and tidy up whatever else needs to be moved around.
Offline
Interesting. Thank you for the support, falconindy.
That definitely makes sense and what I guessed the purpose of the function was. I'm sure little things like this will make even more sense to me as time goes on.
Thanks again.
Offline