Bug 13429

Summary: Missing rpm-macros in Mageia 4 and 5
Product: Mageia Reporter: Hartmut Goebel <h.goebel>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: Normal CC: jani.valimaa, thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: rpm-mageia-setup CVE:
Status comment:

Description Hartmut Goebel 2014-05-23 11:27:57 CEST
I'm porting some rpms to Mageia 4 and found some rpm-macros no longer defined. This is hindering porting packages. The wiki does not contain any hit, too.

Missing are:

%{_desktopdir}  -> to copy the .desktop file
%{_iconsscaldir} -> to copy the .svg icon

I asked on the dev-ml, which pointed me to <https://ml.mageia.org/l/arc/dev/2014-04/msg00177.html>. But the only meaningful insight of that thread is: dmorgan is the maintainer.


How to reproduce
---------------------

   rpm --showrc | grep -E 'desktopdir|iconsscaldir'

shows no output

I'd expect that do show (at least) macro-definition.
Comment 1 Jani Välimaa 2014-05-23 12:42:49 CEST
Those macros were previously defined in /etc/rpm/macros.jpackage which was provided by jpackage-utils pkg. jpackage-utils is nowadays obsoleted by javapackages-tools which also provides the file in question, but doesn't define those missing (and many other) macros anymore.

So the bug isn't in rpm, but in javapackages-tools. However, hardly none of .specs I've seen uses those macros, but IMHO we should define those missing macros in some more general pkg.

CC: (none) => jani.valimaa

Comment 2 Jani Välimaa 2014-05-23 12:55:24 CEST
Maybe in /etc/rpm/macros.d/20common.macros which is provided by rpm-mageia-setup pkg.
Manuel Hiebel 2014-08-06 00:37:53 CEST

CC: (none) => thierry.vignaud
Assignee: bugsquad => dmorganec

Comment 3 Thierry Vignaud 2015-06-02 12:01:33 CEST
Language specific macros should be defined in the appropriate package

Source RPM: rpm-4.11.1-8.mga4.src.rpm => javapackages-tools

Comment 4 Hartmut Goebel 2015-06-02 12:49:16 CEST
Please note: The original bug report was about %{_desktopdir} and %{_iconsscaldir}. Neither of them are language specific.
Comment 5 Samuel Verschelde 2015-09-21 13:19:23 CEST
Mageia 4 changed to end-of-life (EOL) status on 2015-09-19. It is is no longer 
maintained, which means that it will not receive any further security or bug 
fix updates.

Package Maintainer: If you wish for this bug to remain open because you plan to 
fix it in a currently maintained version, simply change the 'version' to a later 
Mageia version.

Bug Reporter: Thank you for reporting this issue and we are sorry that we weren't 
able to fix it before Mageia 4's end of life. If you are able to reproduce it 
against a later version of Mageia, you are encouraged to click on "Version" and 
change it against that version of Mageia. If it's valid in several versions, 
select the highest and add MGAxTOO in whiteboard for each other valid release.
Example: it's valid in cauldron and Mageia 5, set to cauldron and add MGA5TOO.

Although we aim to fix as many bugs as possible during every release's lifetime, 
sometimes those efforts are overtaken by events. Often a more recent Mageia 
release includes newer upstream software that fixes bugs or makes them obsolete.

If you would like to help fixing bugs in the future, don't hesitate to join the
packager team via our mentoring program [1] or join the teams that fit you 
most [2].

[1] https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
[2] http://www.mageia.org/contribute/
Comment 6 Hartmut Goebel 2015-09-21 21:59:49 CEST
This is still true for Mageia 5.

Version: 4 => 5

Hartmut Goebel 2015-09-21 22:00:13 CEST

Summary: Missing rpm-macros in Mageia 4 => Missing rpm-macros in Mageia 4 and 5

Comment 7 Rémi Verschelde 2015-09-21 22:18:50 CEST
Reducing the priority and severity.

Thierry, as pointed out in comment 4, this bug report is about %{_desktopdir} and %{_iconsscaldir}, which should be pretty generic even though they were previously defined in a java package.

So the question is, should we add them to rpm-mageia-setup?

The %{_iconsscaldir} one seems to be for corner cases if it refers to /usr/share/icons/hicolor/scalable or something like that, I'm not sure we want it.

%{_desktopdir} could be useful in every application package; now if it's not used in other distros, it might just add unnecessary divergences just for a cosmetic issue.

Version: 5 => Cauldron
Priority: High => Normal
Source RPM: javapackages-tools => rpm-mageia-setup
Severity: major => normal

Rémi Verschelde 2015-09-21 22:32:22 CEST

Assignee: dmorganec => bugsquad

Comment 8 Thierry Vignaud 2015-09-22 11:46:10 CEST
If they're not used by other distro and since they're not used by Mageia packages, I see no point in adding them.
3rd party packages can either have their own macro file in some foobar-macro package that would be BRed by them or can just not use those macros

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