The old rpmbuild does not define _udevrulesdir. Fixes: 4910f1eb752e ("rdma-ndd: add rdma-ndd from infiniband-diags") Signed-off-by: Jason Gunthorpe <jgunthorpe@xxxxxxxxxxxxxxxxxxxx> --- rdma-core.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rdma-core.spec b/rdma-core.spec index 2c595a1da07d02..8c0b50da7645ee 100644 --- a/rdma-core.spec +++ b/rdma-core.spec @@ -77,6 +77,13 @@ This is a simple example without the split sub packages to get things started. %define _rundir /var/run %endif +# New RPM defines _udevrulesdir, usually as /usr/lib/udev/rules.d +%if 0%{?_udevrulesdir:1} +%else +# This is the old path (eg for C6) +%define _udevrulesdir /lib/udev/rules.d +%endif + # Pass all of the rpm paths directly to GNUInstallDirs and our other defines. %cmake %{CMAKE_FLAGS} \ -DCMAKE_BUILD_TYPE=Release \ -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html