From owner-freebsd-ports@FreeBSD.ORG Thu Jan 29 23:12:46 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 275FB1065713 for ; Thu, 29 Jan 2009 23:12:46 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao103.cox.net (eastrmmtao103.cox.net [68.230.240.9]) by mx1.freebsd.org (Postfix) with ESMTP id AE93D8FC1D for ; Thu, 29 Jan 2009 23:12:45 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao103.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20090129231245.RZMD11476.eastrmmtao103.cox.net@eastrmimpo02.cox.net>; Thu, 29 Jan 2009 18:12:45 -0500 Received: from localhost ([68.103.37.153]) by eastrmimpo02.cox.net with bizsmtp id 9bCk1b00S3JFCbG02bCk7l; Thu, 29 Jan 2009 18:12:45 -0500 X-Authority-Analysis: v=1.0 c=1 a=9oQhmrv7VOwA:10 a=NbiXZZgMwkQA:10 a=6I5d2MoRAAAA:8 a=NYTAuqVkikOokqd9HSEA:9 a=9oxCqcZlcYjDwP8rL3p3Bke4g8oA:4 a=4vB-4DCPJfMA:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 X-CM-Score: 0.00 Date: Thu, 29 Jan 2009 17:12:40 -0600 To: "Boris Samorodov" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: <13578868@bs1.sp34.ru> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <13578868@bs1.sp34.ru> User-Agent: Opera Mail/9.63 (Linux) Cc: freebsd-ports@freebsd.org Subject: Re: Run-time auto-detection is harmful for packages X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2009 23:12:46 -0000 On Thu, 29 Jan 2009 16:40:27 -0600, Boris Samorodov wrote: > Hello List, > > > I'd like to be better safe than sorry, but... You know, things may > happen. > > I prefer to use packages for installing/updating since there are at > least five personal machines which I should take care of (at work, at > home, my relatives, backups, etc.) and a bunch of servers at > $dayjob. But there is imho an inconsistency when an auto-detection is > involved. > > Please note, that I'll speak about default environment. And this is > not about gnome packages. The latter are just an example. > > Here is an example. I'm able to install lang/fpc-units only IFF > there is no x11/gnome2 installed! If x11/gnome2 is installed > then audio/esound is installed. One of lang/fpc-units dependencies > (audio/libmikmod) has an auto-detection at the Makefile: > ----- > .if ${HAVE_GNOME:Mesound}!="" > USE_GNOME+= esound > CONFIGURE_ARGS+= --enable-esd > PKGNAMESUFFIX= -esound > .else > CONFIGURE_ARGS+= --disable-esd > .endif > ----- > > Hence: > ----- > # (cd /usr/ports/audio/libmikmod; make -V PKGNAME) > libmikmod-esound-3.1.11_2 > ----- > > But this package has never been packaged (note: with default > environment). I can do nothing at my side (you remember, I use > packages) after I had installed default packaged x11/gnome2. > > My proposal is dual. > > 1. Give an administrator a key to disable that super intelligence ;-) > and replace the line > .if ${HAVE_GNOME:Mesound}!="" > with the line > .if (${HAVE_GNOME:Mesound}!="" || defined(WITH_ESOUND)) && > !defined(WITHOUT_ESOUND) > > That will give an administrator an opportunity to unbreak per host > some currently broken package installation/update. You already can do that. WITHOUT_GNOME=yes or WITHOUT_GNOME=esound. > 2. Create slave ports to build (non-default so far) packages for those > who want to use packages and were unfortunate to install packages > used for auto-detection by other packages. > > As an example here may be a slave port audio/libmikmod-esound with > CONFIGURE_ARGS+=--enable-esd at makefile. No thanks, create a slave port that will have CONFLICTS with master is a worst solution. > BTW, this is a long standing (several years at least) trouble with my > PCs while updating gnome, xorg etc. Only now I had some time to detect > the problem. > > Well, thanks for reading so far. And what do you think? > > > WBR -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org