Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265912 - dev-lang/mono-2.4 has an intenal copy of dev-util/jay (in java-overlay)
Summary: dev-lang/mono-2.4 has an intenal copy of dev-util/jay (in java-overlay)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
: 268599 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-12 22:16 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-05-14 07:14 UTC (History)
3 users (show)

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


Attachments
Fix for jay's perceived failings as-is (jay-fix.patch,1.88 KB, patch)
2009-05-10 20:17 UTC, Peter Alfredsen (RETIRED)
Details | Diff
Change to use java-pkg-opt-2 (jay-fix-v2.patch,2.38 KB, patch)
2009-05-11 05:22 UTC, Peter Alfredsen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-04-12 22:16:56 UTC
I stumbled across this today when updating jruby from the java team overlay, that now requires dev-util/jay; the jay command and man pages are already supplied by mono-2.4 itself, I guess it should be gone from there, and added as a dependency instead..
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-04-14 12:32:36 UTC
Upstream says that it shoul dprobably just not be installed from mono, I guess we can remove the binary and man pag.
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2009-04-14 16:20:21 UTC
's true. I even searched for the package once but drew blanks. 
Comment 3 Alistair Bush (RETIRED) gentoo-dev 2009-04-14 19:21:37 UTC
After looking at the jay ebuild in java-overlay I believe it is in a state where it can go into the main tree.

Believe the only thing extra it should have is a blocker on mono.  I will do some testing etc and move it into the main tree tonight (+12 hours),  then mono can do with it as they wish.

With the blocker should it just be

!<=dev-lang/mono-2.4
Comment 4 Alistair Bush (RETIRED) gentoo-dev 2009-04-15 11:24:47 UTC
Ok it is now in the tree

dev-util/jay

dotnet ppl do your worst.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-05-08 09:40:33 UTC
I've added a mono 2.4-r1 that simply doesn't install jay any longer (removes it after install), as suggested by upstream.
Comment 6 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-08 10:24:31 UTC
Please tell me dev-util/jay also does C# ?

If it does not, would you please tell me how you can consider it a full replacement?

Masked till we have a satisfactory resolution.
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-05-08 10:28:44 UTC
have you spoken with Mono upstream about this? They never intended that to be installed, it was a glitch that it was.

Do you think there is _anything_ in tree that is using jay for C#? I don't think so, the Mono project has NOTHING that uses the jay version in Mono beside mcs itself.
Comment 8 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-08 10:47:12 UTC
First of all: jay needs skeleton files to be installed to be usable. They're there in the tarball. They're not being installed.
Has anyone diffed the skeleton.cs installed by mono and jay? Please do so.

Quoting from the INSTALL file which *noone* apparently bothered to read:

installation instructions

(0) if you work with SSCLI, make sure the path to this directory (after resolving any symbolic links) does not contain blanks -- blanks seem to confuse at least SSCLI on MacOS X 10.2.2.

(1) in the current directory, execute 'make'.

This should at least create jay/jay.$(OSTYPE).

If a suitable JDK is installed, it will also create java/yydebug.jar, java/arith/{arith,tables}.jar, and java/recover/{recover,tables}.jar.

If a suitable SSCLI is installed, it will also create cs/yyDebug.dll and install it with a fake strong name in the GAC, cs/arith/arith.exe, and cs/recover/recover.exe.

(2) in the current directory, execute 'make test'.

This should at least run the regression test in conflict/.

If a suitable JDK is installed, it will also test in java/{arith,recover}/.

If a suitable SSCLI is installed, it will also test in cs/{arith,recover}/.

(3) copy jay/jay.$(OSTYPE) to a convenient location.

(4) copy some of {java,cs}/skeleton.* to a convenient location.

(5) you might want to install a skript somewhere with something like

#!/bin/sh
exec [path]/jay < [path]/[skeleton] "$@"

So, plz2make your replacement work with Java and Mono before you fix this again.Kthx.
Also looks like there's a test suite in there somewhere.
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-05-08 10:53:34 UTC
That's Java's team problem for what I'm concerned.

Is there _any_ reason for which you want Mono to keep installing something *that is not supposed to be installing*?

Note that I didn't add _any_ depend at all on jay for Mono because _it won't ever use the installed copy_, the version bundled is modified and used and useful only to build mcs.

The fix mono-side would have been valid even if jay was never present in tree.

Again, can you bring any reason on why we can't just remove jay?
Comment 10 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-08 11:29:05 UTC
(In reply to comment #9)
> That's Java's team problem for what I'm concerned.

Then leave it to them. It's true that there are no in-tree users of jay, but that doesn't mean that it's not a useful tool for users. The thing you are proposing to replace it with does not have the same functionality.

http://qa.debian.org/popcon.php?package=mono (look under mono-jay)

This thing obviously has users.

Don't get me wrong, I'm all for getting it replaced with the original package (YAY for modularization), but please make sure the replacement actually works.
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-05-08 11:36:14 UTC
While not in tree there is one package in an official overlay that is broken by this (jruby). And As I said, that jay should not be used. Have you spoken with upstream? I asked explicitly if the jay copy in mono should be useful to the end user and they answered that it should not be used.

Sorry but I don't count on Debian having done the right thing, I never do; does Novell package it?
Comment 12 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-08 12:22:37 UTC
(In reply to comment #11)
> While not in tree there is one package in an official overlay that is broken by
> this (jruby).

Which brings me to my rant about Java team and their Godzilla overlays.

> And As I said, that jay should not be used. Have you spoken with
> upstream? I asked explicitly if the jay copy in mono should be useful to the
> end user and they answered that it should not be used.

Perhaps you should ask them if it's more useful than a jay that does not work with C#. The answer might be different there.

> Sorry but I don't count on Debian having done the right thing, I never do; does
> Novell package it?

Mono's jay has users, regardless of upstream intentions. I've pointed out how dev-util/jay can be fixed. 
Comment 13 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-08 17:25:19 UTC
*** Bug 268599 has been marked as a duplicate of this bug. ***
Comment 14 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-10 20:17:38 UTC
Created attachment 190862 [details, diff]
Fix for jay's perceived failings as-is

@Java herd, could one of you guys take a look at this?
Comment 15 Serkan Kaba (RETIRED) gentoo-dev 2009-05-11 03:34:55 UTC
(In reply to comment #14)
> Created an attachment (id=190862) [edit]
> Fix for jay's perceived failings as-is
> 
> @Java herd, could one of you guys take a look at this?
> 

If you have optional java support java-pkg-opt-2 eclass should be used.
Comment 16 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-11 05:22:55 UTC
Created attachment 190897 [details, diff]
Change to use java-pkg-opt-2
Comment 17 Alistair Bush (RETIRED) gentoo-dev 2009-05-12 19:04:08 UTC
Patch has been applied to jay.  Thank you Peter.

I will let you close this once mono has been unmasked.
Comment 18 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-12 20:40:39 UTC
2.4-r2 is in tree with a fix for bug 257313. Closing.
Comment 19 Serkan Kaba (RETIRED) gentoo-dev 2009-05-14 07:14:53 UTC
*** Bug 269790 has been marked as a duplicate of this bug. ***