Skip to content

Instantly share code, notes, and snippets.

@igable
Created October 17, 2012 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igable/3907955 to your computer and use it in GitHub Desktop.
Save igable/3907955 to your computer and use it in GitHub Desktop.
mlx4 SRPMS build problem
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:
@igable
Copy link
Author

igable commented Oct 17, 2012

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

@igable
Copy link
Author

igable commented Oct 17, 2012

here is the actual fixed file:
https://gist.github.com/3908289

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment