On Fri, Feb 22, 2013 at 08:49:34AM -0700, Alan Robertson wrote:
> On 02/21/2013 12:50 PM, Dejan Muhamedagic wrote:
> > On Thu, Feb 21, 2013 at 10:59:38AM +0100, Dejan Muhamedagic wrote:
> >>
> > I was able to build the cma and nanoprobe packages. But couldn't
> > install nanoprobe because of one missing dependancy:
> >
> > [0]walrus:build > sudo rpm -i assimilation-*
> > error: Failed dependencies:
> >     libassimilationserverlib.so()(64bit) is needed by 
> > assimilation-nanoprobe-0.1.0.x86_64-0.1.0-1.x86_64
> >
> > The serverlib is built just not packaged. make.out and cpack.out
> > attached.
> 
> Hi Dejan,
> 
> this is very odd...  The .deb packages include that library...
> There are also a couple of interesting files that are worth seeing...
> -rw-r--r-- 1 alanr alanr    498 Feb 22 08:39
> install_manifest_cma-component.txt
> -rw-r--r-- 1 alanr alanr    409 Feb 22 08:39
> install_manifest_nanoprobe-component.txt
> 
> Could you list the contents of the packages you built, and include that too?
> 
> Also, the cpack.out file mentions these two files
> CPackRPM: Will use GENERATED spec file:
> /home/dejan/job/src/assimilation/build/_CPack_Packages/Linux/RPM/SPECS/assimilation-cma-0.1.0.noarch.spec
> CPackRPM: Will use GENERATED spec file:
> /home/dejan/job/src/assimilation/build/_CPack_Packages/Linux/RPM/SPECS/assimilation-nanoprobe-0.1.0.x86_64.spec
> 
> Could you also send the content of these four files and the listing of
> the RPM contents to the mailing list?

I managed to find out what's up. See the attached patch.

Installation now works. The package names are somewhat strange
though:

[130]walrus:build > rpm -qa | grep assim
assimilation-nanoprobe-0.1.0.x86_64-0.1.0-1.x86_64
assimilation-cma-0.1.0.noarch-0.1.0-1.x86_64

Probably because the version/arch got added in the spec file:

[0]walrus:build > grep ^Name: `find . -name '*spec'`
./_CPack_Packages/Linux/RPM/SPECS/assimilation-cma-0.1.0.noarch.spec:Name:
assimilation-cma-0.1.0.noarch
./_CPack_Packages/Linux/RPM/SPECS/assimilation-nanoprobe-0.1.0.x86_64.spec:Name:
assimilation-nanoprobe-0.1.0.x86_64

Cheers,

Dejan

> In the meantime, I'll look at the glib version issue you mentioned in
> your other email.
> 
>     Thanks!
> 
>     -- Alan Robertson
>        [email protected]
> 
> 
> 
> -- 
>     Alan Robertson <[email protected]> - @OSSAlanR
> 
> "Openness is the foundation and preservative of friendship...  Let me claim 
> from you at all times your undisguised opinions." - William Wilberforce
diff -r 13e6d86ba27f CMakeLists.txt
--- a/CMakeLists.txt	Wed Feb 20 21:27:37 2013 -0700
+++ b/CMakeLists.txt	Fri Feb 22 19:17:44 2013 +0100
@@ -91,9 +91,6 @@
 elseif (${CPACK_GENERATOR} STREQUAL "RPM")
   set(CMANAME cma-${PROJVERS}.${NOARCH})
   set(NANOPROBENAME nanoprobe-${PROJVERS}.${PROJARCH})
-else (${CPACK_GENERATOR} STREQUAL "RPM")
-  set(CMANAME cma-${PROJVERS}-${NOARCH})
-  set(NANOPROBENAME nanoprobe-${PROJVERS}-${PROJARCH})
 endif (${CPACK_GENERATOR} STREQUAL "DEB")
 
 #
diff -r 13e6d86ba27f serverlib/CMakeLists.txt
--- a/serverlib/CMakeLists.txt	Wed Feb 20 21:27:37 2013 -0700
+++ b/serverlib/CMakeLists.txt	Fri Feb 22 19:17:44 2013 +0100
@@ -22,3 +22,4 @@
 if(WIN32)
   target_link_libraries(${SERVERLIB} ${CLIENTLIB})
 endif(WIN32)
+install(TARGETS ${SERVERLIB} COMPONENT nanoprobe-component DESTINATION ${InstallLIBS})
_______________________________________________
Assimilation mailing list - Discovery-Driven Monitoring
[email protected]
http://lists.community.tummy.com/cgi-bin/mailman/listinfo/assimilation
http://assimmon.org/

Reply via email to