kernel posttrans and preun hooks for other packages
Mark McLoughlin
markmc at redhat.com
Tue Apr 1 11:59:31 UTC 2008
On Mon, 2008-02-18 at 09:49 -0600, Matt Domsch wrote:
> ok, new-kernel-pkg grows a --rpmposttrans mode then to call these
> hooks, and we add a %posttrans to each kernel RPM.
This looks to be working fine, but let me see if I've got this
straight ...
> +%define kernel_variant_posttrans(s:r:v:) \
> +%{expand:%%posttrans %{?-v*}}\
...
> %define kernel_variant_post(s:r:v:) \
> %{expand:%%kernel_devel_post %{?-v*}}\
> +%{expand:%%kernel_variant_posttrans %{?-v*}}\
in this case, %{?-v*} doesn't just expand to the argument to -v, but
also passes the "-v" to %kernel_variant_posttrans ?
i.e. I'd expect it to be something like:
%{expand:%%kernel_variant_posttrans %{?-v:-v %{-v*}}}\
I know spec file syntax is bizarre, but does anyone have a sensible
explanation for this behaviour?
Cheers,
Mark.
More information about the Fedora-kernel-list
mailing list