Overview

Request 560084 accepted

- Revert last change: reconfigure_post_* does not know a -n
parameter, which in turn results in warnings (rpm < 4.14) or
errors (rpm >= 4.14).
> reconfigure_fonts_post: invalid option -- 'n'
> error: Unknown option n in reconfigure_fonts_post(c)

From /etc/rpm/macros.fonts-config, only reconfigure_fonts_scriptlets knows a -n parameter.



Johannes Meixner's avatar

As far as I see reverting using the -n option for the reconfigure_fonts scriptlets contradicts what is requested in https://bugzilla.suse.com/show_bug.cgi?id=1067213


Dominique Leuenberger's avatar

Then you only have the option of expanding the reconfigure_fonts macro to understand -n; as it is now: it is broken way more than it was before


Dominique Leuenberger's avatar

ok - read a bit more in that bug - the request there is basically not to use %%reconfigure_fonts_posttrans, but %reconfigure_fonts_scriptlets, which in turn knows a -n parameter

but then, that does not much more than expand to what you had before, namely to:

%reconfigure_fonts_scriptlets(c,n:) \
%post %{-n:-n %{-n*}} \
%reconfigure_fonts_post c \
\
%postun %{-n:-n %{-n*}} \
%reconfigure_fonts_postun c \
\
%posttrans %{-n:-n %{-n*}} \
%reconfigure_fonts_posttrans \
\
%nil


Dominique Leuenberger's avatar

imho - revert is the right thing to get at least a package back that installs without errors - and re-evaluating for a proper fix in a 2nd step

Request History
Dominique Leuenberger's avatar

dimstar created request

- Revert last change: reconfigure_post_* does not know a -n
parameter, which in turn results in warnings (rpm < 4.14) or
errors (rpm >= 4.14).
> reconfigure_fonts_post: invalid option -- 'n'
> error: Unknown option n in reconfigure_fonts_post(c)

From /etc/rpm/macros.fonts-config, only reconfigure_fonts_scriptlets knows a -n parameter.


Johannes Meixner's avatar

jsmeix accepted request

revert is the right thing to get at least a package back that installs without errors

openSUSE Build Service is sponsored by