Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86426 - [BUMP] media-video/projectx needs version bump: 0.81.7 -> 0.82.0.00
Summary: [BUMP] media-video/projectx needs version bump: 0.81.7 -> 0.82.0.00
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Java team
URL: http://sourceforge.net/projects/proje...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-23 13:27 UTC by Stefan Briesenick (RETIRED)
Modified: 2005-03-26 09:03 UTC (History)
0 users

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


Attachments
projectx-0.82.0.00.ebuild (projectx-0.82.0.00.ebuild,967 bytes, text/plain)
2005-03-23 13:28 UTC, Stefan Briesenick (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Briesenick (RETIRED) gentoo-dev 2005-03-23 13:27:06 UTC
new version available, homepage and code generation changed.
I attach a new working ebuild.


Reproducible: Always
Steps to Reproduce:
Comment 1 Stefan Briesenick (RETIRED) gentoo-dev 2005-03-23 13:28:03 UTC
Created attachment 54277 [details]
projectx-0.82.0.00.ebuild
Comment 2 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-24 18:44:19 UTC
fixed in cvs, i've rewritten the ebuild and i've also added a build.xml file for ant. i've send it upstream. i've also introduced support for the source and doc useflag, and added jikes support. thanks for your report. if you'Re interested in creating java ebuilds, this is our policy:

http://gentoo-wiki.com/Gentoo_Java_Policy

:)
Comment 3 Stefan Briesenick (RETIRED) gentoo-dev 2005-03-25 04:26:20 UTC
I'll check it. And I hope you did it right. ;-)
Comment 4 Stefan Briesenick (RETIRED) gentoo-dev 2005-03-25 04:27:42 UTC
No, your ebuild is BROKEN!
Comment 5 Stefan Briesenick (RETIRED) gentoo-dev 2005-03-25 04:29:29 UTC
'htmls' have to be packed into the JAR as a resource. Just check my ebuild!

cp resources/* build/ && cp -a htmls build/
javac -O -classpath lib/commons-net-1.2.2.jar -d build @sources.lst || die "compile failed"
jar cfvm "${PN}.jar" MANIFEST.MF -C build . || die "linking failed"

Don't install 'htmls' into DOCDIR!!! It don't work. projectx don't find it, when you select 'help'.
Comment 6 Stefan Briesenick (RETIRED) gentoo-dev 2005-03-25 05:14:31 UTC
explanation: if you check the source (.../gui/Html.java), you see that the programm looks into "workdir + htmls [+ <language>]" *or* in "htmls [+ <language>]" inside the JAR as a ressource.

So either you patch the source or you just put 'htmls' into the JAR inside the root. Putting it into the JAR is the most clean option.
Comment 7 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-25 08:07:38 UTC
slightly modified build.xml file, fixed in cvs. thanks.
Comment 8 Stefan Briesenick (RETIRED) gentoo-dev 2005-03-25 17:59:49 UTC
now it looks good.

But one last question:

[/usr/bin/projectx]
#!/bin/sh
$(java-config -J) -cp $(java-config -p projectx,oro) net.sourceforge.dvb.projectx.common.X

shoudn't it be "exec $(java-config -J) ...", so that the shell-script wrapper is terminated?
Comment 9 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-25 18:04:44 UTC
hmm, that doesn't work. try it :)
Comment 10 Stefan Briesenick (RETIRED) gentoo-dev 2005-03-25 18:14:54 UTC
I tried and it worked! ;-)
and there's no reason, why this shouldn't work.

'exec' replaces the running shell with the executed command, so the wrapper terminates and the java-process is running. w/o the 'exec' the wrapper runs till the java-process ends. That's odd.
Comment 11 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-25 18:25:54 UTC
in my case it closed my xterm's :)
Comment 12 Stefan Briesenick (RETIRED) gentoo-dev 2005-03-25 19:40:24 UTC
then you did something wrong. trust me. 'exec' is fine and it just works. perhaps your xterm is broken. ;)

of course, you have to put 'exec' into the wrapper-script. Never execute 'exec' within the shell. THEN, and ONLY then, you kick your terminal.
Comment 13 Stefan Briesenick (RETIRED) gentoo-dev 2005-03-25 19:42:32 UTC
oh well, just have a look at 'aoss':

[/usr/bin/aoss]
prefix=/usr
exec_prefix=${prefix}
LD_PRELOAD=${exec_prefix}/lib/libaoss.so exec "$@"

try it! does it close your xterm also?
Comment 14 Stefan Briesenick (RETIRED) gentoo-dev 2005-03-26 05:33:55 UTC
Sorry, I have to reopen that Bug again. :-/
There's another Bug in your modified ebuild!

[/usr/bin/projectx]
#!/bin/sh
$(java-config -J) -cp $(java-config -p projectx,oro) net.sourceforge.dvb.projectx.common.X

You can't pass command-line args to ProjectX

there's the "$@" missing. Also I want the 'exec' since it works everywhere and the last version of ProjectX had this also! You should check your installation, if xterm exists. Here it works!

So this is how the *correct* wrapper-script should look:

----8<----------8<----------8<----------8<----------8<------
#!/bin/sh
exec $(java-config -J) -cp $(java-config -p projectx,oro) net.sourceforge.dvb.projectx.common.X "$@"
----8<----------8<----------8<----------8<----------8<------
Comment 15 Stefan Briesenick (RETIRED) gentoo-dev 2005-03-26 05:40:22 UTC
ehh, well... wait. You made it completely different to my version.

I had something like:

java -jar /usr/share/projectx/lib/projectx.jar "$@"

I don't know if "$@" works with your version. But nonetheless, your wrapper-script is broken, since you can not pass options to the application. And you have to!

look:

use last config or standard ...
ProjectX 0.82.0/15.01.2005 REINES TESTPROJEKT , Benutzer: stefan

kurze CL (Kommandozeilen) Hilfe: (Hinweis: CL l
Comment 16 Stefan Briesenick (RETIRED) gentoo-dev 2005-03-26 05:40:22 UTC
ehh, well... wait. You made it completely different to my version.

I had something like:

java -jar /usr/share/projectx/lib/projectx.jar "$@"

I don't know if "$@" works with your version. But nonetheless, your wrapper-script is broken, since you can not pass options to the application. And you have to!

look:

use last config or standard ...
ProjectX 0.82.0/15.01.2005 REINES TESTPROJEKT , Benutzer: stefan

kurze CL (Kommandozeilen) Hilfe: (Hinweis: CL lädt auch die graphische Oberfläche ohne sie anzuzeigen)
ohne Optionen  ...startet die graphische Oberfläche
[Optionen] <Eingabedatei 1>...[<Eingabedatei x>]

Optionen: -dvx1..4, -c <x>, -o <x>, -n <x>, -l, -p <x>, -i <x>, -g
-c [Pfad]INI-Datei  ...verwende eine andere Konfigurationsdatei als die Standard X.ini
-dvx1  ...erstelle eine .d2v Projektdatei beim demuxen
-dvx2  ...erstelle eine .d2v Projektdatei + .ac3.wav (RIFF WAVE Header)
-dvx3  ...erstelle eine .d2v Projektdatei + .mpa.wav (RIFF WAVE Header)
-dvx4  ...erstelle eine .d2v Projektdatei + .ac3.wav + mpa.wav (RIFF WAVE Header)
-o <Pfad>  ...benutze den Pfad als Ausgabepfad
-n <Dateiname>  ...benutze den Dateiname als Ausgabedatei
-p <Datei>  ...nutze diese Datei als Schnittliste
-i <tokens>  ...benutze nur diese (P)IDs, getrennt durch Komma ","
-g  ...zeige die graphische Oberfläche mit den angegebenen CLI Optionen
-l  ...schreibe eine normale Logdatei
benutze -dvx ODER -c & -o/-n/-l/-p/-i/-g oder keine Optionen (für Standard)
Comment 17 Stefan Briesenick (RETIRED) gentoo-dev 2005-03-26 05:45:12 UTC
ok, I checked it.
you can do this:

#!/bin/sh
exec $(java-config -J) -jar /usr/share/projectx/lib/projectx.jar "$@"


and it works perfectly!
Comment 18 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-26 08:58:33 UTC
fixed in cvs
Comment 19 Stefan Briesenick (RETIRED) gentoo-dev 2005-03-26 09:03:48 UTC
thanks.