Date: Sat, 12 Jul 2003 21:52:02 -0700 (PDT) From: Bharat Mediratta <bharat@menalto.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/54424: portupgrade ignores ALT_PKGDEP Message-ID: <200307130452.h6D4q2PB063535@harmony.menalto.com> Resent-Message-ID: <200307130500.h6D50T5i083412@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 54424 >Category: ports >Synopsis: portupgrade ignores ALT_PKGDEP >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 12 22:00:29 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Bharat Mediratta >Release: FreeBSD 4.8-RELEASE i386 >Organization: menalto.com >Environment: System: FreeBSD harmony.menalto.com 4.8-RELEASE FreeBSD 4.8-RELEASE #3: Wed Apr 16 00:50:18 PDT 2003 bharat@harmony.menalto.com:/usr/obj/usr/src/sys/HARMONY i386 portupgrade-20030427 >Description: pkgtools.conf contains a section called ALT_PKGDEP that allows you to substitute one package dependency for another. In my particular case, I want to install the "security/acid" port without having it install "databases/adodb", which is listed in the RUN_DEPENDS for the acid Makefile. In the ALT_PKGDEP section of pkgtools.conf I've tried the following settings: 1. 'databases/adodb' => :delete, 2. 'databases/adodb' => :skip, 3. 'adodb' => :delete, 4. 'adodb' => :skip, but none of them work. A quick grep through the /usr/local/lib/ruby/site_ruby code shows that most of the other hashes defined in pkgtools.conf are referenced in the code, but ALT_PKGDEP isn't. It looks like this feature was never implemented. >How-To-Repeat: Edit pkgtools.conf and modify ALT_PKGDEP to be: ALT_PKGDEP = { 'databases/adodb' => :delete, } then do "portinstall acid" and see that it still tries to install adodb. >Fix: Implement this function, or document the fact that it doesn't work in pkgtools.conf so that folks don't waste their time trying to get it working! >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307130452.h6D4q2PB063535>