how to efficiently work through generating patches using git and macports build process?

Michael Dickens michaelld at macports.org
Wed Aug 30 15:53:44 UTC 2017


Hi Ken - I, for one, would strongly encourage you to use the GIT process
you mention. You still have to be careful to distinguish between
patchfiles and reinplace patches, but hopefully that's not too
difficult. Another benefit to using GIT is that if you messed up a fix,
you can always revert it & start it from the original file.

Didn't we have a set of "shortcuts" that included the commands for
setting up the local GIT repo? Might be worthwhile for folks with such
shortcuts to push a link to this list (again). - MLD

On Wed, Aug 30, 2017, at 11:44 AM, Ken Cunningham wrote:
> I'm looking to improve my efficiency.
> 
> When trying to fix broken ports, I have so far been using the method of
> copying the source file to source.orig, editing the source files in
> place, and then noting the files I worked on, to individually diff them
> at the end to individual patch files.
> 
> It's easy to understand, but not super efficient, especially when I make
> a number of changes in different files.
> 
> Using macports build process, is there a more efficient way that people
> use, perhaps using git branches in the worksrcdir?
> 
> Something like - 
> 
> sudo port -v extract PORTNAME
> 
> then make a git branch in the worksrcdir and check it out
> 
> then
> 
> `sudo port -v build PORTNAME` or perhaps `sudo port -v destroot PORTNAME`
> 
> and  keep plugging away with edits until it builds to completion
> 
> and in the end, just git diff the whole worksrcdir folder?
> 
> 
> Best,
> 
> Ken


More information about the macports-dev mailing list