Skip to content

Commit 990b72d

Browse files
committed
debian/rules: delete build artifacts from default gems
1 parent 3f0829a commit 990b72d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

debian/rules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ override_dh_install-arch:
162162
mkdir -p $(CURDIR)/debian/tmp/usr/share/systemtap/tapset
163163
sed 's|@LIBRARY_PATH@|/usr/lib/$(DEB_HOST_MULTIARCH)/libruby-$(RUBY_VERSION).so|g' $(CURDIR)/debian/libruby.stp > $(CURDIR)/debian/tmp/usr/share/systemtap/tapset/libruby$(RUBY_VERSION)-$(DEB_HOST_MULTIARCH).stp
164164
dh_install
165+
find $(CURDIR)/debian/libruby$(RUBY_VERSION)/usr/lib/ruby/gems/$(RUBY_API_VERSION)/gems/ \
166+
'(' -name \*.so -or -name \*.o ')' \
167+
-delete
165168

166169
override_dh_gencontrol:
167170
./debian/genprovides $(CURDIR)/debian/libruby$(RUBY_VERSION)/usr/lib/ruby/gems/$(RUBY_API_VERSION)/specifications/ \

0 commit comments

Comments
 (0)