[MacPorts] #70897: cp: Bad address
MacPorts
noreply at macports.org
Wed Sep 25 08:15:23 UTC 2024
#70897: cp: Bad address
----------------------------+----------------------
Reporter: christophecvr | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.10.99
Resolution: | Keywords: haspatch
Port: |
----------------------------+----------------------
Comment (by christophecvr):
Replying to [comment:13 ryandesign]:
> Here's my attempt at fixing this; someone else should check if this
makes sense: https://github.com/macports/macports-base/pull/350
I tried to reproduce the error with a small script in terminal :
{{{
#!/bin/sh
destpath="$HOME/ACLONEBINCP"
if [ ! -d $destpath ]; then
mkdir "$destpath"
fi
OLDIFS="$IFS"
filepath="/opt/local/var/macports/build/_opt_mports_macports-
ports_devel_openssl3/openssl3/work/destroot/opt/local/libexec/openssl3/share/doc/openssl/html/man7"
IFS="
"
fileslist=(`find $filepath -type f -name "*.html"`)
IFS=$OLDIFS
for I in "${fileslist[@]}"
do
/opt/local/libexec/macports/clonebin/cp -fv "$I" "$destpath"
done
}}}
But then the cp command runs fine.
I will try you're commit with a rebuild by me.
--
Ticket URL: <https://trac.macports.org/ticket/70897#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list