From owner-freebsd-ports@FreeBSD.ORG Mon Jul 23 20:50:38 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EE547106566B; Mon, 23 Jul 2012 20:50:37 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C8C298FC23; Mon, 23 Jul 2012 20:50:37 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q6NKobbT070373; Mon, 23 Jul 2012 20:50:37 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6NKobEf070372; Mon, 23 Jul 2012 20:50:37 GMT (envelope-from bapt@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f Date: Mon, 23 Jul 2012 20:50:34 +0000 From: Baptiste Daroussin To: Max Brazhnikov Message-ID: <20120723205034.GR77496@ithaqua.etoilebsd.net> References: <500CA767.2020206@FreeBSD.org> <1766706.FQA5Z9D0Zj@mercury.ph.man.ac.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FWibJpkbnkY6rrXF" Content-Disposition: inline In-Reply-To: <1766706.FQA5Z9D0Zj@mercury.ph.man.ac.uk> User-Agent: Mutt/1.5.21 (2010-09-15) X-Mailman-Approved-At: Mon, 23 Jul 2012 22:48:59 +0000 Cc: kwm@FreeBSD.org, Doug Barton , kde@FreeBSD.org, freebsd-gnome@FreeBSD.org, Kimmo Paasiala , Jeremy Messenger , ruby@FreeBSD.org, Edwin Groothuis , Scot Hetzel , freebsd-ports@FreeBSD.org, gnome@FreeBSD.org, "Jason E. Hale" Subject: Re: How to remove erroneous deps from pkgng 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: Mon, 23 Jul 2012 20:50:38 -0000 --FWibJpkbnkY6rrXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 23, 2012 at 01:31:52PM +0000, Max Brazhnikov wrote: > On Mon, 23 Jul 2012 04:37:08 +0300 Kimmo Paasiala wrote: > > Looking at the bsd.kde4.mk it looks like there's not much logic to > > detect the "right" kind of dependency. It seems to use suffixes _build > > and _run to achieve the same effect as pkgconfig:build and > > pkgconfig:run would have.=20 > Right. >=20 > > It defaults to both build and run dependency > > if no type is specified. > This is not correct. For example, USE_KDE4=3D automoc4 (without any suffi= x) will=20 > bring BUILD only dependency on devel/automoc4. The great majority ports d= on't=20 > need ever possibility to run depend on build tools like automoc4, but kde= 4.mk=20 > still provides it (the only consumer if automoc4_run can be IDE, I suppos= e). >=20 > The way USE_KDE4 is implemented allows to minimize the use of suffixes, t= hat's=20 > the right way in my understanding. >=20 > Max > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" 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 any= more 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) w= hich 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=3D yes or USE_PKGCONFIG=3D build will bring pkgconf only has a build dependency USE_PKGCONFIG=3D run will bring pkgconf has a run dependency (some things like ruby wrapper or p= erl wrapper) USE_PKGCONFIG=3D both=20 will bring both run and build deps. Why a MACRO, because some ports may need en environnement variable in CONFIGURE_ENV PKG_CONFIG=3Dpkgconf do work correctly. the USE_GNOME=3D pkgconfig will be automatically add USE_PKGCONFIG=3D 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=3D pkgconfig but = rather switch to USE_PKGCONFIG, and do it actively. setp 3/ drop USE_GNOME=3D 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 --FWibJpkbnkY6rrXF Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlANuRoACgkQ8kTtMUmk6EwrJgCeP10vTMyeIrqBDEWhI0gKcylx k8gAoJAH5PwLLElC3DMHcWiTzL42OBv/ =+x3R -----END PGP SIGNATURE----- --FWibJpkbnkY6rrXF--