Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Kea
Kea
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 445
    • Issues 445
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 71
    • Merge Requests 71
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • ISC Open Source Projects
  • KeaKea
  • Issues
  • #1649

Closed
Open
Opened Jan 16, 2021 by Andrei Pavel@andrei🐧Developer

unknown versions in config.report on Linuxes

Two issues cause unknown versions to appear in config.report for me:

  • $CPP is used as the preprocessor command, but it is not a canonical, documented autoconf variable, is not used anywhere else in configure.ac and it evaluates to nothing on some systems.
  • On Linuxes that have decimal $CXX -dumpversion e.g. 10.2, the expr used to compare versions doesn't work. You may use this script to test:
#!/bin/sh

if expr 10.2 \> 5 > /dev/null; then
  echo it works!
else
  echo something is wrong :/
fi

Getting rid of the backslash works on Linux, but then fails on BSDs. test with -lt just fails on both. So a portable solution has to be done.

A fix is proposed.

Before:

$ cat config.report | grep VERSION
  CXX_VERSION:     g++ (GCC) 10.2.0
  PYTHON_VERSION:  3.9
  BOOST_VERSION:   unknown
  CRYPTO_VERSION:  unknown
  LOG4CPLUS_VERSION:  unknown
  MYSQL_VERSION:   10.5.8
  PGSQL_VERSION:   PostgreSQL 13.1
  CQL_VERSION:     2.7.1
  GTEST_VERSION:   unknown

After:

$ cat config.report | grep VERSION
  CXX_VERSION:     g++ (GCC) 10.2.0
  PYTHON_VERSION:  3.9
  BOOST_VERSION:   1.75
  CRYPTO_VERSION:  2.17.3
  LOG4CPLUS_VERSION:  2.0.5
  MYSQL_VERSION:   10.5.8
  PGSQL_VERSION:   PostgreSQL 13.1
  CQL_VERSION:     2.7.1
  GTEST_VERSION:   unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
kea1.9.5
Milestone
kea1.9.5 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: isc-projects/kea#1649