<?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>166897</bug_id>
          
          <creation_ts>2007-02-14 20:03 0000</creation_ts>
          <short_desc>sci-electronics/spice-3.5.5: when compilation fails, portage installs broken package</short_desc>
          <delta_ts>2007-03-12 18:38: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>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>david@watzke.cz</reporter>
          <assigned_to>sci-electronics@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>david@watzke.cz</who>
            <bug_when>2007-02-14 20:03:56 0000</bug_when>
            <thetext>When compilation of sci-electronics/spice-3.5.5 fails (*this* was someone&apos;s PEBKAC, so this is *not* the reason of this bug), portage installs broken package(!), because ./util/build won&apos;t exit with exit-status 1 even if it fails. I&apos;d recommend adding something like this:

|| die &quot;dobin failed&quot;

after dobin at least. Better would be fix the build-script, because it is broken, but I don&apos;t know how, so I can&apos;t help (yet).

You can also inherit fixheadtails eclass and run this after epatching:

ht_fix_file util/build

because it uses old head/tail syntax.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>calchan@gentoo.org</who>
            <bug_when>2007-03-12 18:38:42 0000</bug_when>
            <thetext>(In reply to comment #0)
[...]
&gt; I&apos;d recommend adding something like this:
&gt; 
&gt; || die &quot;dobin failed&quot;
&gt; 
&gt; after dobin at least. Better would be fix the build-script, because it is
&gt; broken, but I don&apos;t know how, so I can&apos;t help (yet).

Fixed, thanks.

&gt; You can also inherit fixheadtails eclass and run this after epatching:
&gt; 
&gt; ht_fix_file util/build
&gt; 
&gt; because it uses old head/tail syntax.

Fixed too, but using a simple sed instead. This way, if the fixheadtail eclass needs to be removed some day, this package won&apos;t be an issue.

Also, I have fixed some rather ugly issue with the mtime of the unpacked source directory which forced WORKDIR to be recreated each time you issue an &apos;ebuild &lt;command&gt;&apos;. What happens is that the files that were previously built are then missing from ${WORKDIR}, but the .compiled file is still there in ${PORTAGE_TMPDIR}/portage/${PF}, thus nothing is recompiled and installation fails. This may have been the root cause of your installation failure above if you installed using step-by-step ebuild commands instead of emerge.

By the way, do that &apos;someone&apos; a favor, and tell him/her to use gnucap, or at the very least ngspice, instead of ancient spice. ;o)

Thanks for your (interesting) bug report.
Denis.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>