Bug 179887 - New ebuild for media-gfx/qtpfsgui
|
Bug#:
179887
|
Product: Gentoo Linux
|
Version: 2006.1
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: enhancement
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: maintainer-wanted@gentoo.org
|
Reported By: rene.zbinden@solnet.ch
|
|
Component: Ebuilds
|
|
|
URL:
http://qtpfsgui.sourceforge.net/
|
|
Summary: New ebuild for media-gfx/qtpfsgui
|
|
Keywords: EBUILD
|
|
Status Whiteboard:
|
|
Opened: 2007-05-26 14:12 0000
|
Qtpfsgui is a graphical user interface that provides a workflow for HDR imaging
Just FYI, version 1.8.9 is out but simple ebuild rename didn't work. The
compilation fails for some reason but i didn't have time to investigate it...
1.8.8 merges fine on ~amd64.
Created an attachment (id=122216) [details]
media-gfx/qtpfsgui/qtpfsgui-1.8.9.ebuild
On x86 architecture it compiles, so I didn't add ~amd64 to this ebuild. Since I
do not have amd64 architecture I cannot test that. Paste the bug here, maybe I
can help.
with the patch from Tobias, version 1.8.9 compiles fine on ~amd64
(In reply to comment #8)
> Created an attachment (id=122227) [edit] [details]
> media-gfx/qtpfsgui/qtpfsgui-1.8.9.ebuild
>
> I had problems compiling 1.8.9 on ~amd64, too. But I fixed it:
> Here's a new ebuild and a patch that worked for me.
>
This patch breaks the he i18n feature.
Here the comments of the developer:
Mmmhh... that patch breaks the i18n feature: I18NDIR has do be a symbol defined
by the c++ preprocessor. This symbol expands to a string value defined by the
user at the qmake step (the default is /usr/local/share/qtpfsgui/i18n).
The definition happens in the project.pro at this point:
contains(MAJOR_MINOR_QT_VERSION,4.2) {
DEFINES += I18NDIR=\\\"$$I18NDIR\\\"
#message("Detected Qt4.2 ")
} else {
DEFINES += I18NDIR=\"$$I18NDIR\"
#message("Detected Qt4.1")
}
(as you can see there is an incompatibility between qt 4.1 a 4.2)
now... I don't have any amd64 machine, but this is most likely an error related
to the shell expansion. I see that you guys use qt-4.2.3 on gentoo. Can you
please remove the comment symbol "#" at line 193 and 196 of project.pro and
rerun qmake and make? Then please paste here the output. If the problem is only
on amd64 architectures, can you please ask the guys to do that?
I think that we have to edit project.pro to solve this problem.
Can you amd64 guys do that and put the output here.
Thanks in advance
Rene
Created an attachment (id=122345) [details]
media-gfx/qtpfsgui/files/dirtylangdir.patch
Ah ... qt-4.3.0 installed here, so the output of qmake is "Detected Qt4.1".
So I edited project.pro to work with 4.3:
contains(MAJOR_MINOR_QT_VERSION,4.1) {
DEFINES += I18NDIR=\"$$I18NDIR\"
#message("Detected Qt4.1")
} else {
DEFINES += I18NDIR=\\\"$$I18NDIR\\\"
#message("Detected Qt4.2 or later")
}
Is this correct?
Created an attachment (id=122871) [details]
media-gfx/qtpfsgui/qtpfsgui-1.8.9.ebuild
Some further modifications to Rene's ebuild:
* The language files get generated and installed, now i18n will really work ;)
* Changed the html-documentation installation path. (couldn't get found)
I'd like to hear, how these changes work for you.
this is not an official part of gentoo yet, so the security won't care about
it, but you might be interested in this:
Qtpfsgui "readRadianceHeader()" Buffer Overflow Vulnerability
http://secunia.com/advisories/26387/
*** Bug 188673 has been marked as a duplicate of this bug. ***
I added media-gfx/qtpfsgui-1.9.0 to the tree.