Results 1 to 10 of 10

Thread: fg: no job control

  1. #1
    Join Date
    Jun 2008
    Location
    Düsseldorf/Germany
    Posts
    222

    Default fg: no job control

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

    https://build.opensuse.org/package/s...e/projectlibre

    After adding:
    Code:
    BuildRequires:  desktop-file-utils
    BuildRequires:  update-desktop-files
    
    [...]
    
    %post
    %desktop_database_post
    %icon_theme_cache_post
    The following error occurs:
    Code:
    [   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?

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    23,376
    Blog Entries
    15

    Default Re: fg: no job control

    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.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE Leap 42.2 (x86_64) GNOME 3.20.2
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    23,376
    Blog Entries
    15

    Default Re: fg: no job control

    Hi
    Source to build from is here...
    https://sourceforge.net/p/projectlib...master/tarball
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE Leap 42.2 (x86_64) GNOME 3.20.2
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  4. #4
    Join Date
    Jun 2008
    Location
    Düsseldorf/Germany
    Posts
    222

    Default Re: fg: no job control

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Remove desktop-file-utils only need the update one.
    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 :-)
    I have no experience yet with Java packaging, but a second Java build that is waiting....

  5. #5
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    23,376
    Blog Entries
    15

    Default Re: fg: no job control

    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:Pac...MIME_databases
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE Leap 42.2 (x86_64) GNOME 3.20.2
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  6. #6
    Join Date
    Jun 2008
    Location
    Düsseldorf/Germany
    Posts
    222

    Default Re: fg: no job control

    Quote Originally Posted by malcolmlewis View Post
    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:Pac...MIME_databases
    That helped, thanks!

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

  7. #7
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    23,376
    Blog Entries
    15

    Default Re: fg: no job control

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

    Code:
    BuildRequires:    ant
    
    %build
    cd openproj_build/
    ant clean
    ant
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE Leap 42.2 (x86_64) GNOME 3.20.2
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  8. #8
    Join Date
    Jun 2008
    Location
    Düsseldorf/Germany
    Posts
    222

    Default Re: fg: no job control

    Quote Originally Posted by malcolmlewis View Post
    Hi
    If you download the source tarball and extract, look in the /openproj_build/doc/building.html
    That looks feasible, and in fact I could make it build and install: https://build.opensuse.org/package/s...re_from_source

    Unfortunately the resulting .jar file crashes at start:
    Code:
    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

  9. #9

    Default Re: fg: no job control

    Quote Originally Posted by DocB View Post
    Code:
    Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.Closure
    Try to install the package apache-commons-collections (and maybe add it as requirement).

  10. #10
    Join Date
    Jun 2008
    Location
    Düsseldorf/Germany
    Posts
    222

    Default Re: fg: no job control

    Quote Originally Posted by wolfi323 View Post
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •