<?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>210904</bug_id>
          
          <creation_ts>2008-02-20 17:19 0000</creation_ts>
          <short_desc>&gt;=dev-lang/lua-5.1.3-r1 : sieve.lua test fails, patch provided</short_desc>
          <delta_ts>2008-05-16 16:14:30 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>2007.0</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>oli.huber@gmail.com</reporter>
          <assigned_to>mabi@gentoo.org</assigned_to>
          <cc>jer@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>oli.huber@gmail.com</who>
            <bug_when>2008-02-20 17:19:14 0000</bug_when>
            <thetext>the sieve test fail because math.mod seems to be depreciate : in src/luaconf.h : 
 /*
@@ LUA_COMPAT_MOD controls compatibility with old math.mod function.
** CHANGE it to undefined as soon as your programs use &apos;math.fmod&apos; or
** the new &apos;%&apos; operator instead of &apos;math.mod&apos;.
*/
#undef LUA_COMPAT_MOD

So I replace math.mod with math.fmod in the test.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>oli.huber@gmail.com</who>
            <bug_when>2008-02-20 17:21:00 0000</bug_when>
            <thetext>Created an attachment (id=144135)
replace math.mod with math.fmod in test/sieve.lua

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>oli.huber@gmail.com</who>
            <bug_when>2008-02-20 17:21:53 0000</bug_when>
            <thetext>Created an attachment (id=144136)
ebuild&apos;s diff

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>oli.huber@gmail.com</who>
            <bug_when>2008-02-21 19:41:27 0000</bug_when>
            <thetext>Created an attachment (id=144257)
lua.ebuild.patch

In fact we need to patch only if use=deprecated is not enable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2008-05-15 18:29:42 0000</bug_when>
            <thetext>It would also be nice if we got rid of the ridiculous &amp;&gt; /dev/null in src_test(). If anything you&apos;d want to _keep_ the output of a test, especially if it fails. Frankly, why anyone would ever put &amp;&gt; /dev/null in an ebuild is beyond me.

Changing the summary as this hasn&apos;t been fixed in -r2.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mabi@gentoo.org</who>
            <bug_when>2008-05-16 16:14:30 0000</bug_when>
            <thetext>Probably the &amp;&gt; /dev/null was introduced so the output looked nicer or whatever. I agree with you that it&apos;s silly, i removed it and included the patch for the test. Thanks Oliver!</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>144135</attachid>
            <date>2008-02-20 17:21 0000</date>
            <desc>replace math.mod with math.fmod in test/sieve.lua</desc>
            <filename>lua-5.1.3-test.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHRlc3Qvc2lldmUubHVhfgkyMDAyLTEwLTMxIDAzOjUyOjU4LjAwMDAwMDAwMCArMDEwMAor
KysgdGVzdC9zaWV2ZS5sdWEJMjAwOC0wMi0yMCAxNzo0NDoyMi40NjgyODExMjEgKzAxMDAKQEAg
LTE0LDcgKzE0LDcgQEAKICAgICB3aGlsZSAxIGRvCiAgICAgICBsb2NhbCBuID0gZygpCiAgICAg
ICBpZiBuID09IG5pbCB0aGVuIHJldHVybiBlbmQKLSAgICAgIGlmIG1hdGgubW9kKG4sIHApIH49
IDAgdGhlbiBjb3JvdXRpbmUueWllbGQobikgZW5kCisgICAgICBpZiBtYXRoLmZtb2QobiwgcCkg
fj0gMCB0aGVuIGNvcm91dGluZS55aWVsZChuKSBlbmQKICAgICBlbmQKICAgZW5kKQogZW5kCg==
</data>        

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>144136</attachid>
            <date>2008-02-20 17:21 0000</date>
            <desc>ebuild&apos;s diff</desc>
            <filename>lua.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC9wb3J0YWdlL3BvcnRhZ2UvZGV2LWxhbmcvbHVhL2x1YS01LjEuMy1yMS5lYnVpbGQJMjAw
OC0wMi0xOCAyMTozNTo0MS4wMDAwMDAwMDAgKzAxMDAKKysrIGx1YS01LjEuMy1yMS5lYnVpbGQJ
MjAwOC0wMi0yMCAxNzo1NzowMC4wMDAwMDAwMDAgKzAxMDAKQEAgLTIyLDYgKzIyLDcgQEAKIAog
CWVwYXRjaCAiJHtGSUxFU0RJUn0iLyR7UE59LSR7UEFUQ0hfUFZ9LW1ha2UucGF0Y2gKIAllcGF0
Y2ggIiR7RklMRVNESVJ9Ii8ke1BOfS0ke1BBVENIX1BWfS1tb2R1bGVfcGF0aHMucGF0Y2gKKwll
cGF0Y2ggIiR7RklMRVNESVJ9Ii8ke1B9LXRlc3QucGF0Y2gKIAogCUVQQVRDSF9TT1VSQ0U9IiR7
RklMRVNESVJ9LyR7UFZ9IiBFUEFUQ0hfU1VGRklYPSJ1cHN0cmVhbS5wYXRjaCIgZXBhdGNoCiAK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>144257</attachid>
            <date>2008-02-21 19:41 0000</date>
            <desc>lua.ebuild.patch</desc>
            <filename>lua.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvcG9ydGFnZS9kZXYtbGFuZy9sdWEvbHVhLTUuMS4zLXIxLmVidWlsZAkyMDA4LTAy
LTE4IDIxOjM1OjQxLjAwMDAwMDAwMCArMDEwMAorKysgbHVhLTUuMS4zLXIxLmVidWlsZAkyMDA4
LTAyLTIxIDIwOjM3OjAwLjAwMDAwMDAwMCArMDEwMApAQCAtMzIsNiArMzIsNyBAQAogCiAJaWYg
ISB1c2UgZGVwcmVjYXRlZCA7IHRoZW4KIAkJZXBhdGNoICIke0ZJTEVTRElSfSIvJHtQfS1kZXBy
ZWNhdGVkLnBhdGNoCisJCWVwYXRjaCAiJHtGSUxFU0RJUn0iLyR7UH0tdGVzdC5wYXRjaAogCWZp
CiAKIAlpZiAhIHVzZSByZWFkbGluZSA7IHRoZW4K
</data>        

          </attachment>
    </bug>

</bugzilla>