[CMake] Custom RPM build failing for want of RPMBUILD_FLAGS

Stewart, Robert Robert.Stewart at sig.com
Thu Mar 28 15:11:02 EDT 2019


From: Eric Noulard [mailto:eric.noulard at gmail.com]
Sent: Thursday, March 28, 2019 7:48 AM


Le ven. 22 mars 2019 à 18:30, Stewart, Robert <Robert.Stewart at sig.com<mailto:Robert.Stewart at sig.com>> a écrit :
Have a look at the code I quoted from CPackRPM.cmake:

if(CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE OR NOT CPACK_RPM_USER_BINARY_SPECFILE)
      set(RPMBUILD_FLAGS "-bb")
If CPACK_RPM_USER_BINARY_SPECFILE is defined, then RPMBUILD_FLAGS is not set to -bb.

Sorry I missed your last answer.
My link to up-to-date code:
https://gitlab.kitware.com/cmake/cmake/blob/master/Modules/Internal/CPack/CPackRPM.cmake#L1658

shows that "-bb" is always set.

This was fixed some time ago: https://gitlab.kitware.com/cmake/cmake/commit/574c81e28cef6737adc1619ce3b44b43bdcf308b
CMake 3.8.0 and after should include this fix.

I see that in my copy of 3.11 and not in 3.7.2, which is what I was using.

Thanks!

________________________________

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190328/37414e90/attachment.html>


More information about the CMake mailing list