pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45399: x11/kdelibs4 doesn't compile



>Number:         45399
>Category:       pkg
>Synopsis:       x11/kdelibs4 doesn't compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 26 08:05:00 +0000 2011
>Originator:     Hiramatsu Yoshifumi
>Release:        NetBSD 5.1_STABLE
>Organization:
>Environment:
NetBSD nile.my.domain 5.1_STABLE NetBSD 5.1_STABLE (XEN3_DOM0) #0: Sun Aug 21 
02:41:08 JST 2011  
hiramatsu%nile.my@localhost.domain:/var/tmp/build/obj/sys/arch/amd64/compile/XEN3_DOM0
 amd64

>Description:
x11/kdelibs4 has a cmake file(cmake/modules/FindDocBookXML.cmake),
which tries to detect if docbook-xml is installed or not.

However, under pkgsrc's build environment, cmake cannot find docbook-xml
because CMAKE_SYSTEM_PREFIX_PATH doesn't contain LOCALBASE.

>How-To-Repeat:
% cd x11/kdelibs4
% make

compile failed with this message.

-----------------------------------------------------------------------------
-- The following REQUIRED packages could NOT be located on your system.
-- You must install these packages before continuing.
-----------------------------------------------------------------------------
   * DocBook XML  <http://www.oasis-open.org/docbook/xml/4.2>
     XML DTDs for DocBook 4.2
     Needed for building the KDE help system.
   * DocBook XSL  <http://docbook.sourceforge.net/release/xsl/current/>
     Stylesheets for processing DocBook XML
     Needed for building the KDE help system.

-----------------------------------------------------------------------------

CMake Error at cmake/modules/MacroLogFeature.cmake:141 (MESSAGE):
  Exiting: Missing Requirements
Call Stack (most recent call first):
  CMakeLists.txt:328 (macro_display_feature_log)


-- Configuring incomplete, errors occurred!
*** Error code 1

Stop.
make: stopped in /home/pkgsrc/x11/kdelibs4

>Fix:
There are several possible solutions.

1. Create buildlink3.mk to textproc/docbook-xml.
   pkgsrc's CMAKE_SYSTEM_PREFIX_PATH has $ENV{BUILDLINK_DIR}, this makes
   cmake succeed.

2. Add LOCALBASE to CMAKE_SYSTEM_PREFIX_PATH in 
mk/cmake-Modules/Platform/UnixPaths.cmake.

3. Add a patch for x11/kdelibs4 to force cmake to find docbook-xml from 
LOCALBASE.



Home | Main Index | Thread Index | Old Index