Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116261 - sys-apps/dbus-0.50-r2 does not merge with USE=gcj and sys-devel/gcc-4.0.2-r2
Summary: sys-apps/dbus-0.50-r2 does not merge with USE=gcj and sys-devel/gcc-4.0.2-r2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Project Gentopia
URL:
Whiteboard:
Keywords:
: 116302 117304 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-21 03:37 UTC by Sebastian Bergmann (RETIRED)
Modified: 2006-01-01 23:18 UTC (History)
5 users (show)

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


Attachments
dbus-0.50-gcj.patch (dbus-0.50-gcj.patch,194 bytes, patch)
2005-12-21 09:26 UTC, Michael Cramer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Bergmann (RETIRED) gentoo-dev 2005-12-21 03:37:06 UTC
jar cfM0E@ dbus-1.jar
Illegal option: E
Usage: jar {ctxu}[vfm0Mi] [jar-file] [manifest-file] [-C dir] files ...
Options:
    -c  create new archive
    -t  list table of contents for archive
    -x  extract named (or all) files from archive
    -u  update existing archive
    -v  generate verbose output on standard output
    -f  specify archive file name
    -m  include manifest information from specified manifest file
    -0  store only; use no ZIP compression
    -M  do not create a manifest file for the entries
    -i  generate index information for the specified jar files
    -C  change to the specified directory and include the following file
If any file is a directory then it is processed recursively.
The manifest file name and the archive file name needs to be specified
in the same order the 'm' and 'f' flags are specified.

Example 1: to archive two class files into an archive called classes.jar:
       jar cvf classes.jar Foo.class Bar.class
Example 2: use an existing manifest file 'mymanifest' and archive all the
           files in the foo/ directory into 'classes.jar':
       jar cvfm classes.jar mymanifest -C foo/ .

make[3]: *** [dbus-1.jar] Error 1
make[3]: Leaving directory `/var/tmp/portage/dbus-0.50-r2/work/dbus-0.50/gcj'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dbus-0.50-r2/work/dbus-0.50/gcj'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dbus-0.50-r2/work/dbus-0.50'
make: *** [all] Error 2
Comment 1 Jan Gutter 2005-12-21 04:20:51 UTC
Also fails on gcc 3.4.4-r1 (amd64) with the exact same error. Removing gcj from USE makes it compile cleanly again.
Comment 2 Michael Cramer 2005-12-21 05:33:39 UTC
same here with gcc 3.4.5
Comment 3 Paul T. Darga 2005-12-21 06:19:08 UTC
It seems that the ebuild should be using gcj-jar instead of jar.  Is this due to having a JDK installed?
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2005-12-21 08:56:41 UTC
I'll remove support for it. I don't hava Java. I wiped hands clean of that language when I was done with my classes at college that needed it.

Someone has been msging me on IRC asking me to enable the bindings telling me all you needed was gcc compiled with gcj and call --enable-gcj and it all worked. So I listened.

If you guys can figure out the issue and lemme know, I'll fix the ebuild properly. It doesn't look too complicated.
Comment 5 Michael Cramer 2005-12-21 09:26:16 UTC
Created attachment 75280 [details, diff]
dbus-0.50-gcj.patch

this one should fix the build with gcj
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-12-21 10:43:39 UTC
*** Bug 116302 has been marked as a duplicate of this bug. ***
Comment 7 Petteri Räty (RETIRED) gentoo-dev 2005-12-26 05:57:31 UTC
(In reply to comment #4)
> I'll remove support for it. I don't hava Java. I wiped hands clean of that
> language when I was done with my classes at college that needed it.
> 

betelgeuse@pena /usr/portage/sys-apps/dbus $ grep gcj dbus-0.50-r2.ebuild
IUSE="X gcj gtk qt python mono doc xml2"
#       if use gcj && ! built_with_use sys-devel/gcc gcj; then
#               eerror "with the 'gcj' USE flag. Add 'gcj' to USE and re-emerge gcc."
#               die "gcc needs gcj support to use the java bindings"
## $(use_enable gcj)

you forgot to remove gcj from IUSE
Comment 8 Steev Klimaszewski (RETIRED) gentoo-dev 2005-12-31 16:47:28 UTC
*** Bug 117304 has been marked as a duplicate of this bug. ***
Comment 9 Doug Goldstein (RETIRED) gentoo-dev 2006-01-01 23:18:59 UTC
Fixed in dbus-0.60-r2.... please test... it will be coming out of mask soon.