From b66c86ecfc5346d1dd4010e0a98a5fb7fbd8e5ea Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Wed, 23 Dec 2015 12:34:24 +0100 Subject: [PATCH] ruby: remove references to -specs. Close #3185. --- srcpkgs/ruby/template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srcpkgs/ruby/template b/srcpkgs/ruby/template index 630364956d..02f6a2f0cb 100644 --- a/srcpkgs/ruby/template +++ b/srcpkgs/ruby/template @@ -3,7 +3,7 @@ _ruby_abiver=2.2.0 pkgname=ruby version=2.2.4 -revision=1 +revision=2 build_style=gnu-configure configure_args="--enable-shared --disable-rpath DOXYGEN=/usr/bin/doxygen DOT=/usr/bin/dot PKG_CONFIG=/usr/bin/pkg-config" @@ -35,6 +35,9 @@ post_install() { # Replace reference to the install(1) wrapper sed -e "s,${XBPS_WRAPPERDIR},/usr/bin,g" -i \ ${DESTDIR}/usr/lib/ruby/${_ruby_abiver}/*/rbconfig.rb + # Remove references to hardening -specs. + sed -e "s|\(-specs=.*hardened-ld\)||g" -e "s|\(-specs=.*hardened-cc1\)||g" -i \ + ${DESTDIR}/usr/lib/ruby/${_ruby_abiver}/*/rbconfig.rb } ruby-devel-doc_package() {