You are not logged in.

#1 2010-08-28 03:10:19

jalu
Member
Registered: 2009-04-05
Posts: 140

[SOLVED] Applying patches: build() or package()

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

#2 2010-08-28 03:32:11

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Applying patches: build() or package()

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

#3 2010-08-28 03:34:41

jalu
Member
Registered: 2009-04-05
Posts: 140

Re: [SOLVED] Applying patches: build() or package()

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

Board footer

Powered by FluxBB