Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77141 - Ebuild request for Mercury, a java based msn client
Summary: Ebuild request for Mercury, a java based msn client
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Net-im project
URL: http://www.mercury.to/
Whiteboard:
Keywords:
: 78563 (view as bug list)
Depends on: 78664
Blocks:
  Show dependency tree
 
Reported: 2005-01-08 09:09 UTC by Andrea Cervesato
Modified: 2005-09-14 15:32 UTC (History)
9 users (show)

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


Attachments
mercury-bin-1708.ebuild (mercury-bin-1708.ebuild,944 bytes, text/plain)
2005-01-14 08:08 UTC, Gustavo Felisberto (RETIRED)
Details
mercury.sh (mercury.sh,260 bytes, text/plain)
2005-01-14 08:09 UTC, Gustavo Felisberto (RETIRED)
Details
Corrected ebuild (mercury-bin-1708.ebuild,909 bytes, application/octet-stream)
2005-01-14 13:21 UTC, Andrea Cervesato
Details
mercury-bin-1708.ebuild (mercury-bin-1708.ebuild,906 bytes, text/plain)
2005-01-15 05:02 UTC, Gustavo Felisberto (RETIRED)
Details
mercury.sh (mercury.sh,268 bytes, text/plain)
2005-01-15 05:02 UTC, Gustavo Felisberto (RETIRED)
Details
icon32.gif (icon32.gif,1.23 KB, image/gif)
2005-01-15 05:03 UTC, Gustavo Felisberto (RETIRED)
Details
mercury.sh (mercury.sh,229 bytes, text/plain)
2005-01-15 16:28 UTC, Gustavo Felisberto (RETIRED)
Details
mercury-bin-1708.ebuild (mercury-bin-1708.ebuild,897 bytes, text/plain)
2005-01-15 16:31 UTC, Gustavo Felisberto (RETIRED)
Details
mercury-bin-1708.ebuild (mercury-bin-1708.ebuild,857 bytes, text/plain)
2005-01-16 12:33 UTC, Gustavo Felisberto (RETIRED)
Details
mercury.sh (mercury.sh,206 bytes, text/plain)
2005-01-16 12:35 UTC, Gustavo Felisberto (RETIRED)
Details
mercury-bin-1708.ebuild (mercury-bin-1708.ebuild,1.15 KB, text/plain)
2005-01-19 07:19 UTC, Gustavo Felisberto (RETIRED)
Details
mercury.sh (mercury.sh,265 bytes, text/plain)
2005-01-19 07:19 UTC, Gustavo Felisberto (RETIRED)
Details
Mercury 1709.B7 ebuild (mercury-bin-1709_beta7.ebuild,1.26 KB, text/plain)
2005-02-28 12:04 UTC, Emanuele Tamponi
Details
Mercury 1709_RC8 (mercury-bin-1709_rc8.ebuild,2.65 KB, text/plain)
2005-05-30 19:37 UTC, Alessandro Orru'
Details
mercury-bin-1709_rc8.ebuild (mercury-bin-1709_rc8.ebuild,2.65 KB, text/plain)
2005-05-30 19:45 UTC, Alessandro Orru'
Details
mercury.sh Startup Script (mercury.sh,384 bytes, text/plain)
2005-05-30 19:48 UTC, Alessandro Orru'
Details
mercury.sh Startup Script (mercury.sh,396 bytes, text/plain)
2005-05-31 08:28 UTC, Alessandro Orru'
Details
mercury-bin-1709_rc8.ebuild (mercury-bin-1709_rc8.ebuild,2.57 KB, text/plain)
2005-05-31 08:33 UTC, Alessandro Orru'
Details
mercury-bin-1709_rc8.ebuild (mercury-bin-1709_rc8.ebuild,2.67 KB, text/plain)
2005-05-31 12:51 UTC, Alessandro Orru'
Details
mercury.sh Startup Script (mercury.sh,443 bytes, text/plain)
2005-06-01 06:39 UTC, Alessandro Orru'
Details
mercury-bin-1709_rc12.ebuild (mercury-bin-1709_rc12.ebuild,2.68 KB, text/plain)
2005-07-04 06:52 UTC, Alessandro Orru'
Details
mercury-bin-1709.ebuild (FINAL) (mercury-bin-1709.ebuild,2.59 KB, text/plain)
2005-08-12 16:05 UTC, Alessandro Orru'
Details
mercury-bin-1709.ebuild (FINAL) (mercury-bin-1709.ebuild,2.60 KB, text/plain)
2005-08-18 02:44 UTC, Alessandro Orru'
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Cervesato 2005-01-08 09:09:24 UTC
This is an innovative program :D msn video webcam java based

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jonathan Smith (RETIRED) gentoo-dev 2005-01-08 10:32:38 UTC
they keyword here should be "REQUEST". "EBUILD" is used when a user is submitting an ebuild already ready for portage... just for future reference
Comment 2 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-08 11:25:58 UTC
I am looking into this.
Due to the problems with LAX and NPTL this is going to take some time ( http://www.mercury.to/index.php?page=Wiki&wikipage=Linux_Setup ).
Comment 3 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-14 07:08:20 UTC
Other problems came up with the ebuild. After talking to the mercury devs i managed to get a .zip file that is much easier to install that using the .bin LAX file.
I'm working on this. In a few hours i hope to have a working ebuild.
Comment 4 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-14 08:08:35 UTC
Created attachment 48464 [details]
mercury-bin-1708.ebuild

This is the first attempt. Some things need extra work due to the Gentoo Java
Policy ( http://gentoo-wiki.com/Gentoo_Java_Policy ). For example altough jdom
is polled using the jar from there will not work 100% ok (right now the ebuild
will install the one on mercury package).
Comment 5 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-14 08:09:25 UTC
Created attachment 48465 [details]
mercury.sh

start up script. Place it in files before emerging this.
Comment 6 Andrea Cervesato 2005-01-14 12:06:23 UTC
tryng ... 

ebuild /usr/local/portage/net-im/mercury/mercury-bin-1708.ebuild digest
!!! aux_get(): ebuild path for 'net-im/mercury-bin-1708' not specified:
!!!            None
!!! aux_get(): ebuild path for 'net-im/mercury-bin-1708' not specified:
!!!            None
doebuild(): aux_get() error; aborting.
Comment 7 Andrea Cervesato 2005-01-14 13:08:44 UTC
Solved the pat have to be mercury-bin not mercury
Comment 8 Andrea Cervesato 2005-01-14 13:19:17 UTC
ryng emerging i've another error: 
emerge -pv  mercury-bin

These are the packages that I would merge, in order:

Calculating dependencies  F

!!! Problem in net-im/mercury-bin dependencies.
!!! "Specific key requires an operator  (dev-java/blackdown-jdk-1.4.2) (try adding an '=')" exceptions
Comment 9 Andrea Cervesato 2005-01-14 13:21:42 UTC
Created attachment 48492 [details]
Corrected ebuild

It's my first ebuild correction please be carrefully can be dangerous
Comment 10 Petteri Räty (RETIRED) gentoo-dev 2005-01-15 04:45:01 UTC
betelgeuse@pena ~ $ mercury
/usr/bin/mercury: line 3: cd: /opt/mercury: No such file or directory
Could not find package jmf-bin
Could not find package mercury
Exception in thread "main" java.lang.NoClassDefFoundError: com/dMSN/Main
Comment 11 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-15 04:50:07 UTC
Andrea: You just removed the java deps, that is not good :)
I corrected that and am testing with java 1.5
In a few minutes i'll upload a corrected startup script and ebuild.
Comment 12 Petteri Räty (RETIRED) gentoo-dev 2005-01-15 04:54:04 UTC
Forget the jmf-bin part. It was come because I used ebuild merge, but the other errors are valid. 
Comment 13 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-15 05:02:17 UTC
Created attachment 48538 [details]
mercury-bin-1708.ebuild

New version of the ebuild, corrected java dep. Already tested with 1.5 and
works 0k.
Comment 14 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-15 05:02:45 UTC
Created attachment 48539 [details]
mercury.sh
Comment 15 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-15 05:03:16 UTC
Created attachment 48540 [details]
icon32.gif
Comment 16 Andrea Cervesato 2005-01-15 07:48:53 UTC
mercury 
/usr/bin/mercury: line 12: java: command not found
Comment 17 Andrea Cervesato 2005-01-15 10:16:30 UTC
ok exported the java bin directory and it starts
well but...
if anyone send me an invite:

XYZW invited you to see from his/her webcam. Mercury does not support this.
(Mercury does support video conference if you have the required files)

ok shre but what i've to do to enable this? 
(For mantainer if it's a problem to write all there you can contact me for mail and send me all the information i'll write the how to for gentoo forums.)
Comment 18 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-15 14:15:00 UTC
This software is under eavy development. The message you receive is true, you do not have the required files (no one has except the mercury devs).
Please dont post info about this in the forums, the last thing we need is 100 newbies coming here saying "does not work for me".

This package will probably take some time (weeks) to get into portage, due mainly to the deps. Many of the jar files installed are from other packages, and some of them still do not exist in portage, so they must first be added.
Comment 19 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-15 16:28:46 UTC
Created attachment 48590 [details]
mercury.sh
Comment 20 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-15 16:31:23 UTC
Created attachment 48591 [details]
mercury-bin-1708.ebuild

Ok this version should probably work for most people. This version still
installs the original .jar files. We need to put a version of jdom in portage
that works with this, we need to make an ebuild for http://jdic.dev.java.net/
(at least the tray icon), and a ebuild for xmlpull (the implementation used by
mercury).
Comment 21 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-16 12:33:51 UTC
Created attachment 48678 [details]
mercury-bin-1708.ebuild

Fixed some errors here. Should work ok now.
Comment 22 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-16 12:35:25 UTC
Created attachment 48679 [details]
mercury.sh

This version will spit a non fatal error about jdom and will work with the tray
icon (on x86 will other arches no).
Comment 23 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-19 07:19:27 UTC
Created attachment 48952 [details]
mercury-bin-1708.ebuild

This version already depends and works with jdictrayapi, i'll commit that one
soon and close the bug.
We still need jdom 1.0 Beta 6 as mercury has some problems with beta 9
Comment 24 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-19 07:19:57 UTC
Created attachment 48953 [details]
mercury.sh
Comment 25 Olivier Crete (RETIRED) gentoo-dev 2005-01-19 10:57:05 UTC
*** Bug 78563 has been marked as a duplicate of this bug. ***
Comment 26 Gustavo Felisberto (RETIRED) gentoo-dev 2005-02-04 10:27:52 UTC
I added this to portage now. It will be un-hardmasked as soon as all deps are in portage.
Comment 27 Gustavo Michels 2005-02-19 11:57:18 UTC
Why all the dev java packages dependencies? I got it working only with the JRE and JMF packages, including tray icon in KDE. Why would I need 20 extra useless (for me) packages installed in my system?

From my point of view, this is the same as with Azureus, but the devs finally agreed to remove the dependencies there.
Comment 28 Petteri Räty (RETIRED) gentoo-dev 2005-02-22 01:03:00 UTC
Gustavo Michels: http://gentoo-wiki.com/Gentoo_Java_Policy#Bundled_JARs
Comment 29 Gustavo Felisberto (RETIRED) gentoo-dev 2005-02-22 09:15:51 UTC
Gustavo Michels: Can you provide the bug on azureus that backs up your statment?
Comment 30 Gustavo Michels 2005-02-22 10:15:47 UTC
http://bugs.gentoo.org/show_bug.cgi?id=58389

That's the bug which complainted about the dependencies.

Although no dev said anything about the change, azureus no longer has that big list of dependencies.
Comment 31 Thomas Matthijs (RETIRED) gentoo-dev 2005-02-22 11:23:23 UTC
completely unrelated, since the azureus-bin ebuild violates policy in many ways (there is better one just net-p2p/azurues)
Comment 32 Gustavo Michels 2005-02-22 11:44:13 UTC
I don't think it's completely unrelated. This ebuild also installs a binary version of Mercury, and net-p2p/azureus compiles and installs the source version (not to mention the fact the azureus ebuild is still on an older version).

Anyway, I was just trying to get this ebuild to be more user friendly. Anyone who would like to install mercury and sees that huge list of apparently uneeded dependencies won't continue.

If it's a policy, then I won't argue anymore. The simple solution is --oneshot --nodeps.
Comment 33 Petteri Räty (RETIRED) gentoo-dev 2005-02-22 12:29:53 UTC
You don't seem to understand. The mercury zip has jars which come from different projects than mercury itself. We install these external libraries first and use the jars from them. That way we only have to have one copy of a jar installed. Please read the link I already posted. Because of all this --oneshot --nodeps is not going to work with the final mercury ebuild. The packed jars are deleted in src_unpack.
Comment 34 Andrea Cervesato 2005-02-28 12:00:26 UTC
The version 1709.07 (26/02/05 17:48) it's OUT. Can you update the ebuild plz? Thx for all the work :)
Comment 35 Emanuele Tamponi 2005-02-28 12:04:58 UTC
Created attachment 52317 [details]
Mercury 1709.B7 ebuild

That's my modifies on the mercury-bin-1708.ebuild . It works correctly but I
think it need the apply of some policies.
Comment 36 Alessandro Orru' 2005-05-30 19:37:48 UTC
Created attachment 60230 [details]
Mercury 1709_RC8

Here is the new ebuild for the latest Release Candidate of Mercury 1709. This
ebuild supports two new use flags: one is "flash", that you have to enable in
order to receive and show Winks, while the other one is the "cam" flag, that
you need in order to send webcam streams.
Comment 37 Alessandro Orru' 2005-05-30 19:40:08 UTC
Comment on attachment 60230 [details]
Mercury 1709_RC8

># Copyright 1999-2005 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header:
>
>inherit eutils java-pkg
>
>MY_PVR=${PVR/rc/RC}
>
>DESCRIPTION="MSN and Jabber client in Java"
>HOMEPAGE="http://www.mercury.to/"
>
>##Mercury.to does not provided http or ftp links
>
>LICENSE="mercury"
>SLOT="0"
>KEYWORDS="~x86"
>RESTRICT="fetch nostrip"
>
>IUSE="cam flash"
>
>SRC_URI="${MY_PVR}.zip
>	 cam? ( JavaLibs-linux.jar )
>	 cam? ( VidConf-libs.jar )
>	 cam? ( NativeLibs-linux.zip )"
>
>DEPEND="app-arch/unzip
> >=virtual/jdk-1.4"
>RDEPEND=">=virtual/jre-1.4
>               =dev-java/jgoodies-looks-1.3*
>               dev-java/jmf-bin
>               dev-java/jdictrayapi
>               dev-java/xpp3
>               ~dev-java/jdom-1.0"
>
>S=${WORKDIR}
>
>pkg_nofetch() {
>        einfo "Goto http://www.mercury.to/ and download ${MY_PVR}"
>	einfo "It is a torrent download, so you must use a BitTorrent-like client"
>	einfo "For information about this tecnology, look at Mercury official site"
>        einfo "You must put the downloaded file in ${DISTDIR}"
>	if use cam; then
>		einfo ""
>		einfo "For cam support You also have to download a directory with"
>		einfo "some files inside via this torrent:"
>		einfo "http://www.mercury.to/torrents/VidConf_Files.torrent"
>		einfo "You have to copy the files inside the directory you downloaded in"
>		einfo "${DISTDIR}"
>		einfo "WARNING: you DON'T HAVE TO COPY the directory itself, only the files inside!"
>	fi
>}
>
>
>src_unpack() {
>	unpack ${MY_PVR}.zip
>	cd ${S}
>	rm -f *.dll *.so
>
>	#Clean the dllStuff.jar from things we dont need
>	cd lib
>	mkdir dllStuff
>	cd dllStuff
>	unzip ../dllStuff.jar
>	rm -rf ../dllStuff.jar org/jdesktop x10gimli/platform
>
>	cd ${S}
>	rm lib/XML.jar # jdom
>	rm lib/looks-*.jar #jgoodies-looks
>	if use !flash; then
>	      echo "Removing JFlash.jar"
>	      rm lib/JFlash.jar # seems to be trial from http://www.javaapis.com/jflashplayer/ which says its windows only
>	fi
>	rm lib/xmlpull.jar # xpp3
>}
>
>src_install() {
>	#rebuild the dllStuff.jar
>	cd ${S}/lib/dllStuff
>	jar cf ../dllStuff.jar *
>	cd ${S}
>	rm -rf lib/dllStuff
>
>	#Start installing stuff
>	insinto /opt/${PN}/resources
>	doins -r resources/*
>	java-pkg_dojar lib/*
>
>	insinto /opt/${PN}/lib
>	if use cam; then
>		doins ${DISTDIR}/JavaLibs-linux.jar
>		doins ${DISTDIR}/VidConf-libs.jar
>		
>		insinto $(java-config -o)/lib/i386
>		echo "*** Installing needed java libraries into current JRE home $(java-config -o)"
>		unzip ${DISTDIR}/NativeLibs-linux.zip -d ${D}$(java-config -o)/lib/i386
>	fi
>
>	insinto /usr/share/pixmaps
>	newins  ${FILESDIR}/icon32.gif mercury.gif
>
>	exeinto /opt/bin
>	newexe ${FILESDIR}/mercury.sh mercury
>
>	make_desktop_entry mercury "Mercury MSN client" /usr/share/pixmaps/mercury.gif
>}
Comment 38 Alessandro Orru' 2005-05-30 19:40:55 UTC
Comment on attachment 60230 [details]
Mercury 1709_RC8

># Copyright 1999-2005 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header:
>
>inherit eutils java-pkg
>
>MY_PVR=${PVR/rc/RC}
>
>DESCRIPTION="MSN and Jabber client in Java"
>HOMEPAGE="http://www.mercury.to/"
>
>##Mercury.to does not provided http or ftp links
>
>LICENSE="mercury"
>SLOT="0"
>KEYWORDS="~x86"
>RESTRICT="fetch nostrip"
>
>IUSE="cam flash"
>
>SRC_URI="${MY_PVR}.zip
>	 cam? ( JavaLibs-linux.jar )
>	 cam? ( VidConf-libs.jar )
>	 cam? ( NativeLibs-linux.zip )"
>
>DEPEND="app-arch/unzip
> >=virtual/jdk-1.4"
>RDEPEND=">=virtual/jre-1.4
>               =dev-java/jgoodies-looks-1.3*
>               dev-java/jmf-bin
>               dev-java/jdictrayapi
>               dev-java/xpp3
>               ~dev-java/jdom-1.0"
>
>S=${WORKDIR}
>
>pkg_nofetch() {
>        einfo "Goto http://www.mercury.to/ and download ${MY_PVR}"
>	einfo "It is a torrent download, so you must use a BitTorrent-like client"
>	einfo "For information about this tecnology, look at Mercury official site"
>        einfo "You must put the downloaded file in ${DISTDIR}"
>	if use cam; then
>		einfo ""
>		einfo "For cam support You also have to download a directory with"
>		einfo "some files inside via this torrent:"
>		einfo "http://www.mercury.to/torrents/VidConf_Files.torrent"
>		einfo "You have to copy the files inside the directory you downloaded in"
>		einfo "${DISTDIR}"
>		einfo "WARNING: you DON'T HAVE TO COPY the directory itself, only the files inside!"
>	fi
>}
>
>
>src_unpack() {
>	unpack ${MY_PVR}.zip
>	cd ${S}
>	rm -f *.dll *.so
>
>	#Clean the dllStuff.jar from things we dont need
>	cd lib
>	mkdir dllStuff
>	cd dllStuff
>	unzip ../dllStuff.jar
>	rm -rf ../dllStuff.jar org/jdesktop x10gimli/platform
>
>	cd ${S}
>	rm lib/XML.jar # jdom
>	rm lib/looks-*.jar #jgoodies-looks
>	if use !flash; then
>	      echo "Removing JFlash.jar"
>	      rm lib/JFlash.jar # seems to be trial from http://www.javaapis.com/jflashplayer/ which says its windows only
>	fi
>	rm lib/xmlpull.jar # xpp3
>}
>
>src_install() {
>	#rebuild the dllStuff.jar
>	cd ${S}/lib/dllStuff
>	jar cf ../dllStuff.jar *
>	cd ${S}
>	rm -rf lib/dllStuff
>
>	#Start installing stuff
>	insinto /opt/${PN}/resources
>	doins -r resources/*
>	java-pkg_dojar lib/*
>
>	insinto /opt/${PN}/lib
>	if use cam; then
>		doins ${DISTDIR}/JavaLibs-linux.jar
>		doins ${DISTDIR}/VidConf-libs.jar
>		
>		insinto $(java-config -o)/lib/i386
>		echo "*** Installing needed java libraries into current JRE home $(java-config -o)"
>		unzip ${DISTDIR}/NativeLibs-linux.zip -d ${D}$(java-config -o)/lib/i386
>	fi
>
>	insinto /usr/share/pixmaps
>	newins  ${FILESDIR}/icon32.gif mercury.gif
>
>	exeinto /opt/bin
>	newexe ${FILESDIR}/mercury.sh mercury
>
>	make_desktop_entry mercury "Mercury MSN client" /usr/share/pixmaps/mercury.gif
>}
Comment 39 Alessandro Orru' 2005-05-30 19:43:11 UTC
I'm sorry this is my first ebuild attachment and I have made a little error
submitting my replies :-)
Comment 40 Alessandro Orru' 2005-05-30 19:45:15 UTC
Created attachment 60231 [details]
mercury-bin-1709_rc8.ebuild
Comment 41 Alessandro Orru' 2005-05-30 19:46:58 UTC
Comment on attachment 60231 [details]
mercury-bin-1709_rc8.ebuild

Here is the new ebuild for the latest Release Candidate of Mercury 1709. This
ebuild supports two new use flags: one is "flash", that you have to enable in
order to receive and show Winks, while the other one is the "cam" flag, that
you need in order to send webcam streams.

Sorry again for the little mess above :)
Comment 42 Alessandro Orru' 2005-05-30 19:48:27 UTC
Created attachment 60232 [details]
mercury.sh Startup Script
Comment 43 Gustavo Felisberto (RETIRED) gentoo-dev 2005-05-31 05:11:05 UTC
well i am no java team guru :) But there are some parts of the java instalation
that i dont really like.
insinto $(java-config -o)/lib/i386
echo "*** Installing needed java libraries into current JRE home $(java-config -o)"
unzip ${DISTDIR}/NativeLibs-linux.zip -d ${D}$(java-config -o)/lib/i386

as far as I can tell this is really flawed. What if the person changes jre?
Mercury stops working?
axxo: Can you give this a look, this should probably be with dojar right?
Comment 44 Alessandro Orru' 2005-05-31 08:28:15 UTC
Created attachment 60280 [details]
mercury.sh Startup Script
Comment 45 Alessandro Orru' 2005-05-31 08:33:38 UTC
Created attachment 60281 [details]
mercury-bin-1709_rc8.ebuild

Gustavo, I have corrected the thing about touching jre folder... You are
absolutely right, It was 5 AM when I have finished editing the ebuild so maybe
I wasn't too smart :-)

Now the location for the *.so files is /opt/mercury-bin... it's the only
location where I found there are no problem.. if I put that files in
/opt/mercury-bin/lib then Mercury can't find some of that files, I don't know
why, maybe because it search for them in jre home or in the current folder,
that is /opt/mercury-bin... anyway, this way works..

anyway sorry 4 my bad english ;-)
Comment 46 Petteri Räty (RETIRED) gentoo-dev 2005-05-31 08:47:37 UTC
> 
> Now the location for the *.so files is /opt/mercury-bin... it's the only
> location where I found there are no problem.. if I put that files in
> /opt/mercury-bin/lib then Mercury can't find some of that files, I don't know
> why, maybe because it search for them in jre home or in the current folder,
> that is /opt/mercury-bin... anyway, this way works..
> 

You are supposed to use java-pkg_doso to install shared libraries. You should
also always use java-pkg_dojar when installing jar files. You can use
java-pkg_{jar,so}into to change the location where the files are installed.  
Comment 47 Alessandro Orru' 2005-05-31 09:52:36 UTC
(In reply to comment #46)
> You are supposed to use java-pkg_doso to install shared libraries. You should
> also always use java-pkg_dojar when installing jar files. You can use
> java-pkg_{jar,so}into to change the location where the files are installed.  

I tried to correct this section of src_install:

	insinto /opt/${PN}/lib
	if use cam; then
		doins ${DISTDIR}/JavaLibs-linux.jar
		doins ${DISTDIR}/VidConf-libs.jar
		
		insinto /opt/${PN}
		unzip ${DISTDIR}/NativeLibs-linux.zip -d ${D}/opt/${PN}
		fperms 755 /opt/${PN}/*.so
	fi

in this way:

        if use cam; then
                java-pkg_dojar ${DISTDIR}/JavaLibs-linux.jar
                java-pkg_dojar ${DISTDIR}/VidConf-libs.jar
                unpack NativeLibs-linux.zip
                java-pkg_doso *.so
        fi

It works fine for Jar files, but with the .so files I still have the problem
that Mercury can't find one of them, throwing this exception:
java.lang.UnsatisfiedLinkError: JMFSecurityManager:
java.lang.UnsatisfiedLinkError: /opt/mercury-bin/lib/libjmv4l.so: libjmutil.so:
cannot open shared object file: No such file or directory

Maybe you can help me.. anyway I'm sorry if I'm making so much mistakes, but I
think that the best way to learn something is to try to do it the best way I can :)
Comment 48 Alessandro Orru' 2005-05-31 10:17:00 UTC
I have to correct myself: java-pkg_dojar don't work with JavaLibs-linux.jar and
VidConf-libs.jar.

So:
JavaLibs-linux.jar and VidConf-libs.jar MUST go in /opt/mercury-bin/lib, or they
won't be recognized.

All the *.so files of NativeLibs-linux.zip MUST to in /opt/mercury-bin, or they
will be recognized but using the webcam throws the exception above.

I don't know why, but this is the only way to make everything working...
Comment 49 Thomas Matthijs (RETIRED) gentoo-dev 2005-05-31 10:17:55 UTC
add -Djava.library.path=$(java-config -i mercury) to the wrapper script
Comment 50 Alessandro Orru' 2005-05-31 10:41:13 UTC
(In reply to comment #49)
> add -Djava.library.path=$(java-config -i mercury) to the wrapper script

Already tried that and all the possible combinations of paths :)... just doesn't
work!

In mercury there is a panel where you can see if all the necessary libraries for
webcam sending are installed. Adding -Djava.library.path with the path of *.so
files, makes that panel show that Native Linux Libraries are found, but if you
try to use the webcam you get the exception above.
Comment 51 Gustavo Felisberto (RETIRED) gentoo-dev 2005-05-31 12:27:49 UTC
I talked with upstream developer:

[20:20:16] <Danny (Mercury)> I know of the problem that native libraries need to
be in the mercury root directory
[20:20:58] <Danny (Mercury)> I have not found a way to change this, I have about
30 dll files in my Mercury root and I would be more then happy to kick them to
some remote directory with a pointer or something to it
[20:21:02] <Danny (Mercury)> but I have no idea how 
[20:21:33] <Danny (Mercury)> same goes for the .so files I guess, they need to
be in the mercury root or the jre/lib/i386 directory (I guess)
[20:22:06] <Danny (Mercury)> doing the java.library.path change will only fool
mercury into believing the files are ok, java doesn't allow it I think

axxo: You're de java expert. Any ideas?
Comment 52 Gustavo Felisberto (RETIRED) gentoo-dev 2005-05-31 12:31:37 UTC
The .so files are part of jmf. Probably no need to install them.
Comment 53 Alessandro Orru' 2005-05-31 12:48:47 UTC
(In reply to comment #52)
> The .so files are part of jmf. Probably no need to install them.

emerging jmf-bin does not install those files...
Comment 54 Alessandro Orru' 2005-05-31 12:51:56 UTC
Created attachment 60297 [details]
mercury-bin-1709_rc8.ebuild

Corrected a little bug..
Comment 55 Thomas Matthijs (RETIRED) gentoo-dev 2005-05-31 12:55:27 UTC
have they open sourced it yet?
then i can take a look, otherwise ...
(and i have exams for the next 3weeks, so not alot of time)
Comment 56 Alessandro Orru' 2005-06-01 06:39:13 UTC
Created attachment 60360 [details]
mercury.sh Startup Script

Corrected a bug that prevent Mercury from starting on a clean system.
Comment 57 Alessandro Orru' 2005-07-04 06:52:11 UTC
Created attachment 62599 [details]
mercury-bin-1709_rc12.ebuild
Comment 58 Serkan Kaba (RETIRED) gentoo-dev 2005-07-09 00:25:12 UTC
Mercury Messenger needs linux jmf (includes some binary libs) which is not
included in portage not the cross platform jmf 
Comment 59 Julien Enche 2005-07-18 03:43:35 UTC
Install Mercury with -flash don't work. In this case, when somebody sends you a
wink, the conversation stops and you must disconnect/reconnect to talk again.
Comment 60 Mehmet Giritli 2005-07-27 01:26:34 UTC
although all the *.so files are in the locations as described in comment 48,
mercury still throws the same exception as in comment 47 when trying to use the
webcam. Any ideas?
Comment 61 Serkan Kaba (RETIRED) gentoo-dev 2005-08-11 05:30:12 UTC
(In reply to comment #60)
> although all the *.so files are in the locations as described in comment 48,
> mercury still throws the same exception as in comment 47 when trying to use the
> webcam. Any ideas?
as decribed in the mercury wiki
http://www.mercury.to/index.php?page=Wiki&wikipage=LinuxLibraryLocations
this should be added to the 2nd line of mercury shell script for it to resolve
library locations

 options="-Djava.library.path=/opt/mercury-bin"

Comment 62 Julien Enche 2005-08-11 13:10:41 UTC
Even if the file libjmutil.so is the right, it also needs to be in the main java
libraries folder.
See here for more explanation of this exception :
http://forum.mercury.to/index.php?act=ST&f=40&t=9568&hl=libjmutil&s=5b51c435041dc9187b72c870fec497d6

Anyway, version 1709 is out.
Comment 63 Alessandro Orru' 2005-08-12 16:05:31 UTC
Created attachment 65794 [details]
mercury-bin-1709.ebuild (FINAL)

This is the ebuild for the final version. I cutted some parts that aren't so
useful (and that were buggy), added some info for AMD64 users and corrected the
libjmutil.so with an env.d file.

Maybe could this be added to portage?
Comment 64 Alessandro Orru' 2005-08-18 02:44:05 UTC
Created attachment 66217 [details]
mercury-bin-1709.ebuild (FINAL)

mercury doesn't work with jdictrayapi-0.9.1, so I forced version 0.8.7...
Comment 65 Petteri Räty (RETIRED) gentoo-dev 2005-08-18 11:45:24 UTC
(In reply to comment #64)
> Created an attachment (id=66217) [edit]
> mercury-bin-1709.ebuild (FINAL)
> 
> mercury doesn't work with jdictrayapi-0.9.1, so I forced version 0.8.7...

A better solution is to slot jdictrayapi. After I have done this, I will post here. 

Comment 66 Mehmet Giritli 2005-08-22 03:05:36 UTC
Now there is a weblink to the mercury files. Could we put that into the ebuild
for download? (the link is: http://s16.nextit.nl/mercury/1709_Linux_NoVM.bin)
Comment 67 Mehmet Giritli 2005-08-23 03:15:52 UTC
well, forget the last comment. It seems that web links still does not provide
the zip file or anything equally plausible for an ebuild. Zip file is still
distributed only as a torrent.
Comment 68 Gustavo Felisberto (RETIRED) gentoo-dev 2005-09-14 15:32:47 UTC
Well, altough this is a very nice rich client the upstream project is a mess.

There are ALOT of packages that come with mercury that are not from the author
but no credit is given, so even hosting the .zip files is a problem.

Contact with upstream devs to find what versions where used is almost impossible.
Upstream had talked about open sourcing the project (that would make Gentoo
dev's job much easyer and also complience with Gentoo-Java Policies) but nothing
has happened in almost a year.

So I'm closing this and will be removing mercury-bin from portage very soon.
Thanks to everyone that tryed to make this work but it seems impossible to make
this possible.