Problem with ruby package with binary content...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Attachment: pgpr4LmYAmTcY.pgp
Description: PGP signature

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux