From owner-freebsd-ruby@FreeBSD.ORG Tue Jul 24 00:04:49 2012 Return-Path: Delivered-To: ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33E3A106566C; Tue, 24 Jul 2012 00:04:49 +0000 (UTC) (envelope-from bsdkaffee@gmail.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2BA568FC1E; Tue, 24 Jul 2012 00:04:48 +0000 (UTC) Received: by vcbgb22 with SMTP id gb22so3845642vcb.13 for ; Mon, 23 Jul 2012 17:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding:content-type; bh=uPV0gAiwcB+swuQtiSiWxfWtNX/NmeQdZdqPEUHPSFI=; b=PWa3P9B/r98yZpVbtLjT5sgahuL3725AkKBRc0BRWVq21F+QawDrLDSebVVliigjo4 L9BQzIZIHn+/b/1O9BZKXIOZjtDLYHaSUOlzPY427lla5G87xrYG2NwKnae3dNgW6m6X ByAttd7tzYru8yvKOYyWIqb4Mdd7wrT9aKqyhreDZjIgOeeH7jiSciSpXAAwozQFp13E iHWRPk/d1c0G55a2WlK2wfRqR0aByleTacG4SWmt1D33K1omeEeyY82qws/99eqVXYew TW49kxU8p/AYnHujV2A2L+nwWzQTLJ/9I5ZA5jRto2BqLqOiS8ssvemWNTzOAzSQUEj2 fqGQ== Received: by 10.52.176.195 with SMTP id ck3mr12332174vdc.92.1343088287404; Mon, 23 Jul 2012 17:04:47 -0700 (PDT) Received: from mocha.verizon.net (c-71-61-40-68.hsd1.oh.comcast.net. [71.61.40.68]) by mx.google.com with ESMTPS id w8sm2229733vdj.19.2012.07.23.17.04.45 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 Jul 2012 17:04:46 -0700 (PDT) From: "Jason E. Hale" To: Baptiste Daroussin Date: Mon, 23 Jul 2012 20:04:44 -0400 Message-ID: <1430411.QqeotQn32O@mocha.verizon.net> User-Agent: KMail/4.8.4 (FreeBSD/9.0-RELEASE-p3; KDE/4.8.4; i386; ; ) In-Reply-To: <20120723205034.GR77496@ithaqua.etoilebsd.net> References: <1766706.FQA5Z9D0Zj@mercury.ph.man.ac.uk> <20120723205034.GR77496@ithaqua.etoilebsd.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Mailman-Approved-At: Tue, 24 Jul 2012 01:48:35 +0000 Cc: Max Brazhnikov , Doug Barton , kde@freebsd.org, freebsd-gnome@freebsd.org, kwm@freebsd.org, Kimmo Paasiala , Jeremy Messenger , ruby@freebsd.org, Edwin Groothuis , Scot Hetzel , freebsd-ports@freebsd.org, gnome@freebsd.org Subject: Re: How to remove erroneous deps from pkgng X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jul 2012 00:04:49 -0000 On Monday, July 23, 2012 20:50:34 Baptiste Daroussin wrote: > Here is a plan for pkg-config, I hope it will statisfy everyone. > > First we need to get rid of pkg-config, since 0.26 we can't boostrap it > anymore because it depends on glib which depends on pkg-config. > > Hopefully we have a viable alternative. > > What I will do is : > step 1/ introduce a new pkgconf port (https://github.com/nenolod/pkgconf) > which is 100% compatible with pkg-config and considers any incompatibility > as a bug. > > along with this, I will introduce a new MACRO: > http://people.freebsd.org/~bapt/USE_PKGCONFIG.diff > > USE_PKGCONFIG= yes or USE_PKGCONFIG= build > will bring pkgconf only has a build dependency > USE_PKGCONFIG= run > > will bring pkgconf has a run dependency (some things like ruby wrapper or > perl wrapper) > > USE_PKGCONFIG= both > will bring both run and build deps. > > Why a MACRO, because some ports may need en environnement variable in > CONFIGURE_ENV > PKG_CONFIG=pkgconf do work correctly. > > the USE_GNOME= pkgconfig will be automatically add USE_PKGCONFIG= both > > Yeah sorry for step one will keep pkgconf in both dependencies. > > This is necessary because too much ports rely on one of their deps bringing > pkgconfig, and this concerns about 4k+ ports. > > All the gnome one (mostly), all the xorg one (xproto bring pkgconfig) most > of the gtk ones, most of things depending on libxml2 and curl, from what I > have seen. > > step 2/ advertise the maintainers to stop using USE_GNOME= pkgconfig but > rather switch to USE_PKGCONFIG, and do it actively. > > setp 3/ drop USE_GNOME= pkgconfig from bsd.gnome.mk > > when switching to USE_PKGCONFIG becare full about the ports that depend on > your ports to make sure, it doesn't expect pkgconfig being brought by your > port. > > regards, > Bapt I think it might be a good idea to factor out the pkg-config hacks provided by USE_GNOME=gnomehack as well, and expand it to work with CMake (or other build systems if needed). Most ports that install .pc files must be fixed to install them in libdata instead of lib. Jason E. Hale