Date: Tue, 20 Jul 2010 10:27:29 GMT From: Dominic Fandrey <kamikaze@bsdforen.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/148783: [patch] add LATEST_LINK and CONFLICTS to INDEX Message-ID: <201007201027.o6KARTJh032206@www.freebsd.org> Resent-Message-ID: <201007201030.o6KAU1xG010380@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 148783 >Category: ports >Synopsis: [patch] add LATEST_LINK and CONFLICTS to INDEX >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jul 20 10:30:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Dominic Fandrey >Release: RELENG_8 >Organization: private >Environment: FreeBSD mobileKamikaze.norad 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #0: Fri Jul 9 19:00:24 CEST 2010 root@mobileKamikaze.norad:/usr/obj/HP6510b-8/amd64/usr/src/sys/HP6510b-8 amd64 >Description: This patch addresses two problems vital for binary only package management tools that rely on the INDEX. The first one, LATEST_LINK is a convenience, but CONFLICTS strikes me as really important. LATEST_LINK - Useful to interpret user provided parameters, e.g. pkg_upgrade has 80 lines of code dedicated to guessing package names that look like LATEST_LINK names - Can be used to always download the latest available version of a package CONFLICTS - Without it packages have to be downloaded to recognize that they conflict with existing packages >How-To-Repeat: >Fix: Patch attached with submission follows: --- Mk/bsd.port.mk.orig 2010-07-20 11:58:55.000000000 +0200 +++ Mk/bsd.port.mk 2010-07-20 12:12:58.000000000 +0200 @@ -5597,7 +5597,7 @@ break; \ ;; \ esac; \ - done < ${DESCR}; ${ECHO_CMD} + done < ${DESCR}; ${ECHO_CMD} "|${LATEST_LINK}|${CONFLICTS}" . endif .else . if !target(describe) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007201027.o6KARTJh032206>