Bug 196901 - qt4: make FHS-friendly
Summary: qt4: make FHS-friendly
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: qt4
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 244837 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-06-27 15:49 UTC by Rex Dieter
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-07-07 17:39:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rex Dieter 2006-06-27 15:49:09 UTC
In short, move most(all?) of everything out of %{_libdir}/qt4, and use
FHS-friendly dirs like:
libs: %{_libdir}
headers: %{_includedir}

Must be careful about qt(4) addons, like qt4-qsa that (like to) install into
QTDIR/%{_lib}.  We could either 
1.  recommend/force rebuilds against the new configuration (ie, to move out of
QTDIR/%_lib and into the new location, %_libdir).
2.  Keep/own QTDIR/%_lib too.

Comment 1 Rex Dieter 2006-06-27 16:53:12 UTC
Another nice side-effect of using %_libdir would be that we can drop the
ld.so.conf.d funny-business (provided we don't do 2. above).

Comment 2 Rex Dieter 2006-06-29 20:43:25 UTC
Others I've worked on
datadir: %_libdir/qt4 -> %_datadir/qt4
docdir: %_docdir/qt4-doc-%version -> %_docdir/qt4
translationdir: %_libdir/qt4/translations -> %_datadir/qt4/translations

Comment 3 Ville Skyttä 2006-06-29 21:48:23 UTC
> headers: %{_includedir}

Are the headers exactly the same on all arches?  There's movement in making
devel packages multiarch friendly and parallel installable.

> docdir: %_docdir/qt4-doc-%version -> %_docdir/qt4

If this includes stuff I guess it does (haven't checked), it sounds inconsistent
with all other packages out there that use %{_docdir}/%{name}-%{version} despite
of the drawbacks of it being versioned.  Being consistent with the rest of the
world would be good for POLA.  If found faulty, mass-fix everything later.

Comment 4 Rex Dieter 2006-06-29 23:21:22 UTC
>> docdir: %_docdir/qt4-doc-%version -> %_docdir/qt4

>If this includes stuff I guess it does (haven't checked), it sounds inconsistent

qtassistant is qt4's help-browser, and it peruses stuff from there.  Other
apps/pkgs can put stuff in the qt4 docdir as well.  It seemed silly to force a
rebuild of those other apps/pkgs on every qt4 version update, so I chose to make
the dir static.  This is what other distros (well, at least SuSE) do as well.

Comment 5 Ville Skyttä 2006-06-30 09:51:49 UTC
Fair enough, the docdir apparently doesn't contain what I guessed then ;)

Depending on how essential those files are and whether qtassistant works without
them, one additional consideration could be whether to install them as %doc at
all (stuff in %_docdir gets automatically marked as such), think --excludedocs
installs.

Comment 6 Rex Dieter 2006-06-30 11:49:53 UTC
qtassistant will work without any docs, it just won't (be able to) show
anything.  I think the case where someone uses --excludedocs and installs a pkg
called -doc will probably be pretty rare. (:

Comment 7 Ville Skyttä 2006-06-30 12:19:22 UTC
Okay, agreed, I didn't (even) know that qtassistant is also in -doc.

Comment 8 Rex Dieter 2006-07-07 17:39:11 UTC
OK, the deed is done.

Comment 9 Rex Dieter 2007-06-19 13:43:18 UTC
*** Bug 244837 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.