Bug 340273 - Msys failure on kde-win for kde-4.12 due to bad line in python code
Summary: Msys failure on kde-win for kde-4.12 due to bad line in python code
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kde-windows
Classification: Unmaintained
Component: network and files (other bugs)
Version First Reported In: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KDE-Windows
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-24 03:44 UTC by Michael Gooch
Modified: 2024-09-22 18:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Gooch 2014-10-24 03:44:38 UTC
emerge\portage\dev-util\msys\msys2\msys2-20110627.py
line #7
was: if compiler.isX86():

should be: if emergePlatform.buildArchitecture() == "x86": as it is in the 4.13 branch

Reproducible: Always

Steps to Reproduce:
1. clone emerge
2. set up environment
3. attempt to emerge any package that depends on msys

Actual Results:  
failure on line 7 module does not contain isX86() attribute or something like that

Expected Results:  
msys deployed successfully
Comment 1 Michael Gooch 2014-10-24 03:46:04 UTC
there are additional errors in the file apparently, i'm going to try copying the entire branch 4.13 file over to see if it repairs the problem
Comment 2 Michael Gooch 2014-10-24 03:47:23 UTC
nope, that just breaks spectacularly in another way
Comment 3 Michael Gooch 2014-10-24 03:50:32 UTC
looks like it begins failing in the openssl python file, gonna copy that and see if it does the same fix
Comment 4 Hannah von Reth 2014-10-24 07:49:51 UTC
Hi first of all I would recommend you to  at least use 4.13.
If that's not an option I still could fix the script, there where a lot of changes master which make direct back ports impossible.
Comment 5 Michael Gooch 2014-10-24 09:34:05 UTC
I tried 4.13 first, i'm getting a build failure in QT webkit module somewhere
Comment 6 Michael Gooch 2014-10-24 09:46:50 UTC
which i've reported just now after it failed again: 

https://bugs.kde.org/show_bug.cgi?id=340289
Comment 7 PaulM 2014-12-03 06:37:09 UTC
I confirm I'm also seeing this error on the 4.12 branch.   Doing a quick kludge and commenting out the offending line, I find the next hurdle is in the port python script for perl.  Apparently active perl 5.16.3 no longer exists but instead 5.20.1 seems to be an option.  I wanted to create a patch for this, but it is not clear to me what checksum is being used i.e. it doesn't look like md5 or sha1.

Subsequent to making a second quick kludge on perl, I then hit a problem with msys2 python script.  There is reference to a variable called EmergeStandardDirs on line 43, which I have not found defined anywhere. 

I also tried the 4.13 branch but ran into issues there too.  Perhaps I should file some bugs against it too.
Comment 8 PaulM 2014-12-03 06:43:02 UTC
When running emerge qt:
...
[ 45%] Built target zlib
[ 88%] Built target zlibstatic
[ 91%] Built target example
[ 94%] Built target example64
[ 97%] Built target minigzip
[100%] Built target minigzip64
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: r:/build/win32libs/zlib-1.2.5-1/image-mingw4-RelWithDebInfo-1.2.8/lib/libz.dll.a
-- Installing: r:/build/win32libs/zlib-1.2.5-1/image-mingw4-RelWithDebInfo-1.2.8/bin/libz.dll
-- Installing: r:/build/win32libs/zlib-1.2.5-1/image-mingw4-RelWithDebInfo-1.2.8/lib/libz.a
-- Installing: r:/build/win32libs/zlib-1.2.5-1/image-mingw4-RelWithDebInfo-1.2.8/include/zconf.h
-- Installing: r:/build/win32libs/zlib-1.2.5-1/image-mingw4-RelWithDebInfo-1.2.8/include/zlib.h
-- Installing: r:/build/win32libs/zlib-1.2.5-1/image-mingw4-RelWithDebInfo-1.2.8/share/man/man3/zlib.3
-- Installing: r:/build/win32libs/zlib-1.2.5-1/image-mingw4-RelWithDebInfo-1.2.8/share/pkgconfig/zlib.pc
-- Installing: r:/build/win32libs/zlib-1.2.5-1/image-mingw4-RelWithDebInfo-1.2.8/lib/pkgconfig/zlib.pc
--2014-12-02 21:03:02--  http://downloads.activestate.com/ActivePerl/releases/5.16.3.1603/ActivePerl-5.16.3.1603-MSWin32
-x64-296746.zip
Resolving downloads.activestate.com (downloads.activestate.com)... 204.244.102.19
Connecting to downloads.activestate.com (downloads.activestate.com)|204.244.102.19|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-12-02 21:03:04 ERROR 404: Not Found.

emerge fatal error: command fetch failed
emerge fatal error: running python r:\emerge\portage\dev-util\perl\perl-all.py fetch
emerge debug: Task: Emerge stopped after: 0:57:47.281472
PS R:\>

After updating the script with new version of active state perl:

PS R:\> emerge qt
...
100%[==============================================================================>] 28 885 260   949B/s   in 2m 37s

2014-12-03 00:54:27 (180 KB/s) - 't:/ActivePerl-5.20.1.2000-MSWin32-x64-298557.zip' saved [28885260/28885260]

--2014-12-03 00:55:19--  http://downloads.sourceforge.net/sourceforge/msys2/msys2-base-x86_64-20140624.tar.xz
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/msys2/Base/x86_64/msys2-base-x86_64-20140624.tar.xz [following]
--2014-12-03 00:55:20--  http://downloads.sourceforge.net/project/msys2/Base/x86_64/msys2-base-x86_64-20140624.tar.xz
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://tenet.dl.sourceforge.net/project/msys2/Base/x86_64/msys2-base-x86_64-20140624.tar.xz [following]
--2014-12-03 00:55:21--  http://tenet.dl.sourceforge.net/project/msys2/Base/x86_64/msys2-base-x86_64-20140624.tar.xz
Resolving tenet.dl.sourceforge.net (tenet.dl.sourceforge.net)... 155.232.191.245
Connecting to tenet.dl.sourceforge.net (tenet.dl.sourceforge.net)|155.232.191.245|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 46335116 (44M) [application/octet-stream]
Saving to: 't:/msys2-base-x86_64-20140624.tar.xz'

100%[==============================================================================>] 46 335 116   213KB/s   in 3m 38s

2014-12-03 00:58:59 (208 KB/s) - 't:/msys2-base-x86_64-20140624.tar.xz' saved [46335116/46335116]

       msys2-base-x86_64-20140624.tar.xz d0daa656ecfbda6d8112beb286c2e077210cf6c7 self.targetDigests['base'] = 'd0daa656
ecfbda6d8112beb286c2e077210cf6c7'
Traceback (most recent call last):
  File "r:\emerge\portage\dev-util\msys\msys2\msys2-20110627.py", line 52, in <module>
    Package().execute()
  File "r:\emerge\bin\Package\PackageBase.py", line 268, in execute
    self.runAction(command)
  File "r:\emerge\bin\Package\PackageBase.py", line 295, in runAction
    ok = getattr(self, functions[command])()
  File "r:\emerge\portage\dev-util\msys\msys2\msys2-20110627.py", line 43, in qmerge
    msysDir = os.path.join(EmergeStandardDirs.emergeRoot(),"msys")
NameError: name 'EmergeStandardDirs' is not defined
emerge fatal error: running python r:\emerge\portage\dev-util\msys\msys2\msys2-20110627.py qmerge
emerge debug: Task: Emerge stopped after: 0:09:41.184650
PS R:\>
Comment 9 Justin Zobel 2021-03-09 23:01:56 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 10 Christoph Cullmann 2024-09-22 18:51:20 UTC
The KDE Windows Bugzilla product is no longer maintained.

If you have issues with some application on Windows, please report the issue at the bugtracker of the application.

If you have issues that still persist with Craft itself, please report them here:

https://invent.kde.org/packaging/craft/-/issues