From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1607213877A for ; Mon, 11 Aug 2014 22:33:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B3122E0BAA; Mon, 11 Aug 2014 22:33:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C143EE0AEF for ; Mon, 11 Aug 2014 22:33:24 +0000 (UTC) Received: from dutt.localnet (g224158139.adsl.alicedsl.de [92.224.158.139]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: johu) by smtp.gentoo.org (Postfix) with ESMTPSA id 791D833EB43 for ; Mon, 11 Aug 2014 22:33:23 +0000 (UTC) From: Johannes Huber To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Supporting both Qt4 and Qt5 builds Date: Tue, 12 Aug 2014 00:33:18 +0200 Message-ID: <2661087.J9LNJ0BdB7@dutt> User-Agent: KMail/4.13.3 (Linux/3.16.0; KDE/4.13.3; x86_64; ; ) In-Reply-To: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Archives-Salt: cae8f883-3718-41f5-8a45-059bf0526327 X-Archives-Hash: 2462087704b715e130a8489ff7cbc242 Am Sonntag, 10. August 2014, 14:51:45 schrieb Georg Rudoy: > Hi, > > I'm thinking of converting a few ebuilds (x11-libs/qwt, > dev-libs/kqoauth, net-libs/qxmpp among them) to support building with > both Qt4 and Qt5. > > Should this better be done by adding the corresponding useflags (qt4 > and qt5 respectively) or by slotting? The pros and cons for each, off > the top of my head: > > slotting: > + Allows having different use flags for qt4 and qt5 builds (can't > think why that would be needed in the above examples though). > - Possibility of exponential growth of the number of slots in case > slotting would be required according to some other criteria (again, > can't think why that would be needed in the above examples). > - Requires keeping two different copies of the same ebuild with > basically the same build rules, with all the consequences. > > useflags: > + Seems to be easier and doing the required trick. > + app-text/poppler already does this. > - Enabling support for previously disabled Qt version requires > rebuilding the whole library twice. > > What's your opinion on this? > > I've attached the useflag-based variant as a draft. Multibuild is prefered. -- Johannes Huber (johu) Gentoo Linux Developer / KDE Team GPG Key ID F3CFD2BD