I originally discovered it when I installed the RPM on a test server. I've inspected the rpm via the following commands: rpm2cpio mule-3.3.2-1.el6.x86_64.rpm | cpio -ivd ./usr/bin/* ls -la usr/bin -rwxr-xr-x 1 root root 0 Apr 30 15:03 mule -rwxr-xr-x 1 root root 20237 Apr 30 15:03 mule-2 -rwxr-xr-x 1 root root 1312 Apr 30 15:03 mule-launcher Additionally, I've verified via: rpm -qp --dump mule-3.3.2-1.el6.x86_64.rpm | grep ^/usr/bin /usr/bin/mule 0 1367348439 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 0100755 root root 0 0 0 X /usr/bin/mule-2 20237 1354821207 b30b690366e2280635e09e8f33c90bf7e823d45a71ffaf72e5c0d39476551b8a 0100755 root root 0 0 0 X /usr/bin/mule-launcher 1312 1354821207 6103cf5f73c6d0108c7d88f6678ae873a725fe16430e210ae6a8f9ad22e3e979 0100755 root root 0 0 0 X From: rpm-list-bounces@xxxxxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxxxxx]
On Behalf Of Red Cricket 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.
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