<div dir="ltr">2016-01-28 11:33 GMT+01:00 Attila Krasznahorkay <span dir="ltr"><<a href="mailto:attila.krasznahorkay@gmail.com" target="_blank">attila.krasznahorkay@gmail.com</a>></span>:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear All,<br>
<br>
This should be a simple question, but somehow I don't seem to find an answer to it with Google.<br>
<br>
Our projects have a lot of python files in them. Many of which are not simple python files. They are files that need our software to interpret them. So CPack should just leave them alone.<br>
<br>
But CPack is trying to do something "smart". Which I'd like to turn off. Since in all of our rpmbuild.err files I see lines like:<br>
<br>
+ /usr/lib/rpm/check-buildroot<br>
+ /usr/lib/rpm/redhat/brp-compress<br>
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip<br>
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip<br>
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump<br>
+ /usr/lib/rpm/brp-python-bytecompile<br>
+ /usr/lib/rpm/redhat/brp-python-hardlink<br>
+ /usr/lib/rpm/redhat/brp-java-repack-jars<br>
warning: Installed (but unpackaged) file(s) found:<br>
...<br>
   /usr/AtlasCore/21.0.0/InstallArea/x86_64-slc6-gcc49-opt/jobOptions/AthAnalysisBaseComps/SuppressLogging.pyc<br>
   /usr/AtlasCore/21.0.0/InstallArea/x86_64-slc6-gcc49-opt/jobOptions/AthAnalysisBaseComps/SuppressLogging.pyo<br>
...<br>
<br>
(And in some projects the RPM building actually fails, seemingly because of problems with compiling some of these files.)<br>
<br>
I guess it's the "brp-python-bytecompile" command that's responsible for doing this. Is there an easy way that I can tell CPackRPM to forget about this step? I would really like to avoid writing a custom spec file if I can...<br></blockquote><div><br></div><div>This kind of "automatic" scripts calls are due to your system specific RPM setup.<br></div><div>Have a look at:<br><br></div><div><a href="https://lists.fedoraproject.org/pipermail/devel/2010-April/135366.html">https://lists.fedoraproject.org/pipermail/devel/2010-April/135366.html</a><br><a href="https://www.redhat.com/archives/rpm-list/2007-November/msg00020.html">https://www.redhat.com/archives/rpm-list/2007-November/msg00020.html</a><br><br></div><div>you can try:<br>$ rpm --showrc<br><br></div><div>in order to see default RPM macros values on your particular system, <br></div><div>in particular seek for "__os_install_post".<br></div></div><br clear="all"></div><div class="gmail_extra">Not sure how we can disable such script call from CPackRPM unless adding the extra feature to call<br></div><div class="gmail_extra">rpm/rpmbuild wiht appropriate option. May be you can try to fill the CPACK_RPM_SPEC_MORE_DEFINE variable<br></div><div class="gmail_extra">with appropriate macro redefining "__os_install_post".<br><br></div><div class="gmail_extra">This would be more like a hack than a solution.<br></div><div class="gmail_extra">-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div>
</div></div>