[opensuse-packaging] Problem with %cmake macro - "fg: no job control"
![](https://seccdn.libravatar.org/avatar/577860e4672ff9301144f3437d2ee352.jpg?s=120&d=mm&r=g)
Hello, I am trying to package program build using cmake (not kde). (home:michalsrb:branches:X11:XOrg/tigervnc) I try to use the cmake macro as is defined in /etc/rpm/macros.cmake from cmake package. I use it by simply calling it, it doesn't require any arguments: %cmake It works fine locally, but in buildservice I get following error: [ 203s] + '%cmake' [ 203s] /var/tmp/rpm-tmp.fYOMWM: line 31: fg: no job control [ 203s] error: Bad exit status from /var/tmp/rpm-tmp.fYOMWM (%build) That is shell complaining about % character, so the cmake macro looks to be expanded into nothing (?). I have cmake in BuildRequires. Any ideas what I am doing wrong? Michal -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/bea4b222e0bf66663281f936621e4556.jpg?s=120&d=mm&r=g)
Michal Srb <msrb@suse.com> Wed, 13 Nov 2013 18:36:04 +0300:
Hello,
I am trying to package program build using cmake (not kde). (home:michalsrb:branches:X11:XOrg/tigervnc)
I try to use the cmake macro as is defined in /etc/rpm/macros.cmake from cmake package.
I use it by simply calling it, it doesn't require any arguments: %cmake
It works fine locally, but in buildservice I get following error: [ 203s] + '%cmake' [ 203s] /var/tmp/rpm-tmp.fYOMWM: line 31: fg: no job control [ 203s] error: Bad exit status from /var/tmp/rpm-tmp.fYOMWM (%build)
That is shell complaining about % character, so the cmake macro looks to be expanded into nothing (?).
I have cmake in BuildRequires.
Any ideas what I am doing wrong?
Michal
Hello. "fg: no job control" means that there are no such macro. Could you use simple cmake? -- Best regards, Dmitriy DA(P).DarkneSS Perlow @ Linux x64 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/5b19e9d0e834ea10ef75803718ad564b.jpg?s=120&d=mm&r=g)
At Wed, 13 Nov 2013 17:36:04 +0200, Michal Srb wrote:
Hello,
I am trying to package program build using cmake (not kde). (home:michalsrb:branches:X11:XOrg/tigervnc)
I try to use the cmake macro as is defined in /etc/rpm/macros.cmake from cmake package.
I use it by simply calling it, it doesn't require any arguments: %cmake
It works fine locally, but in buildservice I get following error: [ 203s] + '%cmake' [ 203s] /var/tmp/rpm-tmp.fYOMWM: line 31: fg: no job control [ 203s] error: Bad exit status from /var/tmp/rpm-tmp.fYOMWM (%build)
That is shell complaining about % character, so the cmake macro looks to be expanded into nothing (?).
I have cmake in BuildRequires.
Any ideas what I am doing wrong?
The rpm macro is new and it was added since openSUSE 13.1 and later. Takashi -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/833649deea07c68de42500ad14c257f6.jpg?s=120&d=mm&r=g)
Michal Srb <msrb@suse.com> writes:
That is shell complaining about % character, so the cmake macro looks to be expanded into nothing (?).
No, it wasn't expanded at all, which means it wasn't defined.
Any ideas what I am doing wrong?
You need at least 13.1 to get the %cmake macro. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (4)
-
Andreas Schwab
-
Dmitriy Perlow
-
Michal Srb
-
Takashi Iwai