Bug 494470 - Close button doesn't work in qt4.5 and locale is in wrong dir
Summary: Close button doesn't work in qt4.5 and locale is in wrong dir
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: qsynth
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Orcan Ogetbil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-07 02:47 UTC by Orcan Ogetbil
Modified: 2009-05-09 04:02 UTC (History)
3 users (show)

Fixed In Version: 0.3.3-6.fc11
Clone Of:
Environment:
Last Closed: 2009-04-28 01:19:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
close button fix (qt4.5) (1021 bytes, patch)
2009-04-07 02:48 UTC, Orcan Ogetbil
no flags Details | Diff
fix locale path (2.07 KB, patch)
2009-04-07 02:49 UTC, Orcan Ogetbil
no flags Details | Diff

Description Orcan Ogetbil 2009-04-07 02:47:18 UTC
The close button on top right of the window does not show up when qsynth is compiled and/run against qt4.5 which is going to hit F-9, F-10 repos soon. It is already in rawhide.

Additionally, the locale .qm files get installed into %{_datadir}/locale. According to the guidelines, usage of %{_datadir}/locale/* is forbidden in %files section. These files are not regular locale files but they are qt style locale files. They need to be installed somewhere else, possibly in %{_datadir}/%{name}/locale

I'm attaching patches to fix both issues.

I also filed ACL requests in pkgdb:
   https://admin.fedoraproject.org/pkgdb/packages/name/qsynth

I can fix these issues if I'm granted permission.

Comment 1 Orcan Ogetbil 2009-04-07 02:48:39 UTC
Created attachment 338449 [details]
close button fix (qt4.5)

Comment 2 Orcan Ogetbil 2009-04-07 02:49:10 UTC
Created attachment 338450 [details]
fix locale path

Comment 3 Rex Dieter 2009-04-07 12:53:52 UTC
When/if new builds are done against qt-4.5, I'd also suggest adding (something like):
Requires: qt4 >= %{_qt4_version}

and it can be added to pending qt45 updates
F-9: https://admin.fedoraproject.org/updates/F9/FEDORA-2009-3356
F-10: https://admin.fedoraproject.org/updates/F10/FEDORA-2009-3389
(or pushed separately, provided it doesn't land in stable before qt45 does).

Comment 4 Kevin Kofler 2009-04-09 20:35:56 UTC
I'm not convinced the locale path patch really makes sense. The spirit of the "%{_datadir}/locale/* is forbidden" guideline is that all language-specific files need to be qualified with %lang for that language (e.g. %lang(de)), which the %find_lang macro does for you (for standard .mo files). So throwing those files into a subdirectory does not actually fix anything. What is really needed is a %find_lang-type macro for Qt translations. (That or get the upstream projects to use gettext instead like the rest of the world, including KDE, does. But I'm sure there will always be projects using Qt's translation mechanism, starting from Qt itself.)

IMHO we should get the Qt 4.5 fixes out ASAP and leave the locale issues for a later cleanup when we're not in a hurry. You should also file a separate bug for the locale stuff, 2 issues in one bug report = bad. The patch as it is there is IMHO wrong.

Comment 5 Orcan Ogetbil 2009-04-09 20:51:07 UTC
So, installing .qm files directly in /usr/share/locale/ = right ?

If you look closely, the patch does not put them in a subdirectory of
/usr/share/locale/; it puts them into /usr/share/%{name}/locale/

Comment 6 Fedora Update System 2009-04-18 05:50:20 UTC
qsynth-0.3.3-6.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/qsynth-0.3.3-6.fc11

Comment 7 Orcan Ogetbil 2009-04-28 01:19:48 UTC
This one is done too.

Comment 8 Fedora Update System 2009-05-09 04:02:18 UTC
qsynth-0.3.3-6.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


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