[opensuse-packaging] How to fix generic-name-not-in-filelist RPMLINT warning
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:
zlibrary-ui-gtk.x86_64: W: binaryinfo-tail-failed /usr/lib64/zlibrary/ui/zlui-active.so: [Errno 2] No such file or directory: '/tmp/rpmlint.zlibrary-ui-gtk-0.12.10-0.x86_64.rpm.wD4veN//usr/lib64/zlibrary/ui/zlui-active.so' zlibrary-ui-qt.x86_64: W: binaryinfo-tail-failed /usr/lib64/zlibrary/ui/zlui-active.so: [Errno 2] No such file or directory: '/tmp/rpmlint.zlibrary-ui-qt-0.12.10-0.x86_64.rpm.yuvsOP//usr/lib64/zlibrary/ui/zlui-active.so' Reading trailing bytes of this file failed, all checks could not be run.
zlibrary-ui-gtk.x86_64: W: binaryinfo-readelf-failed /usr/lib64/zlibrary/ui/zlui-active.so readelf: Error: '/tmp/rpmlint.zlibrary-ui-gtk-0.12.10-0.x86_64.rpm.wD4veN//usr/lib64/zlibrary/ui/zlui-active.so': No such file zlibrary-ui-qt.x86_64: W: binaryinfo-readelf-failed /usr/lib64/zlibrary/ui/zlui-active.so readelf: Error: '/tmp/rpmlint.zlibrary-ui-qt-0.12.10-0.x86_64.rpm.yuvsOP//usr/lib64/zlibrary/ui/zlui-active.so': No such file Executing readelf on this file failed, all checks could not be run.
Any solutions, please? [1] https://build.opensuse.org/package/show?package=fbreader&project=openSUSE%3AFactory [2] http://en.opensuse.org/openSUSE:Packaging_checks -- Kirill Kirillov <>< -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Kirill Kirillov
-
Vincent Untz