fg: no job control

Hi,
I’m trying to fix the mime-registration of one package:

https://build.opensuse.org/package/show/home:DocB:branches:Office/projectlibre

After adding:


BuildRequires:  desktop-file-utils
BuildRequires:  update-desktop-files

...]

%post
%desktop_database_post
%icon_theme_cache_post

The following error occurs:

   28s] ... running 02-check-gcc-output
   28s] ... testing for serious compiler warnings
   28s]     (using /usr/lib/build/checks-data/check_gcc_output)
   28s]     (using //.build.log)
   28s] ... running 03-check-binary-kernel-log
   28s] ... running 04-check-filelist
   28s] ... checking filelist
   28s] ... running 05-check-invalid-requires
   28s] ... running 06-check-installtest
   28s] ... testing for pre/postinstall scripts that are not idempotent
   28s] /.build_patchrpmcheck_scr: line 8: fg: no job control

Mostly the ‘no job control’ error occured when a Build Requirement was not set - but the ones mentioned should be OK for updating of desktop files.
Anyone an idea what the reason could be?

Hi
Remove desktop-file-utils only need the update one.

If you rem something out and it has a % it needs a second % to ignore as a macro… eg;

#%%install …

You shouldn’t just copy jar files, they need to be built from source since it’s considered a binary.

Hi
Source to build from is here…
https://sourceforge.net/p/projectlibre/code/ci/master/tarball

Unfortunately, this does not fix it. The same combination of BuildRequires and %desktop_database_post works fins in a different package

You shouldn’t just copy jar files, they need to be built from source since it’s considered a binary.

Thanks for the hint, but let me take one step after the other :slight_smile:
I have no experience yet with Java packaging, but a second Java build that is waiting…

Hi
Was the missing -i to install the desktop file… cleaned it up and submitted an SR;
https://build.opensuse.org/request/show/493049

The mime stuff is meant to be an xml file, not a desktop file…
https://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets#MIME_databases

That helped, thanks!

Next step would be to build the java from source - do you maybe know an example to look into?

Hi
If you download the source tarball and extract, look in the /openproj_build/doc/building.html :wink:


BuildRequires:    ant

%build
cd openproj_build/
ant clean
ant

That looks feasible, and in fact I could make it build and install: Welcome - openSUSE Build Service

Unfortunately the resulting .jar file crashes at start:

Starting projectlibre version 1.7.0 ...
with options :
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/Closure
        at com.projity.pm.graphic.gantt.Main.main(Unknown Source)
        at com.projity.main.Main.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.Closure
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 2 more

Try to install the package apache-commons-collections (and maybe add it as requirement).

No, my mistake - packaging error.
Fixed now, and build from source. Will submit to Office.
Thanks for your help guys!

That looks feasible, and in fact I could make

เบอร์คนโปรด](http://www.scnumber.com/)