file added to rpm as zero bytes
Bohne, Andrew
Bohne.Andrew at pennmutual.com
Tue Apr 30 20:59:48 UTC 2013
Hello,
I've been pulling my hair out of an issue with an RPM I'm trying to build.
In my %install section I have the following lines consecutively:
%{__cp} -a bin/%{name} ${RPM_BUILD_ROOT}%{_bindir}/%{name}
%{__cp} -a bin/%{name} ${RPM_BUILD_ROOT}%{_bindir}/%{name}-2
And in the %files section I have
%attr(0755,root,root) %{_bindir}/*
The files are both added to the rpm in the correct spot, but %{_bindir}/%{name} is added as a 0 byte file, while %{_bindir}/%{name}-2 is added as the correct size. The source file is a shell script if that has any bearing on the matter.
Andy Bohne
Sr. Linux Systems Administrator
Penn Mutual Life Insurance
Office: (215) 957-7413 Mobile: (215) 450-9561
This message, including any attachments, is intended only for the recipient(s) named above. It may contain confidential and privileged information. If you have received this communication in error, please notify the sender immediately and destroy or delete the original message. Also, please be aware that if you are not the intended recipient, any review, disclosure, copying, distribution or any action or reliance based on this message is prohibited by law.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20130430/20d474d4/attachment.html>
More information about the Rpm-list
mailing list