Re: I am getting "the MacOS 11.2 SDK does not appear to be installed" warning — have manually installed Xcode 12.4 command-line tools

2021-02-09 Thread Andrew Udvare


> On 2021-02-10, at 02:02, Gregory Dodwell  wrote:
> 
> I have also followed all of the other recommendations outlined on the 
> Macports webpage for the same issue ... to no avail once I start running 
> "sudo port install ..." commands. 
> 
> M1 Macbook Pro; OS 11.2.1; Macports v2.6.4.

Lucky.
> 
> I run from my general account as a sudoer.
> 
> I have downloaded the Xcode 12.4 command line tools from Apple Developer, and 
> have run the recommended licence activation commands as privileged user. I 
> still get the warning ...

I too am getting this warning but I have not had any errors.

Re: It was a dark and stormy night ...

2021-02-09 Thread james
About->system report
Says
APO512N

I’ve never noticed, very sorry about the noise

James

> On 10 Feb 2021, at 2:22 pm, james  wrote:
> 
> The captain said to his men “Gather round my merry men I’ve a terrible tail 
> to tell”. This is the tail he told … "It was a dark and stormy night …”
> 
> Once upon a time Craig did a port for mythtv. It was too hard to maintain and 
> building mythtv was incredibly hard. John Hoyt set about making an ansible 
> build that was a) much much easier b) made extensive use of macports.
> 
> A recent change to macports jpeg library meant that the mythtv bundle used 
> the macports jpeg library. John has resolved this but (before he did) in 
> trying to track down and fix the issue I caused chaos on my MacBook.
> 
> No worries, inconvenient, but I’ll just re-install. Gods snicker.
> 
> I created a bootable Catalina disk and tried that way. Soon to learn the 
> error of my ways (explains: security stops booting from an external drive)
> 
> I used the online tools to
> a) format the disk as a case sensitive apfs drive
> b) re-install Catalina (and there are reasons for not embracing Big Sur)
> 
> After restoring some of my stuff I had no space !!
> I have 2 Mac OS - Data volumes. After much cleaning and fiddling it I have 
> 1/2 drive space.
> 
> Who should I go to to ask for help on disk stuff (And the dark and stormy is 
> about going round and round eg enter passed to change security to allow ext 
> boot when main disk is blank. So Install os to change security ..)
> 
> Thanks James
> 
> [plasma] /Users/jam [63]% df -h
> Filesystem  Size   Used  Avail Capacity iused  ifree %iused  Mounted 
> on
> /dev/disk1s7   466Gi   10Gi  193Gi 6%  488254 48819646260%   /
> devfs  189Ki  189Ki0Bi   100% 654  0  100%   /dev
> /dev/disk1s6   466Gi  182Gi  193Gi49%  636680 48818162000%   
> /System/Volumes/Data
> /dev/disk1s5   466Gi  1.0Gi  193Gi 1%   1 48824528790%   
> /private/var/vm
> /dev/disk1s1   466Gi   19Gi  193Gi10%   95000 48823578800%   
> /Volumes/Macintosh HD — Data
> /dev/disk1s2   466Gi   59Gi  193Gi24% 1118568 48813343120%   
> /Volumes/Macintosh HD - Data
> map auto_home0Bi0Bi0Bi   100%   0  0  100%   
> /System/Volumes/Data/home
> [plasma] /Users/jam [64]% ls /Volumes/ |od -atx1
> 000M   a   c   i   n   t   o   s   h  sp   H   D  nl   M   a   c
>   4d  61  63  69  6e  74  6f  73  68  20  48  44  0a  4d  61  63
> 020i   n   t   o   s   h  sp   H   D  sp   -  sp   D   a   t   a
>   69  6e  74  6f  73  68  20  48  44  20  2d  20  44  61  74  61
> 040   nl   M   a   c   i   n   t   o   s   h  sp   H   D  sp   �  80
>   0a  4d  61  63  69  6e  74  6f  73  68  20  48  44  20  e2  80
> 060   94  sp   D   a   t   a  nl
>   94  20  44  61  74  61  0a
> 067
> [plasma] /Users/jam [65]%



I am getting "the MacOS 11.2 SDK does not appear to be installed" warning — have manually installed Xcode 12.4 command-line tools

2021-02-09 Thread Gregory Dodwell
I have also followed all of the other recommendations outlined on the
Macports webpage for the same issue ... to no avail once I start running
"sudo port install ..." commands.

M1 Macbook Pro; OS 11.2.1; Macports v2.6.4.

I run from my general account as a sudoer.

I have downloaded the Xcode 12.4 command line tools from Apple Developer,
and have run the recommended licence activation commands as
privileged user. I still get the warning ...

Greg./


It was a dark and stormy night ...

2021-02-09 Thread james
The captain said to his men “Gather round my merry men I’ve a terrible tail to 
tell”. This is the tail he told … "It was a dark and stormy night …”

Once upon a time Craig did a port for mythtv. It was too hard to maintain and 
building mythtv was incredibly hard. John Hoyt set about making an ansible 
build that was a) much much easier b) made extensive use of macports.

A recent change to macports jpeg library meant that the mythtv bundle used the 
macports jpeg library. John has resolved this but (before he did) in trying to 
track down and fix the issue I caused chaos on my MacBook.

No worries, inconvenient, but I’ll just re-install. Gods snicker.

I created a bootable Catalina disk and tried that way. Soon to learn the error 
of my ways (explains: security stops booting from an external drive)

I used the online tools to
a) format the disk as a case sensitive apfs drive
b) re-install Catalina (and there are reasons for not embracing Big Sur)

After restoring some of my stuff I had no space !!
I have 2 Mac OS - Data volumes. After much cleaning and fiddling it I have 1/2 
drive space.

Who should I go to to ask for help on disk stuff (And the dark and stormy is 
about going round and round eg enter passed to change security to allow ext 
boot when main disk is blank. So Install os to change security ..)

Thanks James

[plasma] /Users/jam [63]% df -h
Filesystem  Size   Used  Avail Capacity iused  ifree %iused  Mounted on
/dev/disk1s7   466Gi   10Gi  193Gi 6%  488254 48819646260%   /
devfs  189Ki  189Ki0Bi   100% 654  0  100%   /dev
/dev/disk1s6   466Gi  182Gi  193Gi49%  636680 48818162000%   
/System/Volumes/Data
/dev/disk1s5   466Gi  1.0Gi  193Gi 1%   1 48824528790%   
/private/var/vm
/dev/disk1s1   466Gi   19Gi  193Gi10%   95000 48823578800%   
/Volumes/Macintosh HD — Data
/dev/disk1s2   466Gi   59Gi  193Gi24% 1118568 48813343120%   
/Volumes/Macintosh HD - Data
map auto_home0Bi0Bi0Bi   100%   0  0  100%   
/System/Volumes/Data/home
[plasma] /Users/jam [64]% ls /Volumes/ |od -atx1
000M   a   c   i   n   t   o   s   h  sp   H   D  nl   M   a   c
   4d  61  63  69  6e  74  6f  73  68  20  48  44  0a  4d  61  63
020i   n   t   o   s   h  sp   H   D  sp   -  sp   D   a   t   a
   69  6e  74  6f  73  68  20  48  44  20  2d  20  44  61  74  61
040   nl   M   a   c   i   n   t   o   s   h  sp   H   D  sp   �  80
   0a  4d  61  63  69  6e  74  6f  73  68  20  48  44  20  e2  80
060   94  sp   D   a   t   a  nl
   94  20  44  61  74  61  0a
067
[plasma] /Users/jam [65]%

Re: Debugging restore_ports.tcl

2021-02-09 Thread Eric Gallager via macports-users
On Tue, Feb 9, 2021 at 6:23 AM Pieter van Oostrum
 wrote:
>
> Eric Gallager via macports-users  writes:
>
> > On Mon, Feb 8, 2021 at 1:03 PM Ryan Schmidt  wrote:
> >>
> >>
> >>
> >> On Feb 7, 2021, at 20:59, Eric Gallager wrote:
> >>
> >> > When restore_ports.tcl gets stuck building its list of ports to
> >> > restore, is there a way to get it to tell you which ports exactly it's
> >> > failing to process? i.e., which ports to remove from your myports.txt
> >> > to get it to continue?
> >>
> >> I don't know. In what way is it getting stuck?
> >
> > It's the part on the Troubleshooting section of the wiki page where it says:
> >
> > If you see an "infinite loop" error message, such as this:
> >
> > Error: we appear to be stuck, exiting...
> > infinite loop
> > while executing
> > "sort_ports $portList"
> > invoked from within
> > "set operationList [sort_ports $portList]"
> > (file "./restore_ports.tcl" line 285)
> >
> > it indicates that the script has a list of ports to install, and it
> > can't figure out which of the ports to install next.
> >
> > https://trac.macports.org/wiki/Migration#Troubleshooting
> >
> > The workaround it suggests to deal with this issue is "to reduce your
> > list of ports to install, until it no longer has a dependency cycle,"
> > but it doesn't say exactly HOW to go about choosing which ports to
> > remove from the list in order to reduce its length.
> > My myports.txt file has 6147 lines in it. I don't know where to begin with 
> > it.
>
> The usual way of tackling these kinds of problems is "bisecting". Divide the 
> list in two halves, and try each of these separately. If a half fails, then 
> divide it in two halves again, etc.

With git at least, there's a built-in command (`git bisect`) to assist
with cases like this; would it be possible to add a similar feature to
the restore_ports.tcl script?

> --
> Pieter van Oostrum
> www: http://pieter.vanoostrum.org/
> PGP key: [8DAE142BE17999C4]


Re: The application bundle ID

2021-02-09 Thread Ryan Schmidt



On Feb 9, 2021, at 15:22, Tong Sun wrote:

> I'm in the situation that I need to know an application's bundle ID,
> it's xterm actually. And I'm wondering what's the proper way to get
> any application's bundle ID within MacPorts.
> 
> I found this, but it's not helping --
> https://stackoverflow.com/questions/39464668/how-to-get-bundle-id-of-mac-application
> 
> I did some further digging, and saw
> 
> configure --prefix=/opt/local . . . -with-bundle-id-prefix=org.macports
> 
> Can I assume that xterm's application bundle ID to be
> 
> org.macports.xterm?
> 
> Else, what should it be? Thx!

It's not a MacPorts-specific question. The bundle ID of a bundle for any of 
Apple's Darwin-based operating systems can be found in its Info.plist, which is 
inside its Contents folder. For example:


$ defaults read /Applications/Safari.app/Contents/Info.plist CFBundleIdentifier
com.apple.Safari

$ defaults read /Applications/MacPorts/X11.app/Contents/Info.plist 
CFBundleIdentifier
org.macports.X11


The Portfile in which you saw the --with-bundle-id-prefix=org.macports flag was 
presumably the xorg-server port, which is the port that installs the X11 app 
bundle, and indeed because of that flag its bundle ID begins with org.macports.

xterm is not an application bundle; it's a command line utility. Since it is 
not a bundle, it does not have a bundle identifier.



The application bundle ID

2021-02-09 Thread Tong Sun
I'm in the situation that I need to know an application's bundle ID,
it's xterm actually. And I'm wondering what's the proper way to get
any application's bundle ID within MacPorts.

I found this, but it's not helping --
https://stackoverflow.com/questions/39464668/how-to-get-bundle-id-of-mac-application

I did some further digging, and saw

configure --prefix=/opt/local . . . -with-bundle-id-prefix=org.macports

Can I assume that xterm's application bundle ID to be

org.macports.xterm?

Else, what should it be? Thx!


Re: Debugging restore_ports.tcl

2021-02-09 Thread Christopher Jones


> On 9 Feb 2021, at 11:22 am, Pieter van Oostrum  
> wrote:
> 
> Eric Gallager via macports-users  > writes:
> 
>> On Mon, Feb 8, 2021 at 1:03 PM Ryan Schmidt  wrote:
>>> 
>>> 
>>> 
>>> On Feb 7, 2021, at 20:59, Eric Gallager wrote:
>>> 
 When restore_ports.tcl gets stuck building its list of ports to
 restore, is there a way to get it to tell you which ports exactly it's
 failing to process? i.e., which ports to remove from your myports.txt
 to get it to continue?
>>> 
>>> I don't know. In what way is it getting stuck?
>> 
>> It's the part on the Troubleshooting section of the wiki page where it says:
>> 
>> If you see an "infinite loop" error message, such as this:
>> 
>> Error: we appear to be stuck, exiting...
>> infinite loop
>>while executing
>> "sort_ports $portList"
>>invoked from within
>> "set operationList [sort_ports $portList]"
>>(file "./restore_ports.tcl" line 285)
>> 
>> it indicates that the script has a list of ports to install, and it
>> can't figure out which of the ports to install next.
>> 
>> https://trac.macports.org/wiki/Migration#Troubleshooting
>> 
>> The workaround it suggests to deal with this issue is "to reduce your
>> list of ports to install, until it no longer has a dependency cycle,"
>> but it doesn't say exactly HOW to go about choosing which ports to
>> remove from the list in order to reduce its length.
>> My myports.txt file has 6147 lines in it. I don't know where to begin with 
>> it.
> 
> The usual way of tackling these kinds of problems is "bisecting". Divide the 
> list in two halves, and try each of these separately. If a half fails, then 
> divide it in two halves again, etc.

Personally, I would recommend not trying to restore *every* port, as this will 
include a bunch of dependencies that might not be needed on a new OS, or might 
even not work there. 

Look at the list of *requested* ports you installed. This will be a lot lot 
shorter, short enough to go through by hand and install one by one.

Chris



smime.p7s
Description: S/MIME cryptographic signature


[no subject]

2021-02-09 Thread May Vongsay


ดาวน์โหลด Outlook for iOS


Re: Debugging restore_ports.tcl

2021-02-09 Thread Pieter van Oostrum
Eric Gallager via macports-users  writes:

> On Mon, Feb 8, 2021 at 1:03 PM Ryan Schmidt  wrote:
>>
>>
>>
>> On Feb 7, 2021, at 20:59, Eric Gallager wrote:
>>
>> > When restore_ports.tcl gets stuck building its list of ports to
>> > restore, is there a way to get it to tell you which ports exactly it's
>> > failing to process? i.e., which ports to remove from your myports.txt
>> > to get it to continue?
>>
>> I don't know. In what way is it getting stuck?
>
> It's the part on the Troubleshooting section of the wiki page where it says:
>
> If you see an "infinite loop" error message, such as this:
>
> Error: we appear to be stuck, exiting...
> infinite loop
> while executing
> "sort_ports $portList"
> invoked from within
> "set operationList [sort_ports $portList]"
> (file "./restore_ports.tcl" line 285)
>
> it indicates that the script has a list of ports to install, and it
> can't figure out which of the ports to install next.
>
> https://trac.macports.org/wiki/Migration#Troubleshooting
>
> The workaround it suggests to deal with this issue is "to reduce your
> list of ports to install, until it no longer has a dependency cycle,"
> but it doesn't say exactly HOW to go about choosing which ports to
> remove from the list in order to reduce its length.
> My myports.txt file has 6147 lines in it. I don't know where to begin with it.

The usual way of tackling these kinds of problems is "bisecting". Divide the 
list in two halves, and try each of these separately. If a half fails, then 
divide it in two halves again, etc.
-- 
Pieter van Oostrum
www: http://pieter.vanoostrum.org/
PGP key: [8DAE142BE17999C4]