File: remove-git-in-gemspec.patch

package info (click to toggle)
ruby-ffi 1.17.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,012 kB
  • sloc: ruby: 9,643; ansic: 7,734; xml: 151; sh: 51; makefile: 14
file content (27 lines) | stat: -rw-r--r-- 1,073 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Remove git in gemspec
 git is not used in debian build system
Last-Update: 2021-11-22

--- a/ffi.gemspec
+++ b/ffi.gemspec
@@ -17,19 +17,7 @@ Gem::Specification.new do |s|
     s.metadata['mailing_list_uri'] = 'http://groups.google.com/group/ruby-ffi'
     s.metadata['rubygems_mfa_required'] = 'true'
   end
-  s.files = `git ls-files -z`.split("\x0").reject do |f|
-    f =~ /^(\.|bench|gen|libtest|nbproject|spec|rakelib)/
-  end
-
-  # Add libffi git files
-  lfs = `git --git-dir ext/ffi_c/libffi/.git ls-files -z`.split("\x0")
-  # Add autoconf generated files of libffi
-  lfs += %w[ compile configure config.guess config.sub install-sh ltmain.sh missing fficonfig.h.in ]
-  # Add automake generated files of libffi
-  lfs += `git --git-dir ext/ffi_c/libffi/.git ls-files -z *.am */*.am`.gsub(".am\0", ".in\0").split("\x0")
-  s.files += lfs.map do |f|
-    File.join("ext/ffi_c/libffi", f)
-  end
+  s.files = Dir.glob('**/*')
 
   s.extensions << 'ext/ffi_c/extconf.rb'
   s.rdoc_options = %w[--exclude=ext/ffi_c/.*\.o$ --exclude=ffi_c\.(bundle|so)$]