Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260774 - dev-java/qtjambi-4.5.0_rc1 version bump
Summary: dev-java/qtjambi-4.5.0_rc1 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: EBUILD
Depends on: 260803
Blocks:
  Show dependency tree
 
Reported: 2009-03-01 19:58 UTC by Fabian Köster
Modified: 2009-07-24 18:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
An initial ebuild for the preview of Qt Jambi 4.5.0 (qtjambi-4.5.0_rc1.ebuild,4.34 KB, text/plain)
2009-03-01 20:03 UTC, Fabian Köster
Details
The generator-patch for Qt Jambi 4.5.0 Preview (generator-4.5.0_rc1.patch,435 bytes, text/plain)
2009-03-01 20:03 UTC, Fabian Köster
Details
The generator-patch for Qt Jambi 4.5.0 Preview (generator-4.5.0_rc1.patch,435 bytes, patch)
2009-03-01 20:03 UTC, Fabian Köster
Details | Diff
The configuration-patch for Qt Jambi 4.5.0 Preview (configuration-4.5.0_rc1.patch,4.66 KB, text/plain)
2009-03-01 20:04 UTC, Fabian Köster
Details
updated to install jambi-designer (qtjambi-4.5.0_rc1.ebuild,5.13 KB, text/plain)
2009-04-20 02:10 UTC, Kyle Cavin
Details
updated configuration patch (configuration-4.5.0_rc1.patch,5.06 KB, patch)
2009-04-20 02:10 UTC, Kyle Cavin
Details | Diff
diff against 4.4.3 in tree (qtjambi-4.4.3-4.5.0_rc1.diff,4.06 KB, patch)
2009-04-20 08:12 UTC, Kyle Cavin
Details | Diff
updated per comment #14 (qtjambi-4.4.3-4.5.0_rc1.diff,4.12 KB, patch)
2009-04-20 11:14 UTC, Kyle Cavin
Details | Diff
improved ebuild for qtjambi-4.5.0_pre1 (qtjambi-4.5.0_pre1.ebuild,4.15 KB, text/plain)
2009-04-26 22:49 UTC, Davide Pesavento (RETIRED)
Details
configuration-4.5.0_pre1.patch (configuration-4.5.0_pre1.patch,4.26 KB, patch)
2009-04-26 22:51 UTC, Davide Pesavento (RETIRED)
Details | Diff
generator-4.5.0_pre1.patch (generator-4.5.0_pre1.patch,1.32 KB, patch)
2009-04-26 22:51 UTC, Davide Pesavento (RETIRED)
Details | Diff
configuration-4.5.0_pre1.patch (configuration-4.5.0_pre1.patch,3.88 KB, patch)
2009-05-01 14:24 UTC, Davide Pesavento (RETIRED)
Details | Diff
qtjambi-4.5.0_pre1.ebuild (qtjambi-4.5.0_pre1.ebuild,4.56 KB, text/plain)
2009-05-01 14:33 UTC, Davide Pesavento (RETIRED)
Details
updated to clean up the examples (configuration-4.5.0_pre1.patch,4.10 KB, patch)
2009-05-03 11:34 UTC, Kyle Cavin
Details | Diff
cleans up examples, and installs ant tasks for qtjambi. (qtjambi-4.5.0_pre1.diff,1.12 KB, patch)
2009-05-03 11:40 UTC, Kyle Cavin
Details | Diff
configuration-4.5.0_p1.patch (configuration-4.5.0_p1.patch,3.88 KB, patch)
2009-05-15 09:12 UTC, Davide Pesavento (RETIRED)
Details | Diff
generator-4.5.0_p1.patch (generator-4.5.0_p1.patch,1.32 KB, patch)
2009-05-15 09:13 UTC, Davide Pesavento (RETIRED)
Details | Diff
qtjambi-4.5.0_p1.ebuild (qtjambi-4.5.0_p1.ebuild,4.73 KB, text/plain)
2009-05-15 09:13 UTC, Davide Pesavento (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Köster 2009-03-01 19:58:38 UTC
Qt Jambi 4.5.0 will soon be released (after Qt 4.5.0 has been released), a preview is already available under [1].


[1] http://www.qtsoftware.com/about/news/preview-of-final-qt-jambi-release-available


Reproducible: Always
Comment 1 Fabian Köster 2009-03-01 20:03:03 UTC
Created attachment 183594 [details]
An initial ebuild for the preview of Qt Jambi 4.5.0
Comment 2 Fabian Köster 2009-03-01 20:03:39 UTC
Created attachment 183595 [details]
The generator-patch for Qt Jambi 4.5.0 Preview
Comment 3 Fabian Köster 2009-03-01 20:03:44 UTC
Created attachment 183596 [details, diff]
The generator-patch for Qt Jambi 4.5.0 Preview
Comment 4 Fabian Köster 2009-03-01 20:04:42 UTC
Created attachment 183598 [details]
The configuration-patch for Qt Jambi 4.5.0 Preview
Comment 5 Serkan Kaba (RETIRED) gentoo-dev 2009-03-01 20:34:35 UTC
Thanks for the submission. Maybe you can try getting that configuration patch upstream before the final release.
Comment 6 Fabian Köster 2009-03-01 20:41:51 UTC
OK, i will try that.

Unfortunately I just discovered that the +phonon use-flag leads to a compilation error. Will try to fix this issue first.
Comment 7 Fabian Köster 2009-03-01 23:35:03 UTC
Examined the problem and it only occurs if the 'examples' and 'phonon' use-flag are enabled at the same time. File a separate bug for this: #260803.
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2009-03-15 21:20:14 UTC
Why do you skip the 'library.native.bundle' ant target?
Comment 9 Kyle Cavin 2009-04-20 02:10:11 UTC
Created attachment 188928 [details]
updated to install jambi-designer

ebuild now creates the designer library, and installs the designer plugins correctly. Also made changes to compile with distcc. Requires updated configuration patch
Comment 10 Kyle Cavin 2009-04-20 02:10:51 UTC
Created attachment 188929 [details, diff]
updated configuration patch
Comment 11 Davide Pesavento (RETIRED) gentoo-dev 2009-04-20 07:53:03 UTC
(In reply to comment #9)
> Created an attachment (id=188928) [edit]
> updated to install jambi-designer
> 
> ebuild now creates the designer library, and installs the designer plugins
> correctly. Also made changes to compile with distcc. Requires updated
> configuration patch
> 

Kyle, could you please attach a diff against the current ebuild in portage instead of the whole updated ebuild? It makes reviewing easier. Thanks.
Comment 12 Kyle Cavin 2009-04-20 08:12:36 UTC
Created attachment 188940 [details, diff]
diff against 4.4.3 in tree
Comment 13 Kyle Cavin 2009-04-20 08:29:49 UTC
(In reply to comment #8)
> Why do you skip the 'library.native.bundle' ant target?
> 

I think this is fine for most cases, because the /usr/lib qt files will be resolved instead of unpacked from a bundle. It may be nice to make an option for this, but it seems to make sense only if you intend to distribute the bundle (to the same arch). Otherwise, it just seems like a waste of space.

In order to run your application with the native files, use the following:

java -jar -Djava.library.path=/usr/lib/qtjambi-4:/usr/lib/qt4 yourjar.jar
Comment 14 Davide Pesavento (RETIRED) gentoo-dev 2009-04-20 09:49:12 UTC
Just a quick note: shouldn't get_libdir() used when generating the start script too?

And "generator" is a little too generic for a binary IMHO, it may easily cause collisions... maybe we should install it as "jambi-generator"?
Comment 15 Kyle Cavin 2009-04-20 11:14:50 UTC
Created attachment 188947 [details, diff]
updated per comment #14
Comment 16 Davide Pesavento (RETIRED) gentoo-dev 2009-04-26 17:43:00 UTC
How is jambi-designer supposed to be different from the regular Qt designer?
I suspect the designer plugins installed by qtjambi fail to load on my box...
Comment 17 Davide Pesavento (RETIRED) gentoo-dev 2009-04-26 22:49:53 UTC
Created attachment 189574 [details]
improved ebuild for qtjambi-4.5.0_pre1

Much-reworked (EAPI-2) ebuild. Due to the extensive changes, the diff was unreadable, so I'm attaching the whole ebuild.

Works fine here except that the native libraries are built for every Qt library present on the system when emerging, thus the ebuild doesn't respect USE flags. I know where the problem is (java.pro uses QT_CONFIG to determine what must be compiled), I just need to find the best/simplest way to fix it.

'examples' and 'doc' USE flags *not* tested.
Comment 18 Davide Pesavento (RETIRED) gentoo-dev 2009-04-26 22:51:31 UTC
Created attachment 189576 [details, diff]
configuration-4.5.0_pre1.patch
Comment 19 Davide Pesavento (RETIRED) gentoo-dev 2009-04-26 22:51:53 UTC
Created attachment 189577 [details, diff]
generator-4.5.0_pre1.patch
Comment 20 Kyle Cavin 2009-04-27 02:27:07 UTC
(In reply to comment #16)
> How is jambi-designer supposed to be different from the regular Qt designer?
> I suspect the designer plugins installed by qtjambi fail to load on my box...
> 

jambi-designer outputs a different type of file than regular designer (*.jui). That is pretty much the only indicator that it is working correctly.
Comment 21 Davide Pesavento (RETIRED) gentoo-dev 2009-05-01 14:23:06 UTC
(In reply to comment #20)
> (In reply to comment #16)
> > How is jambi-designer supposed to be different from the regular Qt designer?
> > I suspect the designer plugins installed by qtjambi fail to load on my box...
> > 
> 
> jambi-designer outputs a different type of file than regular designer (*.jui).
> That is pretty much the only indicator that it is working correctly.
> 

Ok, then it's working correctly :)
Comment 22 Davide Pesavento (RETIRED) gentoo-dev 2009-05-01 14:24:14 UTC
Created attachment 190031 [details, diff]
configuration-4.5.0_pre1.patch
Comment 23 Davide Pesavento (RETIRED) gentoo-dev 2009-05-01 14:33:41 UTC
Created attachment 190038 [details]
qtjambi-4.5.0_pre1.ebuild

So, I've chosen to use eqmake4 to fix the problem mentioned in comment #17.
This ebuild should be in a pretty good shape now :-)

P.S.: I removed the sqlite USE flag because the dependency on x11-libs/qt-sql is _not_ considered optional by upstream, qtjambi won't compile without it!
Comment 24 Kyle Cavin 2009-05-01 16:20:43 UTC
Looks pretty good. One thing I caught a couple days ago: the examples get installed with 755 permissions! I'll post a fix if you don't beat me to it.
Comment 25 Davide Pesavento (RETIRED) gentoo-dev 2009-05-01 17:23:30 UTC
(In reply to comment #24)
> Looks pretty good. One thing I caught a couple days ago: the examples get
> installed with 755 permissions! I'll post a fix if you don't beat me to it.
> 

Mmmm... it seems that java-pkg_doexamples (from java-utils-2.eclass) doesn't reset the permissions before calling doins... I wonder if it's a feature or a bug...
Comment 26 Davide Pesavento (RETIRED) gentoo-dev 2009-05-01 18:13:40 UTC
Native libraries in /usr/$(get_libdir)/qtjambi-4 are also installed with wrong permissions (because of bug #225729).
Comment 27 Kyle Cavin 2009-05-03 11:34:06 UTC
Created attachment 190214 [details, diff]
updated to clean up the examples
Comment 28 Kyle Cavin 2009-05-03 11:40:23 UTC
Created attachment 190215 [details, diff]
cleans up examples, and installs ant tasks for qtjambi.

This patch installs the ant-qtjambi.jar file that trolltech thinks developers should have. It also gets rid of class files in the examples directory, since they get bundled already. The latest portage fixes the permissions issue for java-pkg_doexamples.
Comment 29 Davide Pesavento (RETIRED) gentoo-dev 2009-05-13 16:16:41 UTC
QtJambi 4.5.0_01 (final) is out.

Kyle, have you tried building qtjambi (final or _pre1, it shouldn't matter) with USE="examples phonon" (using x11-libs/qt-phonon)?
Comment 30 Kyle Cavin 2009-05-13 20:06:23 UTC
(In reply to comment #29)
> QtJambi 4.5.0_01 (final) is out.
> 
> Kyle, have you tried building qtjambi (final or _pre1, it shouldn't matter)
> with USE="examples phonon" (using x11-libs/qt-phonon)?
> 

Just tried and failed. I'll work on it.
Comment 31 Davide Pesavento (RETIRED) gentoo-dev 2009-05-13 21:04:50 UTC
It failed for me too, but I'm using media-sound/phonon, not x11-libs/qt-phonon. With media-sound/phonon, the generator doesn't generate anything for the phonon module and the libcom_trolltech_qt_phonon.so.1.0.0 native library is just bogus... I think bug #260805 is invalid, or at least it doesn't apply to 4.5.0.
Comment 32 Kyle Cavin 2009-05-13 21:07:09 UTC
(In reply to comment #30)
> (In reply to comment #29)
> > QtJambi 4.5.0_01 (final) is out.
> > 
> > Kyle, have you tried building qtjambi (final or _pre1, it shouldn't matter)
> > with USE="examples phonon" (using x11-libs/qt-phonon)?
> > 
> 
> Just tried and failed. I'll work on it.
> 

Interestingly, phonon is not packaged in 4.5.0_01. Only the demos are present.
4.4.3 seems to lack the libraries as well. It looks like 4.4.0_01 is the only version with phonon.

Comment 33 Davide Pesavento (RETIRED) gentoo-dev 2009-05-13 21:39:45 UTC
Weird. What's missing exactly?
Comment 34 Kyle Cavin 2009-05-14 02:31:32 UTC
(In reply to comment #33)
> Weird. What's missing exactly?
> 

I think I spoke too soon. I think the generator is responsible for creating the sources. I'll have to look deeper...
Comment 35 Davide Pesavento (RETIRED) gentoo-dev 2009-05-14 09:21:09 UTC
(In reply to comment #34)
> I think I spoke too soon. I think the generator is responsible for creating the
> sources. I'll have to look deeper...
> 

Indeed. Could you please check that the sources are generated and the native library is not bogus? (e.g. run scanelf -qn on lib/libcom_trolltech_qt_phonon.so.1.0.0)
Thanks.
Comment 36 Davide Pesavento (RETIRED) gentoo-dev 2009-05-15 09:12:58 UTC
Created attachment 191328 [details, diff]
configuration-4.5.0_p1.patch
Comment 37 Davide Pesavento (RETIRED) gentoo-dev 2009-05-15 09:13:21 UTC
Created attachment 191329 [details, diff]
generator-4.5.0_p1.patch
Comment 38 Davide Pesavento (RETIRED) gentoo-dev 2009-05-15 09:13:47 UTC
Created attachment 191330 [details]
qtjambi-4.5.0_p1.ebuild
Comment 39 Davide Pesavento (RETIRED) gentoo-dev 2009-05-17 13:22:32 UTC
I added qtjambi-4.5.0_p1 to the qting-edge overlay.
Comment 40 Davide Pesavento (RETIRED) gentoo-dev 2009-07-24 16:20:47 UTC
qtjambi-4.5.0_p1 is in tree now.