public
Created

mlx4 SRPMS build problem

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
install -m 644 -D /tmp/MLNX_EN/SOURCES/mlx4_ib.conf /tmp/MLNX_EN/BUILDROOT/mellanox-mlnx-en-1.5.9-1.x86_64/etc/depmod.d/mlx4_ib.conf
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-python-bytecompile
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: mellanox-mlnx-en-doc-1.5.9-1.unsupported.x86_64
Finding Provides: /usr/lib/rpm/redhat/find-provides
Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires(postun): /bin/sh
Processing files: mellanox-mlnx-en-sources-1.5.9-1.unsupported.x86_64
Finding Provides: /usr/lib/rpm/redhat/find-provides
Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Processing files: mellanox-mlnx-en-utils-1.5.9-1.unsupported.x86_64
Finding Provides: /usr/lib/rpm/redhat/find-provides
Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Processing files: kmod-mellanox-mlnx-en-1.5.9-1.unsupported.x86_64
Finding Provides: /usr/lib/rpm/redhat/find-provides
error: line 197: Illegal char '(' in: - Modified spec file to conform to KMP specifications
 
error: Failed to find Provides:
Provides: kernel-modules >= 2.6.32-279.9.1.el6.x86_64 mellanox-mlnx-en-kmod = 1.5.9-1.unsupported modalias(pci:v000015B3d00001000sv*sd*bc*sc*i*) = 1.0-mlnx_ofed1.5.3
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(VersionedDependencies) <= 3.0.3-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires(post): /sbin/depmod /bin/sh
Requires(preun): /bin/sh
Requires(postun): /sbin/depmod /bin/sh
 
 
RPM build errors:
line 197: Illegal char '(' in: - Modified spec file to conform to KMP specifications
 
Failed to find Provides:

There is hack to solve this when installing with Scientific Linux.

Edit the provided install script to include the the correct output for rpm -qf /etc/issue for your particular binary compatible distro

you will a case statement in the install scrip and this fails if it doesn't recognize your distro

for example chang the lines:

        redhat-release-server-6Server-6.3*|centos-release-6-3*)
        distro=rhel6.3
        dist_rpm=rhel6u3

to:

        redhat-release-server-6Server-6.3*|centos-release-6-3*|sl-release-6.3*)
        distro=rhel6.3
        dist_rpm=rhel6u3

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.