1 |
commit: d6f144825d2c355ac84e6d24631d170a8502f064 |
2 |
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 21 19:31:11 2017 +0000 |
4 |
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 21 19:31:50 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6f14482 |
7 |
|
8 |
sys-cluster/torque-6.0.3: fix an empty-string comparison error |
9 |
|
10 |
Bug: http://bugs.gentoo.org/638346 |
11 |
Package-Manager: Portage-2.3.13, Repoman-2.3.3 |
12 |
|
13 |
.../torque-6.0.3-fix-emptystring-comparison.patch | 21 +++++++++++++++++++++ |
14 |
sys-cluster/torque/torque-6.0.3.ebuild | 1 + |
15 |
2 files changed, 22 insertions(+) |
16 |
|
17 |
diff --git a/sys-cluster/torque/files/torque-6.0.3-fix-emptystring-comparison.patch b/sys-cluster/torque/files/torque-6.0.3-fix-emptystring-comparison.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..0666eda1593 |
20 |
--- /dev/null |
21 |
+++ b/sys-cluster/torque/files/torque-6.0.3-fix-emptystring-comparison.patch |
22 |
@@ -0,0 +1,21 @@ |
23 |
+--- a/src/lib/Libattr/req.cpp 2017-01-24 18:35:27.000000000 -0500 |
24 |
++++ b/src/lib/Libattr/req.cpp 2017-11-21 13:40:27.201964749 -0500 |
25 |
+@@ -1037,17 +1037,17 @@ |
26 |
+ error = "Bad tasks value: '"; |
27 |
+ error += submission_str; |
28 |
+ error += "'"; |
29 |
+ return(PBSE_BAD_PARAMETER); |
30 |
+ } |
31 |
+ |
32 |
+ if (*current == ':') |
33 |
+ current++; |
34 |
+- else if (current != '\0') |
35 |
++ else if (*current != '\0') |
36 |
+ { |
37 |
+ error = "Invalid task specification"; |
38 |
+ return(PBSE_BAD_PARAMETER); |
39 |
+ } |
40 |
+ |
41 |
+ while ((current != NULL) && |
42 |
+ (*current != '\0')) |
43 |
+ { |
44 |
|
45 |
diff --git a/sys-cluster/torque/torque-6.0.3.ebuild b/sys-cluster/torque/torque-6.0.3.ebuild |
46 |
index 74409b48eef..ec9563e95bf 100644 |
47 |
--- a/sys-cluster/torque/torque-6.0.3.ebuild |
48 |
+++ b/sys-cluster/torque/torque-6.0.3.ebuild |
49 |
@@ -81,6 +81,7 @@ pkg_setup() { |
50 |
} |
51 |
|
52 |
src_prepare() { |
53 |
+ epatch "${FILESDIR}"/${P}-fix-emptystring-comparison.patch |
54 |
# We install to a valid location, no need to muck with ld.so.conf |
55 |
# --without-loadlibfile is supposed to do this for us... |
56 |
sed -i '/mk_default_ld_lib_file || return 1/d' buildutils/pbs_mkdirs.in || die |