[Merge] lp:~thomas-voss/dbus-cpp/enable-dual-landings into lp:dbus-cpp

Łukasz Zemczak lukasz.zemczak at canonical.com
Tue Aug 9 07:47:45 UTC 2016


Review: Approve packaging

Ok, looks good now, just one really minor inline comment below. Of course the same thing remains: we need some abi compliance checking implemented when symbols files removal. This would need a bug assigned to someone before we can land that. ABI compliance will be even more important soon as we are starting to migrate things from universe to main for ubuntu-touch, and a library without symbol files is unlikely to go through the MIR process smoothly.

That being said, if my comments will be addressed (the inline one and the bug about ABI-checking), this merge is good to go.

Diff comments:

> 
> === added file 'debian/get-versions.sh'
> --- debian/get-versions.sh	1970-01-01 00:00:00 +0000
> +++ debian/get-versions.sh	2016-08-08 09:17:09 +0000
> @@ -0,0 +1,67 @@
> +#!/bin/sh
> +
> +# Copyright (C) 2015 Canonical Ltd
> +#
> +# This program is free software: you can redistribute it and/or modify
> +# it under the terms of the GNU Lesser General Public License version 3 as
> +# published by the Free Software Foundation.
> +#
> +# This program is distributed in the hope that it will be useful,
> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> +# GNU Lesser General Public License for more details.
> +#
> +# You should have received a copy of the GNU Lesser General Public License
> +# along with this program.  If not, see <http://www.gnu.org/licenses/>.
> +#
> +# Authored by: Michi Henning <michi.henning at canonical.com>
> +
> +#
> +# Script to read the version numbers from VERSION and QT-VERSION
> +# and write the version components and the soversion numbers
> +# into separate files, so we can pick them up from both
> +# gen-debian-files.sh and CMakeLists.txt.
> +#
> +
> +set -e  # Fail if any command fails.
> +
> +progname=$(basename $0)
> +
> +[ $# -lt 1 -o $# -gt 2 ] && {
> +    echo "usage: $progname path-to-debian-dir [output-dir]" >&2
> +    exit 1
> +}
> +dir=$1
> +output_dir=`pwd`
> +[ $# -eq 2 ] && output_dir=$2
> +
> +# Write the various version numbers into a bunch of files. This allows
> +# us to easily pick them up from both gen-debian-files.sh and CMakeLists.txt.
> +
> +distro=$(lsb_release -c -s)
> +
> +full_version=$(cat "${dir}"/VERSION)
> +
> +major=$(echo $full_version | cut -d'.' -f1)
> +minor=$(echo $full_version | cut -d'.' -f2)
> +micro=$(echo $full_version | cut -d'.' -f3)
> +major_minor="${major}.${minor}"
> +
> +vivid_full_version=$(cat "${dir}"/VERSION.vivid)
> +vivid_major=$(echo $vivid_full_version | cut -d'.' -f1)
> +vivid_soversion=$vivid_major
> +
> +if [ "$distro" = "vivid" ]
> +then
> +    soversion=${vivid_soversion}
> +else
> +    soversion="${major}"
> +fi
> +[ -n $soversion ]

Is this some leftover, or is this line somehow useful?

> +
> +echo ${full_version} >${output_dir}/libdbus-cpp.full-version
> +echo ${major} >${output_dir}/libdbus-cpp.major-version
> +echo ${minor} >${output_dir}/libdbus-cpp.minor-version
> +echo ${micro} >${output_dir}/libdbus-cpp.micro-version
> +echo ${major_minor} >${output_dir}/libdbus-cpp.major-minor-version
> +echo ${soversion} >${output_dir}/libdbus-cpp.soversion


-- 
https://code.launchpad.net/~thomas-voss/dbus-cpp/enable-dual-landings/+merge/278251
Your team Ubuntu Phablet Team is subscribed to branch lp:dbus-cpp.



More information about the Ubuntu-reviews mailing list