Re: Fixing source-code bugs using MacPorts facilities.

2020-07-29 Thread Ian Wadham
> On 29 Jul 2020, at 2:27 pm, Ken Cunningham > wrote: > >> On Jul 28, 2020, at 9:22 PM, Ian Wadham wrote: > >> Also, Ken, I have worked out a way of maintaining a git repository of the >> source code and edits that is external to MacPorts and entirely under my >> control, so the need to av

Re: Fixing source-code bugs using MacPorts facilities.

2020-07-28 Thread Ken Cunningham

Re: Fixing source-code bugs using MacPorts facilities.

2020-07-28 Thread Ian Wadham
> On 28 Jul 2020, at 8:06 pm, Ryan Schmidt wrote: > > On Jul 27, 2020, at 01:53, Ian Wadham wrote: > >> I’m just saying that I can execute the file >> 'work/destroot/Applications/MacPorts/…/kpat’ instead of >> ‘/Applications/MacPorts/…/kpat’ — at the command-line of course. > > That executa

Re: Fixing source-code bugs using MacPorts facilities.

2020-07-28 Thread Ryan Schmidt
On Jul 27, 2020, at 01:53, Ian Wadham wrote: > I’m just saying that I can execute the file > 'work/destroot/Applications/MacPorts/…/kpat’ instead of > ‘/Applications/MacPorts/…/kpat’ — at the command-line of course. That executable may link with libraries installed by the port. If so, the e

Re: Fixing source-code bugs using MacPorts facilities.

2020-07-26 Thread Ian Wadham
> On 27 Jul 2020, at 4:02 pm, Ken Cunningham > wrote: > > > On 2020-07-26, at 10:30 PM, Ian Wadham wrote: > > >> Ken’s final step — sudo port -v -k install — does not work, or maybe works >> only on the first cycle. > > Yes, once the port is installed, you have to specifically uninstall

Re: Fixing source-code bugs using MacPorts facilities.

2020-07-26 Thread Ken Cunningham
On 2020-07-26, at 10:30 PM, Ian Wadham wrote: > Ken’s final step — sudo port -v -k install — does not work, or maybe works > only on the first cycle. Yes, once the port is installed, you have to specifically uninstall it before you can reinstall it again. MacPorts will not install it again

Re: Fixing source-code bugs using MacPorts facilities.

2020-07-26 Thread Ian Wadham
Hi Ken and Ryan, Thank you very much for your suggestions. I think I have got all of them working, including cycling repeatedly through editing the MacPorts version of source down in /opt/local/…, then cyling back through editing the state file, re-doing build and re-doing destroot. There is j

Re: Fixing source-code bugs using MacPorts facilities.

2020-07-26 Thread Ken Cunningham
On 2020-07-25, at 11:26 PM, Ryan Schmidt wrote: > > > On Jul 26, 2020, at 01:15, Ian Wadham wrote: > >> The above all worked very well, but only once… :-( >> >> If I test the app I have installed and find there is still some problem, I >> need to edit the source and go back to the build ste

Re: Fixing source-code bugs using MacPorts facilities.

2020-07-25 Thread Ryan Schmidt
On Jul 26, 2020, at 01:15, Ian Wadham wrote: > The above all worked very well, but only once… :-( > > If I test the app I have installed and find there is still some problem, I > need to edit the source and go back to the build step. But “build” just says > "---> Computing dependencies for

Re: Fixing source-code bugs using MacPorts facilities.

2020-07-25 Thread Ian Wadham
Thanks very much for your help, Ken. > On 26 Jul 2020, at 3:31 am, Ken Cunningham > wrote: > > Here is my process (courtesy of advice from many others on this list > including Chris and Michael and others). And this is not yet ideal, as no > doubt it could be further improved. This is for any

Re: Fixing source-code bugs using MacPorts facilities.

2020-07-25 Thread Ken Cunningham
Here is my process (courtesy of advice from many others on this list including Chris and Michael and others). And this is not yet ideal, as no doubt it could be further improved. This is for anything beyond trivial one-tweak patches, by the way — I might not do this for a trivial source fix. S

Fixing source-code bugs using MacPorts facilities.

2020-07-24 Thread Ian Wadham
Hi guys, I have just been fixing a bug in the code for KPat, the KDE 4 Patience (Solitaire) game, using MacPorts facilities to submit, compile, build and install patches, including source code for fixing and testing bugs. I have followed the guidance in Chapter 4 of the MacPorts Guide https://