[MacPorts] #49721: dangerous bug in Qt5
MacPorts
noreply at macports.org
Mon Nov 23 04:33:36 PST 2015
#49721: dangerous bug in Qt5
--------------------------+------------------------
Reporter: rjvbertin@… | Owner: mcalhoun@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: qt5 |
--------------------------+------------------------
Comment (by mcalhoun@…):
For reference:
* The issue was first brought up on the [https://mail.kde.org/pipermail
/kde-frameworks-devel/2015-November/thread.html#28556 KDE mailing list].
* It then proceeded to the [http://lists.qt-
project.org/pipermail/development/2015-November/thread.html#23735 QT
mailing list].
* A possible solution can be found in the
[https://trac.macports.org/attachment/ticket/48967/qt5-kde.tar.bz2 zip
file] of #48967 or the
[https://github.com/RJVB/macstrop/blob/master/aqua/qt5-kde/files/fix-
qstandardpaths3.patch git repository].
If I understand the problem:
* If {{{isTestModeEnabled()}}} returns true,
[http://doc.qt.io/qt-5/qstandardpaths.html standard paths] change.
* {{{/Library/Application Support}}} becomes {{{~/.qttest/Application
Support}}}.
* etc.
* On OS X, {{{ApplicationsLocation}}} stays {{{/Applications}}} whether
{{{isTestModeEnabled()}}} return true or not.[[BR]]
* There is a program out there that runs
{{{removeDir(ApplicationsLocation)}}} assuming that it is deleting a
folder in {{{~/.qttest}}}
* This assumption has catastrophic results on OS X.
{{{isTestModeEnabled()}}} return true, what is {{{ApplicationsLocation}}}
on Windows and Linux that would make {{{removeDir(ApplicationsLocation)}}}
safe?[[BR]]
Doesn't {{{removeDir(ApplicationsLocation)}}} delete '''ALL''' other
application testing data and not just for that particular program?[[BR]]
Are you simply not supposed to run two tests at the same time?
This sounds like a problem that needs to be addressed either upstream or
with the unit test writers.[[BR]]
I would suggest submitting a bug or a patch with either group.
--
Ticket URL: <https://trac.macports.org/ticket/49721#comment:7>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list