[Craft] [Bug 379723] install_craft.ps1 fails to install craft

2022-11-07 Thread Michael Drüing
https://bugs.kde.org/show_bug.cgi?id=379723

--- Comment #8 from Michael Drüing  ---
No, I'm pretty sure the issue doesn't occur anymore. I have built (parts of)
KDE successfully since then

You can close this ticket

-- 
You are receiving this mail because:
You are watching all bug changes.

[Craft] [Bug 455249] New: Building boost-regex from source fails

2022-06-14 Thread Michael Drüing
https://bugs.kde.org/show_bug.cgi?id=455249

Bug ID: 455249
   Summary: Building boost-regex from source fails
   Product: Craft
   Version: master
  Platform: Microsoft Windows
OS: Microsoft Windows
Status: REPORTED
  Severity: normal
  Priority: NOR
 Component: Blueprints
  Assignee: vonr...@kde.org
  Reporter: mich...@drueing.de
CC: kde-wind...@kde.org
  Target Milestone: ---

SUMMARY
***
Building boost-regex via `craft boost-regex` (or through a package that
requires it, like kstars) fails on Visual Studio 2022
***


STEPS TO REPRODUCE
1. install craft
2. craft boost-regex
3. ...wait...

OBSERVED RESULT
"Craft all failed"

EXPECTED RESULT
Successful build

SOFTWARE/OS VERSIONS
Windows: Windows 10 21H2 Build 19044 with Visual Studio 2022 (17.2.3)

ADDITIONAL INFORMATION

PS D:\kde> craft  boost-regex
Craft   : D:\kde
Version : master
ABI : windows-msvc2022_64-cl
Download directory  : D:\kde\download

*** Handling package: libs/boost/boost-regex, action: all ***
*** Action: fetch-binary for libs/boost/boost-regex ***
Could not find libs/boost/boost-regex=1.76.0 in
https://files.kde.org/craft/master/22.05/windows/msvc2022_64/cl/RelWithDebInfo
Could not find libs/boost/boost-regex=1.76.0 in
https://files.kde.org/craft/master/22.05/windows/msvc2022_64/cl/Release
*** libs/boost/boost-regex not found in cache ***
*** Action: fetch for libs/boost/boost-regex ***
*** Action: unpack for libs/boost/boost-regex ***
*** Action: compile for libs/boost/boost-regex ***
entering the source directory!
executing command: D:\kde\bin\bjam.exe -j12
--build-dir=D:\kde\build\_\20682abf\build --build-type=minimal threading=multi
include="D:\kde/include" library-path="D:\kde/lib" link=shared
runtime-link=shared address-model=64 architecture=x86 variant=release
toolset=msvc-14.2
Performing configuration checks

- default address-model: none [1]
- default architecture : none [1]
- has_icu builds   : no [2]

[1] msvc-14.2
[2]
msvc-14.2/release/address-model-64/architecture-x86/python-3.8/threadapi-win32/threading-multi/visibility-hidden
...patience...
...found 635 targets...
...updating 7 targets...
...skipped
posix_api.obj
for lack of
msvc-setup.nup...
...skipped
regex.obj
for lack of
msvc-setup.nup...
...skipped
regex_debug.obj
for lack of
msvc-setup.nup...
...skipped
static_mutex.obj
for lack of
msvc-setup.nup...
...skipped
wide_posix_api.obj
for lack of
msvc-setup.nup...
...skipped
boost_regex-vc142-mt-x64-1_76.dll
for lack of
posix_api.obj...
...skipped
boost_regex-vc142-mt-x64-1_76.lib
for lack of
posix_api.obj...
...skipped 7 targets...
Action: compile for libs/boost/boost-regex:1.76.0 FAILED
*** Craft all failed: libs/boost/boost-regex after 1 second ***
fatal error: package libs/boost/boost-regex all failed
Craft stopped with out completing ['libs/boost/boost-regex']

-- 
You are receiving this mail because:
You are watching all bug changes.

[Craft] [Bug 455119] New: building libgit2 from source fails due to not detecting libssl

2022-06-10 Thread Michael Drüing
https://bugs.kde.org/show_bug.cgi?id=455119

Bug ID: 455119
   Summary: building libgit2 from source fails due to not
detecting libssl
   Product: Craft
   Version: master
  Platform: Microsoft Windows
OS: Microsoft Windows
Status: REPORTED
  Severity: normal
  Priority: NOR
 Component: Blueprints
  Assignee: vonr...@kde.org
  Reporter: mich...@drueing.de
CC: kde-wind...@kde.org
  Target Milestone: ---

When trying to build libgit2 (required for kate, for example) the build fails.

Environment: Windows 10, Visual Studio 2022


STEPS TO REPRODUCE
1. `craft libgit2`
2. wait

OBSERVED RESULT

PS D:\KDE> craft libgit2
Craft   : D:\KDE
Version : master
ABI : windows-msvc2022_64-cl
Download directory  : D:\KDE\download

*** Handling package: libs/libgit2, action: all ***
*** Action: fetch-binary for libs/libgit2 ***
Could not find libs/libgit2=1.1.0-1 in
https://files.kde.org/craft/master/22.05/windows/msvc2022_64/cl/RelWithDebInfo
Could not find libs/libgit2=1.1.0-1 in
https://files.kde.org/craft/master/22.05/windows/msvc2022_64/cl/Release
*** libs/libgit2 not found in cache ***
*** Action: fetch for libs/libgit2 ***
*** Action: unpack for libs/libgit2 ***
--- Logging error ---
Traceback (most recent call last):
  File
"C:\Users\User\AppData\Local\Programs\Python\Python38\lib\logging\__init__.py",
line 1084, in emit
stream.write(msg + self.terminator)
  File
"C:\Users\User\AppData\Local\Programs\Python\Python38\lib\encodings\cp1252.py",
line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u8fd9' in position
105: character maps to 
Call stack:
  File "D:\KDE\craft\bin\craft.py", line 274, in 
success = main(timer)
  File "D:\KDE\craft\bin\craft.py", line 264, in main
if not CraftCommands.run(package, action, tempArgs):
  File "D:\KDE\craft\bin\CraftCommands.py", line 425, in run
if not handlePackage(info, action, directTargets=directTargets):
  File "D:\KDE\craft\bin\CraftCommands.py", line 94, in handlePackage
success = doExec(package, action)
  File "D:\KDE\craft\bin\CraftCommands.py", line 58, in doExec
ret = package.instance.runAction(action)
  File "D:\KDE\craft\bin\Package\PackageBase.py", line 247, in runAction
if not getattr(self, step)():
  File "D:\KDE\craft\bin\Source\MultiSource.py", line 50, in unpack
return self._sourceClass.unpack(self)
  File "D:\KDE\craft\bin\Source\ArchiveSource.py", line 220, in unpack
utils.cleanDirectory(self.workDir())
  File "D:\KDE\craft\bin\utils.py", line 348, in cleanDirectory
if not OsUtils.rmDir(f.path, force=True):
  File "D:\KDE\craft\bin\CraftOS\win\osutils.py", line 58, in rmDir
if not OsUtils.rmDir(f.path, force):
  File "D:\KDE\craft\bin\CraftOS\win\osutils.py", line 58, in rmDir
if not OsUtils.rmDir(f.path, force):
  File "D:\KDE\craft\bin\CraftOS\win\osutils.py", line 58, in rmDir
if not OsUtils.rmDir(f.path, force):
  File "D:\KDE\craft\bin\CraftOS\win\osutils.py", line 61, in rmDir
if not OsUtils.rm(f.path, force):
  File "D:\KDE\craft\bin\CraftOS\win\osutils.py", line 23, in rm
CraftCore.log.debug("deleting file %s" % path)
Message: 'deleting file
D:\\KDE\\build\\_\\e4e755c3\\libgit2-1.1.0\\tests\\resources\\status\\这'
Arguments: ()
executing command: D:\KDE\dev-utils\bin\7za.exe x
D:\KDE\download\archives\libs\libgit2\libgit2-1.1.0.tar.gz -so -bsp2 |
C:\Users\User\AppData\Local\Programs\Python\Python38\python.exe -u
D:\KDE\craft\bin\untar.py D:\KDE\build\_\e4e755c3
executing command: D:\KDE\bin\patch.exe --ignore-whitespace -d
D:\KDE\build\_\e4e755c3\libgit2-1.1.0 -p 1 -i
D:\kde\etc\blueprints\locations\craft-blueprints-kde\libs\libgit2\libgit2-pcre2-debugsuffix.diff
patching file cmake/FindPCRE2.cmake
*** Action: compile for libs/libgit2 ***
executing command: "D:\KDE\dev-utils\bin\cmake.exe" -G Ninja 
-DBUILD_TESTING=ON -DBUILD_SHARED_LIBS=ON   -DBUILD_CLAR=OFF
-DREGEX_BACKEND=pcre2 -DCMAKE_INSTALL_PREFIX=D:/KDE -DCMAKE_PREFIX_PATH=D:/KDE
-DCMAKE_REQUIRED_INCLUDES=D:/KDE/include
-DCMAKE_C_STANDARD_INCLUDE_DIRECTORIES=D:/KDE/include
-DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=ON
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON -S D:\KDE\build\_\e4e755c3\libgit2-1.1.0
-- The C compiler identification is MSVC 19.32.31329.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual
Studio/2022/Community/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe -
skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: D:/Bin/Perl/perl/bin/pkg-config.bat (found version "0.26

[Craft] [Bug 379723] install_craft.ps1 fails to install craft

2017-05-11 Thread Michael Drüing
https://bugs.kde.org/show_bug.cgi?id=379723

--- Comment #6 from Michael Drüing  ---
yes, K: is substituted:


K:\>subst
K:\: => D:\KDE
Q:\: => D:\KDE\download\git

-- 
You are receiving this mail because:
You are watching all bug changes.

[Craft] [Bug 379723] install_craft.ps1 fails to install craft

2017-05-11 Thread Michael Drüing
https://bugs.kde.org/show_bug.cgi?id=379723

--- Comment #4 from Michael Drüing  ---
This is everything on K:\ (or d:\kde) after the script has run:

K:\>dir /b/s
K:\download
K:\etc
K:\python
K:\download\craft.zip
K:\download\CraftBootstrap.py
K:\download\git
K:\download\python-3.6.0-embed-amd64.zip
K:\etc\kdesettings.ini
K:\etc\portage
K:\etc\portage\install.db
K:\python\pyexpat.pyd
K:\python\python.exe
K:\python\python3.dll
K:\python\python36.dll
K:\python\python36.zip
K:\python\pythonw.exe
K:\python\select.pyd
K:\python\sqlite3.dll
K:\python\unicodedata.pyd
K:\python\vcruntime140.dll
K:\python\winsound.pyd
K:\python\_asyncio.pyd
K:\python\_bz2.pyd
K:\python\_ctypes.pyd
K:\python\_decimal.pyd
K:\python\_elementtree.pyd
K:\python\_hashlib.pyd
K:\python\_lzma.pyd
K:\python\_msi.pyd
K:\python\_multiprocessing.pyd
K:\python\_overlapped.pyd
K:\python\_socket.pyd
K:\python\_sqlite3.pyd
K:\python\_ssl.pyd

-- 
You are receiving this mail because:
You are watching all bug changes.

[Craft] [Bug 379723] install_craft.ps1 fails to install craft

2017-05-11 Thread Michael Drüing
https://bugs.kde.org/show_bug.cgi?id=379723

--- Comment #2 from Michael Drüing  ---
Created attachment 105443
  --> https://bugs.kde.org/attachment.cgi?id=105443&action=edit
a second log file

-- 
You are receiving this mail because:
You are watching all bug changes.

[Craft] [Bug 379723] install_craft.ps1 fails to install craft

2017-05-11 Thread Michael Drüing
https://bugs.kde.org/show_bug.cgi?id=379723

--- Comment #1 from Michael Drüing  ---
Created attachment 105442
  --> https://bugs.kde.org/attachment.cgi?id=105442&action=edit
log files

I found the log files. It seems that craft has some issues downloading 7zip or
wget

-- 
You are receiving this mail because:
You are watching all bug changes.

[Craft] [Bug 379723] New: install_craft.ps1 fails to install craft

2017-05-11 Thread Michael Drüing
https://bugs.kde.org/show_bug.cgi?id=379723

Bug ID: 379723
   Summary: install_craft.ps1 fails to install craft
   Product: Craft
   Version: master
  Platform: MS Windows
OS: MS Windows
Status: UNCONFIRMED
  Severity: grave
  Priority: NOR
 Component: Core
  Assignee: vonr...@kde.org
  Reporter: mich...@drueing.de
CC: kde-wind...@kde.org
  Target Milestone: ---

I donwloaded
https://raw.githubusercontent.com/KDE/craft/master/setup/install_craft.ps1 and
ran it in PowerShell 5.1 in Windows 10 Pro

It asked where to install KDE (I chose D:\KDE) and some other things, and at
the end it shows:

Setup complete
Please run D:\KDE/craft/kdeenv.ps1

However, the directory D:\KDE\craft does not exist. There is some text output
before the message but it scrolls by so fast and at the end the screen gets
cleared so I cannot scroll up.

During installation I can see it downloading Python, craft, and various other
files, and for a short time the directories D:\KDE\craft and
d:\kde\craft-master exist, however, they are removed right before the script
finishes.

I tried with both 32 and 64 bit Python, and in case it matters I'm trying to
build with MSVC (already installed) instead of MinGW

-- 
You are receiving this mail because:
You are watching all bug changes.