[Pkg-electronics-devel] ngspice in new

Carsten Schoenert c.schoenert at t-online.de
Sun Sep 16 10:44:35 BST 2018


Hello Gudjon,

Am 16.09.18 um 09:34 schrieb Gudjon I. Gudjonsson:
> Hi Carsten
> 
> I'm glad to see ngspice in new.

for over three months now.

> I downloaded the sources and tried to compile the package but I ran into problems.

Which sources?
Currently there is nothing for version 28 in the archive. So you should
take the git tree and start from here.
I likely use always git-buildpackage for all of my work and using gpb
makes it easy to rebuild the package on your own.

> $ gbp clone git at salsa.debian.org:electronics-team/ngspice.git
> $ cd ngspice
> $ git-pbuilder update
> $ gbp buildpackage -j4

...
> 1. The .png files are not created.
> I have not found a solution to that problem but I commented the doc out to build the package
> for myself.

Why you want to recreate the png files?
These files are licensed under CC-By-SA-4.0 and not based on svg files.

...
> 2. When I recompile the package, the packages are not cleaned.
> 
> Fix in rules file:
> override_dh_auto_clean:
> 	rm -rf debian/build
> 	rm -f doc/*.png
> 	rm -f doc/*/*.png
> 	rm -f doc/*.pdf doc/*.xhtml
> 	rm -f config.log
> 	rm -f config.status
> 	rm -f libtool
> 	rm -f ngspice.pc
> 	rm -f src/include/ngspice/config.h
> 	rm -f src/include/ngspice/stamp-h1
> 	rm -f src/xspice/icm/GNUmakefile
> 	rm -f src/xspice/icm/makedefs
> 	rm -f tests/xspice/digital/spinit
> 	find . -name Makefile -exec rm -vf {} \;

All this is not needed in my eyes, dh_clean is calling the clean target
anyway and all of the ngspice specific things you want to remove are
handled by this target.
Eventually we need to add an explicit make clean call on the folder
doc/. But the doc/ folder will be changed by upstream once again in
version 29. So currently I see no action needed here.

I see no problems to rebuild the whole package within the chroot after a
first run was successful.

> root at x260:/build/ngspice-28# make -f debian/rules clean
> root at x260:/build/ngspice-28# DEB_BUILD_OPTIONS=... make -f debian/rules binary


> I did not add this to the git tree because it deletes around 50 files that are in the git tree.
> 
> Can you please take a look?
> 
> Shall I post this to the electronics mailing list instead?

Added to your convenience.

-- 
Regards
Carsten Schoenert



More information about the Pkg-electronics-devel mailing list