Mailing list archives : pcb-rnd

ID:1143
From:miloh <fr...@gmail.com>
Date:Wed, 27 Dec 2017 19:05:53 -0800
Subject:Re: [pcb-rnd] layers in lesstif
in-reply-to:1139 from ka...@aspodata.se
On Wed, Dec 27, 2017 at 1:13 PM,  <karl@aspodata.se> wrote:
> Karl:
> ...
>> $ svn up -r1000
>> U    src/copy.h
>> svn: Failed to add directory 'src/pcb-mincut': a versioned directory of =
the same name already exists
>> $
>>
>> maybe there is a better way to check out old releases ?
>
> Found som book about svn on the net:
>  http://svnbook.red-bean.com/en/1.7/svn-book.pdf
> p.40 said I should use this syntax:
>
> with svn co svn://repo.hu/pcb-rnd/trunk@1000 trunk-1000
> I could get r1000, but:
>
> $ cd trunk-1000/
> $ ./configure
> cc -Wall -g -DGENCALL -Isrc  -DPLUGIN_SCRIPTS   -I/tmpasm -I/generator -D=
PLUGIN_C99 -DPLUGIN_PARSGEN -DPLUGIN_MATH   -DPLUGIN_GUI  -DPLUGIN_SUL -Isr=
c/default   -c -o src/util/arg_auto_set.o src/util/arg_auto_set.c
> cc -Wall -g -DGENCALL -Isrc  -DPLUGIN_SCRIPTS   -I/tmpasm -I/generator -D=
PLUGIN_C99 -DPLUGIN_PARSGEN -DPLUGIN_MATH   -DPLUGIN_GUI  -DPLUGIN_SUL -Isr=
c/default   -c -o hooks.o hooks.c
> hooks.c:8:20: fatal error: tmpasm.h: No such file or directory
> compilation terminated.
> make: *** [hooks.o] Error 1
> ./configure: line 4: ./configure: No such file or directory
> $ find . -type f -name tmpasm.h
> ./scconfig/src/tmpasm/tmpasm.h
> $
>
 
For this particular errror, it looks like revision 2218 provided a fix
for configuration...
from within my pre 1.1.0 tagged checkouts, scconfig/Makefile needs a
minor edit for the ./configure script to work:
 
Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- Makefile    (revision 13674)
+++ Makefile    (working copy)
@@ -1,5 +1,8 @@
 # --- configuration part --
 
+SRC=3Dsrc
+BIN=3Dsrc
+
 # - generic configuration -
 #  what cflags to use to compile scconfig
 USER_CFLAGS =3D -Wall -g -DGENCALL -Isrc
 
 
 
 
> In svn co svn://repo.hu/pcb-rnd/trunk@4000 trunk-4000
> configure works, but
>
> $ make
> cd src && make
> make[1]: Entering directory `/Net/svn/test/trunk-4000/src'
> make revcheck
> make[2]: Entering directory `/Net/svn/test/trunk-4000/src'
> cd ../scconfig && ./revtest Rev.stamp < Rev.tab
> make[2]: Leaving directory `/Net/svn/test/trunk-4000/src'
> make all_exe
> make[2]: Entering directory `/Net/svn/test/trunk-4000/src'
> make[2]: *** No rule to make target `../src_3rd/liblihata/genht/ht.h', ne=
eded by `action_helper.o'.  Stop.
> make[2]: Leaving directory `/Net/svn/test/trunk-4000/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/Net/svn/test/trunk-4000/src'
> make: *** [all] Error 2
> $
>
> basically the same with r10000.
>
 
Try cd'ing into src/3rd, see if any files are checked out, and run svn
up to update the 3rd party files. I don't know for sure why this
works, but the externals definitions may be off for certain older
commits of pcb-rnd?
 
When compiling old versions of pcb-rnd on my new debian install, I
found that I needed flex and bison to compile older versions of
pcb-rnd, I guess that requirement was dropped somewhere along the way!
Note if you try to compile without flex and bison, that some scripts
may create directories that will need to be found and manually rm'd.
Or you can just make a new checkout, but be sure to update the
scconfig/Makefile.
 
 
-rma
 
 
 
> ///
>
> So, what about the externals, e.g. scconfig:
>
> for r10000 I get
> A    trunk-10000/scconfig/src/tty/find_pty.c
> Checked out external at revision 1241.
>
> for r1000 I get
> A    trunk-1000/scconfig/src/tty/find_gpm.c
> Checked out external at revision 1241.
>
> i.e. the same version. Looking at the log, the last thing in r1000
> is 2016-02-14:
>
> $ svn log | head -2
> ------------------------------------------------------------------------
> r1000 | igor2 | 2016-02-14 07:00:28 +0100 (Sun, 14 Feb 2016) | 2 lines
>
>
> But in scconfigs own svn log I get the latest for the same date to be:
> ------------------------------------------------------------------------
> r962 | igor2 | 2016-02-14 18:01:22 +0100 (Sun, 14 Feb 2016) | 2 lines
>
> [menulib] -Fix: menu, rl and text are actually included and won't have th=
eir own .o
>
> So how do I get a correct snapshot of an old version in svn, inclusive
> the externals ?
>
> Regards,
> /Karl Hammar
>
> -----------------------------------------------------------------------
> Asp=C3=B6 Data
> Lilla Asp=C3=B6 148
> S-742 94 =C3=96sthammar
> Sweden
> +46 173 140 57
>
>
>
>
 

Reply subtree:
1143 Re: [pcb-rnd] layers in lesstif from miloh <fr...@gmail.com>