Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deb file not generated #1737

Closed
t0msk opened this issue Jan 6, 2019 · 25 comments
Closed

Deb file not generated #1737

t0msk opened this issue Jan 6, 2019 · 25 comments
Labels
duplicate packaging Packaging related issues question

Comments

@t0msk
Copy link

t0msk commented Jan 6, 2019

Hello, I just downloaded newest master from github and built it (build was success, no errors) using mvn clean package and deb file wasn't generated under phoenicis-dist/target.

@qparis
Copy link
Member

qparis commented Jan 6, 2019

Hello, You need to run phoencis_create_package script

@qparis qparis added question packaging Packaging related issues labels Jan 6, 2019
@t0msk
Copy link
Author

t0msk commented Jan 6, 2019

Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: /opt/Build/Phoenicis/phoenicis-dist/target/jpackager/jdk.packager.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Unsupported major.minor version 55.0
rmdir: failed to remove 'packages/PhoenicisPlayOnLinux/': No such file or directory
mv: cannot stat 'packages/Phoenicis PlayOnLinux/': No such file or directory
cp: cannot stat 'packages/phoenicis': No such file or directory
dpkg-deb: building package 'phoenicis-playonlinux' in 'Phoenicis_5.0-SNAPSHOT.deb'.

@qparis
Copy link
Member

qparis commented Jan 6, 2019

You need JDK 11+ to package phoenicis

@qparis
Copy link
Member

qparis commented Jan 6, 2019

See #1719

@qparis qparis closed this as completed Jan 6, 2019
@t0msk
Copy link
Author

t0msk commented Jan 6, 2019

I have:

tomsk@tomsk-Ntb:/opt/Build/Phoenicis/phoenicis-dist/src/scripts$ sudo apt install openjdk-11-jre-headless 
[sudo] password for tomsk: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
openjdk-11-jre-headless is already the newest version (10.0.2+13-1ubuntu0.18.04.4).
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

@qparis
Copy link
Member

qparis commented Jan 6, 2019

This does not seem to be a java 11 version

@t0msk
Copy link
Author

t0msk commented Jan 6, 2019

There is nothing newer:

tomsk@tomsk-Ntb:/opt/Build/Phoenicis/phoenicis-dist/src/scripts$ sudo apt install openjdk-
openjdk-11-dbg           openjdk-11-jdk-headless  openjdk-11-source        openjdk-8-jdk            openjdk-8-jre-headless
openjdk-11-demo          openjdk-11-jre           openjdk-8-dbg            openjdk-8-jdk-headless   openjdk-8-jre-zero
openjdk-11-doc           openjdk-11-jre-headless  openjdk-8-demo           openjdk-8-jre            openjdk-8-source
openjdk-11-jdk           openjdk-11-jre-zero      openjdk-8-doc            openjdk-8-jre-dcevm      

@qparis
Copy link
Member

qparis commented Jan 6, 2019

Type java -version

@t0msk
Copy link
Author

t0msk commented Jan 6, 2019

tomsk@tomsk-Ntb:/opt/Build/Phoenicis/phoenicis-dist/src/scripts$ java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

@qparis
Copy link
Member

qparis commented Jan 6, 2019

This is a Java 10 version ^^

@t0msk
Copy link
Author

t0msk commented Jan 6, 2019

But it is named in repo as version 11, and in my other notebook I had this version installed too and it worked.

@qparis
Copy link
Member

qparis commented Jan 6, 2019

In fact it is a java 10 binary (read the other ticket to get more info). It is sufficient enough to run Phoenicis, but not to build the standalone package

@t0msk
Copy link
Author

t0msk commented Jan 6, 2019

So what should I do (because it is not in repo)? Because in the past I was able to build Phoenicis with this package openjdk-11-jdk-headless

@qparis
Copy link
Member

qparis commented Jan 6, 2019

Do you want to create the package or do you just need to run it?

@t0msk
Copy link
Author

t0msk commented Jan 6, 2019

I just want to run phoenicis-create-package.sh, in the past I just run:

git pull
mvn clean package
rm -rf ~/.Phoenicis/cache/

with openjdk-11-jdk-headless and it worked and I had no issues.

@qparis
Copy link
Member

qparis commented Jan 6, 2019

Yes, but it caused other issues so we changed the packaging system

@qparis
Copy link
Member

qparis commented Jan 6, 2019

You can easily grab a prebuilt binary of OpenJDK 11

@t0msk
Copy link
Author

t0msk commented Jan 6, 2019

I really would like to install it from repo. I will try to find ppa for it.

@qparis
Copy link
Member

qparis commented Jan 6, 2019

Once it is built, you do no longer need it

@t0msk
Copy link
Author

t0msk commented Jan 6, 2019

I will need it, because I build it after every change in master, I want bleeding edge, and I should have java 11 because:

root@tomsk-Ntb:/opt/Build/Phoenicis/phoenicis-dist/src/scripts# cd /usr/lib/jvm/
default-java/                     .java-1.11.0-openjdk-amd64.jinfo  
java-1.11.0-openjdk-amd64/        java-11-openjdk-amd64/ 

@qparis
Copy link
Member

qparis commented Jan 6, 2019

As explained in the other post, the Java 11 package in Ubuntu does not provide Java 11 but Java 10

@t0msk
Copy link
Author

t0msk commented Jan 6, 2019

It really sucks :(

Isn't possible to force packaging system to use my Java version?

@t0msk
Copy link
Author

t0msk commented Jan 6, 2019

@qparis Here is that problem https://askubuntu.com/questions/1037646/why-is-openjdk-10-packaged-as-openjdk-11 so it looks like that I have to wait till Java 11 will be released for Ubuntu 18.04 LTS.

@qparis
Copy link
Member

qparis commented Jan 6, 2019

Maybe we could set-up an script that builds phoenicis-master everyday on our side.
Can you make a ticket for this?

@t0msk
Copy link
Author

t0msk commented Jan 6, 2019

Done :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate packaging Packaging related issues question
Projects
None yet
Development

No branches or pull requests

2 participants