[Bug 241227] ports-mgmt/portmaster: If depended port is flavorized and already installed, portmaster reinstall it when installing/updating/reinstalling depending port

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 19 05:19:23 GMT 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241227

Walter Schwarzenfeld <w.schwarzenfeld at utanet.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |w.schwarzenfeld at utanet.at

--- Comment #12 from Walter Schwarzenfeld <w.schwarzenfeld at utanet.at> ---
(In reply to Tatsuki Makino from comment #5)
try this change in your patch

        origin=$(dir_part "$1")
+       if [ "${1}" != "${origin}" ] ; then
        flavor=$(flavor_part "$1")
+       else
+               unset FLAVOR
+               flavor=$(pm_make -C "${pd}/${origin}" -V FLAVOR)
+               export flavor $flavor
+       fi
        pkgname_l=$(echo $($PKG_CMD query '%n-%v' $origin)) || return 1
        # if multiple flavors registered then fall back to $FLAVOR if no flavor
has been passed in $1
        [ "${pkgname_l}" != "${pkgname_l#* }" ] && : ${flavor:=$FLAVOR}

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kde-freebsd mailing list