Bug 27774

Summary: FrostWire torrent client don't work
Product: Mageia Reporter: Alex Kotov <alex_q_2000>
Component: RPM PackagesAssignee: All Packagers <pkg-bugs>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: lewyssmith, ouaurelien
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: frostwire-5.6.4-7.mga8.src.rpm CVE:
Status comment:

Description Alex Kotov 2020-12-07 12:08:28 CET
Description of problem:
---
Hi. FrostWire torrent clients don't work.

Version-Release number of selected component (if applicable):
---
frostwire-5.6.4-7.mga8.noarch.rpm

How reproducible:
---
> frostwire

/usr/bin/frostwire: line 3: /usr/share/frostwire/frostwire.sh: Permission denied

> chmod +x /usr/share/frostwire/frostwire.sh


> frostwire

HOSTNAME IS localhost
Starting FrostWire...
Java exec found in PATH. Verifying...
OOPS, you don't seem to have a valid JRE. FrostWire works best with Sun JRE available at http://www.java.com [java = openjdk]
You need to upgrade to JRE 1.7.x or newer from http://www.java.com
OOPS, unable to locate java exec in  /usr/lib/  hierarchy
You need to upgrade to JRE 1.7.x or newer from http://www.java.com
ls: cannot access '/usr/java/j*': No such file or directory
OOPS, unable to locate java exec in  /usr/java/  hierarchy
You need to upgrade to JRE 1.7.x or newer from http://www.java.com
ls: cannot access '/opt/j*': No such file or directory
OOPS, unable to locate java exec in  /opt/  hierarchy
You need to upgrade to JRE 1.7.x or newer from http://www.java.com
Comment 1 Alex Kotov 2020-12-07 12:17:49 CET
Hello, Lewis Smith. I tried using various combinations of JDK/JRE from the Oracle site, but I couldn't reproduce the working symbiosis... :)
Comment 2 Lewis Smith 2020-12-07 12:43:20 CET
Thank you for reporting this.
Confirmed with java-11-openjdk-11.0.9.6-0.0.ea.1.mga8

> I couldn't reproduce the working symbiosis...
Unsure what you meant:
- you could not reproduce the failure to run, it worked
or
- it continued to not run.

> You need to upgrade to JRE 1.7.x or newer
Can you please stick with our Mageia 8 Javas:-
 java-1.8.0-openjdk
 java-11-openjdk
Particularly, do you know whether the complaint happens even with our '1.8.0'?
I am wondering whether there is a fault in frostwire's recognition of the Java version, or a packaging problem.

 $ urpmq --requires frostwire | grep java
 java[>= 1.5]
is out-of date, but would not justify the complaint about the Java version.

CC: (none) => lewyssmith

Comment 3 Alex Kotov 2020-12-07 13:21:35 CET
Select "1":
---
> dnf remove java*
...

> urpmi frostwire
In order to satisfy the 'java[>= 1.5]' dependency, one of the following packages is needed:
 1- java-1.8.0-openjdk-1.8.0.272-1.b10.1.mga7.x86_64: OpenJDK Runtime Environment (to install)
 2- java-11-openjdk-11.0.9.6-0.0.ea.1.mga8.x86_64: OpenJDK Runtime Environment 11 (to install)
What is your choice? (1-2) 1
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release (distrib1)")
  frostwire                      5.6.4        7.mga8        noarch  
  java-1.8.0-openjdk             1.8.0.272    1.b10.1.mga7  x86_64  
  java-1.8.0-openjdk-headless    1.8.0.272    1.b10.1.mga7  x86_64  
  java-11-openjdk-headless       11.0.9.6     0.0.ea.1.mga8 x86_64  
  javapackages-filesystem        5.3.0        10.mga8       noarch  
  javapackages-tools             5.3.0        10.mga8       noarch  
287MB of additional disk space will be used.
72MB of packages will be retrieved.
Proceed with the installation of the 6 packages? (Y/n) y


    $MIRRORLIST: media/core/release/javapackages-filesystem-5.3.0-10.mga8.noarch.rpm
    $MIRRORLIST: media/core/release/frostwire-5.6.4-7.mga8.noarch.rpm                                             
    $MIRRORLIST: media/core/release/java-1.8.0-openjdk-1.8.0.272-1.b10.1.mga7.x86_64.rpm                          
    $MIRRORLIST: media/core/release/java-1.8.0-openjdk-headless-1.8.0.272-1.b10.1.mga7.x86_64.rpm                 
    $MIRRORLIST: media/core/release/javapackages-tools-5.3.0-10.mga8.noarch.rpm                                   
    $MIRRORLIST: media/core/release/java-11-openjdk-headless-11.0.9.6-0.0.ea.1.mga8.x86_64.rpm                    
installing javapackages-tools-5.3.0-10.mga8.noarch.rpm frostwire-5.6.4-7.mga8.noarch.rpm java-1.8.0-openjdk-headless-1.8.0.272-1.b10.1.mga7.x86_64.rpm javapackages-filesystem-5.3.0-10.mga8.noarch.rpm java-11-openjdk-headless-11.0.9.6-0.0.ea.1.mga8.x86_64.rpm java-1.8.0-openjdk-1.8.0.272-1.b10.1.mga7.x86_64.rpm from /var/cache/urpmi/rpms
Preparing...                     ################################################################################
      1/6: javapackages-filesystem
                                 ################################################################################
      2/6: java-11-openjdk-headless
                                 ################################################################################
      3/6: javapackages-tools    ################################################################################
      4/6: java-1.8.0-openjdk-headless
                                 ################################################################################
      5/6: java-1.8.0-openjdk    ################################################################################
      6/6: frostwire             ################################################################################

> chmod +x /usr/share/frostwire/frostwire.sh; frostwire
HOSTNAME IS localhost
Starting FrostWire...
Java exec found in PATH. Verifying...
OOPS, you don't seem to have a valid JRE. FrostWire works best with Sun JRE available at http://www.java.com [java = openjdk]
You need to upgrade to JRE 1.7.x or newer from http://www.java.com
OOPS, unable to locate java exec in  /usr/lib/  hierarchy
You need to upgrade to JRE 1.7.x or newer from http://www.java.com
ls: cannot access '/usr/java/j*': No such file or directory
OOPS, unable to locate java exec in  /usr/java/  hierarchy
You need to upgrade to JRE 1.7.x or newer from http://www.java.com
ls: cannot access '/opt/j*': No such file or directory
OOPS, unable to locate java exec in  /opt/  hierarchy
You need to upgrade to JRE 1.7.x or newer from http://www.java.com



Select "2":
---
> dnf remove java*
...

> urpmi frostwire
In order to satisfy the 'java[>= 1.5]' dependency, one of the following packages is needed:
 1- java-1.8.0-openjdk-1.8.0.272-1.b10.1.mga7.x86_64: OpenJDK Runtime Environment (to install)
 2- java-11-openjdk-11.0.9.6-0.0.ea.1.mga8.x86_64: OpenJDK Runtime Environment 11 (to install)
What is your choice? (1-2) 2
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release (distrib1)")
  frostwire                      5.6.4        7.mga8        noarch  
  java-11-openjdk                11.0.9.6     0.0.ea.1.mga8 x86_64  
  java-11-openjdk-headless       11.0.9.6     0.0.ea.1.mga8 x86_64  
  javapackages-filesystem        5.3.0        10.mga8       noarch  
181MB of additional disk space will be used.
43MB of packages will be retrieved.
Proceed with the installation of the 4 packages? (Y/n) y


    $MIRRORLIST: media/core/release/java-11-openjdk-headless-11.0.9.6-0.0.ea.1.mga8.x86_64.rpm
    $MIRRORLIST: media/core/release/frostwire-5.6.4-7.mga8.noarch.rpm                                             
    $MIRRORLIST: media/core/release/java-11-openjdk-11.0.9.6-0.0.ea.1.mga8.x86_64.rpm                             
    $MIRRORLIST: media/core/release/javapackages-filesystem-5.3.0-10.mga8.noarch.rpm                              
installing frostwire-5.6.4-7.mga8.noarch.rpm java-11-openjdk-headless-11.0.9.6-0.0.ea.1.mga8.x86_64.rpm java-11-openjdk-11.0.9.6-0.0.ea.1.mga8.x86_64.rpm javapackages-filesystem-5.3.0-10.mga8.noarch.rpm from /var/cache/urpmi/rpms
Preparing...                     ################################################################################
      1/4: javapackages-filesystem
                                 ################################################################################
      2/4: java-11-openjdk-headless
                                 ################################################################################
      3/4: java-11-openjdk       ################################################################################
      4/4: frostwire             ################################################################################

> chmod +x /usr/share/frostwire/frostwire.sh; frostwire
HOSTNAME IS localhost
Starting FrostWire...
Java exec found in PATH. Verifying...
OOPS, you don't seem to have a valid JRE. FrostWire works best with Sun JRE available at http://www.java.com [java = openjdk]
You need to upgrade to JRE 1.7.x or newer from http://www.java.com
OOPS, unable to locate java exec in  /usr/lib/  hierarchy
You need to upgrade to JRE 1.7.x or newer from http://www.java.com
ls: cannot access '/usr/java/j*': No such file or directory
OOPS, unable to locate java exec in  /usr/java/  hierarchy
You need to upgrade to JRE 1.7.x or newer from http://www.java.com
ls: cannot access '/opt/j*': No such file or directory
OOPS, unable to locate java exec in  /opt/  hierarchy
You need to upgrade to JRE 1.7.x or newer from http://www.java.com
Comment 4 Aurelien Oudelet 2020-12-07 14:08:25 CET
Note that this version is too old. It can't be built in Cauldron neither.

Note upstream changelog:

https://github.com/frostwire/frostwire/blob/master/desktop/changelog

frostwire (6.7.9) stable; urgency=high
  * Debian/Ubuntu is now Java 10+ ready. Min. JRE bumped to openjdk-11-jre
  * Limetorrent search results now have a distinct icon, thanks trollmad3
  * Archive.org https search

 -- FrostWire Team <contact@frostwire.com>  Wed, 10 Apr 2019 17:46:48 -0600

Note also recent version built against openjdk14 that we have in Cauldron backports

frostwire (6.8.5) stable; urgency=high
  * New MagnetDL search provider
  * Fixed Torrentz2 search
  * Search improvements
  * New 'Retry' transfer for failed magnet/torrent downloads with not enough peers
  * Fixes bug getting source URL from TPB search result
  * Fixes broken Library local file search
  * updated: rej2:1.3, gson:2.8.6, okhttp:4.4.1
  * New jlibtorrent 1.2.7.0 update
  * jlibtorrent upgraded to build with boost 1.73.0
  * jlibtorrent upgraded to openssl 1.1.1g
  * OpenJDK 14 runtime (Windows, Linux), macOS still on OpenJDK 13

CC: (none) => ouaurelien

Comment 5 Alex Kotov 2020-12-07 14:41:37 CET
Hello, Aurelien Oudelet.
So the package "frostwire" needs to be updated? But then it will pull the new Java with it - this is dangerous. Maybe something else will fall off. :(
Comment 6 Lewis Smith 2020-12-07 21:31:32 CET
Gosh, thank you both Alex for your exhaustive trials, which indicate that the application itself is faulty: an UPSTREAM isse, really.
And more thanks to Aurélien for his detective work around that.

(In reply to Alex Grant from comment #5)
> So the package "frostwire" needs to be updated? But then it will pull the
> new Java with it - this is dangerous. Maybe something else will fall off. :(
Good point, but there is hope in what A unearthed, comment 4:
> Min. JRE bumped to openjdk-11-jre
which has not been countermanded since, despite what follows below.

So 'java-11-openjdk-11.0.9.6-0.0.ea.1.mga8' should apparently work.

Unless the following is imperative rather than just using the latest (ignoring versions which talk only of Windows|Mac, not Linux):

frostwire (6.7.9) stable; urgency=high
* Debian/Ubuntu is now Java 10+ ready. Min. JRE bumped to openjdk-11-jre

frostwire (6.8.5) stable; urgency=high
* OpenJDK 14 runtime (Windows, Linux), macOS still on OpenJDK 13

(In reply to Aurelien Oudelet from comment #4)
> Note that this version is too old. It can't be built in Cauldron neither.
> Note also recent version built against openjdk14 that we have in Cauldron
> backports
Can we not build it against java 11, and forget the Backport business? It is a strange way to offer an old application.

This SRPM effectively has no maintainer, so this will have to be assigned globally. Await Aurélien's more expert opinion.
Comment 7 Aurelien Oudelet 2020-12-07 21:45:17 CET
Yeah, this must be updated to latest supported version that can built against java-11.
Also, I'm not a Java expert.

Assigning globally to Java Team.

Source RPM: (none) => frostwire-5.6.4-7.mga8.src.rpm
Assignee: bugsquad => java

Comment 8 Lewis Smith 2020-12-09 20:57:25 CET
> Assigning globally to Java Team
Not sure about that. It looks like frostwire is the culprit, not Java. I meant 'to all packagers'. The question seems to be: can the more recent version of frostwire that we have (apparently in Cauldron Backports) be built against Java 11?
If yes, then it can be pulled from Backports into Core.
If not, it may have to confined to Backports, with Java 14 whether you want that or not. This does not look good; a candidate to drop?
For packagers to judge all this.

Assignee: java => pkg-bugs

Comment 9 Aurelien Oudelet 2020-12-09 21:42:08 CET
(In reply to Lewis Smith from comment #8)
> > Assigning globally to Java Team
> Not sure about that. It looks like frostwire is the culprit, not Java. I
> meant 'to all packagers'. The question seems to be: can the more recent
> version of frostwire that we have (apparently in Cauldron Backports) be
> built against Java 11?
> If yes, then it can be pulled from Backports into Core.
> If not, it may have to confined to Backports, with Java 14 whether you want
> that or not. This does not look good; a candidate to drop?
> For packagers to judge all this.

In facts, there is not any frostwire version in Backports for M8.
I just said that there is a java-14 one.


And I agree I misdirected this. Sorry.
Comment 10 Alex Kotov 2021-03-26 20:02:40 CET
Hello, Aurelien. It looks like the "frostwire" package was removed from the Mageia-8+ repository. As they say in Russia: no package - no problem. :)

With respect,
Alex
Comment 11 sturmvogel 2023-01-23 19:33:12 CET
This package was removed from Mageia 23 month ago.

Closing OLD.

Resolution: (none) => OLD
Status: NEW => RESOLVED