Bug 358136

Summary: kwayland master doesn't compile against Wayland master and QT 5.6
Product: [Frameworks and Libraries] kwayland Reporter: bluescreenavenger
Component: generalAssignee: Martin Flöser <mgraesslin>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.5.4
Sentry Crash Report:

Description bluescreenavenger 2016-01-17 17:30:22 UTC
I am getting this set of errors

[ 17%] Generating wayland-org_kde_kwin_outputdevice-client-protocol.h
protocol:304: element entry: validity error : Element entry content does not follow the DTD, expecting (description)?, got (CDATA)
protocol:308: element entry: validity error : Element entry content does not follow the DTD, expecting (description)?, got (CDATA)
protocol:311: element entry: validity error : Element entry content does not follow the DTD, expecting (description)?, got (CDATA)
protocol:314: element entry: validity error : Element entry content does not follow the DTD, expecting (description)?, got (CDATA)
*******************************************************
*                                                     *
* WARNING: XML failed validation against built-in DTD *
*                                                     *
*******************************************************
<stdin>:330: error: since (2) larger than version (1)

src/server/CMakeFiles/KF5WaylandServer.dir/build.make:87: recipe for target 'src/server/wayland-plasma-shell-client-protocol.h' failed
make[2]: *** [src/server/wayland-plasma-shell-client-protocol.h] Error 1
make[2]: *** Deleting file 'src/server/wayland-plasma-shell-client-protocol.h'
CMakeFiles/Makefile2:230: recipe for target 'src/server/CMakeFiles/KF5WaylandServer.dir/all' failed
make[1]: *** [src/server/CMakeFiles/KF5WaylandServer.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
protocol:304: element entry: validity error : Element entry content does not follow the DTD, expecting (description)?, got (CDATA)
protocol:308: element entry: validity error : Element entry content does not follow the DTD, expecting (description)?, got (CDATA)
protocol:311: element entry: validity error : Element entry content does not follow the DTD, expecting (description)?, got (CDATA)
protocol:314: element entry: validity error : Element entry content does not follow the DTD, expecting (description)?, got (CDATA)
*******************************************************
*                                                     *
* WARNING: XML failed validation against built-in DTD *
*                                                     *
*******************************************************
<stdin>:330: error: since (2) larger than version (1)

src/client/CMakeFiles/KF5WaylandClient.dir/build.make:88: recipe for target 'src/client/wayland-plasma-shell-client-protocol.h' failed
make[2]: *** [src/client/wayland-plasma-shell-client-protocol.h] Error 1
make[2]: *** Deleting file 'src/client/wayland-plasma-shell-client-protocol.h'
make[2]: *** Waiting for unfinished jobs....
[ 17%] Generating wayland-idle-client-protocol.h
[ 18%] Generating wayland-plasma-window-management-client-protocol.h
protocol:32: element arg: validity error : No declaration for attribute description of element arg
*******************************************************
*                                                     *
* WARNING: XML failed validation against built-in DTD *
*                                                     *
*******************************************************
CMakeFiles/Makefile2:142: recipe for target 'src/client/CMakeFiles/KF5WaylandClient.dir/all' failed
make[1]: *** [src/client/CMakeFiles/KF5WaylandClient.dir/all] Error 2
Generating renderingservertest.moc
[ 18%] Built target testRenderingServer_automoc
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

By changing 
<interface name="org_kde_plasma_surface" version="1">
to
<interface name="org_kde_plasma_surface" version="2">
in 
src/client/protocols/plasma-shell.xml

I can get it to compile, but am I missing something else? The file hasn't been changed since September in Git... 

Reproducible: Always
Comment 1 Martin Flöser 2016-01-18 08:34:12 UTC
sounds like a regression (or valid hardening) in Wayland
Comment 2 bluescreenavenger 2016-01-20 01:42:59 UTC
If that's the case then this commit looks interesting... 
http://cgit.freedesktop.org/wayland/wayland/commit/?id=3de1783e5038639128bb37f2937eeee3e36aefe6
Comment 3 Martin Flöser 2016-01-20 07:47:56 UTC
Git commit 53c371fb8f049e51dde74b346af8e4f070d1a284 by Martin Gräßlin, on behalf of Nerdopolis Turfwalker.
Committed on 20/01/2016 at 07:44.
Pushed by graesslin into branch 'Plasma/5.5'.

Update the version number of org_kde_plasma_surface to 2

Recent commit to the wayland scanner prohibits 'since' being higher than
interface version.

REVIEW: 126819
FIXED-IN: 5.5.4

M  +1    -1    src/client/protocols/plasma-shell.xml

http://commits.kde.org/kwayland/53c371fb8f049e51dde74b346af8e4f070d1a284