tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Yacc Shaving, or, Latest macOS CLT Laccs Something



On 7 Mar 2024, at 21:20, Amitai Schleier wrote:

On my up-to-date Sonoma systems, I accepted the recent update to the Command Line Tools. Now I'm seeing textproc/groff fail like so:

      YACC     src/preproc/eqn/eqn.cpp
xcode-select: Failed to locate 'yacc', requesting installation of command line developer tools.

Okay, it's not just yacc. All the /usr/bin CLT stubs seem to have the same inode. Is anything else missing? This'll tell us:

    #!/bin/sh

    inode=$(ls -li /usr/bin/yacc | awk '{print $1}')
    stubs=$(ls -li /usr/bin | grep ${inode} | sed -e 's|.* ||')

    for i in ${stubs}; do
    	/usr/bin/xcrun --find $i >/dev/null 2>&1 || echo $i
    done

Output:

    llvm-g++
    llvm-gcc
    m4
    yacc

So we'll have to defend against m4 that's not really there, too.


Home | Main Index | Thread Index | Old Index