r46346 - in /packages/ng-spice-rework/trunk/debian: changelog ngspice-doc.doc-base patches/02_fix_tcl_examples.patch patches/03_fix_compilation.patch rules
gudjon-guest at users.alioth.debian.org
gudjon-guest at users.alioth.debian.org
Sat Oct 19 20:13:00 UTC 2013
Author: gudjon-guest
Date: Sat Oct 19 20:12:59 2013
New Revision: 46346
URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=46346
Log:
* Remove part of patch, wish8.4 changed back to wish for tclspice examples
* Add patch 03_fix_compilation.patch
(Thanks to Robert Larice)
* Remove stripping of codemodel files
* Add -BLT and -ltcl8.6 to configure for tclspice.
Needed by libtclspice
Modified:
packages/ng-spice-rework/trunk/debian/changelog
packages/ng-spice-rework/trunk/debian/ngspice-doc.doc-base
packages/ng-spice-rework/trunk/debian/patches/02_fix_tcl_examples.patch
packages/ng-spice-rework/trunk/debian/patches/03_fix_compilation.patch
packages/ng-spice-rework/trunk/debian/rules
Modified: packages/ng-spice-rework/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-science/packages/ng-spice-rework/trunk/debian/changelog?rev=46346&op=diff
==============================================================================
--- packages/ng-spice-rework/trunk/debian/changelog (original)
+++ packages/ng-spice-rework/trunk/debian/changelog Sat Oct 19 20:12:59 2013
@@ -3,13 +3,17 @@
* New upstream release (Closes: #706821)
* Bump standards version to 3.9.4
* Make VCS field canonical
- * Add patch 03_fix_compilation.patch
* Change tcl version to 8.6
+ * Remove part of patch, wish8.4 changed back to wish for tclspice examples
* Add pdf manual
* Remove DM-upload line from control
+ * Add patch 03_fix_compilation.patch
+ (Thanks to Robert Larice)
+ * Remove stripping of codemodel files
+ * Add -BLT and -ltcl8.6 to configure for tclspice.
+ Needed by libtclspice
- -- Gudjon I. Gudjonsson <gudjon at gudjon.org> Sat, 28 Sep 2013 22:17:50 +0200
-
+ -- Gudjon I. Gudjonsson <gudjon at gudjon.org> Tue, 08 Oct 2013 21:40:10 +0200
ngspice (24-1) unstable; urgency=low
Modified: packages/ng-spice-rework/trunk/debian/ngspice-doc.doc-base
URL: http://svn.debian.org/wsvn/debian-science/packages/ng-spice-rework/trunk/debian/ngspice-doc.doc-base?rev=46346&op=diff
==============================================================================
--- packages/ng-spice-rework/trunk/debian/ngspice-doc.doc-base (original)
+++ packages/ng-spice-rework/trunk/debian/ngspice-doc.doc-base Sat Oct 19 20:12:59 2013
@@ -4,8 +4,8 @@
Abstract: NgSpice, a spice circuit simulator.
Section: Science/Electronics
-Format: postscript
-Files: /usr/share/doc/ngspice-doc/ngspice.ps.gz
+Format: PDF
+Files: /usr/share/doc/ngspice-doc/ngspice.pdf.gz
Format: HTML
Index: /usr/share/doc/ngspice-doc/html/manual.html
Modified: packages/ng-spice-rework/trunk/debian/patches/02_fix_tcl_examples.patch
URL: http://svn.debian.org/wsvn/debian-science/packages/ng-spice-rework/trunk/debian/patches/02_fix_tcl_examples.patch?rev=46346&op=diff
==============================================================================
--- packages/ng-spice-rework/trunk/debian/patches/02_fix_tcl_examples.patch (original)
+++ packages/ng-spice-rework/trunk/debian/patches/02_fix_tcl_examples.patch Sat Oct 19 20:12:59 2013
@@ -1,15 +1,8 @@
Change wish to wish8.4, other wish shells don't work.
Change search path of libspice.so to /usr/lib/tcltk/
-Index: ngspice-24/examples/tclspice/tcl-testbench1/tcl-testbench1.tcl
-===================================================================
---- ngspice-24.orig/examples/tclspice/tcl-testbench1/tcl-testbench1.tcl 2012-05-17 08:25:17.629265705 +0200
-+++ ngspice-24/examples/tclspice/tcl-testbench1/tcl-testbench1.tcl 2012-05-17 08:25:23.484220306 +0200
-@@ -1,11 +1,11 @@
- #!/bin/sh
- # WishFix \
-- exec wish -f "$0" ${1+"$@"}
-+ exec wish8.4 -f "$0" ${1+"$@"}
- ###
+--- a/examples/tclspice/tcl-testbench1/tcl-testbench1.tcl
++++ b/examples/tclspice/tcl-testbench1/tcl-testbench1.tcl
+@@ -5,7 +5,7 @@
# old name: analyse-20070504-0.tcl
package require BLT
@@ -18,15 +11,9 @@
# Test of virtual capacitore circuit
# Vary the control voltage and log the resulting capacitance
-Index: ngspice-24/examples/tclspice/tcl-testbench2/tcl-testbench2.tcl
-===================================================================
---- ngspice-24.orig/examples/tclspice/tcl-testbench2/tcl-testbench2.tcl 2012-05-17 08:25:17.629265705 +0200
-+++ ngspice-24/examples/tclspice/tcl-testbench2/tcl-testbench2.tcl 2012-05-17 08:25:23.484220306 +0200
-@@ -1,10 +1,10 @@
- #!/bin/sh
- # WishFix \
-- exec wish -f "$0" ${1+"$@"}
-+ exec wish8.4 -f "$0" ${1+"$@"}
+--- a/examples/tclspice/tcl-testbench2/tcl-testbench2.tcl
++++ b/examples/tclspice/tcl-testbench2/tcl-testbench2.tcl
+@@ -4,7 +4,7 @@
###
package require BLT
@@ -35,15 +22,9 @@
namespace import blt::*
wm title . "Vector Test script"
-Index: ngspice-24/examples/tclspice/tcl-testbench3/tcl-testbench3.tcl
-===================================================================
---- ngspice-24.orig/examples/tclspice/tcl-testbench3/tcl-testbench3.tcl 2012-05-17 08:25:17.629265705 +0200
-+++ ngspice-24/examples/tclspice/tcl-testbench3/tcl-testbench3.tcl 2012-05-17 08:25:23.484220306 +0200
-@@ -1,10 +1,10 @@
- #!/bin/sh
- # WishFix \
-- exec wish -f "$0" ${1+"$@"}
-+ exec wish8.4 -f "$0" ${1+"$@"}
+--- a/examples/tclspice/tcl-testbench3/tcl-testbench3.tcl
++++ b/examples/tclspice/tcl-testbench3/tcl-testbench3.tcl
+@@ -4,7 +4,7 @@
###
package require BLT
@@ -52,20 +33,8 @@
source differentiate.tcl
spice::codemodel ../../../src/xspice/icm/spice2poly/spice2poly.cm
proc temperatures_calc {temp_inf temp_sup points} {
-Index: ngspice-24/examples/tclspice/tcl-testbench4/tcl-testbench4.tcl
-===================================================================
---- ngspice-24.orig/examples/tclspice/tcl-testbench4/tcl-testbench4.tcl 2012-05-17 08:25:17.629265705 +0200
-+++ ngspice-24/examples/tclspice/tcl-testbench4/tcl-testbench4.tcl 2012-05-17 08:25:23.484220306 +0200
-@@ -1,4 +1,4 @@
- #!/bin/sh
- # WishFix \
-- exec wish vspicechart.tcl example.cir
-+ exec wish8.4 vspicechart.tcl example.cir
- ###
-Index: ngspice-24/examples/tclspice/tcl-testbench4/vspicechart.tcl
-===================================================================
---- ngspice-24.orig/examples/tclspice/tcl-testbench4/vspicechart.tcl 2012-05-17 08:25:17.629265705 +0200
-+++ ngspice-24/examples/tclspice/tcl-testbench4/vspicechart.tcl 2012-05-17 08:27:46.853892007 +0200
+--- a/examples/tclspice/tcl-testbench4/vspicechart.tcl
++++ b/examples/tclspice/tcl-testbench4/vspicechart.tcl
@@ -7,7 +7,7 @@
@@ -84,15 +53,9 @@
Blt_Crosshairs .f2.chart
Blt_ClosestPoint .f2.chart
Blt_PrintKey .f2.chart
-Index: ngspice-24/examples/tclspice/tcl/test_vectoblt.tcl
-===================================================================
---- ngspice-24.orig/examples/tclspice/tcl/test_vectoblt.tcl 2012-05-17 08:25:17.629265705 +0200
-+++ ngspice-24/examples/tclspice/tcl/test_vectoblt.tcl 2012-05-17 08:25:23.488222327 +0200
-@@ -1,10 +1,10 @@
- #!/bin/sh
- # WishFix \
-- exec wish -f "$0" ${1+"$@"}
-+ exec wish8.4 -f "$0" ${1+"$@"}
+--- a/examples/tclspice/tcl/test_vectoblt.tcl
++++ b/examples/tclspice/tcl/test_vectoblt.tcl
+@@ -4,7 +4,7 @@
###
package require BLT
Modified: packages/ng-spice-rework/trunk/debian/patches/03_fix_compilation.patch
URL: http://svn.debian.org/wsvn/debian-science/packages/ng-spice-rework/trunk/debian/patches/03_fix_compilation.patch?rev=46346&op=diff
==============================================================================
--- packages/ng-spice-rework/trunk/debian/patches/03_fix_compilation.patch (original)
+++ packages/ng-spice-rework/trunk/debian/patches/03_fix_compilation.patch Sat Oct 19 20:12:59 2013
@@ -1,6 +1,5 @@
-#Fix minor compilation errors
-#Well, in tclspice.c I am probably commenting out something important. Will
-# be sent to upstream.
+#Fix minor compilation errors + applying a patch to tclspice.c from Robert Larice (in
+# upstream team)
--- a/src/xspice/mif/mifgetmod.c
+++ b/src/xspice/mif/mifgetmod.c
@@ -224,7 +224,7 @@
@@ -25,21 +24,80 @@
}
--- a/src/tclspice.c
+++ b/src/tclspice.c
-@@ -1457,7 +1457,7 @@
+@@ -962,7 +962,7 @@
+ return TCL_ERROR;
+ }
+ for (v = pl->pl_dvecs; v; v = v->v_next)
+- if (!strcmp(v->v_name, name))
++ if (!strcmp(v->v_name, name)) {
+ if (index < v->v_length) {
+ Tcl_SetObjResult(interp, Tcl_NewDoubleObj((double) v->v_realdata[index]));
+ return TCL_OK;
+@@ -970,6 +970,7 @@
+ Tcl_SetResult(interp, "Bad index", TCL_STATIC);
+ return TCL_ERROR;
+ }
++ }
+
+ Tcl_SetResult(interp, "variable not found", TCL_STATIC);
+ return TCL_ERROR;
+@@ -1456,8 +1457,7 @@
+ if (argc == 2)
(ft_curckt->ci_ckt)->CKTdelta = atof(argv[1]);
- /*Ok, as log as string less than 200 chars*/
+- /*Ok, as log as string less than 200 chars*/
- sprintf(interp->result, "%G", (ft_curckt->ci_ckt)->CKTdelta);
-+ //sprintf(interp->result, "%G", (ft_curckt->ci_ckt)->CKTdelta);
++ Tcl_SetObjResult(interp, Tcl_NewDoubleObj((ft_curckt->ci_ckt)->CKTdelta));
return TCL_OK;
}
-@@ -1485,7 +1485,7 @@
+@@ -1484,8 +1484,7 @@
+ if (argc == 2)
job->TRANmaxStep = atof(argv[1]);
- /*Ok, as log as string less than 200 chars*/
+- /*Ok, as log as string less than 200 chars*/
- sprintf(interp->result, "%G", job->TRANmaxStep);
-+ //sprintf(interp->result, "%G", job->TRANmaxStep);
++ Tcl_SetObjResult(interp, Tcl_NewDoubleObj(job->TRANmaxStep));
return TCL_OK;
}
+@@ -1495,8 +1494,6 @@
+ get_initTime TCL_CMDPROCARGS(clientData, interp, argc, argv)
+ {
+ TRANan *job;
+- double itime;
+- char buf[128];
+ NG_IGNORE(argv);
+ NG_IGNORE(clientData);
+
+@@ -1510,9 +1507,7 @@
+ }
+
+ job = (TRANan*)(ft_curckt->ci_ckt)->CKTcurJob;
+- itime = job->TRANinitTime;
+- sprintf(buf, "%g", itime);
+- Tcl_SetResult(interp, buf, TCL_VOLATILE);
++ Tcl_SetObjResult(interp, Tcl_NewDoubleObj(job->TRANinitTime));
+ return TCL_OK;
+ }
+
+@@ -1522,8 +1517,6 @@
+ get_finalTime TCL_CMDPROCARGS(clientData, interp, argc, argv)
+ {
+ TRANan *job;
+- double ftime;
+- char buf[128];
+ NG_IGNORE(argv);
+ NG_IGNORE(clientData);
+
+@@ -1537,9 +1530,7 @@
+ }
+
+ job = (TRANan*)(ft_curckt->ci_ckt)->CKTcurJob;
+- ftime = job->TRANfinalTime;
+- sprintf(buf, "%g", ftime);
+- Tcl_SetResult(interp, buf, TCL_VOLATILE);
++ Tcl_SetObjResult(interp, Tcl_NewDoubleObj(job->TRANfinalTime));
+ return TCL_OK;
+ }
+
Modified: packages/ng-spice-rework/trunk/debian/rules
URL: http://svn.debian.org/wsvn/debian-science/packages/ng-spice-rework/trunk/debian/rules?rev=46346&op=diff
==============================================================================
--- packages/ng-spice-rework/trunk/debian/rules (original)
+++ packages/ng-spice-rework/trunk/debian/rules Sat Oct 19 20:12:59 2013
@@ -59,7 +59,8 @@
--disable-debug \
--disable-x \
--with-tcl=/usr/lib/tcl8.6 \
- CFLAGS="$(CFLAGS)")
+ CFLAGS="$(CFLAGS)" \
+ LDFLAGS="-lBLT -ltcl8.6")
touch $@
build: build-arch build-indep
@@ -102,11 +103,11 @@
# but the ngspice are the correct ones.
cd build/tclspice && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
cd build/ngspice && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
- # The code model files must be stripped
-ifneq ("nostrip","$(findstring nostrip,$(DEB_BUILD_OPTIONS))")
- strip $(CURDIR)/debian/tmp/usr/lib/ngspice/*.cm
- strip $(CURDIR)/debian/tmp/usr/lib/tcltk/ngspice/*.cm
-endif
+ # The code mode were stripped but change since version 25
+ #ifneq ("nostrip","$(findstring nostrip,$(DEB_BUILD_OPTIONS))")
+ #strip $(CURDIR)/debian/tmp/usr/lib/ngspice/*.cm
+ #strip $(CURDIR)/debian/tmp/usr/lib/tcltk/ngspice/*.cm
+ #endif
# Remove empty dirs:
find $(CURDIR)/debian/tclspice -type d -empty -delete
@@ -115,7 +116,7 @@
install-indep: build-indep
# Documentation for ngspice, the same as for tclspice
mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/ngspice-doc/html
- cp -a build/manual/manual.html.LyXconv/* \
+ cp -a $(CURDIR)/build/manual/manual.html.LyXconv/* \
$(CURDIR)/debian/tmp/usr/share/doc/ngspice-doc/html
install -o root -g root -m 644 build/manual/manual.ps \
$(CURDIR)/debian/tmp/usr/share/doc/ngspice-doc/ngspice.ps
@@ -161,7 +162,7 @@
"$(CURDIR)/debian/tclspice/usr/lib/tcltk/libspice.la"
dh_installman -a
dh_link -a
- dh_strip -a
+ dh_strip -a --exlude=.cm
dh_compress -a --exclude=.tcl --exclude=.cir
dh_fixperms -a
dh_installdeb -a
More information about the debian-science-commits
mailing list