[opensuse-packaging] How to deal with plugin files (.so)?
Hello! I am updating the bochs emulator package from the Emulators project as a small exercise. The emulator now ships with plugin files which rpmlint recognizes as development files and complains about them: [ 42s] bochs.x86_64: E: devel-file-in-non-devel-package (Badness: 50) /usr/lib64/bochs/plugins/libbx_acpi.so [ 42s] bochs.x86_64: E: devel-file-in-non-devel-package (Badness: 50) /usr/lib64/bochs/plugins/libbx_biosdev.so [ 42s] bochs.x86_64: E: devel-file-in-non-devel-package (Badness: 50) /usr/lib64/bochs/plugins/libbx_cmos.so (...) [ 42s] bochs.x86_64: E: devel-file-in-non-devel-package (Badness: 50) /usr/lib64/bochs/plugins/libbx_vga.so [ 42s] bochs.x86_64: E: devel-file-in-non-devel-package (Badness: 50) /usr/lib64/bochs/plugins/libbx_x.so [ 42s] A file that is needed only e.g. when developing or building software is [ 42s] included in a non-devel package. These files should go in devel packages. Can anyone tell me what the proper way of handling plugins in an RPM package is? Should I move these files into a separate -plugin package? Thanks, Adrian
[1] https://build.opensuse.org/package/show/home:glaubitz:branches:Emulators/boc... N�����r��y隊Z)z{.��ZrF��x>�{.n�+������Ǩ��r��i�m��0��ޙ���������$j���0�����Ǩ�
On Fri, 2019-04-05 at 09:04 +0000, John Paul Adrian Glaubitz wrote:
Hello!
I am updating the bochs emulator package from the Emulators project as a small exercise. The emulator now ships with plugin files which rpmlint recognizes as development files and complains about them:
[ 42s] bochs.x86_64: E: devel-file-in-non-devel-package (Badness: 50) /usr/lib64/bochs/plugins/libbx_acpi.so [ 42s] bochs.x86_64: E: devel-file-in-non-devel-package (Badness: 50) /usr/lib64/bochs/plugins/libbx_biosdev.so [ 42s] bochs.x86_64: E: devel-file-in-non-devel-package (Badness: 50) /usr/lib64/bochs/plugins/libbx_cmos.so (...) [ 42s] bochs.x86_64: E: devel-file-in-non-devel-package (Badness: 50) /usr/lib64/bochs/plugins/libbx_vga.so [ 42s] bochs.x86_64: E: devel-file-in-non-devel-package (Badness: 50) /usr/lib64/bochs/plugins/libbx_x.so [ 42s] A file that is needed only e.g. when developing or building software is [ 42s] included in a non-devel package. These files should go in devel packages.
Can anyone tell me what the proper way of handling plugins in an RPM package is? Should I move these files into a separate -plugin package?
The problem seems to be that those are symlinks - which makes the rpmlint barf. If it's plugins, they should be built with -module -avoid-version and rpmlint won't complain. Cheers Dominique
On 4/5/19 11:43 AM, Dominique Leuenberger / DimStar wrote:
The problem seems to be that those are symlinks - which makes the rpmlint barf.
If it's plugins, they should be built with -module -avoid-version and rpmlint won't complain.
Yes, this eventually helped. I also found that on the packaging howto but I hadn't tried it yet. I had to patch several Makefile.in but it does the trick. Adrian N�����r��y隊Z)z{.��ZrF��x>�{.n�+������Ǩ��r��i�m��0��ޙ���������$j���0�����Ǩ�
participants (2)
-
Dominique Leuenberger / DimStar
-
John Paul Adrian Glaubitz