Bug 456761 - API files in %{_libdir}
Summary: API files in %{_libdir}
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: qscintilla
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-07-26 17:04 UTC by Johan Cwiklinski
Modified: 2008-08-15 15:30 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-08-15 15:30:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Johan Cwiklinski 2008-07-26 17:04:02 UTC
It seems that *.api files from qscintilla are now installed under %{_libdir}
(under rawhide), instead of %{_datadir} (F-9).

I'm packaging eric, which is a noarch package, and which install its own api
files. Of course, under rawhide, it uses %{_libdir}/qt4/qsci/api/python/ ; wich
is not correct for a noarch package.

Since *.api files are not arch dependant, I think it should not being installed
under %{_libdir}, right ?

Regards,
Johan

Comment 1 Rex Dieter 2008-07-26 18:35:07 UTC
Problem being is we found out not too long ago that qt4's notion of %_datadir
wasn't exactly arch-independent.  Workarounds failed.  So, ended up moving
%_qt4_datadir from %_datadir/qt4 to %{_libdir}/qt4, and this is the result.

Options include:
1.  Manually moving qscintilla api files to %_datadir/qt4 .  This may have
unforseen breakage.  What else uses (or can use) these .api files?
or
2.  teach eric to look in both %_datadir/qt4 and %_libdir/qt4 for api files

opinions?

Comment 2 Johan Cwiklinski 2008-07-26 19:15:24 UTC
Hum...

I really don't know what would be the better solution. At eric installs, it
defaults to 'pyqtconfig._pkg_config["qt_data_dir"]'. qt_data_dir is not used
elsewhere in eric's sources (according to grep).
I'll try to investigate to find out how these files are used at runtime, so
maybe can I patch it to look into both %_datadir and %_libdir (32 and 64bits).

I really don't know what could use .api files, moving them should not be ok
since 'pyqtconfig._pkg_config["qt_data_dir"]' will always return %_libdir :/

Comment 3 Johan Cwiklinski 2008-08-15 11:21:54 UTC
I've asked upstream, answer is here : http://www.riverbankcomputing.com/pipermail/eric/2008-August/001189.html

I really do not know what to do ; It is really too much complicated for me, sorry.

Comment 4 Rex Dieter 2008-08-15 12:46:12 UTC
Shrug, maybe simplest solution is to simply make eric an arch pkg (no longer noarch), and then stuff would end up in the right place.

Comment 5 Johan Cwiklinski 2008-08-15 14:32:40 UTC
I've taken a look at this possibility already, but this makes rpmlint unhappy (E: no-binary and E: only-non-binary-in-usr-lib).

Do you think that these rpmlint errors should be ignored ? If so, I'll remove the 'BuildArch: noarch' tag from future versions.

Comment 6 Rex Dieter 2008-08-15 14:40:54 UTC
rpmlint warnings vs.  app not working.

I'll take the former as the lesser of 2 evils here. ;)

Comment 7 Johan Cwiklinski 2008-08-15 15:30:14 UTC
:-) 

Okay,thanks for the advices and the help, I'll push the new versions into rawhide and updates-testing soon.


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