Re: [gentoo-dev] rfc: OpenRC network provides revisited

2012-08-25 Thread heroxbd
William Hubbs willi...@gentoo.org writes: If you are running services that need net and you have turned off all of the net providers by adding something like rc_provide=!net to their conf.d files, the services that need net will fail hard even though they shouldn't. If we set rc_provide=net

Re: [gentoo-dev] rfc: OpenRC network provides revisited

2012-08-25 Thread William Hubbs
On Sat, Aug 25, 2012 at 03:19:24PM +0900, hero...@gentoo.org wrote: If we set rc_provide=net in rc.conf, the services that need net can be tricked as we intended to. Setting rc_provide, rc_need, rc_use, etc in rc.conf is definitely not recommended. Remember that this affects all services on

[gentoo-dev] [RFC] new vala.eclass

2012-08-25 Thread Alexandre Rostovtsev
Here's a proposed new eclass to make it less painful to build vala bindings in the new, vala-0.18.x, vapigen.m4-using era. See https://bugzilla.gnome.org/show_bug.cgi?id=682202 for why messing around with PKG_CONFIG_PATH is unfortunately needed for vapigen.m4-using packages from gnome-3.6 such as

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-25 Thread Tomáš Chvátal
2012/8/25 Alexandre Rostovtsev tetrom...@gentoo.org: Hi man, *snip* case ${EAPI:-0} in 0|1|2) die EAPI=${EAPI} is not supported ;; *) EXPORT_FUNCTIONS pkg_setup ;; esac Any reson for not supporting ALL known

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-25 Thread Diego Elio Pettenò
On 25/08/2012 10:25, Tomáš Chvátal wrote: if ! [[ -d ${T}/pkgconfig ]]; then mkdir ${T}/pkgconfig || die mkdir failed fi Same as above Even better use mkdir -p. -- Diego Elio Pettenò — Flameeyes flamee...@flameeyes.eu — http://blog.flameeyes.eu/

Re: [gentoo-dev] rfc: OpenRC network provides revisited

2012-08-25 Thread Ian Stakenvicius
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 25/08/12 11:53 AM, William Hubbs wrote: On Sat, Aug 25, 2012 at 03:19:24PM +0900, hero...@gentoo.org wrote: If we set rc_provide=net in rc.conf, the services that need net can be tricked as we intended to. This makes more sense to me as it's

[gentoo-dev] [PATCH eutils] prune_libtool_files: run pkg-config code only if necessary.

2012-08-25 Thread Michał Górny
Right now, the .pc file parsing takes place each time prune_libtool_files() is called, even when there are no .la files installed. After this commit, the .pc files will be parsed only when it is necessary, i.e. no other criteria allow removal of a particular .la file. ---

Re: [gentoo-dev] [PATCH eutils] prune_libtool_files: run pkg-config code only if necessary.

2012-08-25 Thread Diego Elio Pettenò
On 25/08/2012 12:32, Michał Górny wrote: + local pkgconf=$(tc-getPKG_CONFIG) I'd say you should add a warning before using this if the virtual is not in DEPEND. And don't assume transitive dependencies (they are never nice). You can take a peek to

Re: [gentoo-dev] [PATCH eutils] prune_libtool_files: run pkg-config code only if necessary.

2012-08-25 Thread Michał Górny
On Sat, 25 Aug 2012 12:58:19 -0700 Diego Elio Pettenò flamee...@flameeyes.eu wrote: On 25/08/2012 12:32, Michał Górny wrote: + local pkgconf=$(tc-getPKG_CONFIG) I'd say you should add a warning before using this if the virtual is not in DEPEND. And don't

Re: [gentoo-dev] [PATCH eutils] prune_libtool_files: run pkg-config code only if necessary.

2012-08-25 Thread Diego Elio Pettenò
On 25/08/2012 13:09, Michał Górny wrote: That's not PMS-compliant, sir. But it's terribly useful. (I have expressed before my contempt for PMS, I'm sure.) I'm not expecting the ebuild to die, just to send a warning so that the developer knows when they fail to meet non-obvious requirements. --

Re: [gentoo-dev] rfc: OpenRC network provides revisited

2012-08-25 Thread William Hubbs
On Sat, Aug 25, 2012 at 02:49:39PM -0400, Ian Stakenvicius wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 25/08/12 11:53 AM, William Hubbs wrote: On Sat, Aug 25, 2012 at 03:19:24PM +0900, hero...@gentoo.org wrote: If we set rc_provide=net in rc.conf, the services that need

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-25 Thread Alexandre Rostovtsev
Updated version, incorporating suggestions by Tomáš and Diego, and fixing VAPIGEN_MAKEFILE to work with dev-lang/vala-common. # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # @ECLASS: vala.eclass # @MAINTAINER: #

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-25 Thread Ulrich Mueller
On Sat, 25 Aug 2012, Alexandre Rostovtsev wrote: export VALAC=$(type -P valac-${VALA_API_VERSION}) export VALA=$(type -P vala-${VALA_API_VERSION}) export VALA_GEN_INTROSPECT=$(type -P vala-gen-introspect-${VALA_API_VERSION}) export VAPIGEN=$(type -P