Bug 326583 - [MS Windows] compilation of kdelibs fails due to DocBookXML not being found
Summary: [MS Windows] compilation of kdelibs fails due to DocBookXML not being found
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdecore (show other bugs)
Version: Git
Platform: Microsoft Windows Microsoft Windows
: NOR major
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-24 21:14 UTC by dasaan.san
Modified: 2013-11-09 22:57 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
listing of my manifest directory (11.88 KB, text/plain)
2013-10-24 21:17 UTC, dasaan.san
Details
A small patch to fix compilation (520 bytes, patch)
2013-10-27 10:14 UTC, Michael Drüing
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dasaan.san 2013-10-24 21:14:41 UTC
whilst emerging kdelibs (kde-4.11 branch) I get the following:

...
-- The following REQUIRED packages have not been found:

 * DocBookXML , DocBook XML , <http://www.oasis-open.org/docbook/xml/4.2>
   Required by the KDE help system to process DocBook XML

CMake Error at c:/kdeRoot/dev-utils/share/cmake-2.8/Modules/FeatureSummary.cmake
:430 (message):
  feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
  run.
Call Stack (most recent call first):
  CMakeLists.txt:397 (feature_summary)


-- Configuring incomplete, errors occurred!
emerge fatal error: while running configure cmd: cmake -G "MinGW Makefiles"   -D
KDE_DISTRIBUTION_TEXT="MinGW 4.4.7"  -DCMAKE_INSTALL_PREFIX="c:/kderoot" -DCMAKE
_INCLUDE_PATH="c:/kderoot/include" -DCMAKE_LIBRARY_PATH="c:/kderoot/lib" -DCMAKE
_PREFIX_PATH="c:/kderoot" -DCMAKE_BUILD_TYPE=RelWithDebInfo "c:\kderoot\git\kdel
ibs"
emerge fatal error: running python c:\kderoot\emerge\portage\kde\kdelibs\kdelibs
-20110130.py compile

This looks to be the relevant section of output but I can attach the full output if required. 

Reproducible: Always

Steps to Reproduce:
1. emerge qt
2. patched giflib (see bug 326346)
2. emerge kdelibs

Actual Results:  
Everything downloads, compiles and installs until the process reaches the actual kdelibs part.
kdelibs downloads, the configuration runs and emerge comes to a halt due to a required package being missing.

Expected Results:  
kdelibs should compile and install

using the kde-4.11 branch of emerge

using mingw as installed by emerge after issuing:
emerge qt

c:\kdeRoot\manifest>gcc -v
Using built-in specs.
Target: i686-w64-mingw32
Configured with: ../gcc44-svn/configure --host=i686-w64-mingw32 --target=i686-w64-mingw32 --disable-multilib --enable-checking=release --prefix=/mingw32 --with-sysroot=/mingw32 --enable-languages=c,c++,fortran,objc,obj-c++ --enable-libgomp--with-gmp=/mingw32 --with-mpfr=/mingw32 --disable-nls --disable-win32-registry
Thread model: win32
gcc version 4.4.7 20111023 (prerelease) [svn/rev.180339 - mingw-w64/oz] (GCC)
Comment 1 dasaan.san 2013-10-24 21:17:45 UTC
Created attachment 83092 [details]
listing of my manifest directory
Comment 2 dasaan.san 2013-10-24 21:30:55 UTC
Looking at some of the earlier configuration output I spotted these lines too:

-- Could NOT find DocBook XML DTDs (v4.2) (missing:  DOCBOOKXML_CURRENTDTD_DIR)
-- Found DocBookXSL: c:/kdeRoot/share/xml/docbook/xsl-stylesheets-1.78.1
Comment 3 Michael Drüing 2013-10-27 10:12:39 UTC
This patch fixes compilation (although I don't want to commit it because 4.2 to 4.5 is quite a large version difference and I have no idea of the implications on other systems)

diff --git a/cmake/modules/FindDocBookXML.cmake b/cmake/modules/FindDocBookXML.c
index 26053bf..97f0f55 100644
--- a/cmake/modules/FindDocBookXML.cmake
+++ b/cmake/modules/FindDocBookXML.cmake
@@ -12,7 +12,7 @@
 # Redistribution and use is allowed according to the terms of the BSD license.
 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.

-set (DOCBOOKXML_CURRENTDTD_VERSION "4.2"
+set (DOCBOOKXML_CURRENTDTD_VERSION "4.5"
      CACHE INTERNAL "Required version of XML DTDs")

 set (DTD_PATH_LIST
Comment 4 Michael Drüing 2013-10-27 10:14:07 UTC
Created attachment 83147 [details]
A small patch to fix compilation

This bumps the docbook-xml version from 4.2 to 4.5
Comment 5 Nico Kruber 2013-11-09 22:57:00 UTC
Git commit 9395be6a1874f2feaf5d77016f78f9b3bc90a819 by Nico Kruber.
Committed on 09/11/2013 at 22:56.
Pushed by nkruber into branch 'kde-4.11'.

revert docbook.dtd default version to 4.2

We need to either keep in sync with DOCBOOKXML_CURRENTDTD_VERSION from FindDocBookXML.cmake or install all DTDs instead of just one version like some linux distros do!
(this effectively reverts 7b8d340d4debdebb04f9123881806bec98c22c38)

M  +3    -1    portage/data/docbook-dtd/docbook-dtd-4.2.py

http://commits.kde.org/emerge/9395be6a1874f2feaf5d77016f78f9b3bc90a819