aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt
diff options
context:
space:
mode:
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/portmaster/files/patch-portmaster67
1 files changed, 67 insertions, 0 deletions
diff --git a/ports-mgmt/portmaster/files/patch-portmaster b/ports-mgmt/portmaster/files/patch-portmaster
new file mode 100644
index 000000000000..deaf4682be01
--- /dev/null
+++ b/ports-mgmt/portmaster/files/patch-portmaster
@@ -0,0 +1,67 @@
+--- portmaster.orig 2016-02-05 22:36:56 UTC
++++ portmaster
+@@ -1239,7 +1239,8 @@ all_pkgs_by_origin () {
+ echo $iport $origin
+ done
+ else
+- pkg query -a "%n-%v %o"
++ namesorigins=`pkg query -a "%n-%v %o"`
++ echo "$namesorigins"
+ fi
+ return
+ }
+@@ -1644,42 +1645,19 @@ if [ -n "$CHECK_PORT_DBDIR" ]; then
+ unique_list=':'
+
+ echo "===>>> Building list of installed port names"; echo ''
+- if [ -z "$use_pkgng" ]; then
+- for pkg in $pdb/*; do
+- [ -d $pkg ] || continue
+-
+- iport=${pkg#$pdb/}
+- origin=`origin_from_pdb $iport` || continue
+-
+- if [ ! -d "$pd/$origin" ]; then
+- find_moved_port $origin $iport nonfatal >/dev/null
+- [ -n "$moved_npd" ] || continue
+- origin=$moved_npd
+- fi
+-
+- if ! pm_cd $pd/$origin; then
+- echo " ===>>> $pd/$origin does not exist for $pkg"
+- continue
+- fi
+- unique_list="${unique_list}`make -V UNIQUENAME -V OPTIONS_NAME | tr '\n' ':'`"
+- done
+- else
+- while read pkg origin; do
+- if [ ! -d "$pd/$origin" ]; then
+- find_moved_port $origin $pkg nonfatal >/dev/null
+- [ -n "$moved_npd" ] || continue
+- origin=$moved_npd
+- fi
++ all_pkgs_by_origin | while read pkg origin; do
++ if [ ! -d "$pd/$origin" ]; then
++ find_moved_port $origin $pkg nonfatal >/dev/null
++ [ -n "$moved_npd" ] || continue
++ origin=$moved_npd
++ fi
+
+- if ! pm_cd $pd/$origin; then
+- echo " ===>>> $pd/$origin does not exist for $pkg"
+- continue
+- fi
+- unique_list="${unique_list}`make -V UNIQUENAME -V OPTIONS_NAME | tr '\n' ':'`"
+- done <<-EOF
+- $(pkg query -a "%n-%v %o")
+- EOF
+- fi
++ if ! pm_cd $pd/$origin; then
++ echo " ===>>> $pd/$origin does not exist for $pkg"
++ continue
++ fi
++ unique_list="${unique_list}`make -V UNIQUENAME -V OPTIONS_NAME | tr '\n' ':'`"
++ done
+
+ echo "===>>> Checking $port_dbdir"
+