From 68d244d3022d41a170f83ddec5050d659aef0bcd Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 24 Jan 2017 17:21:05 +0100 Subject: abi/debian: Bump ABI version of libgtp after struct size change The gsn_t changed the size with the addition of the ctrl pointer. Bump the SO version to not break osmo-sgsn/ggsn on upgrade. Call the -dev package libgtp-dev to follow the rest of Osmocom and to ease making releases here. Change-Id: Iac4d6d2effde1a6b2f60b1e1b49c91513d5ca8c3 --- debian/changelog | 3 ++- debian/control | 8 ++++---- debian/libgtp-dev.install | 5 +++++ debian/libgtp0-dev.install | 5 ----- debian/libgtp0.install | 1 - debian/libgtp1.install | 1 + gtp/Makefile.am | 5 +++++ 7 files changed, 17 insertions(+), 11 deletions(-) create mode 100644 debian/libgtp-dev.install delete mode 100644 debian/libgtp0-dev.install delete mode 100644 debian/libgtp0.install create mode 100644 debian/libgtp1.install diff --git a/debian/changelog b/debian/changelog index a00671b..5d52bfd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,9 @@ openggsn (0.93) UNRELEASED; urgency=medium * Bump version to ease upgrading from Debian SID. + * Bump libgtp SO version after ABI change. - -- Holger Hans Peter Freyther Tue, 24 May 2016 22:53:16 +0200 + -- Holger Hans Peter Freyther Tue, 24 Jan 2017 17:26:26 +0100 openggsn (0.92) precise; urgency=medium diff --git a/debian/control b/debian/control index 9306656..4e5b168 100644 --- a/debian/control +++ b/debian/control @@ -22,7 +22,7 @@ Description: Gateway GPRS Support Node (GGSN) operators as the interface between the Internet and the rest of the mobile network infrastructure. -Package: libgtp0 +Package: libgtp1 Architecture: any Multi-Arch: same Section: libs @@ -36,12 +36,12 @@ Description: library implementing the GTP protocol between SGSN and GGSN This library is part of openggsn and implements the GTP protocol between SGSN (Serving GPRS support node) and GGSN. -Package: libgtp0-dev +Package: libgtp-dev Architecture: any Multi-Arch: same Section: libdevel Depends: ${misc:Depends}, - libgtp0 (= ${binary:Version}) + libgtp1 (= ${binary:Version}) Description: Development files for libgtp OpenGGSN is a Gateway GPRS Support Node (GGSN). It is used by mobile operators as the interface between the Internet and the rest of the @@ -54,6 +54,6 @@ Package: openggsn-dbg Section: debug Architecture: any Priority: extra -Depends: ${shlibs:Depends}, ${misc:Depends}, libgtp0 (= ${binary:Version}), openggsn (= ${binary:Version}) +Depends: ${shlibs:Depends}, ${misc:Depends}, libgtp1 (= ${binary:Version}), openggsn (= ${binary:Version}) Multi-Arch: same Description: Debug symbols for OpenGGSN diff --git a/debian/libgtp-dev.install b/debian/libgtp-dev.install new file mode 100644 index 0000000..465f933 --- /dev/null +++ b/debian/libgtp-dev.install @@ -0,0 +1,5 @@ +usr/include/* +usr/lib/*/lib*.a +usr/lib/*/lib*.so +usr/lib/*/lib*.la +usr/lib/*/pkgconfig/* diff --git a/debian/libgtp0-dev.install b/debian/libgtp0-dev.install deleted file mode 100644 index 465f933..0000000 --- a/debian/libgtp0-dev.install +++ /dev/null @@ -1,5 +0,0 @@ -usr/include/* -usr/lib/*/lib*.a -usr/lib/*/lib*.so -usr/lib/*/lib*.la -usr/lib/*/pkgconfig/* diff --git a/debian/libgtp0.install b/debian/libgtp0.install deleted file mode 100644 index 3ddde58..0000000 --- a/debian/libgtp0.install +++ /dev/null @@ -1 +0,0 @@ -usr/lib/*/lib*.so.* diff --git a/debian/libgtp1.install b/debian/libgtp1.install new file mode 100644 index 0000000..3ddde58 --- /dev/null +++ b/debian/libgtp1.install @@ -0,0 +1 @@ +usr/lib/*/lib*.so.* diff --git a/gtp/Makefile.am b/gtp/Makefile.am index 9586dfe..32025d6 100644 --- a/gtp/Makefile.am +++ b/gtp/Makefile.am @@ -1,3 +1,7 @@ +# This is _NOT_ the library release version, it's an API version. +# Please read chapter "Library interface versions" of the libtool documentation +# before making any modifications: https://www.gnu.org/software/libtool/manual/html_node/Versioning.html +LIBVERSION=1:0:0 lib_LTLIBRARIES = libgtp.la include_HEADERS = gtp.h pdp.h gtpie.h @@ -5,6 +9,7 @@ include_HEADERS = gtp.h pdp.h gtpie.h AM_CFLAGS = -O2 -fno-builtin -Wall -DSBINDIR='"$(sbindir)"' -ggdb $(LIBOSMOCORE_CFLAGS) libgtp_la_SOURCES = gtp.c gtp.h gtpie.c gtpie.h pdp.c pdp.h lookupa.c lookupa.h queue.c queue.h +libgtp_la_LDFLAGS = -version-info $(LIBVERSION) -no-undefined libgtp_la_LIBADD = $(LIBOSMOCORE_LIBS) -- cgit v1.2.3