<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>106496</bug_id>
          
          <creation_ts>2005-09-19 02:31 0000</creation_ts>
          <short_desc>sci-electronics/ng-spice-rework-17 (version bump)</short_desc>
          <delta_ts>2006-04-10 12:33:42 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://ngspice.sourceforge.net/</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>calchan@gentoo.org</reporter>
          <assigned_to>plasmaroo@gentoo.org</assigned_to>
          <cc>info@maestroprogramador.com</cc>
    
    <cc>ludek.stepan@gmail.com</cc>
    
    <cc>sascha-gentoo-bugzilla@silbe.org</cc>
    
    <cc>sci@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>calchan@gentoo.org</who>
            <bug_when>2005-09-19 02:31:51 0000</bug_when>
            <thetext>Version rework-17 of ngspice was released on august 30th. Here is an ebuild for
it. Changelog compared to previous ebuild:
* revbumped to rework-17
* download location changed to sourceforge mirrors
* added sensitivity to &apos;debug&apos; and &apos;readline&apos; USE flags
* keyword ppc changed to ~ppc (so that it&apos;s unstable for all archictures until
it&apos;s confirmed OK)
* patch for gcc 3.4 no more needed</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>calchan@gentoo.org</who>
            <bug_when>2005-09-19 02:35:07 0000</bug_when>
            <thetext>Created an attachment (id=68798)
ng-spice-rework-17.ebuild
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>plasmaroo@gentoo.org</who>
            <bug_when>2005-12-28 04:33:09 0000</bug_when>
            <thetext>*** Bug 109851 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>plasmaroo@gentoo.org</who>
            <bug_when>2006-01-01 14:08:06 0000</bug_when>
            <thetext>debug and readline USE flags now in the -17 ebuild; thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ludek.stepan@gmail.com</who>
            <bug_when>2006-03-17 10:57:49 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; debug and readline USE flags now in the -17 ebuild; thanks!
&gt; 

Hello,

could anyone be so kind to add --enable-xspice config directive to the ebuild, please? I suggest adding USE flag for this. The xspice is important feature in my opinion and I believe users should be given an option whether they use xspice or not. There was also a discusion in ng-spice mailing list about enabling this feature as default. While many manufacturers provide only spice2 models (which use spice3-incompatible POLY() function) for their parts, the user needs to enable this feature if he is to use these models.

I offer this modification for the existing ebuild:
--- ng-spice-rework-17.ebuild.old       2006-03-17 19:55:06.000000000 +0100
+++ ng-spice-rework-17.ebuild   2006-03-17 19:37:53.000000000 +0100
@@ -10,13 +10,14 @@
 LICENSE=&quot;BSD GPL-2&quot;

 SLOT=&quot;0&quot;
-IUSE=&quot;readline debug&quot;
+IUSE=&quot;readline debug xspice&quot;
 KEYWORDS=&quot;~amd64 ~ppc ~x86&quot;

 DEPEND=&quot;readline? ( &gt;=sys-libs/readline-5.0 )&quot;

 src_compile() {
        econf \
+               $(use_enable xspice) \
                $(use_with debug) \
                $(use_with readline) || die &quot;econf failed&quot;
        emake || die &quot;emake failed&quot;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>plasmaroo@gentoo.org</who>
            <bug_when>2006-03-17 11:53:38 0000</bug_when>
            <thetext>Hi Ludek,

1) Does it need a USE flag? I have tclspice just enable xspice support by default; doesn&apos;t seem to cause problems. Does the xspice support cause conflicts with existing spice2?

2) If so, use.local.desc needs updating, does this sound reasonable:

--- use.local.desc      17 Mar 2006 16:04:55 -0000      1.1786
+++ use.local.desc      17 Mar 2006 19:51:33 -0000
@@ -1211,6 +1211,7 @@
 sci-chemistry/caver:pymol - Install the PyMol plugin
 sci-chemistry/eden:double-precision - more precise calculations at the expense of speed
 sci-chemistry/ghemical:mpqc - Use the MPQC package for quantum-mechanical calculations
+sci-electronics/ng-spice-rework:xspice - Enable extended SPICE3 features for code modelling and digital components
 sci-geosciences/gmt:gmtfull - Full resolution bathymetry database
 sci-geosciences/gmt:gmthigh - Adds high resolution bathymetry database
 sci-geosciences/gmt:gmtsuppl - Supplement functions for GMT

3) Ideally you should file a new bug or reopen, comments get lost sometimes on resolved bugs.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ludek.stepan@gmail.com</who>
            <bug_when>2006-03-17 12:56:17 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; 1) Does it need a USE flag? I have tclspice just enable xspice support by
&gt; default; doesn&apos;t seem to cause problems. Does the xspice support cause
&gt; conflicts with existing spice2?

Well, it doesn&apos;t need USE flag as long as it&apos;s enabled by default, but at this moment it&apos;s not. Anyway, following the &quot;gentoo&apos;s all about options&quot; philosophy, I think USE flag is ok for this. I don&apos;t know about any conflicts, but I did no checks. Perhaps somebody else can verify it. I can&apos;t install tclspice on amd64 (emerge error)  :( and spice doesn&apos;t work for me (bug #84034 )
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>calchan@gentoo.org</who>
            <bug_when>2006-03-17 13:31:07 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt; Well, it doesn&apos;t need USE flag as long as it&apos;s enabled by default, but at this
&gt; moment it&apos;s not. Anyway, following the &quot;gentoo&apos;s all about options&quot; philosophy,

If you really want xspice, you can always activate it like this :
EXTRA_ECONF=&quot;--enable-xspice&quot; emerge ng-spice-rework

Now, about having xpsice as a default is another story. I&apos;ve had bad experiences with it, but your mileage may (will) vary.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>plasmaroo@gentoo.org</who>
            <bug_when>2006-03-18 14:24:23 0000</bug_when>
            <thetext>Hrm, I noticed enabling xspice dumps a lot of debug output when starting ngspice, so the feature looks rather experimental...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>calchan@gentoo.org</who>
            <bug_when>2006-03-18 14:43:20 0000</bug_when>
            <thetext>(In reply to comment #8)
&gt; Hrm, I noticed enabling xspice dumps a lot of debug output when starting
&gt; ngspice, so the feature looks rather experimental...

True, plus doing a &apos;./configure --help&apos; shows --enable-xspice as being &quot;officially&quot; experimental.

Another feature that I can confirm breaks ng-spice under certain conditions is numparam. I tried to fix it, but gave up (you should just have a look at the code, for a good laugh). There were some allusions on the mailing list about rewriting it totally.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ludek.stepan@gmail.com</who>
            <bug_when>2006-03-19 02:01:30 0000</bug_when>
            <thetext>Ok, you are right. The xspice feature *is* quite experimental, but doesn&apos;t the whole package taste bit experimental? Although xspice can break things, it is important part and feature of the ngspice package and I believe it&apos;s useful for many people. At least for those who would like to use spice2 macromodels released by manufacturers, as these models often contain polynomial sources. I don&apos;t claim it should be enabled by default, but I think an USE flag is appropriate for this. EXTRA_ECONF=&quot;--enable-xspice&quot; does the job, but I wouldn&apos;t call it &quot;efficient&quot;. Aren&apos;t the USE flags designed for this? Oh come on, it can&apos;t be that hard to add it...

--- use.local.desc      17 Mar 2006 16:04:55 -0000      1.1786
+++ use.local.desc      17 Mar 2006 19:51:33 -0000
@@ -1211,6 +1211,7 @@
 sci-chemistry/caver:pymol - Install the PyMol plugin
 sci-chemistry/eden:double-precision - more precise calculations at the expense
of speed
 sci-chemistry/ghemical:mpqc - Use the MPQC package for quantum-mechanical
calculations
+sci-electronics/ng-spice-rework:xspice - Enable extended SPICE3 features for
code modelling and digital components (bug #106496)
 sci-geosciences/gmt:gmtfull - Full resolution bathymetry database
 sci-geosciences/gmt:gmthigh - Adds high resolution bathymetry database
 sci-geosciences/gmt:gmtsuppl - Supplement functions for GMT</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>calchan@gentoo.org</who>
            <bug_when>2006-04-07 14:44:58 0000</bug_when>
            <thetext>(In reply to comment #10)
&gt; Ok, you are right. The xspice feature *is* quite experimental, but doesn&apos;t the
&gt; whole package taste bit experimental? Although xspice can break things, it is
&gt; important part and feature of the ngspice package and I believe it&apos;s useful for
&gt; many people. At least for those who would like to use spice2 macromodels
&gt; released by manufacturers, as these models often contain polynomial sources. I
&gt; don&apos;t claim it should be enabled by default, but I think an USE flag is
&gt; appropriate for this. EXTRA_ECONF=&quot;--enable-xspice&quot; does the job, but I
&gt; wouldn&apos;t call it &quot;efficient&quot;. Aren&apos;t the USE flags designed for this? Oh come
&gt; on, it can&apos;t be that hard to add it...
&gt; 
&gt; --- use.local.desc      17 Mar 2006 16:04:55 -0000      1.1786
&gt; +++ use.local.desc      17 Mar 2006 19:51:33 -0000
&gt; @@ -1211,6 +1211,7 @@
&gt;  sci-chemistry/caver:pymol - Install the PyMol plugin
&gt;  sci-chemistry/eden:double-precision - more precise calculations at the expense
&gt; of speed
&gt;  sci-chemistry/ghemical:mpqc - Use the MPQC package for quantum-mechanical
&gt; calculations
&gt; +sci-electronics/ng-spice-rework:xspice - Enable extended SPICE3 features for
&gt; code modelling and digital components (bug #106496)
&gt;  sci-geosciences/gmt:gmtfull - Full resolution bathymetry database
&gt;  sci-geosciences/gmt:gmthigh - Adds high resolution bathymetry database
&gt;  sci-geosciences/gmt:gmtsuppl - Supplement functions for GMT
&gt; 

When I wrote &apos;experimental&apos; about xspice above, it meant it is actually broken, only in mild language. You can find hints of this on the ng-spice mailing lists, and I have personnally  experienced it (and with fairly simple models, even). So, since it is broken for at least a few of us, it means it isn&apos;t ready for prime time yet.

However, feel free to compile it in, and report bugs upstream if you find any.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ludek.stepan@gmail.com</who>
            <bug_when>2006-04-09 08:07:43 0000</bug_when>
            <thetext>(In reply to comment #11)
&gt; When I wrote &apos;experimental&apos; about xspice above, it meant it is actually broken,
&gt; only in mild language. You can find hints of this on the ng-spice mailing
&gt; lists, and I have personnally  experienced it (and with fairly simple models,
&gt; even). So, since it is broken for at least a few of us, it means it isn&apos;t ready
&gt; for prime time yet.
&gt; 
&gt; However, feel free to compile it in, and report bugs upstream if you find any.
&gt; 

Ok, no problem for me :) So this bug shell be marked WON&apos;T or CLOSED respectively?

Yours Ludek</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>plasmaroo@gentoo.org</who>
            <bug_when>2006-04-10 12:33:42 0000</bug_when>
            <thetext>(In reply to comment #12)
&gt; Ok, no problem for me :) So this bug shell be marked WON&apos;T or CLOSED
&gt; respectively?

Guess so. If you think the situation has changed in future releases and it feels stable enough please let us know. Thanks!</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>68798</attachid>
            <date>2005-09-19 02:35 0000</date>
            <desc>ng-spice-rework-17.ebuild</desc>
            <filename>ng-spice-rework-17.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA1IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6ICQKCmluaGVyaXQgZXV0aWxzCgpERVNDUklQVElPTj0iTkdTcGljZSAtIFRoZSBOZXh0IEdl
bmVyYXRpb24gU3BpY2UgKENpcmN1aXQgRW11bGF0b3IpIgpTUkNfVVJJPSJtaXJyb3I6Ly9zb3Vy
Y2Vmb3JnZS9uZ3NwaWNlLyR7UH0udGFyLmd6IgpIT01FUEFHRT0iaHR0cDovL25nc3BpY2Uuc291
cmNlZm9yZ2UubmV0IgoKU0xPVD0iMCIKSVVTRT0iZGVidWcgcmVhZG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