Re: Subtleties of Modifying post-configure

2021-03-14 Thread Ryan Schmidt
On Mar 14, 2021, at 19:58, Steven Smith wrote:

> I need to run some post-configure steps in a cmake Portfile.
> 
> I’m running into two these issues:
> 
> Issue 1:
> 
> cmake already has some post-configure code. How do I add stuff to whatever 
> cmake already has? Not post-configure-append, I see. Not 
> {*}${post-configure}. I don’t know enough of the guts of MacPorts tcl to know 
> which approach should be used. 
> 
> Issue 2:
> 
> If I change post-configure in an `if` block, the change doesn’t hold. Why 
> doesn’t this work?
> 
> post-configure {
> awesome_tcl_proc
> }
> 
> if {${name} eq ${subport}} {
># don’t run awesome tcl proc
>post-configure {}
> }

The answer to both questions is the same: pre- and post- blocks are cumulative. 
All pre- and post- blocks will run in the order in which they were declared. 
There is no way to remove a pre- or post- block once it has been added, so only 
add it if you definitely want it.



macports-libcxx: new libc++.dylib for older systems, installed in parallel

2021-03-14 Thread Ken Cunningham
New software uses new libc++ features that older systems don’t support. 

I put together a proof-of-concept technology preview here for a new 
libc++.dylib for older systems:

https://github.com/macports/macports-ports/pull/10238 


it allows std::filesystem, etc to be used on systems < 10.15.

I have a little demonstrator there too that requires these features, 
mkvtoolnix, updated as an example of how to use it.

No doubt there are warts / a better way forward, but I think this is a 
reasonable plan to start with, to see how this works out. 

Nothing comes free, however — discussion re: ODR violation possibilities, etc, 
is here:

https://trac.macports.org/ticket/62426 

Ken

Re: the whole world is renaming the git default branch to main...

2021-03-14 Thread Blake Garner
Yep it’s time. Renaming the branch has been easy for the ones I have done.
it’s the update of automation systems that is the work.

On Sun, Mar 14, 2021 at 11:50 AM Blair Zajac  wrote:

> +1 for renaming.
>
> https://github.com/github/renaming
> https://sfconservancy.org/news/2020/jun/23/gitbranchname/
>
> > On Mar 14, 2021, at 10:54 AM, Ken Cunningham <
> ken.cunningham.web...@gmail.com> wrote:
> >
> > You’re joking, right?
> >
> > K
> >
> >> On Mar 14, 2021, at 10:46 AM, Lothar Haeger 
> wrote:
> >>
> >> Why?
> >>
> >>> Am 14.03.2021 um 18:40 schrieb Ken Cunningham <
> ken.cunningham.web...@gmail.com>:
> >>>
> >>> I suggest we should do that too.
> >>>
> >>> Ken
> >>
> >
> >
>
>


Re: the whole world is renaming the git default branch to main...

2021-03-14 Thread Blair Zajac
+1 for renaming.

https://github.com/github/renaming
https://sfconservancy.org/news/2020/jun/23/gitbranchname/

> On Mar 14, 2021, at 10:54 AM, Ken Cunningham 
>  wrote:
> 
> You’re joking, right?
> 
> K
> 
>> On Mar 14, 2021, at 10:46 AM, Lothar Haeger  wrote:
>> 
>> Why?
>> 
>>> Am 14.03.2021 um 18:40 schrieb Ken Cunningham 
>>> :
>>> 
>>> I suggest we should do that too.
>>> 
>>> Ken
>> 
> 
> 



Re: the whole world is renaming the git default branch to main...

2021-03-14 Thread Ken Cunningham
You’re joking, right?

K

> On Mar 14, 2021, at 10:46 AM, Lothar Haeger  wrote:
> 
> Why?
> 
>> Am 14.03.2021 um 18:40 schrieb Ken Cunningham 
>> :
>> 
>> I suggest we should do that too.
>> 
>> Ken
> 



Re: the whole world is renaming the git default branch to main...

2021-03-14 Thread Lothar Haeger
Why?

> Am 14.03.2021 um 18:40 schrieb Ken Cunningham 
> :
> 
> I suggest we should do that too.
> 
> Ken



the whole world is renaming the git default branch to main...

2021-03-14 Thread Ken Cunningham
I suggest we should do that too.

Ken


Re: Running macOS inside a Docker container

2021-03-14 Thread Ruben Di Battista
Thanks Mojca!

It's something I definitely want to do, but at the moment I'm busy with my
PhD manuscript. Hopefully it will be the end soon, and I'll dedicate a bit
of time to it.

On Sun, Mar 14, 2021 at 1:28 PM Mojca Miklavec  wrote:

> There's an interesting piece of news on slashdot:
>
> Open-Source App Lets Anyone Create a Virtual Army of Hackintoshes
>
>
> https://news.slashdot.org/story/21/03/11/2148210/open-source-app-lets-anyone-create-a-virtual-army-of-hackintoshes
>
> https://github.com/sickcodes/Docker-OSX
>
> This might potentially simplify doing CI on pull request on local
> infrastructure, the major disadvantage for us is that nobody did the
> work yet to make the older versions of Mac OS X work (according to the
> author of OSX-KVM that should be feasible). Here's a cool tutorial
> that might help understand the needs:
> https://dortania.github.io/OpenCore-Install-Guide/
> but it still needs quite some work to be done.
>
> Mojca
>


-- 
  _
-. .´  |
  ',  ;|∞∞
˜˜   |∞ RdB
,.,|∞∞
  .'   '.  |
-'   `'
https://rdb.is


depends_run and activation

2021-03-14 Thread René J . V . Bertin
Hi,

Supposing runtime dependencies are stored in the registry, wouldn't it be 
possible and a good idea to give at least a warning if any are missing when you 
(re)activate a port? I presume you would already have gotten a warning when 
DEactivating the dependency, but that can have been long enough ago that you 
forgot about it (think ports for development that you only require 
sporadically).

R.


Running macOS inside a Docker container

2021-03-14 Thread Mojca Miklavec
There's an interesting piece of news on slashdot:

Open-Source App Lets Anyone Create a Virtual Army of Hackintoshes

https://news.slashdot.org/story/21/03/11/2148210/open-source-app-lets-anyone-create-a-virtual-army-of-hackintoshes

https://github.com/sickcodes/Docker-OSX

This might potentially simplify doing CI on pull request on local
infrastructure, the major disadvantage for us is that nobody did the
work yet to make the older versions of Mac OS X work (according to the
author of OSX-KVM that should be feasible). Here's a cool tutorial
that might help understand the needs:
https://dortania.github.io/OpenCore-Install-Guide/
but it still needs quite some work to be done.

Mojca