Bug 100235 - Depending on qt3 when qt4 is in portage
Bug#: 100235 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: qt@gentoo.org Reported By: caleb@gentoo.org
Component: Eclasses and Profiles
URL: 
Summary: Depending on qt3 when qt4 is in portage
Keywords:  
Status Whiteboard: 
Opened: 2005-07-25 08:07 0000
Description:   Opened: 2005-07-25 08:07 0000
Ebuilds which currently have a depend on ">=x11-libs/qt-3.x.x" will cause an 
incorrect dependency structure on qt-4.x.x when it is release into stable 
portage. 
 
Steps to correct this: 
 
1) Make sure you have no greater-than(-or-equal-to) deps on qt3 in your 
ebuild/eclass. 
 
2) If you inherit the kde/kde-functions eclass to use the need-qt/set-qtdir 
function, you have a couple of options: 
 
 a) If your ebuilds relies only on qt, you can switch over to using the qt3 
eclass. 
 b) If you need kde related functions, you can keep the ebuild as is.  The 
kde-functions eclass inherits the qt3 eclass. 
 
 
3) The qt3 eclass provides a qt_min_version function which you can use in your 
depend statement, (e.g): 
 
  DEPEND="$(qt_min_version 3.2)" 
 
3a) Inheritors of the kde-functions eclass can still continue to use the 
need-qt function, which now calls qt_min_version, though the use of this 
function may be deprecated sometime in the future.  You are encouraged to use 
qt_min_version directly instead. 
 
4) You may, alternatively, come up with your own depend syntax.  This is valid 
(and encouraged if you know that it works): 
 
  DEPEND="=x11-libs/qt-3*" 
 
Other trickery like: 
 
  DEPEND="x11-libs/qt-3.3*"  
 
is also valid, though if a qt-3.4 version is released in the future this may 
cause problems upgrading.   
 
Summary: Using qt_min_version will probably cause the least amount of 
problems.

------- Comment #1 From Caleb Tennis 2005-07-28 07:49:21 0000 -------
I have most of portage *fixed* now, except for cjk:  
  
app-i18n/uim/uim-0.4.6-r2.ebuild:       immqt? ( >=x11-libs/qt-3.3.3-r1 )  
app-i18n/uim/uim-0.4.6-r2.ebuild:       immqt-bc? ( >=x11-libs/qt-3.3.3-r1 )  
app-i18n/uim/uim-0.4.6-r2.ebuild:       qt? ( >=x11-libs/qt-3.3.3-r1 )  
app-i18n/uim/uim-0.4.7.ebuild:  immqt? ( >=x11-libs/qt-3.3.3-r1 )  
app-i18n/uim/uim-0.4.7.ebuild:  immqt-bc? ( >=x11-libs/qt-3.3.3-r1 )  
app-i18n/uim/uim-0.4.7.ebuild:  qt? ( >=x11-libs/qt-3.3.3-r1 )  
app-i18n/uim/uim-0.4.7.1.ebuild:        immqt? ( >=x11-libs/qt-3.3.3-r1 )  
app-i18n/uim/uim-0.4.7.1.ebuild:        immqt-bc? ( >=x11-libs/qt-3.3.3-r1 )  
app-i18n/uim/uim-0.4.7.1.ebuild:        qt? ( >=x11-libs/qt-3.3.3-r1 )  
app-i18n/uim/uim-0.4.7.1-r1.ebuild:     immqt? ( >=x11-libs/qt-3.3.3-r1 )  
app-i18n/uim/uim-0.4.7.1-r1.ebuild:     immqt-bc? ( >=x11-libs/qt-3.3.3-r1 )  
app-i18n/uim/uim-0.4.7.1-r1.ebuild:     qt? ( >=x11-libs/qt-3.3.3-r1 )  
app-i18n/qimhangul/qimhangul-0.0.1.ebuild:DEPEND=">=x11-libs/qt-3.3.3-r1"  
app-i18n/qimhangul/qimhangul-0.0.1.ebuild:              die "You need to  
rebuild >=x11-libs/qt-3.3.3-r1 with immqt-bc or immqt USE flag enabled."  
app-i18n/uim-svn/uim-svn-20050505.ebuild:       immqt?  
( >=x11-libs/qt-3.3.3-r1 )  
app-i18n/uim-svn/uim-svn-20050505.ebuild:       qt? ( >=x11-libs/qt-3.3.3-r1 )  
app-i18n/uim-qt/uim-qt-0.2.0.ebuild:    >=x11-libs/qt-3.3.3-r1"  
app-i18n/uim-qt/uim-qt-0.2.0.ebuild:    econf || die "You need to rebuild  
>=x11-libs/qt-3.3.3-r1 with immqt-bc(recommended) or immqt USE flag enabled."  
app-i18n/scim-qtimm/scim-qtimm-0.9.1.ebuild:            die "You need to  
rebuild >=x11-libs/qt-3.3.3-r1 with immqt-bc(recommended) or immqt USE flag  
enabled."  
app-i18n/scim-qtimm/scim-qtimm-0.8.95.ebuild:           die "You need to  
rebuild >=x11-libs/qt-3.3.3-r1 with immqt-bc(recommended) or immqt USE flag  
enabled."  
app-i18n/scim-qtimm/scim-qtimm-0.8.9.ebuild:            die "You need to  
rebuild >=x11-libs/qt-3.3.3-r1 with immqt-bc(recommended) or immqt USE flag  
enabled."  
app-i18n/scim-qtimm/scim-qtimm-0.9.2.ebuild:            die "You need to  
rebuild >=x11-libs/qt-3.3.3-r1 with immqt-bc(recommended) or immqt USE flag  
enabled."  
 
CCing.  

------- Comment #2 From Mamoru KOMACHI (RETIRED) 2005-12-17 08:17:20 0000 -------
Sorry for the delay. Fixed all cjk stuff.

------- Comment #3 From Caleb Tennis 2005-12-17 08:22:14 0000 -------
Sounds good.  Going to close as fixed