Problem with ruby package with binary content...

Darryl L. Pierce dpierce at redhat.com
Tue Jul 14 15:23:20 UTC 2009


This question is related to:
https://bugzilla.redhat.com/show_bug.cgi?id=3D505589

When I remove the strip line, then the build process fails with the
complaint:

Found
'/home/mcpierce/Packaging/rpms/BUILDROOT/rubygem-RedCloth-4.1.9-5.fc12.x86_=
64'
in installed files; aborting

I'm not sure what's wrong here. The %install portion of my spec file is
as follows:

---8<[snip]---
rm -rf %{buildroot}

install -d -m0755 %{buildroot}%{gemdir}
install -d -m0755 %{buildroot}%{ruby_sitelib}
install -d -m0755 %{buildroot}%{ruby_sitearch}
install -d -m0755 %{buildroot}%{_bindir}

gem install --local --install-dir %{buildroot}%{gemdir} \
            --force -V --rdoc %{SOURCE0}

cp -a %{buildroot}%{gemdir}/bin/* %{buildroot}%{_bindir}
mv %{extensionddir}%{gemlibname}
%{buildroot}%{ruby_sitearch}/%{gemlibname}
rm -rf %{extensionddir}
# strip %{buildroot}%{ruby_sitearch}/%{gemlibname}
rm %{installroot}/lib/%{gemlibname}
cp %{installroot}/lib/redcloth.rb
%{buildroot}%{ruby_sitelib}/redcloth.rb
rm -rf %{buildroot}%{gemdir}/bin
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
find %{buildroot}%{geminstdir} -name "*.rb" | xargs chmod a+x

find %{buildroot}%{geminstdir} -type f -name \*.rb | xargs chmod 0644

find %{buildroot}%{geminstdir} -type f -name \*.rb | \
  xargs grep -l "^#!%{_bindir}/env" $file | xargs chmod 0755

rm %{installroot}/.require_paths
---8<[snip]---

Any ideas?

-- 
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Virtual Machine Management - http://www.ovirt.org/
Is fearr Gaeilge bhriste ná Béarla cliste.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20090714/d13c12b4/attachment.sig>


More information about the fedora-devel-list mailing list