Menu

#3 Use cp -R instead of cp -r

2.6.0
closed
None
2024-05-02
2024-05-01
No

build/install_mac.mk uses cp -r. Per the cp(1) manpage on macOS:

     Historic versions of the cp utility had a -r option.  This implementation
     supports that option, however, its behavior is different from historical
     FreeBSD behavior.  Use of this option is strongly discouraged as the
     behavior is implementation-dependent.  In FreeBSD, -r is a synonym for
     -RL and works the same unless modified by other flags.  Historical
     implementations of -r differ as they copy special files as normal files
     while recreating a hierarchy.

So please use cp -R instead of cp -r.

Discussion

  • Tamás Fehérvári

    I assume you were referring to the install_mac.mk makefile. I've updated that. Thanks!

     
  • Tamás Fehérvári

    • status: open --> closed
    • assigned_to: Tamás Fehérvári
     
  • Tamás Fehérvári

    Oh, just realized you mentioned the file itself. Somehow I missed it before. Anyway, fixed. :)

     

Log in to post a comment.