Date: Wednesday, January 9, 2019 @ 18:47:38 Author: anatolik Revision: 343193
upgpkg: rubygems 3.0.2-3 Add a workaround for https://github.com/rubygems/rubygems/issues/2483 Added: rubygems/trunk/no-crash-if-missing-rdoc.patch Modified: rubygems/trunk/PKGBUILD --------------------------------+ PKGBUILD | 13 +++++++++++-- no-crash-if-missing-rdoc.patch | 14 ++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-01-09 18:00:07 UTC (rev 343192) +++ PKGBUILD 2019-01-09 18:47:38 UTC (rev 343193) @@ -3,7 +3,7 @@ pkgname=rubygems pkgdesc='Package management framework for Ruby' pkgver=3.0.2 -pkgrel=2 +pkgrel=3 arch=(any) url='https://rubygems.org/' license=(MIT) @@ -12,10 +12,19 @@ backup=(etc/gemrc) checkdepends=(rake) source=(rubygems-$pkgver.zip::https://github.com/rubygems/rubygems/archive/v${pkgver}.zip - gemrc) + no-crash-if-missing-rdoc.patch + gemrc) sha512sums=('8e233d28707927e4a9c729d51f1f85899aae0d8c4ff524eaeba5bdfec23ff1278df058220449a0acd159d5ba9a99f6df28ed7a852e1911a66e435557f4809454' + '0a5f03fc9de0fc4aa4d234d7baf2ffe6dba56850e94ccfba4d73495b0c18aa012ae195e1a0f7aaefb1205a1539a66242d47712dd8d8ae93fc46b9e16af6f91ba' '8cafd14d414ee3c16aa94f79072bc6c100262f925dc1300e785846c3fabbbbffc1356b8e2223af5684e3340c55032d41231179ffa948bb12e01dbae0f4131911') +prepare() { + cd rubygems-${pkgver} + + # workaround for https://github.com/rubygems/rubygems/issues/2483 + patch -p1 < ../no-crash-if-missing-rdoc.patch +} + check() { cd rubygems-${pkgver} Added: no-crash-if-missing-rdoc.patch =================================================================== --- no-crash-if-missing-rdoc.patch (rev 0) +++ no-crash-if-missing-rdoc.patch 2019-01-09 18:47:38 UTC (rev 343193) @@ -0,0 +1,14 @@ +diff --git a/lib/rubygems/rdoc.rb b/lib/rubygems/rdoc.rb +index dfaf7c55..4e16fbb8 100644 +--- a/lib/rubygems/rdoc.rb ++++ b/lib/rubygems/rdoc.rb +@@ -18,7 +18,7 @@ begin + module Gem + RDoc = ::RDoc::RubygemsHook + end ++ ++ Gem.done_installing(&Gem::RDoc.method(:generation_hook)) + rescue LoadError + end +- +-Gem.done_installing(&Gem::RDoc.method(:generation_hook))
