How do you know its a zero byte file?
On Tue, Apr 30, 2013 at 1:59 PM, Bohne, Andrew <Bohne.Andrew@xxxxxxxxxxxxxx> wrote:
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.
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list