<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/5 hce <span dir="ltr"><<a href="mailto:jupiter.hce@gmail.com" target="_blank">jupiter.hce@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi,<br>
<br>
I have a binary directory contains subdirectories name with "@":<br>
<br>
graph3d/@graph3d/@colorbar/colorbar.m<br>
scribe/@scribe/@colorbar/colorbar.m<br>
<br>
When I run cpack -G RPM, it removed @ and put following string name in the<br>
spec:<br>
<br>
graph3d/graph3d/colorbar/colorbar.m<br>
scribe/scribe/colorbar/colorbar.m<br></blockquote><div><br></div><div>Yes for CPack RPM I can see why that is happening.<br></div><div>The spec file generated by CPackRPM is <br></div><div> 1) generated<br></div><div> 2) configured (with @ONLY) <br>
<br></div><div>This is handy for many reason so @ in pathname should be protected otherwise<br></div><div>they will be processed (and removed) by configure_file.<br><br></div><div>Could you have a look at the difference between<br>
<br></div><div><yourpackage>.<a href="http://spec.in">spec.in</a> <br>and <br></div><div><yourpackage>.spec<br><br></div><div>file you will find in <buildtree>/_CPack_Packages/<yoursys>/RPM/SPECS<br>
<br></div><div>CPackRPM announce the name of the configured spec file:<br>"CPackRPM: Will use GENERATED spec file: [...]RPM/SPECS/<package>.spec<br><br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
That resulted errors of "File not found ...." and could not generate RPM<br>
package.<br>
<br>
It seems cmake / cpack could not handle directory name with @, is there any<br>
workaround to resolve this issue?<br></blockquote><div><br></div><div>I don't think that all generator are hit by this, <br>did you try alternative CPack generator like TGZ or ZIP ? Could you try?<br>cpack -G TGZ<br>
</div><br></div><div class="gmail_quote">I'll think of a workaround for CPackRPM, the fastest solution would be to use<br>CPACK_RPM_USER_BINARY_SPECFILE<br><br></div><div class="gmail_quote">see:<br>cpack --help-variable CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE<br>
cpack --help-variable CPACK_RPM_USER_BINARY_SPECFILE<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">That said I'll try a patch to protect filename against '@' in them.<br></div><br>-- <br>
Erk<br>Le gouvernement représentatif n'est pas la démocratie -- <a href="http://www.le-message.org" target="_blank">http://www.le-message.org</a>
</div></div>