From 39fedd2ce8cffa7fc8870ad96921801c068b771014dff98285166cd1a2125873 Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Mon, 24 Sep 2018 09:37:13 +0000 Subject: [PATCH] - added correct link flags for perl bindings (bsc#1108671) * added correct linker search path in slurm-2.4.4-rpath.patch * perl:Switch is required by slurm torque wrappers OBS-URL: https://build.opensuse.org/package/show/network:cluster/slurm?expand=0&rev=70 --- slurm-2.4.4-rpath.patch | 4 ++-- slurm.changes | 7 +++++++ slurm.spec | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/slurm-2.4.4-rpath.patch b/slurm-2.4.4-rpath.patch index 8803cea..60e144f 100644 --- a/slurm-2.4.4-rpath.patch +++ b/slurm-2.4.4-rpath.patch @@ -6,7 +6,7 @@ diff -aruN slurm-2.4.4.orig/contribs/perlapi/libslurm/perl/Makefile.PL.in slurm- # flags so we have to add some :) my $os = lc(`uname`); -my $other_ld_flags = "-Wl,-rpath,@top_builddir@/src/api/.libs -Wl,-rpath,@prefix@/lib"; -+my $other_ld_flags = " "; ++my $other_ld_flags = "-L@top_builddir@/src/api/.libs -lslurm"; $other_ld_flags = " -brtl -G -bnoentry -bgcbypass:1000 -bexpfull" if $os =~ "aix"; @@ -27,7 +27,7 @@ diff -aruN slurm-2.4.4.orig/contribs/perlapi/libslurmdb/perl/Makefile.PL.in slur # flags so we have to add some :) my $os = lc(`uname`); -my $other_ld_flags = "-Wl,-rpath,@top_builddir@/src/db_api/.libs -Wl,-rpath,@prefix@/lib"; -+my $other_ld_flags = " "; ++my $other_ld_flags = "-L@top_builddir@/src/api/.libs -lslurm"; $other_ld_flags = " -brtl -G -bnoentry -bgcbypass:1000 -bexpfull" if $os =~ "aix"; diff --git a/slurm.changes b/slurm.changes index 788173e..56319d8 100644 --- a/slurm.changes +++ b/slurm.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Sep 24 09:25:57 UTC 2018 - cgoll@suse.com + +- added correct link flags for perl bindings (bsc#1108671) + * added correct linker search path in slurm-2.4.4-rpath.patch + * perl:Switch is required by slurm torque wrappers + ------------------------------------------------------------------- Sat Sep 22 06:09:18 UTC 2018 - eich@suse.com diff --git a/slurm.spec b/slurm.spec index 9bb7a1a..46954d4 100644 --- a/slurm.spec +++ b/slurm.spec @@ -235,6 +235,7 @@ This package contains the SLURM plugins (loadable shared objects) %package torque Summary: Wrappers for transitition from Torque/PBS to SLURM Group: Productivity/Clustering/Computing +Requires: perl-Switch Requires: perl-slurm = %{version} Provides: torque-client