Bug 308714 - Offline compilation of kde for Windows sources is not possible
Summary: Offline compilation of kde for Windows sources is not possible
Status: RESOLVED NOT A BUG
Alias: None
Product: kde-windows
Classification: Miscellaneous
Component: buildsystem (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KDE-Windows
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-20 15:23 UTC by Bogdan Cristea
Modified: 2012-10-20 21:05 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 Bogdan Cristea 2012-10-20 15:23:04 UTC
Currently the sources/archives needed for kde for windows are downloaded in the following folders:
-download
-git
-svn
Thus one might retry to compile kde using a clean %kderoot% folder, where only the above folders exist and the etc folder. However, an Internet connection is still needed, because emerge tries first to connect to the Internet before checking local file/folder existence. This is true for both the files to download and the folders to clone with git.
A better approach would be to check for file/folder existence first before trying to connect to the Internet so that an offline compilation to be possible.

Reproducible: Always

Steps to Reproduce:
1. Try to emerge a package, e.g. 'emerge okular'
2. Download all required sources, then clean the %kderoot% folder so that only download, git, svn and etc folders remain
3. Disconnect computer from Internet
4. 'emerge okular' 
Actual Results:  
Without Internet connection, step 4 fails.

Expected Results:  
Step 4 should allow package compilation with no errors.

emerge should have an option to clean %kderoot% folder by keeping the downloaded files/folders (i.e. download, git, svn) and the configuration folder (etc).
My test platform:Win8 x86_64 Release Candidate, Visual Studio 2010, using emerge from master branch. kde for windows was compiled for x86 architecture.
Comment 1 Ananta Palani 2012-10-20 20:45:37 UTC
Have you tried 'emerge --offline okular'? Typing 'emerge' will tell you all its command line arguments. Although emerge won't delete the directories you mentioned, you can have emerge ignore an install and recompile/install using 'emerge -i okular'. You can even combine these commands 'emerge -i --offline okular'.
Comment 2 Bogdan Cristea 2012-10-20 20:53:17 UTC
No, I was not aware about this command line option, sorry, my mistake.