Mail Archives: geda-help/2011/10/11/17:24:10
Op dinsdag 11-10-2011 om 15:56 uur [tijdzone -0400], schreef DJ Delorie:
> Try this patch:
>
> Author: DJ Delorie <dj AT delorie DOT com> 2011-08-25 01:57:08
> Committer: DJ Delorie <dj AT delorie DOT com> 2011-08-25 01:58:23
> Parent: a354691f7088c80077658c26268ccbcdfe69356f (Fix texinfo bug in report.c patch)
> Child: 12771c69eee43cd5f275a64a031f3947ab172d77 (Change Gtk layer_process() to use colors from Settings, not PCB)
> Branches: master, remotes/origin/master, remotes/origin/pcb-20110918
> Follows: pcb-20081128-base
> Precedes: pcb-20110918-RELEASE
>
> Fix File->Import for elements on back side.
>
> Mirror pasted footprints when replacing back-side elements. Also
> clear element cache when reloading the new footprint, to avoid getting a
> stale pointer.
>
> Closes-bug: lp-699331
>
> --------------------------------- src/action.c ---------------------------------
> index 93c17a2..20dbb0a 100644
> @@ -7082,6 +7082,8 @@ ActionElementList (int argc, char **argv, Coord x, Coord y)
>
> er = ElementOrientation (e);
> pe = PASTEBUFFER->Data->Element->data;
> + if (!FRONT (e))
> + MirrorElementCoordinates (PASTEBUFFER->Data, pe, pe->MarkY*2 - PCB->MaxHeight);
> pr = ElementOrientation (pe);
>
> mx = e->MarkX;
> @@ -7105,6 +7107,7 @@ ActionElementList (int argc, char **argv, Coord x, Coord y)
> }
>
> /* Now reload footprint */
> + element_cache = NULL;
> e = find_element_by_refdes (refdes);
>
> old = ChangeElementText (PCB, PCB->Data, e, NAMEONPCB_INDEX, strdup (refdes));
When I apply this to my 20100929 version of PCB, compilation fails:
...
TEXINPUTS=".:$TEXINPUTS" \
MAKEINFO='/bin/sh /home/richard/Downloads/pcb-20100929/pcb-20100929/missing --run makeinfo -I .' \
/usr/bin/texi2dvi --pdf --batch pcb.texi
This is pdfTeX, Version 3.141592-1.40.5 (Web2C 7.5.5)
entering extended mode
(./txiversion.tex
(/home/richard/Downloads/pcb-20100929/pcb-20100929/doc/texinfo.tex
Loading texinfo [version 2005-01-30.17]: Basics, pdf, fonts, page
headings,
tables, conditionals, indexing, sectioning, toc, environments,
! Font \circle=lcircle10 not loadable: Metric (TFM) file not found.
<to be read again>
\allocationnumber
\alloc@ ...ifnum \count 1#1 < #4\allocationnumber
=\count 1#1 \global
\advan...
l.4819 \newdimen\circthick
?
! Emergency stop.
<to be read again>
\allocationnumber
\alloc@ ...ifnum \count 1#1 < #4\allocationnumber
=\count 1#1 \global
\advan...
l.4819 \newdimen\circthick
No pages of output.
Transcript written on txiversion.log.
kpathsea: Running mktextfm lcircle10
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1;
nonstopmode; input lcircle10
This is METAFONT, Version 2.71828 (Web2C 7.5.5)
(/var/lib/texmf/source/jknappen/sauter/lcircle10.mf
(/usr/share/texmf/fonts/source/lh/base/fikparm.mf
(/usr/share/texmf/fonts/source/jknappen/ec/exbase.mf)
(/usr/share/texmf/fonts/source/lh/base/lcyrbeg.mf)
(/usr/share/texmf/fonts/source/lh/base/lkligtbl.mf)kpathsea: Running
mktexmf ecircle10
! I can't find file `ecircle10'.
<scantokens> input ecircle10
<to be read again>
;
use_driver->...#=pt#;pt#:=true_pt#;scantokens(ss);
pt#:=true_pt#;font_identif...
l.288 use_driver(fonteq)
;
Please type another input file name
! Emergency stop.
<scantokens> input ecircle10
<to be read again>
;
use_driver->...#=pt#;pt#:=true_pt#;scantokens(ss);
pt#:=true_pt#;font_identif...
l.288 use_driver(fonteq)
;
Transcript written on lcircle10.log.
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;
input lcircle10' failed.
kpathsea: Appending font creation commands to missfont.log.
/usr/bin/texi2dvi: texinfo.tex appears to be broken, quitting.
This results in Error 2.
But I think I worked around my original problem: I managed to load all
new elements in the freshly compiled lesstif version and save it, after
which I can load the file in the old PCB version and edit it without
problems.
As far as the latest git version is concerned: as soon as I have some
time on my hands, I'll muck out the PC, create backups and install a
more recent Linux version -- and then compiling and installing new stuff
shouldn't be much of a problem any more.
Thanks again for all your help,
Best regards,
Richard Rasker
- Raw text -