#52151 closed defect (fixed)
zstd @1.0.0: cp: illegal option -- a
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | seanfarley (Sean Farley) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | tiger leopard | Cc: | |
Port: | zstd |
Description
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.
Change History (8)
comment:1 follow-up: 3 Changed 8 years ago by seanfarley (Sean Farley)
comment:2 Changed 8 years ago by seanfarley (Sean Farley)
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed 8 years ago by larryv (Lawrence Velázquez)
The change should work and can be applied on all systems.
comment:4 follow-up: 5 Changed 8 years ago by seanfarley (Sean Farley)
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.
:-(
comment:5 Changed 8 years ago by larryv (Lawrence Velázquez)
That should be -R
instead of -r
(which is an obsolete, worse version of -R
).
comment:6 Changed 8 years ago by seanfarley (Sean Farley)
Thanks @larryv. I cannot read. Fixed (finally) in r152244.
comment:7 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
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.
comment:8 Changed 8 years ago by seanfarley (Sean Farley)
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!
Is that something that could go upstream? Or is this just a Leopard patch?