From owner-freebsd-questions@FreeBSD.ORG Sun Jun 10 18:46:56 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CA44F16A41F for ; Sun, 10 Jun 2007 18:46:56 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.234]) by mx1.freebsd.org (Postfix) with ESMTP id 7880113C46E for ; Sun, 10 Jun 2007 18:46:56 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by nz-out-0506.google.com with SMTP id 14so917135nzn for ; Sun, 10 Jun 2007 11:46:55 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mKZPsQtzcseciaURhGvXatxxOcUpksjzKnl64VShvzlLWKLaOBWzTEvE5VffU0dDv0iWi3KbjyGESbuvlqoHITMHFdKSTYAjDv7WPeJU2FhulhGQl6zn4LUjHW+yctlnvlcyJdFGr8ELUIfkM0nTsJBcD+vDm4UW9IbsGhmPOFw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=flwTR8mh+RufPIH7cdmztAx1vw4OeWp+W56nIKTS+6JlWZlbLdUZsN8mqum7V7xgOq7CAQxSs0c/MojB7eti0HTI+tIlWWRhB3cS28yGDr0mp2E/1Pu7awth55zOfCewnxXFko9Bu/2jGIrCWzhqbd6OF0vZx4DLKLHBft4x7Zg= Received: by 10.143.2.19 with SMTP id e19mr74382wfi.1181501215395; Sun, 10 Jun 2007 11:46:55 -0700 (PDT) Received: by 10.142.254.1 with HTTP; Sun, 10 Jun 2007 11:46:55 -0700 (PDT) Message-ID: <26ddd1750706101146r518a29acr34f76e3c7f251296@mail.gmail.com> Date: Sun, 10 Jun 2007 14:46:55 -0400 From: "Maxim Khitrov" To: freebsd-questions@freebsd.org In-Reply-To: <20070610114136.GB74858@oberon.njm.f2s.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070610114136.GB74858@oberon.njm.f2s.com> Subject: Re: passing parameters to configure script of a port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2007 18:46:56 -0000 On 6/10/07, N.J. Mann wrote: > On Sunday, 10 June, 2007 at 14:29:46 +0300, Angelin Lalev wrote: > > > > I want to build squid from ports, but I need to pass some custom options to configure script. Something > > more, I want to be sure that when I run portupdate it won't revert to default options. Which is the > > right way to do this ? > > ports-mgmt/portconf may be what you are looking for. I use it to select > the correct dictionary for ispell. > > > Cheers, > Nick. I don't think he is asking about preserving port knobs, he wants a way to directly pass arguments to the configure command, and I don't think there is a way to do this. I would actually also like this sort of functionality, because for some ports the knobs are not enough. For example, when you build php5-pdo_sqlite there is no way to specify that the extension should be built as shared. There was a way to do this before all php ports were reorganized, and it was only there because I submitted a patch to the maintainer. After the reorganization it was taken out again. Right now, there is no way to install sqlite separately and have the extension use your existing library. It always insists of compiling the bundled version, even though the parameters to use something else are there. The result is that there is no way for me to upgrade the sqlite version used by php even if the port has something newer. I would have to modify the Makefile manually and then lose all changes when it is updated. Portconf is a good way to make sure that things are upgraded properly, I use it to transfer configurations from one machine to another which is also convenient. However, I wish there was a universal knob that we could use to specify our own configure parameters for those ports that don't have knobs for our desired functionality. - Max