fg: no job control

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


After adding:

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



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?

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.

Source to build from is here…

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…

Was the missing -i to install the desktop file… cleaned it up and submitted an SR;

The mime stuff is meant to be an xml file, not a desktop file…

That helped, thanks!

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

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

BuildRequires:    ant

cd openproj_build/
ant clean

That looks feasible, and in fact I could make it build and install: https://build.opensuse.org/package/show/home:DocB:branches:home:DocB:branches:Office/projectlibre_from_source

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