Bug 21747

Summary: Updated rpm-mageia-setup removes redundant %__debug_install_post, exposing better upstream one
Product: Mageia Reporter: Rémi Verschelde <rverschelde>
Component: RPM PackagesAssignee: QA Team <qa-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: sysadmin-bugs
Version: 6Keywords: advisory, validated_update
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard: MGA6-64-OK
Source RPM: rpm-mageia-setup-2.20-1.mga6 CVE:
Status comment:

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