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

Re: help with non-C ext folder in rainbow



On Mon, Sep 11, 2017 at 05:05:26PM +0530, Pirate Praveen wrote:
> Hi,
> 
> rainbow 2.2.2 introduced an 'ext' folder (this was not present in
> earlier versions and this seems to be removed in git master) which makes
> gem2deb think it is a native extension and creates an empty directory
> causing lintian to report an error
> 
> E: ruby-rainbow: triplet-dir-and-architecture-mismatch
> usr/lib/x86_64-linux-gnu/ is for amd64
> 
> Options,
> 
> 1. make it arch:any but since it is creating an empty directory, I think
> its pointless
> 2. just remove the triplet directory after dh_install and be done
> 3. remove ext from source and patch gemspec file not to mention it.
> 
> what would be the best way forward? any suggestions?

diff --git a/rainbow.gemspec b/rainbow.gemspec
index 1d89862..fb2c18b 100644
--- a/rainbow.gemspec
+++ b/rainbow.gemspec
@@ -22,5 +22,5 @@ Gem::Specification.new do |spec|
   spec.add_dependency "rake"
 
   spec.add_development_dependency "bundler", "~> 1.3"
-  spec.extensions    = ["ext/mkrf_conf.rb"]
+  spec.extensions    = []
 end

AIUI that ext/ exists to install stuff that is only needed on Windows, so
patching it out should be safe.

Attachment: signature.asc
Description: PGP signature


Reply to: