<?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>63697</bug_id>
          
          <creation_ts>2004-09-11 12:23 0000</creation_ts>
          <short_desc>flex-2.5.4a-r5 fails its testsuite</short_desc>
          <delta_ts>2004-11-09 21:44:53 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>Core system</component>
          <version>2004.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>robmoss@gentoo.org</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>robmoss@gentoo.org</who>
            <bug_when>2004-09-11 12:23:19 0000</bug_when>
            <thetext>&gt;&gt;&gt; Test phase [check]: sys-devel/flex-2.5.4a-r5
./flex -t -p  ./scan.l \
| sed s,\&quot;./scan.l\&quot;,\&quot;scan.l\&quot;, \
| diff scan.c -
14a15
&gt;
1482c1483
&lt;       register char *yy_cp, *yy_bp;
---
&gt;       register char *yy_cp = NULL, *yy_bp = NULL;
3312a3314
&gt;
make: *** [check] Error 1

!!! ERROR: sys-devel/flex-2.5.4a-r5 failed.
!!! Function src_test, Line 515, Exitcode 0
!!! Make check failed. See above for details.
!!! If you need support, post the topmost build error, NOT this status message.

This has been demonstrated on x86 with both gcc-3.4 and gcc-3.5.

I noted that there are four patches used in the ebuild. Applying them on their own, I get that flex-2.5.4-glibc22.patch gives the error:

./flex -t -p  ./scan.l \
| sed s,\&quot;./scan.l\&quot;,\&quot;scan.l\&quot;, \
| diff scan.c -
14a15
&gt;
3312a3314
&gt;
make: *** [check] Error 1

flex-2.5.4a-gcc3.patch gives a completed testsuite. The other gcc patch does not apply cleanly to clean sources (it depends on the first gcc patch), but when applied in this fashion, the testsuite also succeeds.

flex-2.5.4a-skel.patch gives:

./flex -t -p  ./scan.l \
| sed s,\&quot;./scan.l\&quot;,\&quot;scan.l\&quot;, \
| diff scan.c -
1483c1483
&lt;       register char *yy_cp, *yy_bp;
---
&gt;       register char *yy_cp = NULL, *yy_bp = NULL;
make: *** [check] Error 1

This is the original error. However, both patches appear to need fixing, or if this behaviour is now expected, as it would appear from the patch, then the testsuite also needs patching.

**********

NB: There is a better testsuite in there. The make target is &quot;bigcheck&quot;, and this passes, as it isn&apos;t quite so naive. The solution I would prefer is to use this testsuite by default instead. Fixing the ebuild is obvious so I won&apos;t bother with a patch - if someone okays me to fix this I&apos;ll commit it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robmoss@gentoo.org</who>
            <bug_when>2004-09-11 12:27:41 0000</bug_when>
            <thetext>Oh, go on then. Reassigning to base-system. Also...

src_test() {
    make bigcheck || die &quot;make bigcheck failed&quot;
}

Stick that in just before src_install.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robmoss@gentoo.org</who>
            <bug_when>2004-09-11 12:29:50 0000</bug_when>
            <thetext>Oops. Minor error. The glibc patch creates the first half of that error and the skel patch creates the latter half. Silly Rob.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robmoss@gentoo.org</who>
            <bug_when>2004-11-09 13:33:21 0000</bug_when>
            <thetext>Fixed in CVS.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-11-09 21:44:53 0000</bug_when>
            <thetext>thanks :)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>