William Unruh
2022-01-28 04:26:40 UTC
I am trying to fix polkit on a machine I have which has Mageia 7 (cannot
upgrade because of covid).
Even doing
rpmbuild --rebuild polkit-0.116-1.1.mga7.src.rpm
does not work. I get a bunch of first warnings like
Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/^\s*typedef\s+enum\s*
({ <-- HERE )?\s*
(?:/\*<
(([^*]|\*(?!/))*)
/ at /usr/local/bin/glib-mkenums line 271.
and then a bunch of
In file included from ../../src/polkit/polkit.h:28,
from polkitenumtypes.c:4:
../../src/polkit/polkitenumtypes.h:13:9: error: macro names must be identifiers
#define @***@_TYPE_CHECK_AUTHORIZATION_FLAGS (polkit_check_authorization_flags_get_type ())
^
and the compile fails. So not even the unfixed version works.
I get the same problem is I install the polkit-0.116-1.1.mga7.src.rpm,
edit SPECS/polkit.spec to add a patch for
0001-pkexec-local-privilege-escalation-CVE-2021-4034.patch
and that patch in SOURCE
Teh patch installs fine, but again the comilation dies due to the above
type errors.
a) Is Mageia going to issue a security patch for Mageia 7 fro polkit?
b) If not, how can I compile the patched source without getting those
silly errors.
upgrade because of covid).
Even doing
rpmbuild --rebuild polkit-0.116-1.1.mga7.src.rpm
does not work. I get a bunch of first warnings like
Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/^\s*typedef\s+enum\s*
({ <-- HERE )?\s*
(?:/\*<
(([^*]|\*(?!/))*)
\s*\*/)?
\s*({)?/ at /usr/local/bin/glib-mkenums line 271.
and then a bunch of
In file included from ../../src/polkit/polkit.h:28,
from polkitenumtypes.c:4:
../../src/polkit/polkitenumtypes.h:13:9: error: macro names must be identifiers
#define @***@_TYPE_CHECK_AUTHORIZATION_FLAGS (polkit_check_authorization_flags_get_type ())
^
and the compile fails. So not even the unfixed version works.
I get the same problem is I install the polkit-0.116-1.1.mga7.src.rpm,
edit SPECS/polkit.spec to add a patch for
0001-pkexec-local-privilege-escalation-CVE-2021-4034.patch
and that patch in SOURCE
Teh patch installs fine, but again the comilation dies due to the above
type errors.
a) Is Mageia going to issue a security patch for Mageia 7 fro polkit?
b) If not, how can I compile the patched source without getting those
silly errors.