Ticket #9400 (closed: fixed)

Opened 6 years ago

Last modified 5 years ago

Ubuntu: Inconsistent boost package dependencies

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: major Milestone: Release 3.2
Component: Framework Keywords:
Cc: Blocked By:
Blocking: Tester: Arturs Bekasovs

Description

The CMake scripts on Ubuntu do not require any particular boost version for building. However, the package dependencies are listed as so (on 12.04):

libboost-date-time1.46.1,libboost-regex1.46.1,...,libboost-python${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}

This leads to two different boost versions being used if 1.48 was used to build but then the package tries to pull in 1.46.

This was seen when setting up the new build servers recently where two had different boost versions installed.

Change History

comment:1 Changed 6 years ago by Martyn Gigg

  • Status changed from new to assigned

comment:2 Changed 6 years ago by Martyn Gigg

  • Status changed from assigned to inprogress

Don't hard code boost version for deb package.

It now uses the macros set by FindBoost to determine what version of boost was used to build Mantid. Refs #9400

Changeset: ef7481039f804d07d6e790f6a7269fc4faff8a88

comment:3 Changed 6 years ago by Martyn Gigg

  • Status changed from inprogress to verify
  • Resolution set to fixed

Branch: bugfix/9400_deb_pkg_boost_versions

Tester: This will require a Ubuntu 12.04 environment to test. Download the latest package from the incremental develop build

First check the package dependencies by running

dpkg -I FILENAME

All of the mentions of boost should have the same version: currently either 1.46.1 or 1.48.0 depending on where it was built (this is to be addressed separately).

Try to install the package and check that it installs correctly with

sudo gdebi FILENAME

and run it with

/opt/Mantid/bin/MantidPlot -v

It can then be removed with

sudo dpkg --purge mantid
Last edited 6 years ago by Martyn Gigg (previous) (diff)

comment:4 Changed 6 years ago by Arturs Bekasovs

  • Status changed from verify to verifying
  • Tester set to Arturs Bekasovs

comment:5 Changed 6 years ago by Arturs Bekasovs

Required boost library versions reported by dpkg are all the same (1.48.0 in that case).

Was able to install the downloaded .deb. gdebi pulled 1.48.0 boost libraries while doing that.

Apart from fixing the described problem, changes make the CMakeLists.txt source much clearer.

comment:6 Changed 6 years ago by Arturs Bekasovs

  • Status changed from verifying to closed

Merge remote-tracking branch 'origin/bugfix/9400_deb_pkg_boost_versions'

Full changeset: e0794ce42f75c20de3b54b4bf181f11f6a8414a1

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 10243

Note: See TracTickets for help on using tickets.