Bug 21747 - Updated rpm-mageia-setup removes redundant %__debug_install_post, exposing better upstream one
Summary: Updated rpm-mageia-setup removes redundant %__debug_install_post, exposing be...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA6-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2017-09-20 19:16 CEST by Rémi Verschelde
Modified: 2017-09-21 15:44 CEST (History)
1 user (show)

See Also:
Source RPM: rpm-mageia-setup-2.20-1.mga6
CVE:
Status comment:


Attachments

Description Rémi Verschelde 2017-09-20 19:16:11 CEST
Our rpm-mageia-setup redefined __debug_info_post, shadowing the upstream RPM one which is slightly more complete, as explained in this thread [0].

This update removes the custom Mageia definition [1], adding support for more options via the upstream definition:

__debug_install_post       
   %{_rpmconfigdir}/find-debuginfo.sh %{?_missing_build_ids_terminate_build:--strict-build-id} %{?_include_minidebuginfo:-m} %{?_find_debuginfo_dwz_opts} %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}"
%{nil}

(_missing_build_ids_terminate_build and _find_debuginfo_opts are new)

This allows in particular to remove a hack we had to use when syncing rust packaging with Fedora, since they use _find_debuginfo_opts but we only supported _find_debuginfo_dwz_opts up to now [2].

[0] https://ml.mageia.org/l/arc/dev/2017-09/msg00141.html
[1] http://gitweb.mageia.org/software/rpm/rpm-setup/commit/?h=distro/mga6&id=e5806ea19f7e761041bbd00630562cb1a3b69edd
[2] http://svnweb.mageia.org/packages/cauldron/rust/current/SPECS/rust.spec?view=markup&pathrev=1156391#l204


Advisory:
=========

Updated rpm-mageia-setup removes redundant macro, unshadowing upstream RPM one

  The rpm-mageia-setup package used to redefine the __debug_info_post macro,
  shadowing the upstream RPM one which supports more options and has the same
  effect by default.

  This update removes the redundant macro redefinition, effectively unshadowing
  the original macro.

References:
 - https://ml.mageia.org/l/arc/dev/2017-09/msg00141.html


SRPM in core/updates_testing:
=============================

rpm-mageia-setup-2.20.1-1.mga6

RPMs in core/updates_testing:
=============================

rpm-mageia-setup-2.20.1-1.mga6
rpm-mageia-setup-build-2.20.1-1.mga6

rpm-mageia-setup-2.20.1-1.mga6
Comment 1 Rémi Verschelde 2017-09-20 19:21:05 CEST
Advisory uploaded (and fixed, it's __debug_install_post and not __debug_info_post as written in comment 0).

Summary: Updated rpm-mageia-setup removes redundant %__debug_info_post, exposing better upstream one => Updated rpm-mageia-setup removes redundant %__debug_install_post, exposing better upstream one
Keywords: (none) => advisory

Comment 2 Rémi Verschelde 2017-09-20 19:23:39 CEST
Installed locally on Mageia 6 x86_64, confirmed that `rpm --showrc` now lists:

-14: __debug_install_post       
   %{_rpmconfigdir}/find-debuginfo.sh %{?_missing_build_ids_terminate_build:--strict-build-id} %{?_include_minidebuginfo:-m} %{?_find_debuginfo_dwz_opts} %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}"
%{nil}

So the upstream options are now available, as needed.

Validating.

Whiteboard: (none) => MGA6-64-OK
Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 3 Mageia Robot 2017-09-21 15:44:21 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2017-0084.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.