Add flavor support to portmaster. This version has been lightly tested and
supports upgrades from non-flavored port versions based on the information in the MOVED file. For initial installations of flavored ports, the flavor must be specified as part of the port origin, e.g. "devel/py-py@py36" for the Python-3.6 version of that port. Dependent ports will automatically be installed with the correct flavor passed via the dependency mechanism. It is planned to add a --flavor option to ease flavor selection for ports that are initially installed with portmaster. Approved by: antoine (implicit)
This commit is contained in:
parent
a77eeed867
commit
606a3cac9d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=456351
3 changed files with 4 additions and 73 deletions
|
@ -1,7 +1,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= portmaster
|
||||
PORTVERSION= 3.17.10
|
||||
PORTVERSION= 3.17.11
|
||||
CATEGORIES= ports-mgmt
|
||||
MASTER_SITES= LOCAL/bdrewery/${PORTNAME}/ \
|
||||
http://mirror.shatow.net/freebsd/${PORTNAME}/ \
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1486159871
|
||||
SHA256 (freebsd-portmaster-3.17.10_GH0.tar.gz) = 29d71ada63715f33645479ea2840b2223b5086ef2213bd42cc900f2baad06eb4
|
||||
SIZE (freebsd-portmaster-3.17.10_GH0.tar.gz) = 44745
|
||||
TIMESTAMP = 1513277951
|
||||
SHA256 (freebsd-portmaster-3.17.11_GH0.tar.gz) = 7c4c95aa680d7f637a7ac0ae5c0fbc3c7678fa15f32513f78d6b1841476d6589
|
||||
SIZE (freebsd-portmaster-3.17.11_GH0.tar.gz) = 42939
|
||||
|
|
|
@ -1,69 +0,0 @@
|
|||
--- 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,21 @@ 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
|
||||
+ 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 <<-EOF
|
||||
+ $(all_pkgs_by_origin)
|
||||
+ EOF
|
||||
|
||||
echo "===>>> Checking $port_dbdir"
|
||||
|
Loading…
Reference in a new issue