On Thu, Aug 11, 2016 at 6:09 PM, Greg Freemyer
On Thu, Aug 11, 2016 at 11:37 AM, Dominique Leuenberger / DimStar
wrote: On Thu, 2016-08-11 at 11:32 -0400, Todd Rme wrote:
On Thu, Aug 11, 2016 at 5:41 AM, Stephan Kulow
wrote: On 11.08.2016 11:27, Víctor Cuadrado Juan wrote:
Hi everyone!
I would love to gather some ideas and consensus on this, and ideally, get a policy on how update-alternatives should be used, and have an rpmlint check written/improved so we can start filling bugs per package.
There is a policy and a rpmlint check for it - so either you report bugs or fix the packages. There are 61 packages atm hitting this error in Factory.
E.g. https://api.opensuse.org/public/build/openSUSE:Factory/standard/x86 _64/ctags/rpmlint.log
Greetings, Stephan
Where is the policy documented? I can't find it. There is an rpmlint warning, but it is unclear from the warning how to fix it, since the packages seem to be doing what the warning requests.
Perhaps it might be helpful to pick an example package that is violating the policy and explain exactly what needs to be changed to make it complaint.
The whole update-alternatives system is pretty cryptic and almost totally undocumented in the openSUSE wiki from what I have been able to find.
Today I just fixed gtk2 and gtk3, the submissions are: https://build.opensuse.org/request/show/418653 https://build.opensuse.org/request/show/418655 Maybe they serve as indication what was wrong and what is right now
AS for the documentation https://en.opensuse.org/openSUSE:Packaging_Multiple_Version_guidelines is the one giving most hints imho
Cheers, Dominique
I'm totally new to alternatives, but ...
In the install section of the wiki page I see:
===== %install # create a dummy target for /etc/alternatives/vim mkdir -p %{buildroot}%{_sysconfdir}/alternatives ln -s -f %{_sysconfdir}/alternatives/vim %{buildroot}%{_bindir}/vim =====
Isn't that missing %{buildroot} in the first arg of the link statement?
If not, what does the mkdir line have it?
If correct as is, it seems a comment is appropriate.
Greg
Another question about the wiki example: === %postun if [ "$1" = 0 ] ; then update-alternatives --remove vim %{_bindir}/vim-normal fi %preun enhanced if [ "$1" = 0 ] ; then update-alternatives --remove vim %{_bindir}/vim-enhanced fi === Shouldn't they both be postun or preun? If not, a comment in the example as to why the choice would be good. Thanks Greg -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org