[MacPorts] #52151: zstd @1.0.0: cp: illegal option -- a
#52151: zstd @1.0.0: cp: illegal option -- a ---------------------------+-------------------- Reporter: ryandesign@… | Owner: sean@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: tiger leopard | Port: zstd ---------------------------+-------------------- zstd @1.0.0 fails to build on Leopard: {{{ make: Entering directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_dports_archivers_zstd/zstd/work/zstd-1.0.0' /usr/bin/make -C lib install make[1]: Entering directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_dports_archivers_zstd/zstd/work/zstd-1.0.0/lib' compiling static library compiling dynamic library 1.0.0 creating versioned links creating pkgconfig cp: illegal option -- a usage: cp [-R [-H | -L | -P]] [-fi | -n] [-pvX] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-pvX] source_file ... target_directory make[1]: *** [install] Error 64 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_dports_archivers_zstd/zstd/work/zstd-1.0.0/lib' make: *** [install] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_dports_archivers_zstd/zstd/work/zstd-1.0.0' Command failed: cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_dports_archivers_zstd/zstd/work/zstd-1.0.0" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_dports_archivers_zstd/zstd/work/destroot Exit code: 2 }}} The `cp` program on Leopard and earlier does not understand the `-a` flag. Use `-pPR` instead, which is equivalent. -- Ticket URL: <https://trac.macports.org/ticket/52151> MacPorts <https://www.macports.org/> Ports system for macOS
#52151: zstd @1.0.0: cp: illegal option -- a ---------------------------+--------------------------- Reporter: ryandesign@… | Owner: sean@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: tiger leopard Port: zstd | ---------------------------+--------------------------- Comment (by sean@…): Is that something that could go upstream? Or is this just a Leopard patch? -- Ticket URL: <https://trac.macports.org/ticket/52151#comment:1> MacPorts <https://www.macports.org/> Ports system for macOS
#52151: zstd @1.0.0: cp: illegal option -- a ---------------------------+--------------------------- Reporter: ryandesign@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: tiger leopard Port: zstd | ---------------------------+--------------------------- Changes (by sean@…): * status: new => closed * resolution: => fixed Comment: I don't have a leopard machine to test this on but I tried to fix it in r152241 and r152242. For errors like this, please feel free to fix. -- Ticket URL: <https://trac.macports.org/ticket/52151#comment:2> MacPorts <https://www.macports.org/> Ports system for macOS
#52151: zstd @1.0.0: cp: illegal option -- a ---------------------------+--------------------------- Reporter: ryandesign@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: tiger leopard Port: zstd | ---------------------------+--------------------------- Comment (by larryv@…): The change should work and can be applied on all systems. -- Ticket URL: <https://trac.macports.org/ticket/52151#comment:3> MacPorts <https://www.macports.org/> Ports system for macOS
#52151: zstd @1.0.0: cp: illegal option -- a ---------------------------+--------------------------- Reporter: ryandesign@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: tiger leopard Port: zstd | ---------------------------+--------------------------- Comment (by sean@…): I wasn't able to use it for 10.11: {{{ cp: the -H, -L, and -P options may not be specified with the -r option. }}} :-( -- Ticket URL: <https://trac.macports.org/ticket/52151#comment:4> MacPorts <https://www.macports.org/> Ports system for macOS
#52151: zstd @1.0.0: cp: illegal option -- a ---------------------------+--------------------------- Reporter: ryandesign@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: tiger leopard Port: zstd | ---------------------------+--------------------------- Comment (by larryv@…): That should be `-R` instead of `-r` (which is an obsolete, worse version of `-R`). -- Ticket URL: <https://trac.macports.org/ticket/52151#comment:5> MacPorts <https://www.macports.org/> Ports system for macOS
#52151: zstd @1.0.0: cp: illegal option -- a ---------------------------+--------------------------- Reporter: ryandesign@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: tiger leopard Port: zstd | ---------------------------+--------------------------- Comment (by sean@…): Thanks @larryv. I cannot read. Fixed (finally) in r152244. -- Ticket URL: <https://trac.macports.org/ticket/52151#comment:6> MacPorts <https://www.macports.org/> Ports system for macOS
#52151: zstd @1.0.0: cp: illegal option -- a ---------------------------+--------------------------- Reporter: ryandesign@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: tiger leopard Port: zstd | ---------------------------+--------------------------- Comment (by ryandesign@…): I've been monitoring the build system more closely, since we don't have email notifications right now, and reporting problems as I see them, but I don't have time to fix every problem myself. Thanks for fixing it. Yes, it should be reported to the developers for them to fix in their sources. -- Ticket URL: <https://trac.macports.org/ticket/52151#comment:7> MacPorts <https://www.macports.org/> Ports system for macOS
#52151: zstd @1.0.0: cp: illegal option -- a ---------------------------+--------------------------- Reporter: ryandesign@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: tiger leopard Port: zstd | ---------------------------+--------------------------- Comment (by sean@…): Oh, sure, I don't mean fix all the errors you see :-) I just meant, if anyone else saw a problem like this, they don't need my permission to push a change. Anyway, thanks again for the report and fix! -- Ticket URL: <https://trac.macports.org/ticket/52151#comment:8> MacPorts <https://www.macports.org/> Ports system for macOS
participants (1)
-
MacPorts