[Bug 219780] USE_PACKAGE_DEPENDS broken if PACKAGES' definition contains colons

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Aug 29 11:47:21 UTC 2017


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

--- Comment #1 from Harald Schmalzbauer <bugzilla.freebsd at omnilan.de> ---
Just for documentation:

Index: ports/Mk/Scripts/do-depends.sh
===================================================================
--- ports/Mk/Scripts/do-depends.sh      (Revision 448848)
+++ ports/Mk/Scripts/do-depends.sh      (Arbeitskopie)
@@ -31,6 +31,11 @@
            PKGFILE pkgfile \
            PKGBASE pkgbase

+       # It's too much effort handling PKGFILE in port_var_fetch(), so work
arround
+       # PACKAGES fallout from r438058 by filtering induvidually – error prone
since
+       # somebody would have to check scripts... Just fix this one here
+       pkgfile=$(echo "${pkgfile}" | tr -d '\')
+
        if [ -r "${pkgfile}" -a "${target}" = "${dp_DEPENDS_TARGET}" ]; then
                echo "===>   Installing existing package ${pkgfile}"
                if [ "${pkgbase}" = "pkg" ]; then


Hard to believe USE_PACKAGE_DEPENDS is used that rarely.
More astonishing is to see 218827 beeing closed while this stayed unresolved
for that time...
This is just quick'n'dirty. Documented here in case anyone needs a quick
solution.
I haven't had a look at r438901 and successors at all. I guess someone with
more ports infrastructure knowledge needs to review that. And intervene if
things get damaged without repair...

-harry

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


More information about the freebsd-ports-bugs mailing list