Bug 415152 - Cannot install boost-headers: tar not found
Summary: Cannot install boost-headers: tar not found
Status: RESOLVED FIXED
Alias: None
Product: Craft
Classification: Developer tools
Component: Core (show other bugs)
Version: unspecified
Platform: Microsoft Windows Linux
: NOR normal
Target Milestone: ---
Assignee: Hannah von Reth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-13 20:13 UTC by Alexander Potashev
Modified: 2019-12-15 16:31 UTC (History)
1 user (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 Alexander Potashev 2019-12-13 20:13:34 UTC
SUMMARY
Cannot install boost-headers: tar not found.

Command line output, notice the broken command "None --directory C:/CraftRoot/build/_/3a13ce4c -xf -" which had to be "tar [...]":

Craft               : C:\CraftRoot
Version             : master
ABI                 : windows-msvc2019_64-cl
Download directory  : C:\CraftRoot\download
PS C:\CraftRoot> craft ktimetracker
Craft               : C:\CraftRoot
Version             : master
ABI                 : windows-msvc2019_64-cl
Download directory  : C:\CraftRoot\download
========================================================================================================================
*** Handling package: libs/boost/boost-headers, action: all ***
*** Action: fetch-binary for libs/boost/boost-headers ***
*** libs/boost/boost-headers not found in cache ***
*** Action: fetch for libs/boost/boost-headers ***
*** Action: unpack for libs/boost/boost-headers ***
  0% - boost_1_69_0.tarexecuting command: C:\CraftRoot\dev-utils\bin\7za.exe x C:\CraftRoot\download\archives\libs\boost\boost-headers\boost_1_69_0.tar.gz -so -bsp2 | None --directory C:/CraftRoot/build/_/3a13ce4c -xf -
*** Craft all succeeded: libs/boost/boost-headers after 0 seconds ***
[WinError 2] Не удается найти указанный файл
Traceback (most recent call last):
  File "C:\CraftRoot\craft\bin\craft.py", line 265, in <module>
    success = main(timer)
  File "C:\CraftRoot\craft\bin\craft.py", line 255, in main
    if not CraftCommands.run(package, action, tempArgs):
  File "C:\CraftRoot\craft\bin\CraftCommands.py", line 291, in run
    if not handlePackage(info, action, directTargets=directTargets):
  File "C:\CraftRoot\craft\bin\CraftCommands.py", line 77, in handlePackage
    success = doExec(package, action)
  File "C:\CraftRoot\craft\bin\CraftCommands.py", line 41, in doExec
    ret = package.instance.runAction(action)
  File "C:\CraftRoot\craft\bin\Package\PackageBase.py", line 240, in runAction
    if not getattr(self, step)():
  File "C:\CraftRoot\craft\bin\Source\MultiSource.py", line 45, in unpack
    return self._sourceClass.unpack(self)
  File "C:\CraftRoot\craft\bin\Source\ArchiveSource.py", line 194, in unpack
    if not utils.unpackFile(self.__downloadDir, filename, self.workDir()):
  File "C:\CraftRoot\craft\bin\utils.py", line 90, in unpackFile
    return un7zip(os.path.join(downloaddir, filename), workdir, ext)
  File "C:\CraftRoot\craft\bin\utils.py", line 130, in un7zip
    return system(command, displayProgress=True, **kw) and (not resolveSymlinks or replaceSymlinksWithCopies(destdir))
  File "C:\CraftRoot\craft\bin\utils.py", line 179, in system
    return systemWithoutShell(cmd, displayProgress=displayProgress, logCommand=logCommand, acceptableExitCodes=acceptableExitCodes, **kw)
  File "C:\CraftRoot\craft\bin\utils.py", line 261, in systemWithoutShell
    proc = subprocess.Popen(cmd, **kw)
  File "C:\Users\me\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "C:\Users\me\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 1178, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] Не удается найти указанный файл

ERROR: Канал был закрыт.
PS C:\CraftRoot>


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Alexander Potashev 2019-12-13 21:13:40 UTC
Fixed unpack stage of boost-headers by running "git checkout master~2", i.e. undoing two latest commits:

https://commits.kde.org/craft/157b4aea0b1d098ae7cf52c305458032378fc351
https://commits.kde.org/craft/a3314f4e7dba0297eebb83fe1aa8a3981973eb61
Comment 2 Alexander Potashev 2019-12-13 22:34:03 UTC
compiler: MSVC 2019