[opensuse-buildservice] E: arch-independent-package-contains-binary-or-object

Hi on SLES15-SP1 we get the following Error in one of our packages: opsi-linux-bootimage.noarch: E: arch-independent-package-contains-binary-or-object (Badness: 499) /var/lib/tftpboot/grub/x86_64-efi/regexp.mod The package contains a binary or object file but is tagged noarch. I've read that: %define _binaries_in_noarch_packages_terminate_build 0 in the spec file should fix the problem, but on SLES15 SP1 it doesn't seem to work. We want this package to be noarch, is there any other spec file trick to not terminate the build on this error? Regards Mathias -- Mathias Radtke --- http://uib.de/de/support-schulung/schulung/ uib gmbh Bonifaziusplatz 1B 55118 Mainz Tel. 06131 / 27561-16 <phone:+49 61312756116> Fax 06131 / 27561-22 <phone:+49 61312756122> E-Mail: m.radtke@uib.de Internet: www.uib.de Geschäftsführer: dr. detlef oertel & erol ueluekmen Handelsregister: Amtsgericht Mainz HRB 6942 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Fri, Aug 30, 2019 at 07:49:51AM +0200, Mathias Radtke wrote:
on SLES15-SP1 we get the following Error in one of our packages:
opsi-linux-bootimage.noarch: E: arch-independent-package-contains-binary-or-object (Badness: 499) /var/lib/tftpboot/grub/x86_64-efi/regexp.mod The package contains a binary or object file but is tagged noarch.
I've read that:
%define _binaries_in_noarch_packages_terminate_build 0
in the spec file should fix the problem, but on SLES15 SP1 it doesn't seem to work.
That's a rpm flag, but it's rpmlint that reports that error. You need to add a 'rpmlintrc' file that filters out this error. E.g. with the following content: addFilter('arch-independent-package-contains-binary-or-object') Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Mathias Radtke
-
Michael Schroeder