From f6116d2b485935aa9fd7de07dfca6d651865ee8e Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Mon, 18 Aug 2014 13:23:30 +0300 Subject: [PATCH] install.pl: Fix ibutils configuration parameters on SLES12 Signed-off-by: Vladimir Sokolovsky --- install.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.pl b/install.pl index 50730c0..1fe7080 100755 --- a/install.pl +++ b/install.pl @@ -3323,6 +3323,11 @@ sub build_rpm # Prefix should be defined per package if ($parent eq "ibutils") { $packages_info{'ibutils'}{'configure_options'} .= " --with-osm=$prefix"; + if ($DISTRO =~ m/SLES12/) { + my $tklib = `/bin/ls -1d /usr/lib*/tcl/tk8.6 2> /dev/null | head -1`; + chomp $tklib; + $packages_info{'ibutils'}{'configure_options'} .= " --with-tk-lib=$tklib" if ($tklib); + } $cmd .= " --define '_prefix $prefix'"; $cmd .= " --define '_exec_prefix $prefix'"; $cmd .= " --define '_sysconfdir $sysconfdir'"; -- 2.41.0