Skip to content

Commit e6165be

Browse files
author
Michael Fero
committed
Fixing debian packaging for versions with suffix
1 parent 2f61108 commit e6165be

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

  • cpp-driver/packaging/debian
  • packaging/debian

cpp-driver/packaging/debian/rules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
1212
endif
1313

1414
export SOVER ?= $(shell dpkg-parsechangelog \
15-
| sed -rne 's/^Version: ([0-9.]+)[-+~].*$$/\1/p')
15+
| sed -rne 's/^Version: ([0-9.]+)([-+~][[:alpha:]][[:alnum:]]*)?([-+~][[:digit:]])?$$/\1\2/p' \
16+
| sed 's/[+~]/-/')
1617
export SONAME=libcassandra.so.$(SOVER)
1718

1819
%:

packaging/debian/rules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
1212
endif
1313

1414
export SOVER ?= $(shell dpkg-parsechangelog \
15-
| sed -rne 's/^Version: ([0-9.]+)[-+~].*$$/\1/p')
15+
| sed -rne 's/^Version: ([0-9.]+)([-+~][[:alpha:]][[:alnum:]]*)?([-+~][[:digit:]])?$$/\1\2/p' \
16+
| sed 's/[+~]/-/')
1617
export SONAME=libdse.so.$(SOVER)
1718

1819
%:

0 commit comments

Comments
 (0)