Bug 339016 - Emerge searches after kdesettings.ini in the wrong folder
Summary: Emerge searches after kdesettings.ini in the wrong folder
Status: RESOLVED FIXED
Alias: None
Product: kde-windows
Classification: Miscellaneous
Component: buildsystem (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR major
Target Milestone: ---
Assignee: KDE-Windows
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-11 18:06 UTC by morrisb
Modified: 2014-09-11 19:18 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 morrisb 2014-09-11 18:06:43 UTC
Emerge cloned from git://anongit.kde.org/emerge.git with Git 1.9.4.

This is what happens after any "emerge x" call:

kdesettings.bat executed
KDEROOT     : C:\kderoot
KDECOMPILER : mingw4
KDESVNDIR   : C:\kderoot\svn
KDEGITDIR   : C:\kderoot\git
DOWNLOADDIR : C:\kderoot\download

C:\kderoot>emerge
Traceback (most recent call last):
  File "C:\kderoot\emerge\bin\emerge.py", line 22, in <module>
    import portage
  File "C:\kderoot\emerge\bin\portage.py", line 494, in <module>
    PortageInstance = Portage()
  File "C:\kderoot\emerge\bin\portage.py", line 216, in __init__
    self._readIgnores()
  File "C:\kderoot\emerge\bin\portage.py", line 233, in _readIgnores
    with open(iniPath, 'w') as configfile:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\kderoot\\
etc\\kdesettings.ini'

In the file portage.py in %KDEROOT%\emerge\bin:

  Lines 218 & 219:  def _readIgnores(self):
        iniPath = os.path.join(ROOTDIR, "etc", "kdesettings.ini")
        ...

Should be:

  Lines 218 & 219:  def _readIgnores(self):
        iniPath = os.path.join(ROOTDIR, "kdesettings.ini")
        ...

Which seems to fix the problem.

This is my first bug report, so I apologize for any errors.
Comment 1 Hannah von Reth 2014-09-11 18:11:14 UTC
No thats find your structure should ne kderoot/emerge kderoot/etc
You habe to copy your kdesettings.ini to the kderoot/etc.
Comment 2 morrisb 2014-09-11 18:38:20 UTC
Well, I tried that but that does not work, also it does not say so for example at https://community.kde.org/Calligra/Building_Calligra_on_Windows; where you only should copy kdesettings-example.bat to etc and rename it. It may be so that the location is predefined in other files. The only way I could get emerge to work, at least partially, was to change the above code, as other ways have failed.
Comment 3 Jorg K 2014-09-11 19:06:38 UTC
I had a few goes at "emerge"ing in July and August 2014.
kdesettings.bat should go to kderoot\etc.
There are two kdesettings.ini files, one in kderoot\emerge and one in kderoot\etc.
The latter is created on the fly and in my case has this content:
[Portage]
PACKAGE_IGNORES =

Anyway, my 2 cent worth of wisdom.
Comment 4 Hannah von Reth 2014-09-11 19:15:41 UTC
the kdesettingsbat has been discontinued.

Currently you have to copy the kdesettings.ini from emerge to etc and adopt it.
Comment 5 morrisb 2014-09-11 19:18:30 UTC
Oh, I see. Yes, now it works.