Issue with skeleton for boost_thread

Help for writing Autopackages, bug reports in Autopackage, API questions, help with relaytool and binreloc, etc.

Issue with skeleton for boost_thread

Postby vcoder » Thu Feb 25, 2010 5:07 am

My program using some Boost libraries. Unfortunately, autopackage doesn't have skeleton files for Boost.
I found a skeleton file which is looks like:
Code: Select all
# Package skeleton for the boost thread

[Meta]
RootName: @boost.org/boost_thread
DisplayName: Boost thread C++ library
ShortName: libboost_thread
Skeleton-Author: Mateusz Dworak <compbatant@linux.pl>
Skeleton-Version: 1

[Notes]
Does not set SOFTWARE_VERSIONS

[Test]
INTERFACE_VERSIONS=$( testForLib -i libboost_thread.so)

if [ -z $INTERFACE_VERSIONS ]
then
INTERFACE_VERSIONS=$( testForLib -i libboost_thread-mt.so)
fi

if [ -z $INTERFACE_VERSIONS ]
then
INTERFACE_VERSIONS=$( testForLib -i libboost_thread-gcc.so)
fi

if [ -z $INTERFACE_VERSIONS ]
then
INTERFACE_VERSIONS=$( testForLib -i libboost_thread-gcc-mt.so)
fi

if [ -z $INTERFACE_VERSIONS ]
then
INTERFACE_VERSIONS=$( testForLib -i libboost_thread-gcc-mt-1_33_1.so)
fi

if [ -z $INTERFACE_VERSIONS ]
then
INTERFACE_VERSIONS=$( testForLib -i libboost_thread-gcc-1_33_1.so)
fi


But when I'm installing my application I getting error "Could not find 'Boost thread C++ library'. Try using the native package manager for Debian (apt-get) to install a package with similar name to 'libboost_thread'".

Log file:

Code: Select all
* trace:_requireCommons():834:mode=require, required_name=@boost.org/boost_thread, required_version=1.40
* trace:_locateSkeleton():122:locating @boost.org/boost_thread in /home/vmserver/Desktop/Dmitriy_BulkSMS/autopackage.161246469/meta/@redoxygen.com/bulksms:2.0.1.9
* trace:_locateSkeleton():126:looking for: /home/vmserver/Desktop/Dmitriy_BulkSMS/autopackage.161246469/meta/@redoxygen.com/bulksms:2.0.1.9/@boost.org/boost_thread
* trace:_locateSkeleton():132:located at /home/vmserver/Desktop/Dmitriy_BulkSMS/autopackage.161246469/meta/@redoxygen.com/bulksms:2.0.1.9/@boost.org/boost_thread/skeleton.1
* trace:getSection():289:getting section Meta from /home/vmserver/Desktop/Dmitriy_BulkSMS/autopackage.161246469/meta/@redoxygen.com/bulksms:2.0.1.9/@boost.org/boost_thread/skeleton.1
* trace:getSectionKey():496:processing Meta section keys for DisplayName
* trace:getLanguages():1610:using LANG=en_AU.UTF-8
* trace:getLanguages():1659:language_list=en_AU en
* trace:checkForPackage():189:called with -i 1.40 @boost.org/boost_thread
* trace:checkForPackage():235:root_name=@boost.org/boost_thread, interface=1.40, exact=, atleast=
* trace:_locateSkeleton():122:locating @boost.org/boost_thread in /home/vmserver/Desktop/Dmitriy_BulkSMS/autopackage.161246469/meta/@redoxygen.com/bulksms:2.0.1.9
* trace:_locateSkeleton():126:looking for: /home/vmserver/Desktop/Dmitriy_BulkSMS/autopackage.161246469/meta/@redoxygen.com/bulksms:2.0.1.9/@boost.org/boost_thread
* trace:_locateSkeleton():132:located at /home/vmserver/Desktop/Dmitriy_BulkSMS/autopackage.161246469/meta/@redoxygen.com/bulksms:2.0.1.9/@boost.org/boost_thread/skeleton.1
* trace:checkForPackage():238:skeleton path is /home/vmserver/Desktop/Dmitriy_BulkSMS/autopackage.161246469/meta/@redoxygen.com/bulksms:2.0.1.9/@boost.org/boost_thread/skeleton.1
* trace:getSection():289:getting section Test from /home/vmserver/Desktop/Dmitriy_BulkSMS/autopackage.161246469/meta/@redoxygen.com/bulksms:2.0.1.9/@boost.org/boost_thread/skeleton.1
* warn:_getLibraryPaths():445:libboost_thread.so not found
* warn:_getLibraryPaths():445:libboost_thread-mt.so not found
* warn:_getLibraryPaths():445:libboost_thread-gcc.so not found
* warn:_getLibraryPaths():445:libboost_thread-gcc-mt.so not found
* warn:_getLibraryPaths():445:libboost_thread-gcc-mt-1_33_1.so not found
* warn:_getLibraryPaths():445:libboost_thread-gcc-1_33_1.so not found
* trace:checkForPackage():259:INTERFACE_VERSIONS after test script is ""
* trace:checkForPackage():260:SOFTWARE_VERSIONS after test script is ""
* trace:checkForPackage():266:INTERFACE_VERSIONS after counting down/stripping=
* trace:checkForPackage():267:SOFTWARE_VERSIONS after counting down/stripping=
* warn:checkForPackage():278:no interface implementations found, bailing out early
* trace:_requireCommons():879:checkForPackage() result is 1
* trace:getSection():289:getting section Meta from /home/vmserver/Desktop/Dmitriy_BulkSMS/autopackage.161246469/meta/@redoxygen.com/bulksms:2.0.1.9/@boost.org/boost_thread/skeleton.1
* trace:getSectionKey():496:processing Meta section keys for RootName
* trace:getLanguages():1610:using LANG=en_AU.UTF-8
* trace:getLanguages():1659:language_list=en_AU en
* trace:getSection():289:getting section Meta from /home/vmserver/Desktop/Dmitriy_BulkSMS/autopackage.161246469/meta/@redoxygen.com/bulksms:2.0.1.9/@boost.org/boost_thread/skeleton.1
* trace:getSectionKey():496:processing Meta section keys for ShortName
* trace:getLanguages():1610:using LANG=en_AU.UTF-8
* trace:getLanguages():1659:language_list=en_AU en
* trace:_requireCommons():895:recording action=record event=dependency rootname=@redoxygen.com/bulksms shortname=bulksms softwareversion=2.0.1.9 interfaceversion=0.0 rootname_dep=@boost.org/boost_thread shortname_dep=libboost_thread mode=require mode_version=1.40 result=1
* trace:_requireCommons():920:checking for Repository key
* trace:getSection():289:getting section Meta from /home/vmserver/Desktop/Dmitriy_BulkSMS/autopackage.161246469/meta/@redoxygen.com/bulksms:2.0.1.9/@boost.org/boost_thread/skeleton.1
* trace:getSection():289:getting section Retrieval from /home/vmserver/Desktop/Dmitriy_BulkSMS/autopackage.161246469/meta/@redoxygen.com/bulksms:2.0.1.9/@boost.org/boost_thread/skeleton.1
* trace:_requireCommons():930:using default retrieval command: retrieve @boost.org/boost_thread 1.40
* trace:retrieve():688:calling _retrieveLocalPackage with @boost.org/boost_thread 1.40
* trace:_retrieveLocalPackage():363:DIRECTORY=/home/vmserver/Desktop/Dmitriy_BulkSMS, ROOTNAME=@boost.org/boost_thread, VER=1.40
* trace:_retrieveLocalPackage():367:scanning bulksms-2.0.1.9.x86.package
* trace:_getPackageHeader():3204:called with /home/vmserver/Desktop/Dmitriy_BulkSMS/bulksms-2.0.1.9.x86.package
* trace:_retrieveLocalPackage():381:package cpuarchitecture is "# CPUArchitectures x86_64 x86"
* warn:_retrieveLocalPackage():477:package not found locally
* trace:retrieve():698:searching sealed installer directory /home/vmserver/Desktop/Dmitriy_BulkSMS/autopackage.161246469/meta/@redoxygen.com/bulksms:2.0.1.9/packages
* trace:retrieve():707:searching /home/vmserver/Desktop/Dmitriy_BulkSMS
* trace:_retrieveLocalPackage():363:DIRECTORY=/home/vmserver/Desktop/Dmitriy_BulkSMS, ROOTNAME=@boost.org/boost_thread, VER=1.40
* trace:_retrieveLocalPackage():367:scanning bulksms-2.0.1.9.x86.package
* trace:_getPackageHeader():3204:called with /home/vmserver/Desktop/Dmitriy_BulkSMS/bulksms-2.0.1.9.x86.package
* trace:_retrieveLocalPackage():381:package cpuarchitecture is "# CPUArchitectures x86_64 x86"
* warn:_retrieveLocalPackage():477:package not found locally
* trace:retrieve():716:calling _retrieveFromNet with @boost.org/boost_thread 1.40
* trace:_retrieveFromNet():490:called with @boost.org/boost_thread 1.40
* warn:_retrieveFromNet():512:no repositories were registered for @boost.org/boost_thread at /home/vmserver/Desktop/Dmitriy_BulkSMS/autopackage.161246469/meta/@boost.org/boost_thread/repositories
* warn:retrieve():721:no package found
* trace:getSection():289:getting section Meta from /home/vmserver/Desktop/Dmitriy_BulkSMS/autopackage.161246469/meta/@redoxygen.com/bulksms:2.0.1.9/@boost.org/boost_thread/skeleton.1
* trace:getSectionKey():496:processing Meta section keys for ShortName
* trace:getLanguages():1610:using LANG=en_AU.UTF-8
* trace:getLanguages():1659:language_list=en_AU en
Could not find 'Boost thread C++ library'. Try using the native package manager for Debian (apt-get) to install a package with similar name to 'libboost_thread'.


What I should to do to fix the issue?
vcoder
 
Posts: 1
Joined: Thu Feb 25, 2010 4:58 am

Re: Issue with skeleton for boost_thread

Postby Jan-Nik » Tue Apr 20, 2010 4:39 pm

Hi,

Sorry for the late response, hope it still might help you.

The problem is that boost includes its version number before .so and testForLib doesn't expect that. Since boost breaks compatibility very often with a new release and the fact that most new distros don't include old versions of boost I would recommend you to simply include the .so file in your autopackage.

Another way would be to correctly extract the version number from the .so file in the skeleton.
Jan-Nik
Site Admin
 
Posts: 159
Joined: Sun Mar 30, 2008 5:45 pm
Location: Germany


Return to Developers

Who is online

Users browsing this forum: No registered users and 1 guest

cron