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 1C68613800E for ; Sat, 28 Jul 2012 07:54:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6187B21C008; Sat, 28 Jul 2012 07:54:43 +0000 (UTC) Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com [209.85.212.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 60967E07A8 for ; Sat, 28 Jul 2012 07:54:08 +0000 (UTC) Received: by vbbfc26 with SMTP id fc26so3790402vbb.40 for ; Sat, 28 Jul 2012 00:54:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=kRtAj9yR5/qjno/AlPaGuFqewZ5HKLntHbPaFouxYC0=; b=E0MHu9auB7rM2zA1n0PTDGrmD5UiXjZIgQ1aaCTkeD0WNvFx9LAh9OEQ8fFA3+pxnV TQhud1bBHIvpyzHyIjTAr83zh+SL6XNE1SU8MtbwONX/+minf0wLqrId+AFj5hqDoISz tEUx+YtjWNR0o4g7kl/vmi+TD3Lw1KyF1CdOTq7PXdPMQQTZuKcgkwykYcftJ4R1P/td +dbJoH3l+Qax1MWP9qv2b3xflb0mSCkEiNwKFJXMfFFtjtPRM0cCKDL/t81XED3z/Jub AmbYG+i0JJN8LnjbqM6GLAALB96LRlb1HlZv/bQx7yFr8qP9xwJ6CqvpatbLYVm7oc9Q KSaA== 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 Received: by 10.220.9.2 with SMTP id j2mr4966724vcj.35.1343462047857; Sat, 28 Jul 2012 00:54:07 -0700 (PDT) Sender: yngwin@gmail.com Received: by 10.59.10.133 with HTTP; Sat, 28 Jul 2012 00:54:07 -0700 (PDT) In-Reply-To: <20120728094309.2152ef42@sera-17.lan> References: <20120728094309.2152ef42@sera-17.lan> Date: Sat, 28 Jul 2012 15:54:07 +0800 X-Google-Sender-Auth: uIkdp97xaYSdCtOfek2fWxHAMmw Message-ID: Subject: Re: [gentoo-dev] Re: Fwd: Heads up for Qt5 From: Ben de Groot To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: f072444e-b266-4587-929c-5bb9d191b0ef X-Archives-Hash: fb46e33fb90c3d96bb5a31ce79cc32fd On 28 July 2012 15:43, Ralph Sennhauser wrote: > On Sat, 28 Jul 2012 14:27:49 +0800 > Ben de Groot wrote: > >> On 28 July 2012 13:59, Nikos Chantziaras wrote: >> > On 28/07/12 08:22, Ben de Groot wrote: >> >> >> >> In preparation for that, we want to ask maintainers of all ebuilds >> >> in the tree with dependencies on Qt4, to make sure that they have >> >> the proper slot. Otherwise your package may pull in Qt5 while it >> >> may not in fact support it. >> > >> > >> > This can be trouble if the application actually works with Qt5. It >> > might depend on Qt4 but has no problems with Qt5 (contrary to Qt3 >> > vs Qt4, Qt5 is mostly compatible with much of existing Qt4 code), >> > needlessly pulling-in Qt4. Many applications simply build and run >> > as-is and no code changes are necessary. >> > >> > So what would be the methodology of making sure a package has the >> > proper slot? >> >> Obviously you would need to make sure that the package actually does >> support Qt5. Then, as I see it, we could do either: >> >> || ( x11-libs/qt-gui:4 x11-libs/qt-gui:5 ) > > Never prefer an old version in an || ( ) block, this makes for a poor > update experience. Also the || ( ) construct can only be used if they > are runtime switchable, which I really doubt here, as otherwise you > build against one, the user install the other and portage depcleans the > one you have built against. Yes, that was a brainfart. Davide already said it was wrong. >> >> or: >> >> qt4? ( x11-libs/qt-gui:4 ) >> qt5? ( x11-libs/qt-gui:5 ) >> > > A qt5 useflag will do more harm than good. If I enable qt, I do not > care which version, I just want the gui for the particular app. If the > app works with qt:5 the usflag qt means qt:5, if it only works with > qt:4 the useflags means qt:4. In case it works with both and the > maintainer thinks it's worth to let the user choose, use the useflag qt4 > to let the user opt out of the latest and greatest. We do not have (nor want to support) a qt useflag. We have opted for "qt4" and "qt5" useflags as the most straightforward and least confusing. It is up to package maintainers if they want to offer to build both versions where applicable, or prefer one over the other if both useflags are set. -- Cheers, Ben | yngwin Gentoo developer Gentoo Qt project lead, Gentoo Wiki admin