[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
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
Hi! В Срд, 31/08/2011 в 11:20 +0200, Vincent Untz пишет:
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?
Thank you for suggestion, but it seems that it is a bug in RPMLINT which affects oS 11.4 builds: https://bugzilla.novell.com/show_bug.cgi?id=700067 My package is built fine for oS:Factory, so I'll ignore this warning for 11.4 repository. -- 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