[MacPorts] #54671: youtube-dl @2017.08.23_0 fails building on 10.5.8
MacPorts
noreply at macports.org
Sun Aug 27 10:31:54 UTC 2017
#54671: youtube-dl @2017.08.23_0 fails building on 10.5.8
------------------------+------------------------
Reporter: udbraumann | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: BSD cp | Port: youtube-dl
------------------------+------------------------
While upgrading youtube-dl from 2017.08.18_0 to 2017.08.23_0 building has
stopped here:
{{{
...
While upgrading :info:build make: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_net_youtube-dl/youtube-dl/work/youtube-dl'
:info:build mkdir -p zip
:info:build for d in youtube_dl youtube_dl/downloader youtube_dl/extractor
youtube_dl/postprocessor ; do \
:info:build mkdir -p zip/$d ;\
:info:build cp -a $d/*.py zip/$d/ ;\
:info:build done
:info:build cp: illegal option -- a
:info:build usage: cp [-R [-H | -L | -P]] [-fi | -n] [-pvX] source_file
target_file
:info:build cp [-R [-H | -L | -P]] [-fi | -n] [-pvX] source_file
... target_directory
:info:build cp: illegal option -- a
:info:build usage: cp [-R [-H | -L | -P]] [-fi | -n] [-pvX] source_file
target_file
:info:build cp [-R [-H | -L | -P]] [-fi | -n] [-pvX] source_file
... target_directory
:info:build cp: illegal option -- a
:info:build usage: cp [-R [-H | -L | -P]] [-fi | -n] [-pvX] source_file
target_file
:info:build cp [-R [-H | -L | -P]] [-fi | -n] [-pvX] source_file
... target_directory
:info:build cp: illegal option -- a
:info:build usage: cp [-R [-H | -L | -P]] [-fi | -n] [-pvX] source_file
target_file
:info:build cp [-R [-H | -L | -P]] [-fi | -n] [-pvX] source_file
... target_directory
:info:build make: *** [youtube-dl] Error 64
...
}}}
Obviously, the `-a` switch has not been implemented in the 2005 BSD
variant of `cp` (not sure if implemented at all for BSD so far). As far as
I can see, `-a` can be mimicked using `-dR --preserve=all`, whereas `-d`
is a brief variant of `-P --preserve=links`. Also, `-p` is more or less
the same as `--preserve=all`. `-R` seems to have not changed since the
2005 BSD `cp`. So I propose to use `-pPR` instead of `-a` on systems where
`-a` (or `--archive`) is missing, or just to replace the `-a` for all
systems with `-pPR`.
--
Ticket URL: <https://trac.macports.org/ticket/54671>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list