Greetings,

On 01/05/25 12:54, Chun Tian (binghe) wrote:
> Greetings,
> 
> I found another (minor) issue when building GCL in macOS. The system command
> "mktemp" of macOS doesn't support "-p" option (in "xbin/mktmp"). How to 
> rewrite
> this script by using, e.g., "-t" instead:
> 
>       -p DIR, --tmpdir[=DIR]
>               interpret TEMPLATE relative to DIR; if DIR is not specified,  
> use
>               $TMPDIR  if  set, else /tmp.  With this option, TEMPLATE must 
> not
>               be an  absolute  name;  unlike  with  -t,  TEMPLATE  may  
> contain
>               slashes, but mktemp creates only the final component
> 
>        -t     interpret TEMPLATE as a single file name component, relative to 
> a
>               directory:  $TMPDIR, if set; else the directory specified via 
> -p;
>               else /tmp [deprecated]
> 

I just figured out that I can install MacPorts' "coreutils" package, which
provides the GNU version of "mktemp".

Furthermore, by using MacPorts' "legacy-support" package, the missing
"readlinkat" system call will be provided. (I will need to learn how to use this
package.)

Therefore no more blocking issues on supporting GCL 2.7 in earlier macOS
versions. You don't need to do anything here.

In general, I think it's totally reasonable for GCL to depend on some other GNU
tooling packages (on macOS), including GCC (if necessary).

--Chun

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to