aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/htslib-for-stringtie.patch
blob: 3e6cd5bb63edff12edc5e28153c623c16d0b12ce (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
These changes are commits d7e357946ead219b81cc1becbe0de8a99d96ca84 and
8ed0daa39bc662defa99507f926815431056543a in
https://github.com/samtools/htscodecs.  The stringtie package expects these
changes to have been applied.

diff -ru htslib-1.12/htscodecs/htscodecs/tokenise_name3.c stringtie-2.2.0/htslib/htscodecs/htscodecs/tokenise_name3.c
--- a/htscodecs/htscodecs/tokenise_name3.c	2021-02-22 13:07:06.000000000 +0100
+++ b/htscodecs/htscodecs/tokenise_name3.c	2021-12-04 19:27:39.000000000 +0100
@@ -211,7 +211,7 @@
 	if (!ctx) return NULL;
 	ctx->max_names = max_names;
 	pthread_setspecific(tok_key, ctx);
-    } else if (ctx->max_names < max_names) {
+    } else if (ctx->max_names < max_names+1) {
 	ctx = realloc(ctx, sizeof(*ctx) + ++max_names*sizeof(*ctx->lc));
 	if (!ctx) return NULL;
 	ctx->max_names = max_names;
@@ -1058,6 +1058,8 @@
 	tok = decode_token_type(ctx, ntok);
 	//fprintf(stderr, "Tok %d = %d\n", ntok, tok);
 
+	ctx->lc[cnum].last_ntok = 0;
+
 	switch (tok) {
 	case N_CHAR:
 	    if (len+1 >= name_len) return -1;
guix/commit/gnu/packages/glib.scm?id=b211cd6bacce04c61a8432bc123410144cb654cd'>gnu: perl-glib: Update to 1.3293....* gnu/packages/glib.scm (perl-glib): Update to 1.3293. Efraim Flashner 2023-04-21gnu: libsigc++-2: Remove patch-docbook-xml phase....* gnu/packages/glib.scm (libsigc++-2) [arguments]: Remove patch-docbook-xml phase. Remove trailing #t. Use gexps. Maxim Cournoyer 2023-04-21gnu: libsigc++: Remove patch-docbook-xml phase....* gnu/packages/glib.scm (libsigc++) [arguments]: Remove patch-docbook-xml phase. Remove trailing #t. Use gexps. [native-inputs]: Remove labels. Maxim Cournoyer 2023-04-21gnu: glib-with-documentation: Remove patch-docbook-xml phase....* gnu/packages/glib.scm (glib-with-documentation) [arguments]: Remove patch-docbook-xml phase. [native-inputs]: Use modify-inputs. Remove labels. Maxim Cournoyer 2023-01-30Merge remote-tracking branch 'origin/master' into core-updates... Conflicts: doc/guix.texi gnu/local.mk gnu/packages/admin.scm gnu/packages/base.scm gnu/packages/chromium.scm gnu/packages/compression.scm gnu/packages/databases.scm gnu/packages/diffoscope.scm gnu/packages/freedesktop.scm gnu/packages/gnome.scm gnu/packages/gnupg.scm gnu/packages/guile.scm gnu/packages/inkscape.scm gnu/packages/llvm.scm gnu/packages/openldap.scm gnu/packages/pciutils.scm gnu/packages/ruby.scm gnu/packages/samba.scm gnu/packages/sqlite.scm gnu/packages/statistics.scm gnu/packages/syndication.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/version-control.scm gnu/packages/xml.scm guix/build-system/copy.scm guix/scripts/home.scm Efraim Flashner