Control: tags 944764 + pending
Dear maintainer,
I've prepared an NMU for abcm2ps (versioned as 8.14.6-0.1) and
uploaded it to DELAYED/15. Please feel free to tell me if I
should delay it longer.
Regards.
diff -Nru abcm2ps-8.14.5/abcm2ps.h abcm2ps-8.14.6/abcm2ps.h
--- abcm2ps-8.14.5/abcm2ps.h 2019-07-17 09:44:10.000000000 +0200
+++ abcm2ps-8.14.6/abcm2ps.h 2019-11-05 14:02:00.000000000 +0100
@@ -529,7 +529,7 @@
int abc2pscompat, alignbars, aligncomposer, autoclef;
int barsperstaff, breakoneoln, bstemdown, cancelkey, capo;
int combinevoices, contbarnb, continueall, custos;
- int dblrepbar, decoerr, dynalign, flatbeams, infoline;
+ int dblrepbar, decoerr, dynalign, flatbeams, flatbeamgracing, infoline;
int gchordbox, graceslurs, graceword,gracespace, hyphencont;
int keywarn, landscape, linewarn;
int measurebox, measurefirst, measurenb, micronewps;
diff -Nru abcm2ps-8.14.5/abcparse.c abcm2ps-8.14.6/abcparse.c
--- abcm2ps-8.14.5/abcparse.c 2019-07-17 09:44:10.000000000 +0200
+++ abcm2ps-8.14.6/abcparse.c 2019-11-05 14:02:00.000000000 +0100
@@ -411,7 +411,7 @@
static char *parse_acc(char *p,
struct SYMBOL *s)
{
- int pit, acc;
+ int pit = 0, acc;
unsigned nacc;
nacc = 0;
@@ -559,7 +559,7 @@
}
if (middle) {
- int pit, acc, l;
+ int pit = 0, acc, l;
static const char line_tb[7] =
{ALTO, TREBLE, ALTO, BASS, ALTO, BASS, ALTO};
@@ -2299,7 +2299,7 @@
{
struct SYMBOL *s;
char *q;
- int pit, len, acc, nostem, chord, j, m, n;
+ int pit = 0, len, acc, nostem, chord, j, m, n;
if (flags & ABC_F_GRACE) { /* in a grace note sequence */
s = abc_new(ABC_T_NOTE, NULL);
diff -Nru abcm2ps-8.14.5/configure abcm2ps-8.14.6/configure
--- abcm2ps-8.14.5/configure 2019-07-17 09:44:10.000000000 +0200
+++ abcm2ps-8.14.6/configure 2019-11-05 14:02:00.000000000 +0100
@@ -1,8 +1,8 @@
#! /bin/sh
# (automatic update)
-VERSION=8.14.5
-VDATE=2019-07-17
+VERSION=8.14.6
+VDATE=2019-11-05
CC=gcc
CFLAGS="-g -O2 -Wall -pipe"
diff -Nru abcm2ps-8.14.5/debian/changelog abcm2ps-8.14.6/debian/changelog
--- abcm2ps-8.14.5/debian/changelog 2019-09-03 12:07:16.000000000 +0200
+++ abcm2ps-8.14.6/debian/changelog 2019-12-10 11:43:53.000000000 +0100
@@ -1,3 +1,15 @@
+abcm2ps (8.14.6-0.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * New upstream release closes: #944764.
+
+ [ Patrice Duroux <[email protected]> ]
+ * Add upstream/metadata.
+ * Simplify watch.
+ * Move to Standards-Version: 4.4.1.
+
+ -- Nicolas Boulenguez <[email protected]> Tue, 10 Dec 2019 11:43:53 +0100
+
abcm2ps (8.14.5-0.1) unstable; urgency=medium
* Non-maintainer upload.
diff -Nru abcm2ps-8.14.5/debian/control abcm2ps-8.14.6/debian/control
--- abcm2ps-8.14.5/debian/control 2019-09-03 11:56:53.000000000 +0200
+++ abcm2ps-8.14.6/debian/control 2019-12-10 11:43:53.000000000 +0100
@@ -8,7 +8,7 @@
libpango1.0-dev,
pkg-config,
python3-docutils,
-Standards-Version: 4.4.0
+Standards-Version: 4.4.1
Rules-Requires-Root: no
Homepage: http://moinejf.free.fr/
diff -Nru abcm2ps-8.14.5/debian/upstream/metadata abcm2ps-8.14.6/debian/upstream/metadata
--- abcm2ps-8.14.5/debian/upstream/metadata 1970-01-01 01:00:00.000000000 +0100
+++ abcm2ps-8.14.6/debian/upstream/metadata 2019-11-30 22:38:47.000000000 +0100
@@ -0,0 +1,5 @@
+Contact: [email protected]
+Name: abcm2ps
+Homepage: http://moinejf.free.fr/
+Repository: https://github.com/leesavide/abcm2ps.git
+Repository-Browse: https://github.com/leesavide/abcm2ps/
diff -Nru abcm2ps-8.14.5/debian/watch abcm2ps-8.14.6/debian/watch
--- abcm2ps-8.14.5/debian/watch 2019-09-03 11:55:32.000000000 +0200
+++ abcm2ps-8.14.6/debian/watch 2019-11-30 22:38:52.000000000 +0100
@@ -1,5 +1,2 @@
version=4
-
-opts=\
- filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/abcm2ps-$1\.tar\.gz/ \
-https://github.com/leesavide/abcm2ps/releases .*/v?(\d\S+)\.tar\.gz
+https://github.com/leesavide/@PACKAGE@/releases .*/v?@ANY_VERSION@@ARCHIVE_EXT@
diff -Nru abcm2ps-8.14.5/draw.c abcm2ps-8.14.6/draw.c
--- abcm2ps-8.14.5/draw.c 2019-07-17 09:44:10.000000000 +0200
+++ abcm2ps-8.14.6/draw.c 2019-11-05 14:02:00.000000000 +0100
@@ -304,6 +304,9 @@
/* if (nflags>1) b=b+2*stem;*/ /* leave a bit more room if several beams */
/* have flat beams when asked */
+ if ( cfmt.flatbeamgracing && s1->flags & ABC_F_GRACE)
+ a = 0;
+
if (cfmt.flatbeams) {
// if (!(s1->flags & ABC_F_GRACE))
// b = -11 + staff_tb[staff].y;
@@ -920,10 +923,11 @@
f = "ctsig";
l--;
}
- meter[0] = '\0';
- x -= 5;
- y += 12;
- break;
+ dx = (float) (13 * l);
+ putxy(x - 5 + dx * .5, y + 12);
+ a2b("%s\n", f);
+ x += dx;
+ continue;
case 'c':
if (s->u.meter.meter[i].top[1] != '.') {
f = "imsig";
@@ -2842,7 +2846,7 @@
break;
}
- ym += dy + 2;
+ ym += dy;
y1 = ym + a * (x1 - xm);
y2 = ym + a * (x2 - xm);
putxy(x2 - x1, y2 - y1);
@@ -2973,6 +2977,12 @@
putxy(xm, yy);
a2b("y%d bnumb\n", upstaff);
+ // let some room for the number
+ if (dir == SL_ABOVE)
+ y_set(upstaff, 1, xm - 3, 6, ym + 3);
+ else
+ y_set(upstaff, 0, xm - 3, 6, ym);
+
done:
s->sflags &= ~S_IN_TUPLET;
return next;
@@ -4164,7 +4174,7 @@
if (cfmt.measurenb >= 0)
draw_measnb();
-// draw_deco_note();
+ draw_deco_note();
for (p_voice = first_voice; p_voice; p_voice = p_voice->next) {
s = p_voice->sym;
@@ -4216,7 +4226,7 @@
}
}
set_color(0);
- draw_deco_note();
+// draw_deco_note();
draw_deco_staff();
set_sscale(-1); /* restore the scale parameters */
draw_all_lyrics();
diff -Nru abcm2ps-8.14.5/format.c abcm2ps-8.14.6/format.c
--- abcm2ps-8.14.5/format.c 2019-07-17 09:44:10.000000000 +0200
+++ abcm2ps-8.14.6/format.c 2019-11-05 14:02:00.000000000 +0100
@@ -68,6 +68,7 @@
{"footer", &cfmt.footer, FORMAT_S, 0},
{"footerfont", &cfmt.font_tb[FOOTERFONT], FORMAT_F, 0},
{"flatbeams", &cfmt.flatbeams, FORMAT_B, 0},
+ {"flatbeamgracing", &cfmt.flatbeamgracing, FORMAT_B, 0},
{"gchordbox", &cfmt.gchordbox, FORMAT_B, 0},
{"gchordfont", &cfmt.font_tb[GCHORDFONT], FORMAT_F, 3},
{"graceslurs", &cfmt.graceslurs, FORMAT_B, 0},
diff -Nru abcm2ps-8.14.5/glyph.c abcm2ps-8.14.6/glyph.c
--- abcm2ps-8.14.5/glyph.c 2019-07-17 09:44:10.000000000 +0200
+++ abcm2ps-8.14.6/glyph.c 2019-11-05 14:02:00.000000000 +0100
@@ -238,7 +238,7 @@
}
g1 = utf_1[i1];
if (!g1) {
- g1 = calloc(64, sizeof(char **));
+ g1 = calloc(64, sizeof(char *));
utf_1[i1] = g1;
}
if (i3 < 0) {
@@ -247,7 +247,7 @@
}
g = (char **) g1[i2];
if (!g) {
- g = calloc(64, sizeof(char **));
+ g = calloc(64, sizeof(char *));
g1[i2] = (char *) g;
}
if (i4 < 0) {
@@ -256,7 +256,7 @@
}
g1 = (char **) g[i3];
if (!g1) {
- g1 = calloc(64, sizeof(char **));
+ g1 = calloc(64, sizeof(char *));
g[i3] = (char *) g1;
}
g1[i4] = strdup(p);
diff -Nru abcm2ps-8.14.5/music.c abcm2ps-8.14.6/music.c
--- abcm2ps-8.14.5/music.c 2019-07-17 09:44:10.000000000 +0200
+++ abcm2ps-8.14.6/music.c 2019-11-05 14:02:00.000000000 +0100
@@ -462,11 +462,14 @@
for (m = nhd; m > 0; m--) {
if (s->u.note.notes[m].pit == s->u.note.notes[m - 1].pit
&& s->u.note.notes[m].acc == s->u.note.notes[m - 1].acc) {
- memmove(&s->u.note.notes[m - 1],
- &s->u.note.notes[m],
- sizeof s->u.note.notes[0]);
- memmove(&s->pits[m - 1], &s->pits[m],
- sizeof s->pits[0]);
+ i = nhd - m;
+ if (i > 0) {
+ memmove(&s->u.note.notes[m],
+ &s->u.note.notes[m + 1],
+ sizeof s->u.note.notes[0] * i);
+ memmove(&s->pits[m], &s->pits[m + 1],
+ sizeof s->pits[0] * i);
+ }
s->nhd = --nhd;
}
}
@@ -1141,8 +1144,8 @@
s->wl = xx;
break;
case BAR:
- if (s->sflags & S_NOREPBRA)
- break;
+// if (s->sflags & S_NOREPBRA)
+// break;
if (!(s->flags & ABC_F_INVIS)) {
int bar_type;
diff -Nru abcm2ps-8.14.5/parse.c abcm2ps-8.14.6/parse.c
--- abcm2ps-8.14.5/parse.c 2019-07-17 09:44:10.000000000 +0200
+++ abcm2ps-8.14.6/parse.c 2019-11-05 14:02:00.000000000 +0100
@@ -5203,7 +5203,8 @@
int job;
if (s->state == ABC_S_TUNE) {
- gen_ly(1);
+ if (!multicol_start)
+ gen_ly(1);
} else if (s->state == ABC_S_GLOBAL) {
if (epsf || !in_fname)
return s;
diff -Nru abcm2ps-8.14.5/svg.c abcm2ps-8.14.6/svg.c
--- abcm2ps-8.14.5/svg.c 2019-07-17 09:44:10.000000000 +0200
+++ abcm2ps-8.14.6/svg.c 2019-11-05 14:02:00.000000000 +0100
@@ -1072,7 +1072,6 @@
{
char *q, *r;
- q = p;
for (q = p; *p != '\0';) {
switch (*p++) {
case '<': r = "<"; break;
@@ -1151,11 +1150,11 @@
".stroke {stroke: currentColor; fill: none}\n"
"text{white-space: pre}\n";
static const char svg_font_style[] =
- ".music {font:24px music;\n"
+ ".music {font:24px %s;\n"
" fill: currentColor}\n";
static const char svg_font_style_url[] =
"@font-face {\n"
- " font-family:\"music\";\n"
+ " font-family:music;\n"
" src:%s}\n"
".music {font:24px music;\n"
" fill: currentColor}\n";
@@ -1168,7 +1167,7 @@
if (strchr(cfmt.musicfont, '('))
fprintf(fout, svg_font_style_url, cfmt.musicfont);
else
- fprintf(fout, svg_font_style);
+ fprintf(fout, svg_font_style, cfmt.musicfont);
}
fputs(svg_head2, fout);
}
@@ -2496,6 +2495,7 @@
gcur.font_n_old = gcur.font_n;
gcur.font_n = strdup(fontnames[n]);
gcur.font_s = h;
+ gold.font_n = NULL;
}
return;
}
@@ -2534,6 +2534,7 @@
free(gcur.font_n_old);
gcur.font_n_old = gcur.font_n;
gcur.font_n = s;
+ gold.font_n = NULL;
} else {
free(s);
}
@@ -3702,6 +3703,7 @@
gcur.font_n_old = gcur.font_n;
gcur.font_n = strdup(s);
gcur.font_s = h;
+ gold.font_n = NULL;
} else {
free(s);
}
@@ -4588,8 +4590,10 @@
memcpy(r, q, l);
r[l] = '\0';
e = elt_new();
- if (!e)
+ if (!e) {
+ free(r);
return;
+ }
e->type = STR;
e->u.s = (char *) r;
}