Re: %set_build_flags problem in rpm spec file

2020-10-05 Thread Panu Matilainen
On 10/3/20 3:06 PM, Neal Gompa wrote: On Sat, Oct 3, 2020 at 2:45 AM Miro Hrončok wrote: On 03. 10. 20 5:04, Ruki Wang wrote: Hi, every one. I am making rpm spec and doing tests on copr. But on opensuse-leap-15.1-*, %set_build_flags still causes some problems. + %set_build_flags /var/tmp/

Re: %set_build_flags problem in rpm spec file

2020-10-04 Thread Ruki Wang
It works fine, Thanks! Neal Gompa 于2020年10月3日周六 下午10:55写道: > On Sat, Oct 3, 2020 at 10:18 AM Vitaly Zaitsev via devel > wrote: > > > > On 03.10.2020 15:47, Ruki Wang wrote: > > > I try `%?set_build_flags` and it works fine. > > > > No, it will not. This command will just force RPM to ignore err

Re: %set_build_flags problem in rpm spec file

2020-10-03 Thread Ruki Wang
ok, I will try it. Thanks! : ) 在 2020年10月3日星期六,Neal Gompa 写道: > On Sat, Oct 3, 2020 at 10:18 AM Vitaly Zaitsev via devel > wrote: > > > > On 03.10.2020 15:47, Ruki Wang wrote: > > > I try `%?set_build_flags` and it works fine. > > > > No, it will not. This command will just force RPM to ignore

Re: %set_build_flags problem in rpm spec file

2020-10-03 Thread Neal Gompa
On Sat, Oct 3, 2020 at 11:09 AM Vitaly Zaitsev via devel wrote: > > On 03.10.2020 16:54, Neal Gompa wrote: > > Instead of "%set_build_flags" or "%?set_build_flags", do the following: > > Don't forget about the different package names in Fedora and openSUSE. > > Maintainers can use something like t

Re: %set_build_flags problem in rpm spec file

2020-10-03 Thread Vitaly Zaitsev via devel
On 03.10.2020 16:54, Neal Gompa wrote: > Instead of "%set_build_flags" or "%?set_build_flags", do the following: Don't forget about the different package names in Fedora and openSUSE. Maintainers can use something like this to avoid this problem: BuildRequires: cmake(Foo) BuildRequires: pkgconfi

Re: %set_build_flags problem in rpm spec file

2020-10-03 Thread Neal Gompa
On Sat, Oct 3, 2020 at 10:18 AM Vitaly Zaitsev via devel wrote: > > On 03.10.2020 15:47, Ruki Wang wrote: > > I try `%?set_build_flags` and it works fine. > > No, it will not. This command will just force RPM to ignore errors. No > actual build flags will be forwarded. > > You need to create separ

Re: %set_build_flags problem in rpm spec file

2020-10-03 Thread Vitaly Zaitsev via devel
On 03.10.2020 15:47, Ruki Wang wrote: > I try `%?set_build_flags` and it works fine. No, it will not. This command will just force RPM to ignore errors. No actual build flags will be forwarded. You need to create separate SPEC files for Fedora and openSUSE. -- Sincerely, Vitaly Zaitsev (vit..

Re: %set_build_flags problem in rpm spec file

2020-10-03 Thread Ruki Wang
I try `%?set_build_flags` and it works fine. Thanks! Miro Hrončok 于2020年10月3日周六 下午2:45写道: > On 03. 10. 20 5:04, Ruki Wang wrote: > > Hi, every one. > > > > I am making rpm spec and doing tests on copr. > > > > But on opensuse-leap-15.1-*, %set_build_flags still causes some problems. > > > > > >

Re: %set_build_flags problem in rpm spec file

2020-10-03 Thread Ruki Wang
Got it, thanks! Neal Gompa 于2020年10月3日周六 下午8:07写道: > On Sat, Oct 3, 2020 at 2:45 AM Miro Hrončok wrote: > > > > On 03. 10. 20 5:04, Ruki Wang wrote: > > > Hi, every one. > > > > > > I am making rpm spec and doing tests on copr. > > > > > > But on opensuse-leap-15.1-*, %set_build_flags still cau

Re: %set_build_flags problem in rpm spec file

2020-10-03 Thread Neal Gompa
On Sat, Oct 3, 2020 at 2:45 AM Miro Hrončok wrote: > > On 03. 10. 20 5:04, Ruki Wang wrote: > > Hi, every one. > > > > I am making rpm spec and doing tests on copr. > > > > But on opensuse-leap-15.1-*, %set_build_flags still causes some problems. > > > > > > + %set_build_flags > > /var/tmp/rpm-tmp

Re: %set_build_flags problem in rpm spec file

2020-10-02 Thread Miro Hrončok
On 03. 10. 20 5:04, Ruki Wang wrote: Hi, every one. I am making rpm spec and doing tests on copr. But on opensuse-leap-15.1-*, %set_build_flags still causes some problems. + %set_build_flags /var/tmp/rpm-tmp.9RYL8i: line 32: fg: no job control error: Bad exit status from /var/tmp/rpm-tmp.9RYL

Re: %set_build_flags problem in rpm spec file

2020-10-02 Thread Brady Pote
On October 2, 2020, at 11:04 PM, Ruki Wang wrote: Hi, every one. I am making rpm spec and doing tests on copr. But on opensuse-leap-15.1-*, %set_build_flags still causes some problems. + %set_build_flags /var/tmp/rpm-tmp.9RYL8i: line 32: fg: no job control error: Bad exit status from /va

%set_build_flags problem in rpm spec file

2020-10-02 Thread Ruki Wang
Hi, every one. I am making rpm spec and doing tests on copr. But on opensuse-leap-15.1-*, %set_build_flags still causes some problems. + %set_build_flags /var/tmp/rpm-tmp.9RYL8i: line 32: fg: no job control error: Bad exit status from /var/tmp/rpm-tmp.9RYL8i (%build) Bad exit status from /v