Skip to content

Commit

Permalink
Respect TRYBROKEN in /etc/make.conf
Browse files Browse the repository at this point in the history
Make TRYBROKEN defined in the process environment or in /etc/make.conf
allow building of ports that are marked as BROKEN or IGNORE, similar
to the --try-broken option.
  • Loading branch information
stesser committed Nov 29, 2023
1 parent edb3fe6 commit 443af86
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions portmaster
Original file line number Diff line number Diff line change
Expand Up @@ -1484,9 +1484,11 @@ fi
check_state () {
# Global: state
local state_set makevars

[ -z "$TRY_BROKEN" ] && makevars="FORBIDDEN BROKEN IGNORE" || makevars="FORBIDDEN"
set -x
if egrep -ql '^(FORBIDDEN|BROKEN|IGNORE)' Makefile; then
[ -z "$TRY_BROKEN" ] && [ -z `pm_make -V TRYBROKEN` ] && \
makevars="FORBIDDEN BROKEN IGNORE" || \
makevars="FORBIDDEN"
for state in $makevars; do
state_set=`pm_make -V $state`
if [ -n "$state_set" ]; then
Expand Down

0 comments on commit 443af86

Please sign in to comment.