The Linux Foundation

 
LibstdcppSourceBuildInstructions

From The Linux Foundation

Back to TestGroup

Contents

qmtest_libstdcpp Source Build Instructions

This document has instructions on how to build the source for qmtest_libstdcpp. (written based on a build on a Mandriva system, some variations expected on different distros)

Assumptions

  • bzr is installed, 0.13 or better
  • build tools are installed (make, gcc)
  • LSB-build tools are installed (lsb-build-base lsb-build-cc, lsb-build-c++)
  • lsb dynamic linker is in place (/%_lib/ld-lsb-%_arch.so.3)
  • rpm-build is installed
  • my 'pwd' is ~/LSB-work/doc-test
  • all build work is done as a "normal" user, not root
  • Distribution pre-requisites for running LSB tests are installed (package lsb-test on Mandriva)

Building Steps

Checkout a branch from Bazaar-NG

An initial branch will take some minutes to complete:

bzr branch http://bzr.freestandards.org/lsb/3.1/libstdcpp-test libstdcpp-test

or if you have an existing branch:

cd libstdcpp-test
bzr pull

Build the tarball

The Makefile accepts the environment variable BZRTREES to pull from your local branch to build the tarball, rather than the remote branch.

cd libstdcpp-test/package
BZRTREES=/home/stew/LSB-work/doc-test make tarball

You should find something like this at the end of the build:

qmtest_libstdcpp-3.4.3.tar.gz

Build the rpm packages

make rpm_package

You should find something like this at the end of the build:

qmtest_libstdcpp-3.4.3-7.lsb3.src.rpm
qmtest_libstdcpp-3.4.3-7.lsb3.x86_64.rpm

The tarball and package steps could of course be combined with a plain "make". I only broke them up for ease of troubleshooting.

BZTREES=/home/stew/LSB-work/doc-test make

Install and test the binary package

This is covered in more detail in Executing the lsb-c++ Test Suite, but you can quickly test your package with (urpmi is Mandriva specific, use whatever package manager your distro provides). The test run will take some minutes to complete.

sudo urpmi qmtest_libstdcpp-3.4.3-7.lsb3.x86_64.rpm
/opt/lsb/test/share/qmtest_libstdcpp_3.4.3/run_tests

Typical results:

tjreport /home/stew/qmtest_libstdcpp_3.4.3/v3db/journal.200612281937
/24_iterators/istreambuf_iterator/2.cc 1 FAIL

Test system: Mandriva Linux Cooker 2007.1
Test was run: 20061229 05:37:43 
Total Tests Passed: 1403
Total Tests Failed (including waived): 1
Total Tests Failed (excluding waived): 1

Troubleshooting Build Problems

If you find issues in following the above procedure, please feel free to fix it or add notes in this area.


[Article] [Discussion] [View source] [History]