Bug#562358: mlpost: FTBFS: mkdir -p img/ fails?
Stéphane Glondu a écrit :
> Lucas Nussbaum a écrit :
>> During a rebuild of all packages in sid, your package failed to build on
>> amd64.
>> [...]
>>> mkdir -p img/ && cd img/ && ../customdoc/img_doc.byte >> /dev/null && cd ..
>>> + mkdir -p img/ && cd img/ && ../customdoc/img_doc.byte >> /dev/null && cd ..
>>> Command exited with code 1.
>>> make[1]: *** [doc] Error 10
>
> The package builds fine in a clean squeeze chroot, but doesn't in sid. I
> am investigating.
This is because of mpost. With the attached file, mpost exists with code
1; however, I don't see any error:
root@korell:/tmp# mpost -interaction="nonstopmode" img_doc.mp end
This is MetaPost, version 1.208 (kpathsea version 5.0.0)
(./img_doc.mp (/usr/share/texmf/metapost/context/base/mp-tool.mp)
(/usr/share/texmf/metapost/context/base/mp-spec.mp) [19] [18] [17] [16] [15]
[14] [13] [12] [11] [10] [9] [8] [7] [6] [5] [4] [3] [2] [1])
(see the transcript file for additional information)
19 output files written: img_doc.1 .. img_doc.19
Transcript written on img_doc.log.
root@korell:/tmp# echo $?
1
The version in testing exits with code 0 on the same file.
Do texlive-metapost maintainers have a clue?
Cheers,
--
Stéphane
input mp-tool ; % some initializations and auxiliary macros
input mp-spec ; % macros that support special features
%redefinition
def doexternalfigure (expr filename) text transformation =
begingroup ; save p, t ; picture p ; transform t ;
p := nullpicture ; t := identity transformation ;
flush_special(10, 9,
dddecimal (xxpart t, yxpart t, xypart t) & " " &
dddecimal (yypart t, xpart t, ypart t) & " " & filename) ;
addto p contour unitsquare transformed t ;
setbounds p to unitsquare transformed t ;
_color_counter_ := _color_counter_ + 1 ;
draw p withcolor (_special_signal_/_special_div_,_color_counter_/_special_div_,_special_counter_/_special_div_) ;
endgroup ;
enddef ;
vardef reset_extra_specials =
enddef ;
tracingchoices := 1;
prologues := 0;
mpprocset := 0;
verbatimtex
%&latex
\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
etex
beginfig(19)
path pathb ;
pathb = ((0, 0) .. (40, 25));
numeric numb ;
numb = length (pathb);
numeric numc ;
numc = (1 * numb);
pair potb ;
potb = (point numc of (pathb));
pair potc ;
potc = (direction numc of (pathb));
numeric numd ;
numd = (xpart potc ++ ypart potc);
pair potd ;
potd = ((-1 * (4 * (if (numd = 0): 0 else: (1 / numd) fi))) * potc
);
pair pote ;
pote = (potb + (potd rotated 30));
pair potf ;
potf = (potb + (potd rotated -30)
);
draw ((pathb) shifted ((0 * (direction (0.5 * numb) of (pathb))) rotated 90
)) cutafter ((pote -- potf)) ;
fill pote -- potb --
potf -- cycle;
dotlabel.top(btex {\footnotesize pt} etex, (40, 25));
path pathc ;
pathc = (((4.5, -4.5) -- (4.5, 4.5) -- (-4.5, 4.5) -- (-4.5, -4.5
) -- cycle) shifted (0, 0)
);
draw pathc withcolor 0 * white ;
draw ((pathc) shifted (40, 25)) withcolor 0 * white ;
endfig;
beginfig(18)
picture picl, picb ;
picl = currentpicture;
currentpicture := nullpicture;
numeric nume ;
nume = (1 / numd);
pair potg ;
potg = ((-1 * (4 * (if (numd = 0): 0 else: nume fi))) * potc
);
pair poth ;
poth = (potb + (potg rotated 30));
pair poti ;
poti = (potb + (potg rotated -30)
);
path pathd ;
pathd = ((pathb) shifted ((0 * (direction (0.5 * numb) of (pathb))) rotated
90));
path pathe ;
pathe = pathd cutafter ((poth -- poti))
;
draw pathe;
path pathf ;
pathf = poth -- potb --
poti -- cycle;
fill pathf;
picture picc;
picc := btex {\footnotesize pt} etex;
dotlabel.top(picc, (40, 25));
picture picd;
picd := btex {\footnotesize (0,0)} etex;
dotlabel.bot(picd, (0, 0));
picb = currentpicture;
currentpicture := picl;
picture picm, pice ;
picm = currentpicture;
currentpicture := nullpicture;
draw pathe;
fill pathf;
dotlabel.top(picc, (40, 25));
dotlabel.bot(picd, (0, 0));
pice = currentpicture;
currentpicture := picm;
pair potj ;
potj = (urcorner pice);
pair potk ;
potk = ((0.5 * (llcorner picb)) + (0.5 * potj)
);
numeric numf ;
numf = ypart potk;
numeric numg ;
numg = (numf - numf
);
numeric numh ;
numh = xpart potk;
picture picn, picf ;
picn = currentpicture;
currentpicture := nullpicture;
draw pathe;
fill pathf;
dotlabel.top(picc, (40, 25));
dotlabel.bot(picd, (0, 0));
picf = currentpicture;
currentpicture := picn;
numeric numi ;
numi = max( 0, (xpart (potj - (ulcorner picf)) + 4)
);
numeric numj ;
numj = (numi / 2);
numeric numk ;
numk = (numh - numj
);
picture pico, picg ;
pico = currentpicture;
currentpicture := nullpicture;
draw pathe;
fill pathf;
dotlabel.top(picc, (40, 25));
dotlabel.bot(picd, (0, 0));
picg = currentpicture;
currentpicture := pico;
draw ((((picg) shifted (((numk + numj) - numh), numg))) shifted (0, (numf -
(numg + numf)))
);
picture picp, pich ;
picp = currentpicture;
currentpicture := nullpicture;
draw pathc withcolor 0 * white ;
path pathg ;
pathg = ((pathc) shifted (40, 25)
);
draw pathg withcolor 0 * white ;
pair potl ;
potl = ((-1 * (4 * (if (numd = 0): 0 else: nume fi))) * potc
);
pair potm ;
potm = (potb + (potl rotated 30));
pair potn ;
potn = (potb + (potl rotated -30)
);
path pathh ;
pathh = pathd cutafter ((potm -- potn))
;
draw pathh;
path pathi ;
pathi = potm -- potb --
potn -- cycle;
fill pathi;
pich = currentpicture;
currentpicture := picp;
picture picq, pici ;
picq = currentpicture;
currentpicture := nullpicture;
draw pathc withcolor 0 * white ;
draw pathg withcolor 0 * white ;
draw pathh;
fill pathi;
pici = currentpicture;
currentpicture := picq;
pair poto ;
poto = (urcorner pici);
pair potp ;
potp = ((0.5 * (llcorner pich)) + (0.5 * poto)
);
numeric numl ;
numl = ypart potp;
numeric numm ;
numm = (numl - numl
);
picture picr, picj ;
picr = currentpicture;
currentpicture := nullpicture;
draw pathc withcolor 0 * white ;
draw pathg withcolor 0 * white ;
draw pathh;
fill pathi;
picj = currentpicture;
currentpicture := picr;
picture pics, pick ;
pics = currentpicture;
currentpicture := nullpicture;
draw pathc withcolor 0 * white ;
draw pathg withcolor 0 * white ;
draw pathh;
fill pathi;
pick = currentpicture;
currentpicture := pics;
draw ((((pick) shifted ((((numk + numi) + (max( 0, (xpart (poto - (ulcorner
picj)) + 4)) / 2)) - xpart potp), numm))) shifted (0, (numf - (numm + numl)
)));
endfig;
beginfig(17)
picture picbc, pict ;
picbc = currentpicture;
currentpicture := nullpicture;
path pathj ;
pathj = ((0, 0) .. (10, 0));
numeric numn ;
numn = length (pathj);
numeric numo ;
numo = (1 * numn);
pair potq ;
potq = (point numo of (pathj));
pair potr ;
potr = (direction numo of (pathj));
numeric nump ;
nump = (xpart potr ++ ypart potr);
pair pots ;
pots = ((-1 * (4 * (if (nump = 0): 0 else: (1 / nump) fi))) * potr
);
pair pott ;
pott = (potq + (pots rotated 30));
pair potu ;
potu = (potq + (pots rotated -30));
pair potv ;
potv = (point 0 of (pathj));
pair potw ;
potw = (direction 0 of (pathj));
numeric numq ;
numq = (xpart potw ++ ypart potw);
pair potbb ;
potbb = ((-1 * (4 * (-1 * (if (numq = 0): 0 else: (1 / numq) fi)))) * potw
);
pair potbc ;
potbc = (potv + (potbb rotated 30));
pair potbd ;
potbd = (potv + (potbb rotated -30)
);
path pathk ;
pathk = ((pathj) shifted ((0 * (direction (0.5 * numn) of (pathj))) rotated
90)) cutbefore ((potbc -- potbd)) cutafter ((pott -- potu))
;
draw pathk;
path pathl ;
pathl = potbc -- potv --
potbd -- cycle;
fill pathl;
path pathm ;
pathm = pott -- potq --
potu -- cycle;
fill pathm;
pict = currentpicture;
currentpicture := picbc;
pair potbe ;
potbe = (llcorner pict
);
picture picbd, picu ;
picbd = currentpicture;
currentpicture := nullpicture;
draw pathk;
fill pathl;
fill pathm;
picu = currentpicture;
currentpicture := picbd;
pair potbf ;
potbf = (urcorner picu);
pair potbg ;
potbg = ((0.5 * (potbe rotated 90)) + (0.5 * (potbf rotated 90))
);
numeric numr ;
numr = ypart potbg;
numeric nums ;
nums = (numr - numr
);
numeric numt ;
numt = xpart potbg;
pair potbh ;
potbh = (0.5 * potbe);
pair potbi ;
potbi = (0.5 * potbf
);
picture picbe, picv ;
picbe = currentpicture;
currentpicture := nullpicture;
draw pathk;
fill pathl;
fill pathm;
picv = currentpicture;
currentpicture := picbe;
picture picbf, picw ;
picbf = currentpicture;
currentpicture := nullpicture;
draw pathk;
fill pathl;
fill pathm;
picw = currentpicture;
currentpicture := picbf;
numeric numu ;
numu = (0 - (1 * ypart (potbh + (potbi - (0, ((ypart (potbf - (lrcorner
picw)) + 4) / 2))))));
numeric numv ;
numv = ((0 - (1 * ypart (potbh + (potbi + (0, ((ypart (potbf - (lrcorner
picv)) + 4) / 2)))))) - numu);
numeric numw ;
numw = (numu - numu);
numeric numbb ;
numbb = max( 0, (max( numv, (0 - numv)) + max( numw, (0 - numw)))
);
numeric numbc ;
numbc = (numbb / 2);
numeric numbd ;
numbd = (numt - numbc
);
picture picbg, picbb ;
picbg = currentpicture;
currentpicture := nullpicture;
draw pathk;
fill pathl;
fill pathm;
picbb = currentpicture;
currentpicture := picbg;
draw ((((((picbb) rotated 90)) shifted (((numbd + numbc) - numt), nums)
)) shifted (0, (numr - (nums + numr)))
);
draw ((((pathc) shifted (((numbd + numbb) + 4.5), 0))) shifted (0, numr))
withcolor 0 * white ;
endfig;
beginfig(16)
draw ((((pathc) shifted (0, 0))) shifted (0, 0)) withcolor 0 * white ;
pair potbj ;
potbj = (potbh + potbi
);
numeric numbe ;
numbe = xpart potbj;
numeric numbf ;
numbf = (numbe - numbe
);
picture picbj, picbh ;
picbj = currentpicture;
currentpicture := nullpicture;
draw pathk;
fill pathl;
fill pathm;
picbh = currentpicture;
currentpicture := picbj;
numeric numbg ;
numbg = (ypart (potbf - (lrcorner picbh)) + 4
);
picture picbk, picbi ;
picbk = currentpicture;
currentpicture := nullpicture;
draw pathk;
fill pathl;
fill pathm;
picbi = currentpicture;
currentpicture := picbk;
draw ((((picbi) shifted (numbf, ((-4.5 - (max( 0, numbg) / 2)) -
ypart potbj)))) shifted ((0 - (numbf + numbe)), 0));
endfig;
beginfig(15)
draw pathc withcolor 0 * white ;
draw ((4.5, -4.5)) withpen pencircle scaled 4 ;
endfig;
beginfig(14)
draw pathc withcolor 0 * white ;
draw ((4.5, 4.5)) withpen pencircle scaled 4 ;
endfig;
beginfig(13)
draw pathc withcolor 0 * white ;
draw ((-4.5, -4.5)) withpen pencircle scaled 4 ;
endfig;
beginfig(12)
draw pathc withcolor 0 * white ;
draw ((-4.5, 4.5)) withpen pencircle scaled 4 ;
endfig;
beginfig(11)
draw pathc withcolor 0 * white ;
draw ((4.5, 0)) withpen pencircle scaled 4 ;
endfig;
beginfig(10)
draw pathc withcolor 0 * white ;
draw ((-4.5, 0)) withpen pencircle scaled 4 ;
endfig;
beginfig(9)
draw pathc withcolor 0 * white ;
draw ((0, -4.5)) withpen pencircle scaled 4 ;
endfig;
beginfig(8)
draw pathc withcolor 0 * white ;
draw ((0, 4.5)) withpen pencircle scaled 4 ;
endfig;
beginfig(7)
draw pathc withcolor 0 * white ;
draw ((0, 0)) withpen pencircle scaled 4 ;
endfig;
beginfig(6)
draw btex text etex;
endfig;
beginfig(5)
draw (((-1.43228, -4.5) .. (7, 2.76166) .. (-5.49639, 4.5) .. (-7, 1.72778
) .. cycle) shifted (0, 0)) withcolor 0 * white ;
endfig;
beginfig(4)
draw (((((9, 0){(0, 1)} ..controls (9, 2.20914) and (4.97056, 4) .. (0, 4
){(-1, 0)} ..controls (-4.97056, 4) and (-9, 2.20914) .. (-9, 0){(0, -1
)} ..controls (-9, -2.20914) and (-4.97056, -4) .. (0, -4){(1, 0)})
) ..controls (4.97056, -4) and (9, -2.20914) .. {(0, 1
)}cycle) shifted (0, 0)) withcolor 0 * white ;
endfig;
beginfig(3)
draw (((((-3.6, 4.5){(1, 0)} -- (3.6, 4.5){(1, 0)} ..controls (4.09706, 4.5
) and (4.5, 4.09706) .. (4.5, 3.6){(0, -1)} -- (4.5, -3.6){(0, -1
)} ..controls (4.5, -4.09706) and (4.09706, -4.5) .. (3.6, -4.5){(-1, 0
)} -- (-3.6, -4.5){(-1, 0)} ..controls (-4.09706, -4.5) and (-4.5,
-4.09706) .. (-4.5, -3.6){(0, 1)} -- (-4.5, 3.6){(0, 1)})
) ..controls (-4.5, 4.09706) and (-4.09706, 4.5) .. {(1, 0
)}cycle) shifted (0, 0)) withcolor 0 * white ;
endfig;
beginfig(2)
draw pathc withcolor 0 * white ;
endfig;
beginfig(1)
draw ((((fullcircle) scaled 9)) shifted (0, 0)) withcolor 0 * white ;
endfig;
Reply to: