[frameworks-kdoctools] [Bug 374435] New: kdoctools_install() use a wrong directory when the parameter ends with "docs"

Luigi Toscano bugzilla_noreply at kde.org
Sun Jan 1 20:30:01 UTC 2017


https://bugs.kde.org/show_bug.cgi?id=374435

            Bug ID: 374435
           Summary: kdoctools_install() use a wrong directory when the
                    parameter ends with "docs"
           Product: frameworks-kdoctools
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kde-doc-english at kde.org
          Reporter: luigi.toscano at tiscali.it
                CC: kdelibs-bugs at kde.org, maxantispam at freenet.de
  Target Milestone: ---

When the value of parameter (i.e. the folder which contains the documentation)
ends with "docs", the *.docbook files are installed under

<base_doc_dir>/<lang>/<lang>/docs/<appname>

instead of the expected
<base_doc_dir>/<lang>/docs/<appname>

(where <base_doc_dir> is currently <base_prefix>/share/doc/HTML/)

The cause of the issue is the way this match line is built:

string(REGEX MATCH "docs/(.*)/index.docbook" match ${docbook})

If the parameter ends with "docs", the value of ${docbook} will be something
like:

.../foodocs/<lang>/docs/<program>/index.docbook

and then the content of cmake_match_1 will be: 
<lang>/docs/<program>

instead of the expected:
<program>


Man pages are not affected (they are handled few lines before).

If you use any name for the directory which does not end in docs, the macro
works.

Please file a new bug (as it is a corner case), or I can do it, I will prepare
a patch.

The bug was found by MaxiPunkt as follow up of
https://bugs.kde.org/show_bug.cgi?id=357428

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-doc-english mailing list