[MacPorts] #60739: SFML 2.4.2 fails to build because it picks the wrong compiler
MacPorts
noreply at macports.org
Wed Jul 1 00:16:13 UTC 2020
#60739: SFML 2.4.2 fails to build because it picks the wrong compiler
------------------------------+----------------------
Reporter: programmingkidx | Owner: rkitover
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: | Keywords:
Port: SFML |
------------------------------+----------------------
Comment (by programmingkidx):
I noticed there is a ton of ports that being with p5.28. What does that
mean?
I found a way around the problem.
Step 1: use a shell script that automatically activates ports:
{{{
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
target="$1"
while [ 1 ]
do
echo trying to install "$target"
if [[ $(port installed "$target" | grep "$target") ]]; then echo
"$target" present; break; fi
line=`port install "$target" 2>&1 > /dev/tty | grep "port -f
activate"`
package=$(echo $line | sed -e "s/^.*port -f activate //" -e "s/.
.*//")
if [ "$package" = "$oldpackage" ]; then echo double \""$package"\";
break; fi
oldpackage="$package"
echo activating "$package"
port -f activate "$package"
done
# This will all go in an executable shell script file called port-
instact.sh.
}}}
Step 2: Find a way to say yes automatically to all the MacPorts prompts:
The yes command.
Step 3: combine them together to completely automate installing ports.
yes | sudo port-instact.sh sfml
--
Ticket URL: <https://trac.macports.org/ticket/60739#comment:19>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list