Gentoo Archives: gentoo-dev

From: Georg Rudoy <0xd34df00d@×××××.com>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Supporting both Qt4 and Qt5 builds
Date: Mon, 11 Aug 2014 22:23:02
1 Hi,
3 I'm thinking of converting a few ebuilds (x11-libs/qwt,
4 dev-libs/kqoauth, net-libs/qxmpp among them) to support building with
5 both Qt4 and Qt5.
7 Should this better be done by adding the corresponding useflags (qt4
8 and qt5 respectively) or by slotting? The pros and cons for each, off
9 the top of my head:
11 slotting:
12 + Allows having different use flags for qt4 and qt5 builds (can't
13 think why that would be needed in the above examples though).
14 - Possibility of exponential growth of the number of slots in case
15 slotting would be required according to some other criteria (again,
16 can't think why that would be needed in the above examples).
17 - Requires keeping two different copies of the same ebuild with
18 basically the same build rules, with all the consequences.
20 useflags:
21 + Seems to be easier and doing the required trick.
22 + app-text/poppler already does this.
23 - Enabling support for previously disabled Qt version requires
24 rebuilding the whole library twice.
26 What's your opinion on this?
28 I've attached the useflag-based variant as a draft.
30 --
31 Georg Rudoy


File name MIME type
kqoauth-0.98-r2.ebuild application/octet-stream


Subject Author
Re: [gentoo-dev] Supporting both Qt4 and Qt5 builds Johannes Huber <johu@g.o>
Re: [gentoo-dev] Supporting both Qt4 and Qt5 builds Ben de Groot <yngwin@g.o>