Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498010 - dev-qt/qt*:4 please add multilib support
Summary: dev-qt/qt*:4 please add multilib support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: InVCS
: 503276 (view as bug list)
Depends on: 385513 488418 489000 493172 493176 510042 519110 521858 526078
Blocks: gx86-multilib 510182 510184 516488
  Show dependency tree
 
Reported: 2014-01-13 16:15 UTC by Denis Sokolovsky
Modified: 2014-12-04 12:24 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Sokolovsky 2014-01-13 16:15:22 UTC
Needed by 32-bit apps that depend on Qt
Comment 1 Jonathan Callen (RETIRED) gentoo-dev 2014-03-03 01:37:28 UTC
*** Bug 503276 has been marked as a duplicate of this bug. ***
Comment 2 Jonathan Callen (RETIRED) gentoo-dev 2014-03-03 01:39:12 UTC
From bug 503276:

This is needed by net-dns/avahi (and is useful for net-im/skype).

@qt: I'm looking at working on a patch, but there's a few deps that need to be converted first
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-05-14 16:49:27 UTC
@qt: could you tell me what your preferences on multilib are? New eclass? Explicit 'QT_MULTILIB=yes' switch in ebuilds? Ugly ${PV} based auto-switch?
Comment 4 Davide Pesavento gentoo-dev 2014-05-14 17:04:19 UTC
Can you wait a couple of weeks? I'm implementing some major packaging changes in qt-4.8.6 that are needed before we can get qt5 into the tree. And I believe these changes will also facilitate multilib support.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-05-14 17:54:54 UTC
(In reply to Davide Pesavento from comment #4)
> Can you wait a couple of weeks? I'm implementing some major packaging
> changes in qt-4.8.6 that are needed before we can get qt5 into the tree. And
> I believe these changes will also facilitate multilib support.

Could you be a bit more precise? 'Couple of weeks' sounds like a lot :). 2-3 weeks, sure. More than that, I'm not sure since lack of converted qt is stalling some of multilib work. I'm most worried about half-done packages such as avahi or cairo that I'd rather finish soon.
Comment 6 Davide Pesavento gentoo-dev 2014-05-14 20:46:37 UTC
I should be able to commit it masked in ~1 week, then allow 1 or 2 more weeks for testing.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-05-14 20:49:05 UTC
Sounds good. Feel free to contact multilib@ anytime, and we'll be happy to review whatever you've got in multilib perspective. In any case, please try to build the eclass on top of multilib-minimal.
Comment 8 Davide Pesavento gentoo-dev 2014-05-20 22:02:06 UTC
So.. what's the recommended way of dealing with USE flags that don't work on some ABIs? (e.g. USE=jit on x32)
Comment 9 Alex Xu (Hello71) 2014-05-20 23:09:39 UTC
(In reply to Davide Pesavento from comment #8)
> So.. what's the recommended way of dealing with USE flags that don't work on
> some ABIs? (e.g. USE=jit on x32)

package.use.mask in feature profile
Comment 10 Davide Pesavento gentoo-dev 2014-05-20 23:21:59 UTC
Err... how would that work?
Comment 11 Jonathan Callen (RETIRED) gentoo-dev 2014-05-20 23:45:10 UTC
(In reply to Davide Pesavento from comment #10)
> Err... how would that work?

It wouldn't... the current recommendation (so far as I understand it) is to silently (or loudly, if you prefer) disable the unusable flags for just the ABIs they cannot be used with.
Comment 12 Davide Pesavento gentoo-dev 2014-05-20 23:53:33 UTC
(In reply to Jonathan Callen from comment #11)
> It wouldn't... the current recommendation (so far as I understand it) is to
> silently (or loudly, if you prefer) disable the unusable flags for just the
> ABIs they cannot be used with.

Yeah I came to the same conclusion. AFAICS that's the only way to do it in the current multilib framework...
Comment 13 Alex Xu (Hello71) 2014-05-21 02:10:21 UTC
oh, right, we're on a bug about multilib.

don't mind me, I'm just being dumb.
Comment 14 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-05-21 07:14:46 UTC
Yeah, USE=jit sounds like 'use JIT whenever possible'. So, enable it on matching ABIs, disable otherwise. Plus p.u.mask on profiles that can't have it enabled on any ABI.
Comment 15 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-05-21 07:38:07 UTC
Also, I don't think any special verbosity would make sense. Missing JIT support on an ABI is not something user could fix, and requesting USE=-jit wouldn't be helpful since user would then lose JIT completely.
Comment 16 Davide Pesavento gentoo-dev 2014-06-02 15:39:57 UTC
qtwebkit needs multilib support in media-libs/gstreamer:0.10 and media-libs/gst-plugins-base:0.10
Comment 17 Davide Pesavento gentoo-dev 2014-06-02 15:45:44 UTC
qtsql needs multilib support in dev-db/firebird, dev-db/freetds, virtual/mysql, dev-db/libiodbc, dev-db/postgresql-base
Comment 18 Davide Pesavento gentoo-dev 2014-06-02 15:58:45 UTC
qtphonon needs media-libs/gstreamer:0.10 and media-plugins/gst-plugins-meta:0.10
Comment 19 Davide Pesavento gentoo-dev 2014-06-02 16:04:45 UTC
qtdemo needs media-libs/phonon (which in turn needs qtcore, qtdbus, qtgui, and designer)
Comment 20 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-02 16:27:36 UTC
(In reply to Davide Pesavento from comment #16)
> qtwebkit needs multilib support in media-libs/gstreamer:0.10 and
> media-libs/gst-plugins-base:0.10

As I've already mentioned, I hope to have most of gstreamer done this week.

(In reply to Davide Pesavento from comment #17)
> qtsql needs multilib support in dev-db/firebird, dev-db/freetds,
> virtual/mysql, dev-db/libiodbc, dev-db/postgresql-base

I think it would be best to disable most of those in non-native ABIs for now. AFAIK mysql is WiP for some time but others are still waiting for love :).
Comment 21 Davide Pesavento gentoo-dev 2014-06-02 16:56:08 UTC
(In reply to Michał Górny from comment #20)
> (In reply to Davide Pesavento from comment #17)
> > qtsql needs multilib support in dev-db/firebird, dev-db/freetds,
> > virtual/mysql, dev-db/libiodbc, dev-db/postgresql-base
> 
> I think it would be best to disable most of those in non-native ABIs for
> now. AFAIK mysql is WiP for some time but others are still waiting for love
> :).

Agreed. The vast majority of revdeps just needs sqlite anyway.
Comment 22 Davide Pesavento gentoo-dev 2014-06-14 23:52:10 UTC
Is there a bug for media-libs/phonon conversion?

(In reply to Michał Górny from comment #20)
> (In reply to Davide Pesavento from comment #17)
> > qtsql needs multilib support in dev-db/firebird, dev-db/freetds,
> > virtual/mysql, dev-db/libiodbc, dev-db/postgresql-base
> 
> I think it would be best to disable most of those in non-native ABIs for
> now. AFAIK mysql is WiP for some time but others are still waiting for love
> :).

What's the recommended way of doing this? multilib_is_native_abi?
Comment 23 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-15 07:26:35 UTC
(In reply to Davide Pesavento from comment #22)
> Is there a bug for media-libs/phonon conversion?

I thought it'd be done as part of qt. But if you like, I can convert it straight away :).

> (In reply to Michał Górny from comment #20)
> > (In reply to Davide Pesavento from comment #17)
> > > qtsql needs multilib support in dev-db/firebird, dev-db/freetds,
> > > virtual/mysql, dev-db/libiodbc, dev-db/postgresql-base
> > 
> > I think it would be best to disable most of those in non-native ABIs for
> > now. AFAIK mysql is WiP for some time but others are still waiting for love
> > :).
> 
> What's the recommended way of doing this? multilib_is_native_abi?

Yes. Plain dependency (without MULTILIB_USEDEP) + multilib_is_native or one of multilib_native_use*.
Comment 24 Jonathan Callen (RETIRED) gentoo-dev 2014-06-15 17:37:12 UTC
(In reply to Michał Górny from comment #23)
> (In reply to Davide Pesavento from comment #22)
> > Is there a bug for media-libs/phonon conversion?
> 
> I thought it'd be done as part of qt. But if you like, I can convert it
> straight away :).
> 
> > (In reply to Michał Górny from comment #20)
> > > (In reply to Davide Pesavento from comment #17)
> > > > qtsql needs multilib support in dev-db/firebird, dev-db/freetds,
> > > > virtual/mysql, dev-db/libiodbc, dev-db/postgresql-base
> > > 
> > > I think it would be best to disable most of those in non-native ABIs for
> > > now. AFAIK mysql is WiP for some time but others are still waiting for love
> > > :).
> > 
> > What's the recommended way of doing this? multilib_is_native_abi?
> 
> Yes. Plain dependency (without MULTILIB_USEDEP) + multilib_is_native or one
> of multilib_native_use*.

Given that none of multilib_native_use* are helpful with Qt's ./configure, you may want to create a function in the eclass like:

qt_native_use() {
    multilib_is_native_abi && qt_use "$@" || echo "-no-${2:-$1}"
}
Comment 25 Davide Pesavento gentoo-dev 2014-06-22 18:43:46 UTC
(In reply to Michał Górny from comment #23)
> (In reply to Davide Pesavento from comment #22)
> > Is there a bug for media-libs/phonon conversion?
> 
> I thought it'd be done as part of qt. But if you like, I can convert it
> straight away :).
> 

Technically it's maintained by kde (both upstream and the gentoo package), although it doesn't have any kde dependencies.

@kensington, would you and the rest of the kde team mind if we carried a multilib-aware version of m-l/phonon in the qt overlay until the conversion is completed?
Comment 26 Michael Palimaka (kensington) gentoo-dev 2014-06-22 18:51:05 UTC
(In reply to Davide Pesavento from comment #25)
> (In reply to Michał Górny from comment #23)
> > (In reply to Davide Pesavento from comment #22)
> > > Is there a bug for media-libs/phonon conversion?
> > 
> > I thought it'd be done as part of qt. But if you like, I can convert it
> > straight away :).
> > 
> 
> Technically it's maintained by kde (both upstream and the gentoo package),
> although it doesn't have any kde dependencies.
> 
> @kensington, would you and the rest of the kde team mind if we carried a
> multilib-aware version of m-l/phonon in the qt overlay until the conversion
> is completed?

Please do. :-)
Comment 27 Davide Pesavento gentoo-dev 2014-06-22 23:04:23 UTC
It would be nice to convert dev-db/libiodbc to multilib, otherwise we'll be forcing everyone to use unixODBC in qtsql
Comment 28 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-23 07:46:19 UTC
(In reply to Davide Pesavento from comment #27)
> It would be nice to convert dev-db/libiodbc to multilib, otherwise we'll be
> forcing everyone to use unixODBC in qtsql

Sure. Done.
Comment 29 Davide Pesavento gentoo-dev 2014-11-15 02:47:41 UTC
Qt 4.8.6 in tree.
Comment 30 Davide Pesavento gentoo-dev 2014-11-20 02:21:19 UTC
And unmasked on amd64/hppa/x86 (for now). The rest will follow after keywording dev-qt/qtchooser in bug 529196.

Closing. Thanks everyone!
Comment 31 Manuel Rüger (RETIRED) gentoo-dev 2014-11-20 09:10:46 UTC
Should we reuse this bug for qt5 multilib (needed by Sni-qt via libdbusmenu-qt)  or will there be another bug for that?
Comment 32 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-11-20 09:46:15 UTC
(In reply to Manuel Rüger from comment #31)
> Should we reuse this bug for qt5 multilib (needed by Sni-qt via
> libdbusmenu-qt)  or will there be another bug for that?

I'd prefer if you opened a new bug.
Comment 33 Davide Pesavento gentoo-dev 2014-11-20 14:18:08 UTC
(In reply to Michał Górny from comment #32)
> (In reply to Manuel Rüger from comment #31)
> > Should we reuse this bug for qt5 multilib (needed by Sni-qt via
> > libdbusmenu-qt)  or will there be another bug for that?
> 
> I'd prefer if you opened a new bug.

+1