[Pulp-list] retarded selinux_policyver in spec

Alan Milligan alan.milligan at last-bastion.net
Tue Aug 2 03:26:20 UTC 2016


No worries.

Created a plan.io account and raised it here:
https://pulp.plan.io/issues/2121

Alan

On 08/02/2016 05:51 AM, Brian Bouterse wrote:
> Hi Alan, Yes that line is pretty terrible. Would you be willing to
> file a bug report [0]?
>
> [0]: https://pulp.plan.io/projects/pulp/issues/new
>
> -Brian
>
>
>
> On 07/28/2016 11:24 PM, Alan Milligan wrote:
>> Hi,
>>
>> In pulp.spec, we have this travesty:
>> %define selinux_policyver %(sed -e
>> 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,'
>> /usr/share/selinux/devel/policyhelp 2> /dev/null)
>>
>> Which supposedly fires up xdg and groks the policy version out of a help
>> browser footer.
>> Really????
>>
>> Full marks for invention: but it doesn't actually work in my setup as
>> there is no version displayed ...
>>
>> How about something less ambitious - perhaps like:
>> %define selinux_policyver %(rpm --qf "%{version}" -q selinux-policy)
>>
>>
>> Alan
>>
>>
>>
>> _______________________________________________
>> Pulp-list mailing list
>> Pulp-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/pulp-list
>>




More information about the Pulp-list mailing list