Bug 1421366 (MSearch)

Summary: Review Request: MLib - Mandatory library for MediathekView
Product: [Fedora] Fedora Reporter: MartinKG <mgansser>
Component: Package ReviewAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: mgansser, package-review, zebob.m
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: https://github.com/mediathekview/MLib
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-10 10:14:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1438673    
Bug Blocks: 1426243    

Description MartinKG 2017-02-11 15:58:31 UTC
Spec URL: https://martinkg.fedorapeople.org/Review/SPECS/MSearch.spec
SRPM URL: https://martinkg.fedorapeople.org/Review/SRPMS/MSearch-2.1.1-2.fc25.src.rpm
Description: Mandatory library for MediathekView
Fedora Account System Username: martinkg

MSearch depends on openjfx https://bugzilla.redhat.com/show_bug.cgi?id=1145303
For MSearch to be built, the shared object and jar files must be symlinked into somehwere where the JDK/JRE can find it.

#!/bin/bash

openjfx_dir=/usr/lib/jvm/openjfx

jdk_files=$(find $openjfx_dir/{bin,lib} -type f -print)
for file in $jdk_files; do
  relative=${file#$openjfx_dir/}
  ln -sfv "$openjfx_dir/$relative" "/usr/lib/jvm/java/$relative"
done

jre_files=$(find $openjfx_dir/rt -type f -print)
for file in $jre_files; do
  relative=${file#$openjfx_dir/rt/}
  ln -sfv "$openjfx_dir/rt/$relative" "/usr/lib/jvm/jre/$relative"
done


%changelog
* Fri Feb 10 2017 Martin Gansser <martinkg> - 2.1.1-2
- delete *.jar files
- enable javadoc
- fix groupId
- fix non ASCII chars
- add subpkg javadoc
- add %%license macro to javadoc subpkg

* Thu Feb 09 2017 Martin Gansser <martinkg> - 2.1.1-1
- Initial build

Comment 1 MartinKG 2017-03-27 11:10:53 UTC
MSearch was renamed to MLib https://github.com/mediathekview/MLib
and is availabe in version 3.0.0. MLib requires now okhttp3, but
it's only version okhttp-2.7.4 available for Fedora.

Comment 2 Jonny Heggheim 2017-06-05 17:35:49 UTC
Rawhide should now have all the dependencies for this package

Comment 4 Robert-André Mauchin 🐧 2018-09-16 22:36:59 UTC
You still need this to be reviewed?

Comment 5 MartinKG 2018-09-20 08:50:59 UTC
I am interesting in a review but I think it's pretty hard to get it compiling.

the recent version 2.5.0 fails at the moment with this messages:

+ /usr/bin/python3 /usr/share/java-utils/mvn_build.py --gradle -- build javadocs
Executing: gradle-local --no-daemon --offline build javadocs build xmvnInstall
['gradle-local', '--no-daemon', '--offline', 'build', 'javadocs', 'build', 'xmvnInstall']

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve org.apache.logging.log4j:log4j-core:2.8.1.
  Required by:
      project :
   > XMvn was unable to resolve artifact org.apache.logging.log4j:log4j-core:pom:2.8.1
   > No cached version of org.apache.logging.log4j:log4j-core:2.8.1 available for offline mode.
   > No cached version of org.apache.logging.log4j:log4j-core:2.8.1 available for offline mode.
> Could not resolve org.apache.commons:commons-dbcp2:2.3.0.
  Required by:
      project :
   > XMvn was unable to resolve artifact org.apache.commons:commons-dbcp2:pom:2.3.0
   > No cached version of org.apache.commons:commons-dbcp2:2.3.0 available for offline mode.
   > No cached version of org.apache.commons:commons-dbcp2:2.3.0 available for offline mode.
> Could not resolve org.apache.commons:commons-configuration2:2.2.
  Required by:
      project :
   > XMvn was unable to resolve artifact org.apache.commons:commons-configuration2:pom:2.2
   > No cached version of org.apache.commons:commons-configuration2:2.2 available for offline mode.
   > No cached version of org.apache.commons:commons-configuration2:2.2 available for offline mode.
> Could not resolve org.jetbrains:annotations:15.0.
  Required by:
      project :
   > XMvn was unable to resolve artifact org.jetbrains:annotations:pom:15.0
   > No cached version of org.jetbrains:annotations:15.0 available for offline mode.
   > No cached version of org.jetbrains:annotations:15.0 available for offline mode.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 16s
1 actionable task: 1 executed