Le mardi 30 août 2011, à 04:35 +0400, Kirill Kirillov a écrit :
Hi!
My "fbreader" package [1] uses "update-alternative" mechanism, here is a spec snippet: /usr/sbin/update-alternatives --install \ %{_libdir}/zlibrary/ui/zlui-active.so \ zlibrary-ui \ %{_libdir}/zlibrary/ui/zlui-gtk.so \ 2
When I build it in OBS the following warning is shown:
zlibrary-ui-gtk.x86_64: W: generic-name-not-in-filelist /usr/lib64/zlibrary/ui/zlui-active.so zlibrary-ui-qt.x86_64: W: generic-name-not-in-filelist /usr/lib64/zlibrary/ui/zlui-active.so The generic name is not in a filelist of package, add it to list marked as %ghost. Note: this error will be raised, if you use a hash ($) in file name, use rpm macros in spec file instead.
To fix it according to [2], I have added the following lines: touch %{buildroot}%{_libdir}/zlibrary/ui/zlui-active.so ghost %{_libdir}/zlibrary/ui/zlui-active.so
But this just results in four warnings instead of two which I don't know how to fix:
Hrm, interesting, it's a case where a simple "touch" won't work as intended, indeed. Maybe just create a link to zlui-gtk.so and keep marking the file as %ghost? Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org