xqdoc dependency to zorba is wrong

Bug #867107 reported by Sorin Marian Nasoi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Sorin Marian Nasoi

Bug Description

Hello Sorin

I guess you are the right guy for this:
Today, I tried to execute 'make xqdoc' on a clean build. Unfortunately, it doesn't work because 'make xqdoc' is not dependent on zorba-cmd. Thus, I got the following error msg:

[100%] Building XQDoc XML documentation for the modules...
/bin/sh: ../../../bin/zorba: not found
make[3]: *** [doc/zorba/xqdoc/CMakeFiles/xqdoc-xml] Error 127
make[2]: *** [doc/zorba/xqdoc/CMakeFiles/xqdoc-xml.dir/all] Error 2
make[1]: *** [doc/zorba/xqdoc/CMakeFiles/xqdoc.dir/rule] Error 2

I though I can fix it be doing the following:

Index: doc/zorba/xqdoc/CMakeLists.txt
===================================================================
--- doc/zorba/xqdoc/CMakeLists.txt (revision 11112)
+++ doc/zorba/xqdoc/CMakeLists.txt (working copy)
@@ -51,7 +51,7 @@
      COMMENT "Building XQDoc XML documentation for the modules..."
  )
  #SET_TARGET_PROPERTIES(xqdoc-xml PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD 1)
- ADD_DEPENDENCIES(xqdoc-xml zorba_simplestore)
+ ADD_DEPENDENCIES(xqdoc-xml zorbacmd_simplestore)

  ADD_CUSTOM_TARGET(xqdoc
    ${ZORBA_EXE_SCRIPT}
Index: cmake_modules/ZorbaModule.cmake
===================================================================
--- cmake_modules/ZorbaModule.cmake (revision 11112)
+++ cmake_modules/ZorbaModule.cmake (working copy)
@@ -543,7 +543,7 @@
  )
  #SET_TARGET_PROPERTIES(xqdoc-xml-${PROJECT_NAME} PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD 1)
  IF(TARGET xqdoc-xml)
- ADD_DEPENDENCIES(xqdoc-xml-${PROJECT_NAME} zorba_simplestore)
+ ADD_DEPENDENCIES(xqdoc-xml-${PROJECT_NAME} zorbacmd_simplestore)
    ADD_DEPENDENCIES(xqdoc-xml-${PROJECT_NAME} xqdoc-xml)
    ADD_DEPENDENCIES(xqdoc xqdoc-xml-${PROJECT_NAME})
  ENDIF(TARGET xqdoc-xml)

But it doesn't help. Can you take a look into it?

Thanks
David

Related branches

Revision history for this message
Chris Hillery (ceejatec) wrote :

IMHO, this is not critical for 2.0; marked as such.

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

Decreased the priority according to the issue being marked Zorba 2.1

As a separate thing: if Zorba is build as a static library the names of the necessary dependencies for xqdoc also change.

Chris suggested that if nothing else it won't work for Sausalito when they build with their store. I'm not sure what the target name changes to when building static off the top of my head, though... there should probably be a CMake variable somewhere that is set to the name of that target.

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

Marked with Resolution = None at Dana's request.

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

@David, can you please check if this is still a problem?

Thanks,
Sorin

Revision history for this message
David Graf (davidagraf) wrote :

Yes, it is still a problem. It is very easy to reproduce:

1) make
2) rm bin/zorba
3 make xqdoc

=>
make xqdoc
[100%] Built target zorba_simplestore
Scanning dependencies of target xqdoc-xml
[100%] Building XQDoc XML documentation ...
/bin/sh: bin/zorba: not found
make[3]: *** [CMakeFiles/xqdoc-xml] Error 127
make[2]: *** [CMakeFiles/xqdoc-xml.dir/all] Error 2
make[1]: *** [CMakeFiles/xqdoc.dir/rule] Error 2
make: *** [xqdoc] Error 2

Changed in zorba:
assignee: David Graf (david-graf) → Sorin Marian Nasoi (sorin.marian.nasoi)
Changed in zorba:
status: New → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
Changed in zorba:
status: Fix Released → Fix Committed
Changed in zorba:
milestone: none → 2.1
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.