Skip to content

Commit

Permalink
Added patch to revert non NULL terminated string support to that of b…
Browse files Browse the repository at this point in the history
…abeltrace 1 (see: efficios/babeltrace#114).
  • Loading branch information
Kerilk committed Apr 15, 2021
1 parent 5095e4e commit 75b318e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions var/spack/repos/builtin/packages/babeltrace2/d2d2e6cc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- a/src/plugins/ctf/common/msg-iter/msg-iter.c 2021-02-10 00:13:50.634356354 +0000
+++ b/src/plugins/ctf/common/msg-iter/msg-iter.c 2021-02-10 00:14:14.990009271 +0000
@@ -2049,11 +2049,6 @@
goto end;
}

- if (value == 0) {
- msg_it->done_filling_string = true;
- goto end;
- }
-
string_field = stack_top(msg_it->stack)->base;
BT_ASSERT_DBG(bt_field_get_class_type(string_field) ==
BT_FIELD_CLASS_TYPE_STRING);
2 changes: 2 additions & 0 deletions var/spack/repos/builtin/packages/babeltrace2/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class Babeltrace2(AutotoolsPackage):
depends_on('python', when='+python')
depends_on('swig', when='+python')

patch('d2d2e6cc.patch')

def configure_args(self):
args = []
if '+python' in self.spec:
Expand Down

0 comments on commit 75b318e

Please sign in to comment.