<?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>163567</bug_id>
          
          <creation_ts>2007-01-24 10:03 0000</creation_ts>
          <short_desc>dev-util/nsis: patch for amd64 platforms</short_desc>
          <delta_ts>2007-01-27 22:31:49 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>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>roie@int2001.co.il</reporter>
          <assigned_to>cedk@gentoo.org</assigned_to>
          <cc>mrness@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>roie@int2001.co.il</who>
            <bug_when>2007-01-24 10:03:14 0000</bug_when>
            <thetext>Since NSIS only compiles 32-bit installers anyway, I added the option to compile for a 32-bit host. Now &quot;makensis&quot; works on my amd64 host, cross-compiling for a 32-bit Windows target.

Reproducible: Always

Steps to Reproduce:
diff -r -c nsis-2.23-src/SCons/Config/gnu nsis-2.23-works/SCons/Config/gnu
*** nsis-2.23-src/SCons/Config/gnu      Sat Nov 11 15:04:17 2006
--- nsis-2.23-works/SCons/Config/gnu    Mon Jan 22 15:13:52 2007
***************
*** 54,59 ****
--- 54,61 ----

  if defenv[&apos;DEBUG&apos;]:
        defenv.Append(CCFLAGS = &apos;-g&apos;)
+ defenv.Append(CCFLAGS = &apos;-m32&apos;)             # 32-bit host
+ defenv.Append(LINKFLAGS = &apos;-m32&apos;)           # 32-bit host

  ### stub environment





Unfortunately, I don&apos;t know anything about the ebuild system other than from a user&apos;s perspective, so I don&apos;t know if (a) this patch even makes sense (though it definitely works for me), and (b) how to submit it properly, if it does. I&apos;m submitting it here in case it interests anyone.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2007-01-24 19:45:42 0000</bug_when>
            <thetext>I think nsis can be installed on a amd64 host without this patch, but I didn&apos;t had the time to test it. Try to install it as is - it installs only one native executable, namely makensis.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2007-01-27 12:55:40 0000</bug_when>
            <thetext>Turns out you&apos;re right: the native code is not portable on 64-bit arches.

The patch and ~amd64 keyword have been added to nsis-2.23. Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>alonbl@gentoo.org</who>
            <bug_when>2007-01-27 21:08:04 0000</bug_when>
            <thetext>Please remember to submit this to upstream as it is very receptive!
strict aliasing and STRIP=no will be available at next version too!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2007-01-27 22:31:49 0000</bug_when>
            <thetext>Done in http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1646170&amp;group_id=22049&amp;atid=373085</thetext>
          </long_desc>
      
    </bug>

</bugzilla>