Bug 373896 - kdoctools install error: file INSTALL cannot find ".../po/ca/docs/checkXML5/checkXML5.1"
Summary: kdoctools install error: file INSTALL cannot find ".../po/ca/docs/checkXML5/c...
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kdoctools
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.29.0
Platform: Compiled Sources Linux
: NOR minor
Target Milestone: ---
Assignee: Documentation Editorial Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-19 16:35 UTC by Dan
Modified: 2016-12-21 17:59 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
cmake, make and make install on a clean tarball (51.06 KB, text/plain)
2016-12-21 15:48 UTC, Dan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan 2016-12-19 16:35:36 UTC
After compiling succesfully kdoctools, I get the following error when trying to do a "make install":

CMake Error at cmake_install.cmake:360 (file):
  file INSTALL cannot find
  "/home/fraga/git/kde5/kdoctools/b/po/ca/docs/checkXML5/checkXML5.1".


make: *** [Makefile:105: install] Error 1

***

During the "make" process, I get several warnings like:

No context named "title" exists in the "en" localization.
No template named "refentry" exists in the context named "title" in the "en" localization.
No "en" localization of "RefName" exists.
No "en" localization of "RefSynopsisDiv" exists.

***

"make test" finishes well too:

Running tests...
Test project /home/fraga/git/kde5/kdoctools/b
    Start 1: meinproc_template
1/1 Test #1: meinproc_template ................   Passed    0.17 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =   0.17 sec

***

Am I missing something here? Thanks.
Comment 1 Burkhard Lück 2016-12-19 20:21:46 UTC
http://download.kde.org/stable/frameworks/5.29/kdoctools-5.29.0.tar.xz builds and installs for me, and my log has this line:

"-- Installing: /home/kdeframeworks/kf5/share/man/ca/man1/checkXML5.1"
Comment 2 Dan 2016-12-19 21:34:14 UTC
(In reply to Burkhard Lueck from comment #1)
> http://download.kde.org/stable/frameworks/5.29/kdoctools-5.29.0.tar.xz
> builds and installs for me, and my log has this line:
> 
> "-- Installing: /home/kdeframeworks/kf5/share/man/ca/man1/checkXML5.1"

Strange. For some reason here the checkXML5.1 isn't being generated.
Comment 3 Luigi Toscano 2016-12-20 20:22:15 UTC
(In reply to fragabr@gmail.com from comment #2)
> (In reply to Burkhard Lueck from comment #1)
> > http://download.kde.org/stable/frameworks/5.29/kdoctools-5.29.0.tar.xz
> > builds and installs for me, and my log has this line:
> > 
> > "-- Installing: /home/kdeframeworks/kf5/share/man/ca/man1/checkXML5.1"
> 
> Strange. For some reason here the checkXML5.1 isn't being generated.

Did you try to compile other frameworks? Did you set up the environment variables? What is your distribution and in general your environment?
And more important, can you please share the complete output of the cmake command (on a clean tarball) and of the make and make install commands?
Comment 4 Dan 2016-12-21 15:47:45 UTC
(In reply to Luigi Toscano from comment #3)
> Did you try to compile other frameworks? Did you set up the environment

Yes, I installed the full KDE 5 from scratch. Everything was fine and I'm using it.

> variables? What is your distribution and in general your environment?

I use Linux from scratch. Are you referring to the XDG variables? I have the following variables here:

XDG_DATA_DIRS=/usr/local/kde/share:/usr/local/share:/usr/share
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_CLASS=user
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_CURRENT_DESKTOP=KDE
XDG_SEAT=seat0
XDG_RUNTIME_DIR=/run/user/501
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session3
XDG_CONFIG_DIRS=/usr/local/kde/etc/xdg:/usr/local/etc/xdg:/etc/xdg

most of them were setup automatically.

> And more important, can you please share the complete output of the cmake
> command (on a clean tarball) and of the make and make install commands?

Yes, I'm attaching the complete output with all the requested information on a clean tarball.
Comment 5 Dan 2016-12-21 15:48:59 UTC
Created attachment 102922 [details]
cmake, make and make install on a clean tarball
Comment 6 Luigi Toscano 2016-12-21 16:29:04 UTC
(In reply to fragabr@gmail.com from comment #4)
> (In reply to Luigi Toscano from comment #3)
> > Did you try to compile other frameworks? Did you set up the environment
> 
> Yes, I installed the full KDE 5 from scratch. Everything was fine and I'm
> using it.

A bit of nitpicking for future readers: there is no such thing called "KDE 5". If you refer to the graphical environment, that's called Plasma, and KDE is our community.

I guess that you commented out the offending lines to proceed with the compilation? Because KDocTools is a required dependency for many packages.

> 
> > variables? What is your distribution and in general your environment?
> 
> I use Linux from scratch. Are you referring to the XDG variables? I have the
> following variables here:
> 
> XDG_DATA_DIRS=/usr/local/kde/share:/usr/local/share:/usr/share
> XDG_SESSION_DESKTOP=KDE
> XDG_SESSION_CLASS=user
> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
> XDG_CURRENT_DESKTOP=KDE
> XDG_SEAT=seat0
> XDG_RUNTIME_DIR=/run/user/501
> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session3
> XDG_CONFIG_DIRS=/usr/local/kde/etc/xdg:/usr/local/etc/xdg:/etc/xdg

I was referring to 
https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source#Set_up_a_script_for_preparing_the_environment

> 
> most of them were setup automatically.
> 
> > And more important, can you please share the complete output of the cmake
> > command (on a clean tarball) and of the make and make install commands?
> 
> Yes, I'm attaching the complete output with all the requested information on
> a clean tarball.

In the logs I see:

-- Found DocBookXSL: /usr/share/xml/docbook/xsl-stylesheets-1.48  

Is it really 1.48? Please ensure that it's something >1.60.
Comment 7 Dan 2016-12-21 17:52:16 UTC
(In reply to Luigi Toscano from comment #6)

> A bit of nitpicking for future readers: there is no such thing called "KDE
> 5". If you refer to the graphical environment, that's called Plasma, and KDE
> is our community.

Oh sorry. I will use the term Plasma now :)

> I guess that you commented out the offending lines to proceed with the
> compilation? Because KDocTools is a required dependency for many packages.

Yes. :)

> In the logs I see:
> 
> -- Found DocBookXSL: /usr/share/xml/docbook/xsl-stylesheets-1.48  
> 
> Is it really 1.48? Please ensure that it's something >1.60.

You're right. This version was too old. Now everything installed fine, without errors.

Thank you very much!

Ps: maybe kdoctools could require at least version 1.60 when checking the dependencies? ;)
Comment 8 Luigi Toscano 2016-12-21 17:59:23 UTC
(In reply to fragabr@gmail.com from comment #7)
> (In reply to Luigi Toscano from comment #6)
> 
> > In the logs I see:
> > 
> > -- Found DocBookXSL: /usr/share/xml/docbook/xsl-stylesheets-1.48  
> > 
> > Is it really 1.48? Please ensure that it's something >1.60.
> 
> You're right. This version was too old. Now everything installed fine,
> without errors.

Thanks for checking!

> 
> Thank you very much!
> 
> Ps: maybe kdoctools could require at least version 1.60 when checking the
> dependencies? ;)

I have to correct myself, it's more >1.75, but it's just that 1.75 was already old when the internal copy of the docbooks (xml and xslt) was removed from kdelibs. This happened in 2011 and 1.75 was already out in 2009, so it I never thought about requiring a specific version (i.e. every version used in the real world would have been good enough).