Discussion:
[MacPorts] #57332: kde4-workspace failes to build under Mojave
MacPorts
2018-10-09 19:59:43 UTC
Permalink
#57332: kde4-workspace failes to build under Mojave
--------------------------+----------------------------
Reporter: cs0rfecs0rfe | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Keywords: | Port: kde4-workspace
--------------------------+----------------------------
Attempting a clean install of kde4-workspace fails to build:


{{{
:info:build Undefined symbols for architecture x86_64:
:info:build "ScreenPreviewWidget::setPreview(Plasma::Wallpaper*)",
referenced from:
:info:build BackgroundDialog::changeBackgroundMode(int) in
backgrounddialog.cpp.o
:info:build "ScreenPreviewWidget::setRatio(double)", referenced from:
:info:build BackgroundDialog::BackgroundDialog(QSize const&,
Plasma::Containment*, Plasma::View*, QWidget*, QString const&,
KConfigSkeleton*) in backgrounddialog.cpp.o
:info:build "ScreenPreviewWidget::ScreenPreviewWidget(QWidget*)",
referenced from:
:info:build BackgroundDialog::BackgroundDialog(QSize const&,
Plasma::Containment*, Plasma::View*, QWidget*, QString const&,
KConfigSkeleton*) in backgrounddialog.cpp.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v
to see invocation)
}}}

Is the appropriate (screenpreviewwidget) library missing from the list
passed to the linker?
--
Ticket URL: <https://trac.macports.org/ticket/57332>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-09 20:01:47 UTC
Permalink
#57332: kde4-workspace failes to build under Mojave
-----------------------------+--------------------
Reporter: cs0rfecs0rfe | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+--------------------
Changes (by cs0rfecs0rfe):

* Attachment "main.log" added.

Log file referred to by the top level error message.
--
Ticket URL: <https://trac.macports.org/ticket/57332>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-09 20:19:30 UTC
Permalink
#57332: kde4-workspace failes to build under Mojave
-----------------------------+--------------------
Reporter: cs0rfecs0rfe | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+--------------------

Comment (by mf2k):

In the future, please add the port maintainer(s) to Cc ({{{port info
--maintainers kde4-workspace}}}), if any.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-09 20:19:48 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------
Changes (by mf2k):

* status: new => assigned
* owner: (none) => RJVB
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-09 21:25:54 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------

Comment (by RJVB):

Those symbols are provided through libkworkspace, and as far as I can see
that library is generated and included on the failing link command.

Has anything changed in 10.14 w.r.t. the default symbol visibility?
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-10 13:24:26 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------
Post by MacPorts
In the future, please add the port maintainer(s) to Cc ({{{port info
--maintainers kde4-workspace}}}), if any.
Apologies, I will do. That's the first time I've raised a ticket. - Ian
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-10 14:52:54 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------
Changes (by RJVB):

* Attachment "kde4-workspace.diff" added.

port dir diff
--
Ticket URL: <https://trac.macports.org/ticket/57332>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-10 14:58:17 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------

Comment (by RJVB):

Can you please apply the attached patch to the port dir

{{{
(cd `port dir kde4-workspace`/../.. ; patch -Np1 -i
/path/to/kde4-workspace.diff)
}}}

and then retry the build after doing `port clean kde4-workspace`?

The patch bumps the port to the latest version and drops the build of all
plasma components. Those were never quite useful and omitting their build
may just work around the problem if (as I hope) it was in fact the only
manifestation of whatever breaks the build on 10.14 .

The patch also adds -k to the build options, so if more errors are laying
in wait we should get them all at once.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-10 16:42:23 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------

Comment (by cs0rfecs0rfe):

Working on it now.......
Post by MacPorts
Can you please apply the attached patch to the port dir
{{{
(cd `port dir kde4-workspace`/../.. ; patch -Np1 -i
/path/to/kde4-workspace.diff)
Post by MacPorts
}}}
and then retry the build after doing `port clean kde4-workspace`?
The patch bumps the port to the latest version and drops the build of
all plasma components. Those were never quite useful and omitting their
build may just work around the problem if (as I hope) it was in fact the
only manifestation of whatever breaks the build on 10.14 .
Post by MacPorts
The patch also adds -k to the build options, so if more errors are
laying in wait we should get them all at once.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-10 17:31:16 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------
Changes (by cs0rfecs0rfe):

* Attachment "main.2.log" added.

main.log after rebuild following patch.
--
Ticket URL: <https://trac.macports.org/ticket/57332>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-10 17:32:17 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------
Post by MacPorts
Can you please apply the attached patch to the port dir
{{{
(cd `port dir kde4-workspace`/../.. ; patch -Np1 -i
/path/to/kde4-workspace.diff)
Post by MacPorts
}}}
and then retry the build after doing `port clean kde4-workspace`?
The patch bumps the port to the latest version and drops the build of
all plasma components. Those were never quite useful and omitting their
build may just work around the problem if (as I hope) it was in fact the
only manifestation of whatever breaks the build on 10.14 .
Post by MacPorts
The patch also adds -k to the build options, so if more errors are
laying in wait we should get them all at once.




Hi RJVB,

I applied the patch which resulted in the following output:
{{{
patching file kde/kde4-workspace/Portfile
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file
kde/kde4-workspace/Portfile.rej
The next patch would delete the file kde/kde4-workspace/files/no-oxygen-
theme.patch,
which does not exist! Skipping patch.
1 out of 1 hunk ignored
patching file kde/kde4-workspace/files/patch-CMakeLists-for-OSX.patch
Reversed (or previously applied) patch detected! Skipping patch.
7 out of 7 hunks ignored -- saving rejects to file
kde/kde4-workspace/files/patch-CMakeLists-for-OSX.patch.rej
The next patch would create the file kde/kde4-workspace/files/patch-input-
wheelzooms.diff,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file kde/kde4-workspace/files
/patch-input-wheelzooms.diff.rej
The next patch would delete the file kde/kde4-workspace/files/patch-libs-
CMakeLists.patch,
which does not exist! Skipping patch.
1 out of 1 hunk ignored
}}}

I then rebuilt (sudo port install kde4-workspace) which resulted in the
attached log file.

Have I done this correctly? Was 'port install' the right thing to do or
should I have used some other command to rebuild without downloading?
Please excuse the dumb questions - I'm a recent immigrant to Mac/Macports
from Linux and I'm still finding my way around.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-10 18:07:35 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------

Comment (by RJVB):

Erm, from what tree did you get the port, i.e. what does `port dir
kde4-workspace` print? Or did you maybe apply the patch twice, the errors
above suggest that? Actually, that's the only scenario where these exact
errors would make sense.

Either way you're now getting a lot further but there are 3 or 4 other and
highly similar errors. Which I cannot reproduce, and which don't seem to
make sense.

The errors about missing typeinfo and vtable do ring a bell; I've seen
that happen in Qt5 code (under QMake control) because of a missing moc
file, but in KDE software (which is under CMake control) that should give
a missing file error much earlier during the build.

The only thing I can suggest at this point is to clean the build again and
try with the same compiler I have been able to test with: clang 5.0 from
MacPorts. At least we can then exclude the possibility that the system
clang has introduced some subtle incompatibility.
For that, do `sudo port -s install kde4-workspace configure.compiler
=macports-clang-5.0` . BTW, if you don't plan to use the oxygen style you
can speed up things a bit (and get rid of 1 error) by disabling the style;
add `-oxygen` just after the port name.
If you're handy with a text editor and cli-fu I can give some instructions
how to skip the git checkout step which takes a couple of minutes (for
me).

BTW, did you already install other KDE4 ports? The kde4-workspace port is
of interest only (on Mac) if you want to be able to configure a small
selection of KDE configurable things (incl. icon theme, fonts, widget
style) without editing the configuration files by hand. It does not
provide a full plasma desktop, that's not possible on Mac.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-10 19:01:59 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------
Post by MacPorts
Erm, from what tree did you get the port, i.e. what does `port dir
kde4-workspace` print? Or did you maybe apply the patch twice, the errors
above suggest that? Actually, that's the only scenario where these exact
errors would make sense.
Post by MacPorts
Either way you're now getting a lot further but there are 3 or 4 other
and highly similar errors. Which I cannot reproduce, and which don't seem
to make sense.
Post by MacPorts
The errors about missing typeinfo and vtable do ring a bell; I've seen
that happen in Qt5 code (under QMake control) because of a missing moc
file, but in KDE software (which is under CMake control) that should give
a missing file error much earlier during the build.
Post by MacPorts
The only thing I can suggest at this point is to clean the build again
and try with the same compiler I have been able to test with: clang 5.0
from MacPorts. At least we can then exclude the possibility that the
system clang has introduced some subtle incompatibility.
Post by MacPorts
For that, do `sudo port -s install kde4-workspace configure.compiler
=macports-clang-5.0` . BTW, if you don't plan to use the oxygen style you
can speed up things a bit (and get rid of 1 error) by disabling the style;
add `-oxygen` just after the port name.
Post by MacPorts
If you're handy with a text editor and cli-fu I can give some
instructions how to skip the git checkout step which takes a couple of
minutes (for me).
Post by MacPorts
BTW, did you already install other KDE4 ports? The kde4-workspace port
is of interest only (on Mac) if you want to be able to configure a small
selection of KDE configurable things (incl. icon theme, fonts, widget
style) without editing the configuration files by hand. It does not
provide a full plasma desktop, that's not possible on Mac.




Many thanks for rapid and detailed response.

a) Yes, it's possible I applied the patch twice - sorry about that. For
what it's worth, {{{port dir kde4-workspace}}} returns:

{{{
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/kde/kde4-workspace
}}}

b) I'll have a go with clang and report back

c) Yes, I'm cli/text-editor compliant!

d) I've installed several of the KDE ports - (I'm really interested in
okteta, konsole, kwrite and konqueror) but I have problem with them (a bad
'flashing' when they seem to refresh some of their window components out
of sync). In order to try and fix that I *think* I need to set the 'look
and feel' (?) to qtcurve. I'd assumed I need systemsettings (which is part
of kde-workspace) to do that, but I guess
from what you say there must be a configuration file somewhere I could
edit. If I can get systemsettings sorted I'll raise another ticket for my
flashing problem.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-10 19:14:16 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------

Comment (by cs0rfecs0rfe):

Attempted build with:

{{{
sudo port clean kde4-workspace
sudo port -s install kde4-workspace -oxygen configure.compiler=macports-
clang-5.0
}}}

This too fails - the resulting log if main.log.3 (attached).
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-10 19:14:35 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------
Changes (by cs0rfecs0rfe):

* Attachment "main.log.3.txt" added.
--
Ticket URL: <https://trac.macports.org/ticket/57332>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-10 20:55:02 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------

Comment (by RJVB):

Does QtCurve build OK? The port comes with a few theme files, and includes
a basic kdeglobals file for the GTk2 theme which you can use as a starting
point. It also has a stylerc file for the style style (installed as
`/opt/local/etc/xdg/qtcurve/stylerc`). I can't remember now if the Qt4
style uses that file, but you can copy it to `~/.config/qtcurve/stylerc`.
It's tuned to fit in as well as possible with the native Mac look.

You say you come from Linux, so the obvious alternative (which I also used
in the beginning!) would be to prepare and then take your
`~/.kde/share/config/kdeglobals` file from there and then edit it to refer
to the proper paths. On Mac it will probably have to live in
~/Library/Preferences/KDE/share/config, btw.

Note however that I won't be able to do anything about the flashing you
mention, but you can experiment with `--graphicssystem opengl` or by
setting the `RasterOff` environment variable.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-11 08:25:03 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------

Comment (by RJVB):

A thought: could you see if you have the 10.13 SDK installed in XCode, and
install it if not? XCode itself may have a UI for that in its preferences
dialog, if not they're here:

https://github.com/phracker/MacOSX-SDKs

Then edit the portfile (`port edit kde4-workspace`) and somewhere
appropriate put the following

{{{
set macosx_deployment_target 10.13
configure.sdkroot /path/to/MacOSX10.13.sdk
}}}

then, to speed up the process:

{{{
sudo rm -rf `port work kde4-workspace`/build
sudo vi `port work kde4-workspace`/.macports.kde4-workspace.state
}}}

From that statefile, remove the lines that say the configure step has been
done. This basically "rewinds" the MacPorts install-from-source procedure.

If you're adventurous and feel like helping out you could iterate this,
downgrading the SDK until the port installs...
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-11 11:25:14 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------
Post by MacPorts
Does QtCurve build OK? The port comes with a few theme files, and
includes a basic kdeglobals file for the GTk2 theme which you can use as a
starting point. It also has a stylerc file for the style style (installed
as `/opt/local/etc/xdg/qtcurve/stylerc`). I can't remember now if the Qt4
style uses that file, but you can copy it to `~/.config/qtcurve/stylerc`.
It's tuned to fit in as well as possible with the native Mac look.
Post by MacPorts
You say you come from Linux, so the obvious alternative (which I also
used in the beginning!) would be to prepare and then take your
`~/.kde/share/config/kdeglobals` file from there and then edit it to refer
to the proper paths. On Mac it will probably have to live in
~/Library/Preferences/KDE/share/config, btw.
Post by MacPorts
Note however that I won't be able to do anything about the flashing you
mention (if it's anything other than the known glitches which can be
avoided by using QtCurve). But you can experiment with `--graphicssystem
opengl` or by setting the `RasterOff` environment variable.


Thank you for that. My "uber-problem" is now solved - setting 'RasterOff'
cured the flickering. For what it's worth, yes QtCurve does build
correctly. If you want to continue and try and solve the kde4-workspace
non-building problem, I'm happy to keep running tests, but essentially I'm
happy with the current outcome. Thanks again for your speedy and
insightful responses.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-11 11:57:05 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------

Comment (by RJVB):

Good to hear that! Someone (@nicos?) should try to make "non raster mode"
the default on 10.14 and newer then!

As to continuing with this ticket: I'm flabbergasted by it and thus would
like to figure out what's going on - on a backburner. The ball is in your
camp; I gave some suggestions that you could try; I also asked for
guidance on a KDE ML.

Note that with Qt4/KDE4 you can also use qtconfig to set a different
default widget style; you'd have to do in that utility too anyway.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-11 17:23:04 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------
mode" the default on 10.14 and newer then!
Post by MacPorts
As to continuing with this ticket: I'm flabbergasted by it and thus
would like to figure out what's going on - on a backburner. The ball is in
your camp; I gave some suggestions that you could try; I also asked for
guidance on a KDE ML.
Post by MacPorts
Note that with Qt4/KDE4 you can also use qtconfig to set a different
default widget style; you'd have to do in that utility too anyway.

I'll keep going in backburner mode then. I'd missed your suggestions in
comment 12 so I'll give them a try and get back to you. I'm not sure what
you mean by "guidance on a KDE ML" though?
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-11 20:43:50 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------
Changes (by RJVB):

* Attachment "kde4-workspace.2.diff" added.

port dir patch take 2
--
Ticket URL: <https://trac.macports.org/ticket/57332>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-10-11 20:50:49 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------

Comment (by RJVB):

I am hoping to get some insight from a KDE mailing list (frameworks-
devel).

Meanwhile here's another thing you can try. Revert my earlier patch with

{{{
(cd `port dir kde4-workspace`/../.. ; patch -Np1 -R -i
/path/to/kde4-workspace.diff)
}}}

and then apply the newly attached patch kde4-workspace.2.diff .

This injects a hack into the kde-workspace build system that disables the
use of hidden visibility.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-07 02:51:49 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------
Post by MacPorts
Thank you for that. My "uber-problem" is now solved - setting
'RasterOff' cured the flickering. For what it's worth, yes QtCurve does
build correctly. If you want to continue and try and solve the
kde4-workspace non-building problem, I'm happy to keep running tests, but
essentially I'm happy with the current outcome. Thanks again for your
speedy and insightful responses.
Where do you set 'RasterOff'? It is not clear from this thread. Thanks!
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:18>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-07 09:04:54 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------

Comment (by RJVB):

`RasterOff` is an environment variable, so there are various ways to set
it, including in your .login or .profile or .cshrc file.

It looks though that `port:kdelibs4` needs to be modified for 10.14, so
that RasterOff becomes the default for all KDE applications (it should
already be for "pure" Qt4 apps, I think). That'd be for @nicos...
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:19>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-07 14:20:56 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------
Post by MacPorts
`RasterOff` is an environment variable, so there are various ways to set
it, including in your .login or .profile or .cshrc file.

Ah, OK. This seems strange to me. At first I thought it should go in
kdeglobals. Having `export RasterOff=true` in .profile does work, but only
if you launch the kde apps from the terminal, for example `open -a
kwrite`. I found that using EnvPane (https://github.com/hschmidt/EnvPane)
was a better overall solution.
Post by MacPorts
It looks though that `port:kdelibs4` needs to be modified for 10.14, so
that RasterOff becomes the default for all KDE applications (it should
already be for "pure" Qt4 apps, I think). That'd be for @nicos...

That would be great. I'll open a ticket if someone else hasn't.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:20>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-07 14:57:05 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------
Post by MacPorts
Ah, OK. This seems strange to me. At first I thought it should go in
kdeglobals.

Not strange; it's the cheapest way to implement control over a setting
that is not expected to need changing.

You're the one who confirmed that `RasterOff=1` does the trick on 10.14,
so the honour of filing a ticket goes to you AFAIC ;)
If you do make sure to refer to this ticket, and you can also point Nicos
to a KCM that should be useful (https://www.linux-
apps.com/content/show.php?content=129817).
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:21>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-09 16:58:00 UTC
Permalink
#57332: kde4-workspace fails to build under Mojave
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------

Comment (by jjstickel):

I created a pull request for the Raster issue here:
https://github.com/macports/macports-ports/pull/2974
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:22>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-11 06:18:57 UTC
Permalink
#57332: kde4-workspace fails to build with Xcode 10
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------
Changes (by ryandesign):

* cc: gusbemacbe (added)


Comment:

Has duplicate #57566 which is on High Sierra but wiht Xcode 10.1.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:23>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-11 09:18:44 UTC
Permalink
#57332: kde4-workspace fails to build with Xcode 10
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------
Post by MacPorts
I am hoping to get some insight from a KDE mailing list (frameworks-
devel).

Nothing, of course. I may have identified a similar issue in KF5 code
however, and might file a bug report for that.
Post by MacPorts
Meanwhile here's another thing you can try. Revert my earlier patch with
{{{
(cd `port dir kde4-workspace`/../.. ; patch -Np1 -R -i
/path/to/kde4-workspace.diff)
Post by MacPorts
}}}
and then apply the newly attached patch kde4-workspace.2.diff .
This injects a hack into the kde-workspace build system that disables
the use of hidden visibility.

Has this been tried? Has anyone tried using a MacPorts clang compiler?
(`configure.compiler=macports-clang-N` where N is 5.0 or higher)?

If all else fails I could talk willing volunteers through installing my
version of the GCC 7.3 compiler that has a `-stdlib=libc++` option.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:24>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-11 19:29:21 UTC
Permalink
#57332: kde4-workspace fails to build with Xcode 10
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------

Comment (by jjstickel):

Applying your patch kde4-workspace.2.diff worked for me.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:25>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-11 19:44:23 UTC
Permalink
#57332: kde4-workspace fails to build with Xcode 10
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------

Comment (by RJVB):

whew, thanks for the heads-up.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:26>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-11 21:30:04 UTC
Permalink
#57332: kde4-workspace fails to build with Xcode 10
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------

Comment (by gusbemacbe):

As you seem to fix it, may I reinstall kde4-workspace or do I have to
wait?
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:27>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-11 21:54:27 UTC
Permalink
#57332: kde4-workspace fails to build with Xcode 10
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------

Comment (by RJVB):

not sure what you mean?

If you currently have kde4-workspace installed there is no point in
reinstalling. I cannot make changes myself to the official kde4-workspace
port, so I have to ask someone, and those changes will only affect how
it's built (without hiding private symbols in libraries). There should be
no effect on runtime behaviour at all.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:28>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-12 14:03:57 UTC
Permalink
#57332: kde4-workspace fails to build with Xcode 10
-----------------------------+----------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: kde4-workspace |
-----------------------------+----------------------

Comment (by RJVB):

https://github.com/macports/macports-ports/pull/2994
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:29>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-12-08 19:32:58 UTC
Permalink
#57332: kde4-workspace fails to build with Xcode 10
-----------------------------+--------------------
Reporter: cs0rfecs0rfe | Owner: RJVB
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: fixed | Keywords:
Port: kde4-workspace |
-----------------------------+--------------------
Changes (by pmetzger):

* status: assigned => closed
* resolution: => fixed


Comment:

Should now be fixed.
--
Ticket URL: <https://trac.macports.org/ticket/57332#comment:31>
MacPorts <https://www.macports.org/>
Ports system for macOS
Loading...