Bug 380206 - mpir fails to install on Architecture != x86 and buildtype != Release
Summary: mpir fails to install on Architecture != x86 and buildtype != Release
Status: RESOLVED FIXED
Alias: None
Product: Craft
Classification: Developer tools
Component: Blueprints (show other bugs)
Version: stable
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Hannah von Reth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-25 20:55 UTC by mahueb55
Modified: 2018-03-11 10:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mahueb55 2017-05-25 20:55:54 UTC
crafting mpir fails in the install step when building on Windows for architecture != Win32 and/or build type != Release. The issue seems to be caused by the fact that <craft>/portage/win32libs/mpir/mpir.py has "Win32" and "Release" hardwired in the install method.


[...]
Der Buildvorgang wurde erfolgreich ausgef\x81hrt.
    0 Warnung(en)
    0 Fehler

Verstrichene Zeit 00:00:53.13
*** Action: cleanimage for win32libs/mpir ***
*** Action: install for win32libs/mpir ***
None
[Errno 2] No such file or directory: 'r:\\build\\win32libs\\mpir\\work\\mpir-2.7.2\\dll\\Win32\\Release\\gmp.h'
Traceback (most recent call last):
  File "D:\kmm_dep\craft\bin\craft.py", line 507, in <module>
    success = main()
  File "D:\kmm_dep\craft\bin\craft.py", line 486, in main
    if not handleSinglePackage( packageName, action, tempArgs ):
  File "D:\kmm_dep\craft\bin\craft.py", line 261, in handleSinglePackage
    if not handlePackage( info.category, info.package, action, args.doContinue, args.update_fast ):
  File "D:\kmm_dep\craft\bin\craft.py", line 103, in handlePackage
    success = success and doExec( package, "install" )
  File "D:\kmm_dep\craft\bin\craft.py", line 70, in doExec
    ret = package.execute( action )
  File "D:\kmm_dep\craft\bin\Package\PackageBase.py", line 173, in execute
    return self.runAction(command)
  File "D:\kmm_dep\craft\bin\Package\PackageBase.py", line 221, in runAction
    ok = getattr(self, functions[command])()
  File "D:\kmm_dep\craft\bin\..\portage\win32libs\mpir\mpir.py", line 101, in install
    utils.copyFile(os.path.join( self.sourceDir(), 'dll', 'Win32', bt, 'gmp.h'), os.path.join( self.installDir() , "include" , "gmp.h") )
  File "D:\kmm_dep\craft\bin\utils.py", line 598, in copyFile
    shutil.copy(src,dest)
  File "D:\coding\python\Python36-32\lib\shutil.py", line 241, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "D:\coding\python\Python36-32\lib\shutil.py", line 120, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'r:\\build\\win32libs\\mpir\\work\\mpir-2.7.2\\dll\\Win32\\Release\\gmp.h'
Comment 1 NSLW 2018-03-11 10:34:27 UTC
Git commit ab53adbbb03c978d29e2b51fdd7eb65b15f13c80 by Łukasz Wojniłowicz.
Committed on 11/03/2018 at 10:33.
Pushed by wojnilowicz into branch 'master'.

Allow building MPIR in debug mode

M  +4    -0    win32libs/mpir/mpir.py

https://commits.kde.org/craft-blueprints-kde/ab53adbbb03c978d29e2b51fdd7eb65b15f13c80