Menu

#248 64-bit cx_Freeze package creates invalid executables due to incorrect library manifest.txt

1.0
closed
nobody
2017-02-04
2016-03-05
No

The package mingw-w64-x86_64-python2-cx_Freeze correctly creates 64-bit binaries but they are created with an incorrect library manifest which causes them to fail to run on Windows. The library manifest file from cx_Freeze at source/bases/manifest.txt always sets the arcitecture to x86 when it should be amd64 for 64-bit builds. This resulsts in invalid base executables in site-packages/cx_Freeze/bases/. It is very difficult to track this bug down when you don't know why your binaries fail to run on Windows.

Fortunately this is easy to fix. Running sed -i 's/[xX]86/amd64/g' source/bases/manifest.txt in the cx_Freeze source tree before building it is enough. Presumably this could be added as a patch applied before the package is built by makepkg.

This is probably also an issue for upstream.

Discussion

  • David Macek

    David Macek - 2017-02-04
    • status: open --> closed
     
  • David Macek

    David Macek - 2017-02-04

    Works for me at the moment, so probably fixed. New issues can be filed on GitHub.