From 1912c5bffe55b2ac8be1f59769bbf5b7d1620059 Mon Sep 17 00:00:00 2001 From: Alexey Pavlov Date: Tue, 30 Jul 2019 10:26:30 +0300 Subject: [PATCH] python3: Fix implement hadling ".mc" files --- .../2070-distutils-add-windmc-to-cygwinccompiler.patch | 9 +++++++++ mingw-w64-python3/PKGBUILD | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/mingw-w64-python3/2070-distutils-add-windmc-to-cygwinccompiler.patch b/mingw-w64-python3/2070-distutils-add-windmc-to-cygwinccompiler.patch index a5d35b61d4cad..0f91ad64a0740 100644 --- a/mingw-w64-python3/2070-distutils-add-windmc-to-cygwinccompiler.patch +++ b/mingw-w64-python3/2070-distutils-add-windmc-to-cygwinccompiler.patch @@ -29,3 +29,12 @@ else: # for other files use the C-compiler try: self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + +@@ -261,7 +283,7 @@ + ext_normcase = os.path.normcase(ext) + if ext_normcase in ['.rc','.res']: + ext = ext_normcase +- if ext not in (self.src_extensions + ['.rc','.res']): ++ if ext not in (self.src_extensions + ['.rc', '.res', '.mc']): + raise UnknownFileError("unknown file type '%s' (from '%s')" % \ + (ext, src_name)) + base = os.path.splitdrive(base)[1] # Chop off the drive diff --git a/mingw-w64-python3/PKGBUILD b/mingw-w64-python3/PKGBUILD index a26cc0b29ef16..d6d468c3e5121 100644 --- a/mingw-w64-python3/PKGBUILD +++ b/mingw-w64-python3/PKGBUILD @@ -578,5 +578,5 @@ sha256sums=('fb799134b868199930b75f26678f18932214042639cd52b16da7fd134cd9b13f' '6ee9095eb78c88c205e225c0e8a0b169f5498c62d6531a2d3199450d0fe895e5' '09c9f8e14c1f54a1242f4db21af4a014d414fd72b3a92241842965f550f75472' '180fd0a8f4d24ed7e50eb7916548f7fe398811a76063b043efdf7ab18602c55b' - '48852b3c463d3a5b614ecc2491a480cb2cdc1cc4d6b62800cb999833a269b6fa' + 'f376056f995878bfd50a30e3ec3f34d9a598504062395fb1aff1518e2fa83abf' '821402ddaef92140c70041b007bcf15e1cd5fe0fdb9f4f612da868382cc24585')