No job control on package build

I am trying to build a package (fec) as it neccessary for another package.
Alas, build stops on : %make_jobs macro

[ 28s] + %make_jobs
[ 28s] /var/tmp/rpm-tmp.vGRcOj: line 57: fg: no job control
[ 28s] error: Bad exit status from /var/tmp/rpm-tmp.vGRcOj (%build)

is this something related to the repository I am using ? (RockyLinux9)

thanks!

Are you sure %make_jobs macro exists and is defined in your package?

Thanks!
it’s a branch from another project, I just search the whole package and there is no reference, unless is a macro related to OBS (I really have no clue )
but I will contact the owner of it

I doubt it. Standard build macro is

%make_build

Just use it.

It is defined by openSUSE cmake package:

%make_jobs \
    echo "Deprecated %%make_jobs macro used, please use %%cmake_build" \
    %cmake_build

See also News in openSUSE Packaging - openSUSE News

apparently it is missing in the distribution you are building for. This is standard cross-distribution problem. Check what you are building for and use appropriate macros/command invocations suitable for your distribution.

yea!! that was ! the link you posted is the darn solution!!
MANY THANKS Andei, you rock!

the original %build macro was

%build %cmake %make_jobs

it is working when changing the %make_jobs to %make_build !

for sure, lesson learnt for me : lot’s of outdated code into the OBS
you can imagine I had a brain f*ck with that, it worked local (manual build/install) but not on OBS!
:slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.