trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2012

Re: [trinity-devel] Seeking python expertise

From: Darrell Anderson <humanreadable@...>
Date: Fri, 30 Mar 2012 13:50:08 -0700 (PDT)
> Not a Python expert but you can try this:
> 
> tde_version = os.popen("tde-config --version|grep
> TDE").read().strip().split()[1]
> 
> tde_major = tde_version.split('.')[0].lstrip('R')
> tde_minor = tde_version.split('.')[1]
> tde_patch = tde_version.split('.')[2]
> 
> if int(tde_major) != 14:
>     print RED + tde_version
>     print RED + "Your tde version can be too
> old" + NORMAL
>     print RED + "Please make sure tde is at
> least R14.0" + NORMAL
> else:
>     print GREEN + tde_version + NORMAL


Thank you Leandro. That helped! I also had to tweak the script to find the tqt headers. Not elegant but I got that to work. The package started to build and then failed with this:


g++ -I/opt/trinity/include/ -I/usr/include/tqt -O2 -DNDEBUG -DNO_DEBUG -DQT_NO_TRANSLATION -Isrc -I. -c -o src/addnewstreamimpl.o src/addnewstreamimpl.cpp
/opt/trinity/bin/moc -o src/addnewstreamimpl_moc.cpp src/addnewstreamimpl.h
src/addnewstreamimpl.h:46: Error: The declaration of the class "AddNewStreamImpl" contains signals or slots
         but no TQ_OBJECT macro.
scons: *** [src/addnewstreamimpl_moc.cpp] Error 1
scons: building terminated because of errors.


That is the same failure with the avahi-tqt package. I suspect once I learn how to fix one I'll know how to fix the other. :)

Darrell