kabi-dw-0-0.5.20180130git545535a.fc28 does not use the Fedora build flags as defined in redhat-rpm-config. More information about RPM macros to set CFLAGS and LDFLAGS is available here: https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/buildflags.md
Patch sent upstream. https://github.com/skozina/kabi-dw/pull/5
Upstream accepted the changes.
Hi Florian, > https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/ > buildflags.md From the document, I understand I should use %set_build_flags to set CFLAGS and LDFLAGS. However, it won't build on my environment. It shows the following error $ rpmbuild -ba kabi-dw.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.gXVRyD + umask 022 + cd /home/zsun/rpmbuild/BUILD + cd /home/zsun/rpmbuild/BUILD + rm -rf kabi-dw-05c38df0dfc2e0e3eeb605a34234a1bf77c7ea7b + /usr/bin/gzip -dc /home/zsun/rpmbuild/SOURCES/kabi-dw-05c38df.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd kabi-dw-05c38df0dfc2e0e3eeb605a34234a1bf77c7ea7b + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.aOdvlA + umask 022 + cd /home/zsun/rpmbuild/BUILD + cd kabi-dw-05c38df0dfc2e0e3eeb605a34234a1bf77c7ea7b + %set_build_flags /var/tmp/rpm-tmp.aOdvlA: line 31: fg: no job control error: Bad exit status from /var/tmp/rpm-tmp.aOdvlA (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.aOdvlA (%build) My spec file is https://zsun.fedorapeople.org/pub/bugs/1543803/kabi-dw.spec And the log mentioned in the error message is https://zsun.fedorapeople.org/pub/bugs/1543803/rpm-tmp.aOdvlA $ rpm -q rpm-build rpm-build-4.14.1-1.fc27.x86_64 $ rpm -q redhat-rpm-config redhat-rpm-config-70-1.fc27.noarch So can you point me how can I solve this?
You need a newer rawhide compose, or build in Koji. (It's been a while since the last successful rawhide compose.)
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle. Changing version to '28'.
Now blocking by some building issue. https://github.com/skozina/kabi-dw/issues/6
The build issue should be fixed now by https://github.com/skozina/kabi-dw/pull/7
Can we just close this bug then?
(In reply to Stanislav Kozina from comment #8) > Can we just close this bug then? Hi Stanislav, Not actually. Can you review the PR in comment 7? After the PR in comment 1 merged, I found some more problem, so I send the PR in comment 7 to fix it. This will be fully fixed by the new PR. Once you merged it I will build and close this bug. Thanks!
Ah, thanks for reminder. The changes in PR7 look good, I've merged them. Thanks!
kabi-dw-0-0.6.20180308gitb8863d0.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-69920a3bbe
kabi-dw-0-0.6.20180308gitb8863d0.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-69920a3bbe
kabi-dw-0-0.7.20180308gitb8863d0.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-69920a3bbe
kabi-dw-0-0.7.20180308gitb8863d0.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-69920a3bbe
kabi-dw-0-0.7.20180308gitb8863d0.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.