<?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>159498</bug_id>
          
          <creation_ts>2006-12-30 10:45 0000</creation_ts>
          <short_desc>media-libs/xvid-1.1.0-r3 build fail with dev-lang/yasm-0.5.0</short_desc>
          <delta_ts>2007-01-27 11:09:31 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>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>palglowr@gmail.com</reporter>
          <assigned_to>media-video@gentoo.org</assigned_to>
          <cc>amd64@gentoo.org</cc>
    
    <cc>davidepesa@gmail.com</cc>
    
    <cc>kugelfang@gentoo.org</cc>
    
    <cc>mkashouty@gmail.com</cc>
    
    <cc>vapier@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>palglowr@gmail.com</who>
            <bug_when>2006-12-30 10:45:48 0000</bug_when>
            <thetext>xvid configure script prefer to use yasm than nasm.
if yasm and nasm installed on system, configure select yasm.

apply xvid-1.1.0-noexec-stack.patch spawn failur compiling at asm code on x86 system at least for x86 (i686-pc-linux-gnu).
becaue this patch include incompatible with yasm on x86 code.

In contrast, build succeed while taking off this patch.

...Error log...
  C: utils/mem_transfer.c
  C: utils/timer.c
  A: bitstream/x86_asm/cbp_3dne.asm
../../src/bitstream/x86_asm/cbp_3dne.asm:130: invalid argument to [SECTION]
../../src/bitstream/x86_asm/cbp_3dne.asm:130: undefined symbol `.note.GNU&apos; (first use)
../../src/bitstream/x86_asm/cbp_3dne.asm:130: undefined symbol `stack&apos; (first use)
../../src/bitstream/x86_asm/cbp_3dne.asm:130:  (Each undefined symbol is reported only once.)
make: *** [bitstream/x86_asm/cbp_3dne.o] Error 1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>palglowr@gmail.com</who>
            <bug_when>2006-12-31 11:49:30 0000</bug_when>
            <thetext>oops, i confirmed success compiling with yasm-0.5.0_rc1.
is there something wrong in yasm or does yasm get newer incompatibly?

it also occured in libsdl.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-01-24 07:35:20 0000</bug_when>
            <thetext>amd64 and/or Kugelfang, could you please take a look too at this problem?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aballier@gentoo.org</who>
            <bug_when>2007-01-26 08:10:16 0000</bug_when>
            <thetext>*** Bug 163750 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aballier@gentoo.org</who>
            <bug_when>2007-01-26 08:13:15 0000</bug_when>
            <thetext>This still applies to xvid 1.1.2 and is due to the execstack patch.
Is that a regression in yasm or is the patch using a deprecated syntax ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-01-26 08:14:11 0000</bug_when>
            <thetext>if you quote the section name, it should work in both nasm and yasm

 %ifidn __OUTPUT_FORMAT__,elf
-section .note.GNU-stack noalloc noexec nowrite progbits
+section &quot;.note.GNU-stack&quot; noalloc noexec nowrite progbits
 %endif

the latest version of yasm in svn doesnt suck and supports section names like this without quotes, but that isnt released so just quote it for now</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aballier@gentoo.org</who>
            <bug_when>2007-01-26 10:37:49 0000</bug_when>
            <thetext>Thanks for the heads up.

vapier (and/or others) : could you please update the patch then for xvid-1.1.2 (adding a new bziped patch named with -1.1.2 replacing the current one should avoid md5 problems).
yasm 0.5.0 is in ~arch so leaving 1.1.0-r3 as is shouldn&apos;t be a problem for now.

I&apos;d have done this myself but I&apos;m at work right now and I&apos;ll be away for the week end. I&apos;ll do it on monday if this is not fixed yet at that time.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-01-26 11:08:57 0000</bug_when>
            <thetext>erm, i dont see what yasm status has to do with this ... no yasm release has ever support non-ascii chars in section names without quoting

so we need to update all xvid ebuilds as this failure should [in theory] happen whenever user has yasm installed on x86</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-01-27 11:09:31 0000</bug_when>
            <thetext>ive fixed 1.1.0-r3 and 1.1.2 since that covers the latest amd64/x86 stable/unstable</thetext>
          </long_desc>
      
    </bug>

</bugzilla>