On Thu, Aug 11, 2016 at 11:37 AM, Dominique Leuenberger / DimStar
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
Maybe it would be better if I chose an example and explain my source of confusion. python3-Cython is the example I have been using for other packages, because previously it worked fine with no rpmlint warnings: https://build.opensuse.org/package/show/devel:languages:python3/python3-Cyth... Let's look at the current warnings: python3-Cython.x86_64: W: suse-alternative-link-missing /etc/alternatives/" The file %{_sysconfdir}/alternatives/$(basename generic-name) is missing in the file list. Mark it as %ghost and add it to the file list. python3-Cython.x86_64: W: suse-alternative-generic-name-missing " The update-alternatives generic name is not in the filelist. Create it as a symlink to %{_sysconfdir}/alternatives/$(basename generic-name) and add it to the file list. But if you look at the files list, that seems to be exactly what is being done: %{_bindir}/cygdb %{_bindir}/cython %{_bindir}/cythonize %{_bindir}/cygdb-%{py3_ver} %{_bindir}/cython-%{py3_ver} %{_bindir}/cythonize-%{py3_ver} %ghost %{_sysconfdir}/alternatives/cygdb %ghost %{_sysconfdir}/alternatives/cython %ghost %{_sysconfdir}/alternatives/cythonize So from the rpmlint warnings I don't know where the policy is being violated. Although I am not sure what "$(basename generic-name)" is supposed to be, are the names being used in "%{_sysconfdir}/alternatives/" wrong? It is hard to tell from the example on the wiki since I don't know what files in the example are "real" files and which ones are created by update-alternatives. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org