We used to force applications to rebuild when a ODP released a new version that changed one of the first two digits. That shouldn't be needed if we use the SO-verson as it is intended to be used.
Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- .so_version | 1 + Makefile.am | 2 +- configure.ac | 3 +-- scripts/builddeb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 .so_version diff --git a/.so_version b/.so_version new file mode 100644 index 0000000..dfa6588 --- /dev/null +++ b/.so_version @@ -0,0 +1 @@ +108:0:0 diff --git a/Makefile.am b/Makefile.am index 2129472..a90eb91 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,4 +17,4 @@ SUBDIRS = @platform_with_platform@ \ @DX_RULES@ -EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README .scmversion +EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README .scmversion .so_version diff --git a/configure.ac b/configure.ac index c8fb91e..e2e18e8 100644 --- a/configure.ac +++ b/configure.ac @@ -63,8 +63,7 @@ AC_SUBST([ARCH]) ########################################################################## # Set correct platform library version ########################################################################## -AGE=0 -ODP_LIBSO_VERSION=$(echo $VERSION.$AGE | awk -F . '{printf("%d:%d:%d\n", (($1 * 100) + $2), $3, $4)}') +ODP_LIBSO_VERSION=$(cat ./.so_version) AC_SUBST(ODP_LIBSO_VERSION) ########################################################################## diff --git a/scripts/builddeb b/scripts/builddeb index 8bde7cf..b832df6 100755 --- a/scripts/builddeb +++ b/scripts/builddeb @@ -20,7 +20,7 @@ fi pushd ${ROOT_DIR}/${package}-${version} cp -r ${ROOT_DIR}/pkg/debian . -current=$(echo ${version} | awk -F . '{printf("%d\n", (($1 * 100) + $2))}') +current=$(cat .so_version |awk -F : '{print $1}') rename 's,(.*linux)(.*),${1}'"${current}"'${2},' debian/*odp*-linux.install sed -i "s:\(libodp[a-zA-Z\-]\+linux\)\(-dbg\|$\| \):\1${current}\2:g" debian/control -- 2.1.4 _______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lng-odp