[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-buildsystem
Subject:    Sandbox issues with branches/KDE/4.0
From:       <SchaduwBlink () hotmail ! com>
Date:       2008-01-18 22:52:56
Message-ID: BAY139-DS3E9E687413CC8C4A31CE8D2420 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I am trying to compile the KDE4 sources from branches/KDE/4.0 and I receive this \
                message from sandbox:
symlink:   /usr/kde/svn/share/doc/HTML/en/sonnet/common (symlink to \
/usr/kde/svn/share/doc/HTML/en/common)

This is the only item to fail during installing phase of kdelibs. The installer is \
trying to access a directory outside of the temp install directory setup by sandbox. \
The install prefix is passed to the configure script, and this is evident since \
everything else compiles and installs to the right directory.

The cmake command "create_symlink" might what is at fault. It is not respecting the \
install prefix variable, or it could be an error in the following macro: macro \
(KDE4_CREATE_HANDBOOK _docbook)  get_filename_component(_input ${_docbook} ABSOLUTE)
   set(_doc ${CMAKE_CURRENT_BINARY_DIR}/index.cache.bz2)

   #Bootstrap
   if (_kdeBootStrapping)
      set(_ssheet ${CMAKE_SOURCE_DIR}/kdoctools/customization/kde-chunk.xsl)
      set(_bootstrapOption "--srcdir=${CMAKE_SOURCE_DIR}/kdoctools/")
   else (_kdeBootStrapping)
      set(_ssheet ${KDE4_DATA_INSTALL_DIR}/ksgmltools2/customization/kde-chunk.xsl)
      set(_bootstrapOption)
   endif (_kdeBootStrapping)

   file(GLOB _docs *.docbook)
   add_custom_command(OUTPUT ${_doc}
      COMMAND ${KDE4_MEINPROC_EXECUTABLE} --check ${_bootstrapOption} --cache ${_doc} \
${_input}  DEPENDS ${_docs} ${_KDE4_MEINPROC_EXECUTABLE_DEP} ${_ssheet}
      WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
   )
   add_custom_target(handbook ALL DEPENDS ${_doc})

   if(KDE4_ENABLE_HTMLHANDBOOK)
      set(_htmlDoc ${CMAKE_CURRENT_SOURCE_DIR}/index.html)
      add_custom_command(OUTPUT ${_htmlDoc}
         COMMAND ${KDE4_MEINPROC_EXECUTABLE} --check ${_bootstrapOption} -o \
${_htmlDoc} ${_input}  DEPENDS ${_input} ${_KDE4_MEINPROC_EXECUTABLE_DEP} ${_ssheet}
         WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
      )
      add_custom_target(htmlhandbook DEPENDS ${_htmlDoc})
   endif(KDE4_ENABLE_HTMLHANDBOOK)

   set(_args ${ARGN})

   set(_installDest)
   if(_args)
      list(GET _args 0 _tmp)
      if("${_tmp}" STREQUAL "INSTALL_DESTINATION")
         list(GET _args 1 _installDest )
         list(REMOVE_AT _args 0 1)
      endif("${_tmp}" STREQUAL "INSTALL_DESTINATION")
   endif(_args)

   get_filename_component(dirname ${CMAKE_CURRENT_SOURCE_DIR} NAME_WE)
   if(_args)
      list(GET _args 0 _tmp)
      if("${_tmp}" STREQUAL "SUBDIR")
         list(GET _args 1 dirname )
         list(REMOVE_AT _args 0 1)
      endif("${_tmp}" STREQUAL "SUBDIR")
   endif(_args)

   if(_installDest)
      file(GLOB _images *.png)
      install(FILES ${_doc} ${_docs} ${_images} DESTINATION \
${_installDest}/${dirname})  # TODO symlinks on non-unix platforms
      if (UNIX)
         # execute some cmake code on make install which creates the symlink
         install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \
\"${_installDest}/common\"  \"${_installDest}/${dirname}/common\" )" )  endif (UNIX)
   endif(_installDest)

endmacro (KDE4_CREATE_HANDBOOK)
in
The sonnet doc uses the html install var so it might be something with this. The \
function with create symlink, shouldn't the _installDest var have have the first / \
dropped? So it would be usr/kde/svn..... instead of /usr/kde/svn... ? Or CD to the \
dir where the symlinking is going on to and drop the _installDest altogehter?

Thanks.


[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<META content="MSHTML 6.00.6000.20710" name=GENERATOR></HEAD>
<BODY id=MailContainerBody 
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" 
bgColor=#ffffff leftMargin=0 topMargin=0 CanvasTabStop="true" 
name="Compose message area">
<DIV><FONT face=Arial size=2>I am trying to compile the KDE4 sources from 
branches/KDE/4.0 and I receive this message from 
sandbox:<BR>symlink:&nbsp;&nbsp; /usr/kde/svn/share/doc/HTML/en/sonnet/common 
(symlink to /usr/kde/svn/share/doc/HTML/en/common)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This is the only item&nbsp;to fail&nbsp;during 
installing phase of kdelibs. The installer is trying to access a directory 
outside of the temp install directory setup by sandbox. The install prefix is 
passed to the configure script, and this is evident since everything else 
compiles and installs to the right directory.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The cmake command "create_symlink" might what is at 
fault. It is not respecting the install prefix variable, or it could be an error 
in the following macro:<BR>macro (KDE4_CREATE_HANDBOOK _docbook)<BR>&nbsp;&nbsp; 
get_filename_component(_input ${_docbook} ABSOLUTE)<BR>&nbsp;&nbsp; set(_doc 
${CMAKE_CURRENT_BINARY_DIR}/index.cache.bz2)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; #Bootstrap<BR>&nbsp;&nbsp; if 
(_kdeBootStrapping)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set(_ssheet 
${CMAKE_SOURCE_DIR}/kdoctools/customization/kde-chunk.xsl)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
set(_bootstrapOption "--srcdir=${CMAKE_SOURCE_DIR}/kdoctools/")<BR>&nbsp;&nbsp; 
else (_kdeBootStrapping)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set(_ssheet 
${KDE4_DATA_INSTALL_DIR}/ksgmltools2/customization/kde-chunk.xsl)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
set(_bootstrapOption)<BR>&nbsp;&nbsp; endif (_kdeBootStrapping)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; file(GLOB _docs 
*.docbook)<BR>&nbsp;&nbsp; add_custom_command(OUTPUT 
${_doc}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COMMAND ${KDE4_MEINPROC_EXECUTABLE} 
--check ${_bootstrapOption} --cache ${_doc} 
${_input}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DEPENDS ${_docs} 
${_KDE4_MEINPROC_EXECUTABLE_DEP} ${_ssheet}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}<BR>&nbsp;&nbsp; )<BR>&nbsp;&nbsp; 
add_custom_target(handbook ALL DEPENDS ${_doc})</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; 
if(KDE4_ENABLE_HTMLHANDBOOK)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set(_htmlDoc 
${CMAKE_CURRENT_SOURCE_DIR}/index.html)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
add_custom_command(OUTPUT 
${_htmlDoc}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COMMAND 
${KDE4_MEINPROC_EXECUTABLE} --check ${_bootstrapOption} -o ${_htmlDoc} 
${_input}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DEPENDS ${_input} 
${_KDE4_MEINPROC_EXECUTABLE_DEP} 
${_ssheet}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WORKING_DIRECTORY 
${CMAKE_CURRENT_SOURCE_DIR}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add_custom_target(htmlhandbook DEPENDS 
${_htmlDoc})<BR>&nbsp;&nbsp; endif(KDE4_ENABLE_HTMLHANDBOOK)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; set(_args ${ARGN})</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; set(_installDest)<BR>&nbsp;&nbsp; 
if(_args)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; list(GET _args 0 
_tmp)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if("${_tmp}" STREQUAL 
"INSTALL_DESTINATION")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
list(GET _args 1 _installDest 
)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; list(REMOVE_AT _args 0 
1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; endif("${_tmp}" STREQUAL 
"INSTALL_DESTINATION")<BR>&nbsp;&nbsp; endif(_args)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; get_filename_component(dirname 
${CMAKE_CURRENT_SOURCE_DIR} NAME_WE)<BR>&nbsp;&nbsp; 
if(_args)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; list(GET _args 0 
_tmp)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if("${_tmp}" STREQUAL 
"SUBDIR")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; list(GET _args 1 
dirname )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; list(REMOVE_AT 
_args 0 1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; endif("${_tmp}" STREQUAL 
"SUBDIR")<BR>&nbsp;&nbsp; endif(_args)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; 
if(_installDest)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; file(GLOB _images 
*.png)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; install(FILES ${_doc} ${_docs} 
${_images} DESTINATION 
${_installDest}/${dirname})<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # TODO symlinks on 
non-unix platforms<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(UNIX)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # execute some cmake 
code on make install which creates the 
symlink<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; install(CODE 
"execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink 
\"${_installDest}/common\"&nbsp; \"${_installDest}/${dirname}/common\" )" 
)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; endif (UNIX)<BR>&nbsp;&nbsp; 
endif(_installDest)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>endmacro (KDE4_CREATE_HANDBOOK)</FONT></DIV>
<DIV><FONT face=Arial size=2>in</FONT></DIV>
<DIV><FONT face=Arial size=2>The sonnet doc uses the html install var so it 
might be something with this. The function with create symlink, shouldn't the 
_installDest var have have the first / dropped? So it would be usr/kde/svn..... 
instead of /usr/kde/svn... ? Or CD to the dir where the symlinking is going on 
to and drop the _installDest altogehter?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks.</FONT></DIV></BODY></HTML>


_______________________________________________
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic