Picon

[Bug 363467] New: Portage fails to construct runtime dependencies for packages under kde/applications

https://bugs.kde.org/show_bug.cgi?id=363467

            Bug ID: 363467
           Summary: Portage fails to construct runtime dependencies for
                    packages under kde/applications
           Product: kde-windows
           Version: unspecified
          Platform: MS Windows
                OS: MS Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: buildsystem
          Assignee: kde-windows <at> kde.org
          Reporter: mutlaqja <at> ikarustech.com

While trying to use 'emerge --package kstars', the emerge process never finds
the required runtime dependencies for KStars and install them as needed to the
archive directory.

After a bit of investigation, the problem turns out to be getDependencies(
category, package, runtimeOnly = False ): function in portage.py.

For applications that fall under portage/kde/applications/*, the function
returns the subpackage as "applications" but that fails when it tries to call 
_getSubinfo("kde", "applications) as it cannot find the applications.py file
since it doesn't exist.

Attached is a small patch that fixes this problem. However, a bigger issue is
that tree layout itself. There are many applications (kdevelop, ktorrent, k3b)
(Continue reading)

Cojocaru Raphael | 23 May 22:57 2016
Picon
Gravatar

Packaging KStars - [WinError 3] The system cannot find the path specified

Hi everyone,


After I unsuccessfully tried several solutions for my KStars packaging issue, I will ask the KDE-Windows team for a piece of advice, maybe someone faced this situation before.

The actual problem is that I cannot add the required dependencies to my KStars installer. The “kstars.exe” executable from inside KDEROOT/bin runs perfectly so this cause can be excluded since the beginning.The next thing I investigated was the “kstars.py” file used by emerge tool for packaging. I started with KDevelop example, as it already has such an installer based on NSIS software: https://quickgit.kde.org/?p=emerge.git&a=blob&h=ab8cd8e7fc35a52a8e463cac92d626b7013b7260&f=portage%2Fextragear%2Fkdevelop%2Fkdevelop.py&o=plainI took every line, one by one, but starting with this line:               os.mkdir(os.path.join(archiveDir, "etc", "dbus-1", "session.d"))I get the following error message: [WinError 3] The system cannot find the path specified: 'C:\\K\\build\\kde\\kstars\\archive\\etc\\dbus-1\\session.d'  File "C:\K\emerge\bin\emerge.py", line 475, in <module>    success = main()  File "C:\K\emerge\bin\emerge.py", line 454, in main    if not handleSinglePackage( packageName, action, tempArgs ):  File "C:\K\emerge\bin\emerge.py", line 219, in handleSinglePackage    if not handlePackage( info.category, info.package, action, args.doContinue,args.update_fast ):  File "C:\K\emerge\bin\emerge.py", line 88, in handlePackage    success = doExec( package, buildAction, continueFlag )  File "C:\K\emerge\bin\utils.py", line 562, in inner    return fn(*args, **argv)  File "C:\K\emerge\bin\emerge.py", line 46, in doExec    ret = package.execute( action )  File "C:\K\emerge\bin\Package\PackageBase.py", line 214, in execute    return self.runAction(command)  File "C:\K\emerge\bin\Package\PackageBase.py", line 241, in runAction    ok = getattr(self, functions[command])()  File "C:\K\emerge\portage\kde\applications\kstars\kstars.py", line 54, in createPackage    return NullsoftInstallerPackager.createPackage(self)  File "C:\K\emerge\bin\Packager\NullsoftInstallerPackager.py", line 195, in createPackage    self.preArchive()  File "C:\K\emerge\portage\kde\applications\kstars\kstars.py", line 59, in preArchive    os.mkdir(os.path.join(archiveDir, "etc", "dbus-1", "session.d"))C:\K> It actually doesn’t matter which line I try to use:               binPath = os.path.join(archiveDir, "bin") OR               utils.mergeTree(os.path.join(archiveDir, "plugins"), binPath)I get the same error listed above. I really don’t understand why I get this error. For example, “os.mkdir(os.path.join(archiveDir, "etc", "dbus-1", "session.d"))” command should just create etc/dbus-1/session.d directory. So it should not be related to any dependency or piece of code.Also, I tried to build the folders’ hierarchy manually, but this didn’t help at all.As a final solution, I thought that CMakeLists.txt could actually be involved in this packaging process, so I tried to replicate this in KStars with changes as necessary, then run “emerge kstars” and “emerge --package kstars” again. So I modified KStars’ CMakeLists.txt following KDevelop example, creating additional files as well (i.e.  KDevelopConfig.cmake.in =>  KStarsConfig.cmake.in). This proved to be unsuccessfully again. Is the CMakeLists.txt the key-element from this equation? Is it affecting the packaging or not? It is any problem with the path 'C:\\K\\build\\kde\\kstars\\archive\\etc\\dbus-1\\session.d' (i.e. too long or something like this)In conclusion, I would be very grateful if someone would give me some help. I really gave my best in order to solve this issue, but I just cannot figure out why the packaging doesn’t work as expected and furthermore what should I do next.Thanks in advance and every advice is welcomed and appreciated! Best regards,Raphael
_______________________________________________
Kde-windows mailing list
Kde-windows <at> kde.org
https://mail.kde.org/mailman/listinfo/kde-windows
Picon

[frameworks-kdoctools] [Bug 362849] meinproc5.exe searches the wrong path for kdoctools

https://bugs.kde.org/show_bug.cgi?id=362849

--- Comment #5 from Jasem Mutlaq <mutlaqja <at> ikarustech.com> ---
Yes, I emerged Qt and the standard paths are already patched. This problem
arises when using stock Qt.

--

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Kde-windows mailing list
Kde-windows <at> kde.org
https://mail.kde.org/mailman/listinfo/kde-windows
Picon

[frameworks-kdoctools] [Bug 362849] meinproc5.exe searches the wrong path for kdoctools

https://bugs.kde.org/show_bug.cgi?id=362849

Ralf Habacker <ralf.habacker <at> freenet.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ralf.habacker <at> freenet.de

--- Comment #4 from Ralf Habacker <ralf.habacker <at> freenet.de> ---
This issue is because Qt5 QStandardPaths does not understands the 'unix' path
layout implemented in cmake buildsystem for KF5. 

There are the following solutions for this issue: 
1. Extend windows port of Qt5 to understand 'unix' path layout.
2. Adjust cmake installation pathes to follow the path layout provided by
QStandardPaths on Windows.  

For 1. there is an experimental patch available at
https://build.opensuse.org/package/view_file/home:rhabacker:branches:windows:mingw:win32:Qt55/mingw32-libqt5-qtbase/0001-Add-QStandardPaths-support-for-qt.conf.patch?expand=1
which supports specifying custom pathes through qt.conf.

--

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Kde-windows mailing list
Kde-windows <at> kde.org
https://mail.kde.org/mailman/listinfo/kde-windows
Picon

[Bug 363369] New: QtWebKit removed in Qt 5.6 but emerge still attempts to build kdewebkit

https://bugs.kde.org/show_bug.cgi?id=363369

            Bug ID: 363369
           Summary: QtWebKit removed in Qt 5.6 but emerge still attempts
                    to build kdewebkit
           Product: kde-windows
           Version: unspecified
          Platform: MS Windows
                OS: MS Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: buildsystem
          Assignee: kde-windows <at> kde.org
          Reporter: mutlaqja <at> ikarustech.com

Windows 10 64bit. Qt 5.6 for MSVS 2015. Qt is NOT emerged, it is the official
download from Qt.

When running emerge frameworks, it tries to build kdewebkit even with QtWebKit
is removed from Qt 5.6

Qt 5.6 is specified in the kdesettings.ini file. I tried to ignore the package
by:

Ignores = kdewebkit
and 
Ignores = frameworks/kdewebkit

but emerge still attempts to build kdewebkit resulting in error below:

CMake Error at r:/lib/cmake/Qt5/Qt5Config.cmake:26 (find_package):
  Could not find a package configuration file provided by "Qt5WebKitWidgets"
  with any of the following names:

    Qt5WebKitWidgetsConfig.cmake
    qt5webkitwidgets-config.cmake

  Add the installation prefix of "Qt5WebKitWidgets" to CMAKE_PREFIX_PATH or
  set "Qt5WebKitWidgets_DIR" to a directory containing one of the above
  files.  If "Qt5WebKitWidgets" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:10 (find_package)

Reproducible: Always

Steps to Reproduce:
1. emerge frameworks
2.
3.

Actual Results:  
kdewebkit is compiled

Expected Results:  
kdewebkit should not be build for Qt 5.6+

--

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Kde-windows mailing list
Kde-windows <at> kde.org
https://mail.kde.org/mailman/listinfo/kde-windows
Picon

[frameworks-kdoctools] [Bug 362849] meinproc5.exe searches the wrong path for kdoctools

https://bugs.kde.org/show_bug.cgi?id=362849

--- Comment #3 from Jasem Mutlaq <mutlaqja <at> ikarustech.com> ---
I suspect it could be due to some environment variables not being set? Here is
my environment variables:

PS D:\> Get-ChildItem Env:

Name                           Value
----                           -----
ALLUSERSPROFILE                C:\ProgramData
APPDATA                        C:\Users\Jasem\AppData\Roaming
APR_ICONV_PATH                 C:\Program Files (x86)\Subversion\iconv
CommandPromptType              Native
CommonProgramFiles             C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)        C:\Program Files (x86)\Common Files
CommonProgramW6432             C:\Program Files\Common Files
COMPUTERNAME                   JASEM-PC
ComSpec                        C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK               NO
FPS_BROWSER_APP_PROFILE_STRING Internet Explorer
FPS_BROWSER_USER_PROFILE_ST... Default
Framework40Version             v4.0
FrameworkDir                   C:\WINDOWS\Microsoft.NET\Framework64
FrameworkDIR64                 C:\WINDOWS\Microsoft.NET\Framework64
FrameworkVersion               v4.0.30319
FrameworkVersion64             v4.0.30319
git_ssh                        plink
HOME                           C:\Users\Jasem
HOMEDRIVE                      C:
HOMEPATH                       \Users\Jasem
INCLUDE                        C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Windows
Kits\10\include\10.0.10240.0\ucrt;C:\Program Files (x86)\Windows Kits\NE...
KDEROOT                        D:\k
LIB                            C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\LIB\amd64;C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\ATLMFC\LIB\amd64;C:\Program Files (x86)\Windows
Kits\10\lib\10.0.10240.0\ucrt\x64;C:\Program Files (x86)\Windows Kit...
LIBPATH                       
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files
(x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64;C:\Program Files
(x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64;C:\Program Files
(x86)\Windows Kits\8.1\References\...
LOCALAPPDATA                   C:\Users\Jasem\AppData\Local
LOGONSERVER                    \\MicrosoftAccount
NETFXSDKDir                    C:\Program Files (x86)\Windows
Kits\NETFXSDK\4.6.1\
NUMBER_OF_PROCESSORS           8
OS                             Windows_NT
Path                          
D:\k\bin;D:\k\dev-utils\bin;D:\Qt\Qt5.6.0\5.6\msvc2015\bin;C:\Program Files
(x86)\Microsoft Visual Studio
14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files
(x86)\MSBuild\14.0\bin\amd64;C:\Program Files (x86)\MSBuil...
PATHEXT                       
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW;.CPL
PKG_CONFIG_PATH                D:\k\lib\pkgconfig
Platform                       X64
PROCESSOR_ARCHITECTURE         x86
PROCESSOR_ARCHITEW6432         AMD64
PROCESSOR_IDENTIFIER           Intel64 Family 6 Model 58 Stepping 9,
GenuineIntel
PROCESSOR_LEVEL                6
PROCESSOR_REVISION             3a09
ProgramData                    C:\ProgramData
ProgramFiles                   C:\Program Files (x86)
ProgramFiles(x86)              C:\Program Files (x86)
ProgramW6432                   C:\Program Files
PROMPT                         $P$G
PSModulePath                  
C:\Users\Jasem\Documents\WindowsPowerShell\Modules;C:\Program
Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC                         C:\Users\Public
PythonPath                     D:\k\lib\site-packages
QT_PLUGIN_PATH                 D:\k\plugins;D:\k\lib\plugins;D:\k\lib\plugin
SESSIONNAME                    Console
svn_ssh                        plink
SystemDrive                    C:
SystemRoot                     C:\WINDOWS
TEMP                           C:\Users\Jasem\AppData\Local\Temp
TMP                            C:\Users\Jasem\AppData\Local\Temp
UCRTVersion                    10.0.10240.0
UniversalCRTSdkDir             C:\Program Files (x86)\Windows Kits\10\
USERDOMAIN                     JASEM-PC
USERDOMAIN_ROAMINGPROFILE      JASEM-PC
USERNAME                       Jasem
USERPROFILE                    C:\Users\Jasem
VBOX_MSI_INSTALL_PATH          C:\Program Files\Oracle\VirtualBox\
VCINSTALLDIR                   C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\
VisualStudioVersion            14.0
VS110COMNTOOLS                 C:\Program Files (x86)\Microsoft Visual Studio
11.0\Common7\Tools\
VS120COMNTOOLS                 C:\Program Files (x86)\Microsoft Visual Studio
12.0\Common7\Tools\
VS140COMNTOOLS                 C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\Tools\
VSINSTALLDIR                   C:\Program Files (x86)\Microsoft Visual Studio
14.0\
windir                         C:\WINDOWS
windows_tracing_flags          3
windows_tracing_logfile        C:\BVTBin\Tests\installpackage\csilogfile.log
WindowsLibPath                 C:\Program Files (x86)\Windows
Kits\8.1\References\CommonConfiguration\Neutral
WindowsSDK_ExecutablePath_x64  C:\Program Files (x86)\Microsoft
SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\
WindowsSDK_ExecutablePath_x86  C:\Program Files (x86)\Microsoft
SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\
WindowsSdkDir                  C:\Program Files (x86)\Windows Kits\8.1\
WindowsSDKLibVersion           winv6.3\
WindowsSDKVersion              \
XDG_DATA_DIRS                  D:\k\share

If I explicitly pass  --srcdir D:\k\share\kf5\kdoctools\

Then meinproc5.exe works just fine. The problem is when no source dir is being
passed. I see that in xslt.cpp:

QStringList locateFilesInDtdResource(const QString &file, const
QStandardPaths::LocateOptions option)

In source dir is empty, it searches for it here:

const QString fileName = QStringLiteral("kf5/kdoctools/") + file;
    const QStringList result =
QStandardPaths::locateAll(QStandardPaths::GenericDataLocation,
            fileName, option);

But then GenericDataLocation for Windows is no way near D:\k\share 

Should it perhaps use the XDG_DATA_DIRS environment variable to search there?

--

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Kde-windows mailing list
Kde-windows <at> kde.org
https://mail.kde.org/mailman/listinfo/kde-windows
Picon

[frameworks-kdoctools] [Bug 362849] meinproc5.exe searches the wrong path for kdoctools

https://bugs.kde.org/show_bug.cgi?id=362849

--- Comment #2 from Jasem Mutlaq <mutlaqja <at> ikarustech.com> ---
Any update on this issue? Was this tested on Win10? under powershell?

--

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Kde-windows mailing list
Kde-windows <at> kde.org
https://mail.kde.org/mailman/listinfo/kde-windows
Cojocaru Raphael | 16 May 19:45 2016
Picon
Gravatar

Some questions regarding packaging KStars

Hi everyone!

Working on "KStars on Windows" project, I met some challenges and now I have some questions that I can't find the answers. I would really appreciate any help from KDE-Windows team.
After I successfully built KStars, I've got two folders with "kstars.exe" inside (only kstars.exe" inside actually):

- C:\K\build\kde\kstars\work\msvc2015-RelWithDebInfo-master\bin  AND

- C:\K\build\kde\kstars\image-msvc2015-RelWithDebInfo-master\bin

I tried to run "kstars.exe" from inside both of them and the execution failed due to various missing DLLs.

1.) Is this normal? Shouldn't all dependencies needed by KStars be automatically solved by emerge tool?

In order to run "kstars.exe" I needed to manually add all required DLLs inside those two directories.

2.) Another question is: Why those two "kstars.exe" run differently? The file from "work" folder lacks lot of functionality, while the other "kstars.exe" runs perfectly, keeping the entire functionality.

3.) But, at the same time, I have another "kstars.exe" file inside "C:\K\bin" directory, that runs without requiring to copy all those DLLs. I added KStars icons using "emerge --update kstars", after I modified the "kstars.py" file. The changes have been applied only on this "kstars.exe" from "C:\K\bin" and not to the other two as well. Why? Is this normal? If not, please tell me, how could I update the other two executable files as well?


Secondly, I tried to package KStars, but because all those DLLs were missing, the installer I've got was not functional at all. 

Until now I thought that "emerge --package kstars" will do the entire packaging job for me. This means it should automatically collect all files needed by "kstars.exe" in order to run.

4) How could I actually get this functionality and what I've made wrong? (or how should be done this job)
Thanks in advance!


Best regards, 

Raphael

_______________________________________________
Kde-windows mailing list
Kde-windows <at> kde.org
https://mail.kde.org/mailman/listinfo/kde-windows
Gleb Popov | 19 May 15:12 2016
Picon
Gravatar

Review Request 127962: Patch QProcess::startDetached() so that console applications wouldn't show up if they are launched from a GUI app.

This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/127962/

Review request for kdewin and Kevin Funk.
By Gleb Popov.
Repository: emerge

Description

Ran KDevelop and it doesn't spawn console windows anymore.

Diffs

  • portage/libs/qt5/qtbase/qtbase-20130714.patch (86d5897)

View Diff

_______________________________________________
Kde-windows mailing list
Kde-windows <at> kde.org
https://mail.kde.org/mailman/listinfo/kde-windows
Picon

[frameworks-kdoctools] [Bug 362849] meinproc5.exe searches the wrong path for kdoctools

https://bugs.kde.org/show_bug.cgi?id=362849

Luigi Toscano <luigi.toscano <at> tiscali.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kde-windows <at> kde.org,
                   |                            |luigi.toscano <at> tiscali.it

--- Comment #1 from Luigi Toscano <luigi.toscano <at> tiscali.it> ---
This was tested and it should definitely work, but I need help from windows
developers.

--

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Kde-windows mailing list
Kde-windows <at> kde.org
https://mail.kde.org/mailman/listinfo/kde-windows
Jasem Mutlaq | 7 May 14:40 2016

emerge fails after building KF5 Tier 1

OS: Win10 64bit
Compiler: MSVS 2015
Qt. 5.6 (NOT emerged, I downloaded the Qt SDK for MSVC 2015)

I ran 'emerge frameworks' and it ran fine but failed after building the breeze-icons package. Here is the error. I'm not sure which package does not have 'source system set', the error is not clear. I tried building Tier2 manually after that, but then got an error for meinproc5.exe I reported in an earlier email:

-- Installing: D:/k/build/frameworks/breeze-icons/image-msvc2015-RelWithDebInfo-master/k/share/icons/breeze-dark/status/
22/process-working-kde.svg
-- Installing: D:/k/build/frameworks/breeze-icons/image-msvc2015-RelWithDebInfo-master/k/share/icons/breeze-dark/status/
22/process-working.svg
-- Installing: D:/k/build/frameworks/breeze-icons/image-msvc2015-RelWithDebInfo-master/k/share/icons/breeze-dark/status/
22/script-error.svg
*** Emerge all succeeded: all of frameworks/breeze-icons succeeded after 0:02:26 ***
emerge debug (2): executing sqlcmd 'SELECT * FROM packageList WHERE packageName=? AND category=?;' with parameters: ('ti
er1', 'frameworks')
emerge debug (1): Couldn't find a trace that the package frameworks/tier1 has been installed in
                            prefix 'None' with version 'None'
________________________________________________________________________________
*** Handling package: tier1, action: all ***
emerge fatal error: none or unsupported source system set
  File "D:\k\emerge\bin\emerge.py", line 475, in <module>
    success = main()
  File "D:\k\emerge\bin\emerge.py", line 454, in main
    if not handleSinglePackage( packageName, action, tempArgs ):
  File "D:\k\emerge\bin\emerge.py", line 253, in handleSinglePackage
    if not handlePackage( info.category, info.package, action, args.doContinue, args.update_fast ):
  File "D:\k\emerge\bin\emerge.py", line 77, in handlePackage
    success = success and doExec( package, "qmerge" )
  File "D:\k\emerge\bin\utils.py", line 586, in inner
    return fn(*args, **argv)
  File "D:\k\emerge\bin\emerge.py", line 46, in doExec
    ret = package.execute( action )
  File "D:\k\emerge\bin\Package\PackageBase.py", line 214, in execute
    return self.runAction(command)
  File "D:\k\emerge\bin\Package\PackageBase.py", line 241, in runAction
    ok = getattr(self, functions[command])()
  File "D:\k\emerge\bin\Package\PackageBase.py", line 76, in qmerge
    revision = self.sourceRevision()
  File "D:\k\emerge\bin\Source\MultiSource.py", line 92, in sourceRevision
    return self.source.sourceRevision()
  File "D:\k\emerge\bin\Source\MultiSource.py", line 23, in source
    self.__source = SourceFactory(self.subinfo)
  File "D:\k\emerge\bin\Source\SourceFactory.py", line 36, in SourceFactory
    EmergeDebug.die("none or unsupported source system set")
  File "D:\k\emerge\bin\EmergeDebug.py", line 97, in die
    raise Exception("emerge fatal error: %s" % message)
PS D:\k>

--
Best Regards,
Jasem Mutlaq

_______________________________________________
Kde-windows mailing list
Kde-windows <at> kde.org
https://mail.kde.org/mailman/listinfo/kde-windows

Gmane