diff options
author | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2017-05-16 14:59:59 +0200 |
---|---|---|
committer | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2017-05-17 15:05:06 +0200 |
commit | e6915e836ca747f839c824209329de5640af79ca (patch) | |
tree | e05f85bc4abe0595f2cad942d62eb5dc7eaeee5f /debian/update-helper-symbols.sh | |
parent | bf3a04a40494f1940b4412e0512795e33001c697 (diff) |
debian/update-helper-*: packaging update helpers
* Add update-helper-control.py script to easen rename packages for new
DPDK versions.
- This script from libboost helps convert all package names
from the old ABI name to the new one.
- thanks to Jan Blunck for the conversion from boost!
- the script was later updated to be python3 ready and fixing the script
for all warnings/errors (but not all info) thrown by python code checkers.
* Add update-helper-symbols.sh script to easen modifying the package and
soname references in symbols files for new DPDK versions.
- We still want to check "real" symbol delta on any update, but to make
dpkg-gensymbols find the new libs the symbols files need to be updated.
Change-Id: I73a454b8fe628c05569e689f5c14f3b73d2ec4cc
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Diffstat (limited to 'debian/update-helper-symbols.sh')
-rwxr-xr-x | debian/update-helper-symbols.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/update-helper-symbols.sh b/debian/update-helper-symbols.sh new file mode 100755 index 00000000..c6d0f08f --- /dev/null +++ b/debian/update-helper-symbols.sh @@ -0,0 +1,14 @@ +#!/bin/bash +if [ "$#" -lt 2 ]; then + echo "Need at least two arguments" + echo "Usage: $0 <newversion> <symbol-files>..." +fi + +newv=${1} + +for symbolf in ${@:2} +do + echo "modifying ${symbolf}" + perl -pi -e "s/\.so\.[0-9.]*/.so.${newv}.0/g" "${symbolf}" + perl -pi -e "s/[0-9.]* #MINVER#/${newv} #MINVER#/g" "${symbolf}" +done |