From owner-freebsd-stable@FreeBSD.ORG Sat Aug 26 22:12:08 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE77916A526; Sat, 26 Aug 2006 22:12:08 +0000 (UTC) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15EB144403; Sat, 26 Aug 2006 21:42:29 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from atlantis.dp.ua (localhost [127.0.0.1]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id k7QLgPOn062948; Sun, 27 Aug 2006 00:42:25 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Received: from localhost (dmitry@localhost) by atlantis.dp.ua (8.13.1/8.13.1/Submit) with ESMTP id k7QLgPNr062945; Sun, 27 Aug 2006 00:42:25 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Date: Sun, 27 Aug 2006 00:42:24 +0300 (EEST) From: Dmitry Pryanishnikov To: Ruslan Ermilov In-Reply-To: <20060824082012.GA81296@rambler-co.ru> Message-ID: <20060827002203.A39026@atlantis.atlantis.dp.ua> References: <5B7BD83A-6316-4C20-903E-B5D66D4F2642@khera.org> <44EB5354.6070007@paladin.bulgarpress.com> <44EB6411.4040406@paladin.bulgarpress.com> <20060823193309.GA77890@rambler-co.ru> <44ECBFE8.7000809@FreeBSD.org> <20060824082012.GA81296@rambler-co.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Doug Barton , freebsd-stable Subject: Re: 5.5 to 6.1 upgrade X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Aug 2006 22:12:08 -0000 Hello! On Thu, 24 Aug 2006, Ruslan Ermilov wrote: >>> It depends. If options are OPTIONS (in the ports sense), they >>> are saved and independent of portupgrade. If options are >> sysutils/portconf does not have that limitation. If you specify flags using >> that method, they will always be used. >> > True. The implementation is also smart -- it doesn't spam make(1) > environment when not necessary. Thanks! I've tried to use sysutils/portconf, but found that it still doesn't give an universal solution: 1) it doesn't work if /usr/ports is a link to another location. Try e.g. the following configuration: root@homelynx# ls -l /usr/ports lrwxr-xr-x 1 root wheel 9 Aug 27 00:27 /usr/ports -> ftp/ports root@homelynx# cd /usr/ports/net/quagga root@homelynx# realpath . /usr/ftp/ports/net/quagga root@homelynx# grep quagga /usr/local/etc/ports.conf net/quagga: WITH_SNMP=yes root@homelynx# make -V WITH_SNMP root@homelynx# Ports infrastructure itself works OK in this configuration, but sysutils/portconf does not. 2) it still doesn't affect OPTIONS (in the ports sense); try e.g. the following: root@homelynx# realpath . /usr/ports/net/quagga root@homelynx# rm -rf /var/db/ports/quagga root@homelynx# grep quagga /usr/local/etc/ports.conf net/quagga: WITH_SNMP=yes root@homelynx# make You'll see the options menu, and "SNMP support" will be unchecked, so WITH_SNMP will be ignored by the port. Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE