[DRE-commits] [gem2deb] 01/01: --gem-install: expand whitelist from environment variable
Antonio Terceiro
terceiro at moszumanska.debian.org
Tue Aug 16 13:04:25 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository gem2deb.
commit 733acfab950844066405ad7fa1d0979c15f64068
Author: Antonio Terceiro <terceiro at debian.org>
Date: Tue Aug 16 10:04:05 2016 -0300
--gem-install: expand whitelist from environment variable
---
bin/dh_ruby | 10 ++++++++++
debian/changelog | 7 +++++++
lib/gem2deb/gem_installer.rb | 2 +-
3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/bin/dh_ruby b/bin/dh_ruby
index 6fce4fb..847416e 100755
--- a/bin/dh_ruby
+++ b/bin/dh_ruby
@@ -236,6 +236,11 @@ the files, instead of the homegrown installer. Native packages will be
installed to I</usr/lib/$ARCH/rubygems-integration/$RUBY_VERSION>, while pure
Ruby packages will be installed to I</usr/share/rubygems-integration/all>.
+There is an internal whitelist of directories from the source package that need
+to be installed, but we can't possibly know all possibilities: if a package
+needs to install a directory that is not automatically installed, use
+I<DH_RUBY_GEM_INSTALL_WHITELIST_APPEND>.
+
=item B<--setuprb>
This option indicates that the build should use I<setup.rb> rather
@@ -290,6 +295,11 @@ provide custom metadata for the Debian package.
In the case there are more than one .gemspec in the source package root, you
will I<need> to use DH_RUBY_GEMSPEC to instruct dh_ruby about which one to use.
+=item I<DH_RUBY_GEM_INSTALL_WHITELIST_APPEND>.
+
+When using --gem-install, this variable adds files and directories to the list
+of files that need to be installed.
+
=back
=head1 FILES
diff --git a/debian/changelog b/debian/changelog
index d377a88..82f0de3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+gem2deb (0.32) UNRELEASED; urgency=medium
+
+ * --gem-install: append new directories to the whitelist from the
+ $DH_RUBY_GEM_INSTALL_WHITELIST_APPEND environment variable
+
+ -- Antonio Terceiro <terceiro at debian.org> Tue, 16 Aug 2016 10:01:32 -0300
+
gem2deb (0.31) unstable; urgency=medium
* dh-make-ruby:
diff --git a/lib/gem2deb/gem_installer.rb b/lib/gem2deb/gem_installer.rb
index 5184dbc..4e90ac1 100644
--- a/lib/gem2deb/gem_installer.rb
+++ b/lib/gem2deb/gem_installer.rb
@@ -30,7 +30,7 @@ module Gem2Deb
templates
VERSION
VERSION.txt
- ]
+ ] + ENV.fetch('DH_RUBY_GEM_INSTALL_WHITELIST_APPEND', '').split
def install_files_and_build_extensions
done = false
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gem2deb.git
More information about the Pkg-ruby-extras-commits
mailing list