Pass ldflags to gem install

The commit is a cherry-pick from Fedora rawhide 6b2ff68f33 .
The same comment on the changelog 3.0.1-138 was wrong.
The purpose is to synchronize with Fedora rawhide 63065e7db7 .

Related: rhbz#1938942
This commit is contained in:
Jarek Prokop 2021-07-20 17:38:30 +02:00
parent e036ecc271
commit 56f548c2c8
2 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,7 @@
%gem_install(d:n:) \ %gem_install(d:n:) \
mkdir -p %{-d*}%{!?-d:.%{gem_dir}} \ mkdir -p %{-d*}%{!?-d:.%{gem_dir}} \
\ \
CONFIGURE_ARGS="--with-cflags='%{optflags}' --with-cxxflags='%{optflags}' $CONFIGURE_ARGS" \\\ CONFIGURE_ARGS="--with-cflags='%{optflags}' --with-cxxflags='%{optflags}' --with-ldflags='%{build_ldflags}' $CONFIGURE_ARGS" \\\
gem install \\\ gem install \\\
-V \\\ -V \\\
--local \\\ --local \\\

View File

@ -1348,6 +1348,8 @@ MSPECOPTS=""
- Fix StartTLS stripping vulnerability in Net::IMAP (CVE-2021-32066) - Fix StartTLS stripping vulnerability in Net::IMAP (CVE-2021-32066)
- Fix dependencies of gems with explicit source installed from a - Fix dependencies of gems with explicit source installed from a
different source. (CVE-2020-36327) different source. (CVE-2020-36327)
- Pass ldflags to gem install via CONFIGURE_ARGS.
The same comment on the changelog 3.0.1-138 was wrong.
* Mon Jun 07 2021 Jarek Prokop <jprokop@redhat.com> - 3.0.1-138 * Mon Jun 07 2021 Jarek Prokop <jprokop@redhat.com> - 3.0.1-138
- Upgrade to Ruby 3.0.1 by merging Fedora rawhide branch (commit: 6b2ff68). - Upgrade to Ruby 3.0.1 by merging Fedora rawhide branch (commit: 6b2ff68).