Automatic virtual provides for RPM macros?
by Miro Hrončok
Hello,
today at Nest, somebody said "unfortunately, there is no way to tell what
package to install to get a particular RPM macro".
I think that having an RPM provides generator for "rpm-macro(__python3)" or
similar should be a fairly simple exercise.
Would you folks consider that useful?
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
9 months
Intersection of 2 arches macros
by Miro Hrončok
Hello packaging folks.
I was in need of computing an intersection of 2 arches today.
Consider this:
%java_arches: aarch64 ppc64le s390x x86_64
%my_arches: i686 x86_64
Plan:
ExclusiveArch: <intersection of %java_arches and %my_arches>
Is there some idiomatic way of doing this? I came up with:
ExclusiveArch: %(comm -12 <(echo %{java_arches} | tr ' ' '\n' | sort) \
<(echo %{my_arches} | tr ' ' '\n' | sort) | tr '\n' ' ')
Which I consider quite horrible.
I was considering Lua to avid shelling out to nested Shell, but Lua has no easy
sets, so the code would be much longer.
Is there some easier way? Should there be? Something like:
ExclusiveArch: %{arch_intersect %java_arches & %my_arches}
Note the & that serves as a separator, otherwise the arches would be mixed and
would need to be put in some kind of quotes. Alternatively, the macro names
could be passed instead to avoid a need of a separator
ExclusiveArch: %{arch_intersect java_arches my_arches}
(Both approaches allow to intersect arbitrary number of sets.)
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
1 year, 2 months
EPEL selinux policy
by Mukundan Ragavan
I have a packaging question -
One of the packages I maintain, nextcloud-client, fails to execute in
EPEL-9. It is being blocked by SELinux policy.
getsebool selinuxuser_execmod is off in EL9.
Is it even allowed to change SELinux rule in, for example, %post?
I suspect the correct way to do this is to file a bug, correct?
Thanks.
--
GPG Key: E5C8BC67
1 year, 2 months