From 9b289318598ba43d9515b3faa328d2c0f48f7c4e Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sun, 19 May 2019 01:00:25 +0100 Subject: [PATCH] libbpf: Use only 2 components in soversion, matching package name Debian policy says the package name must change when the soname changes. We don't expect the ABI to change in a stable update, so use only 2 components in both. --- debian/changelog | 2 ++ .../patches/bugfix/all/libbpf-add-soname-to-shared-object.patch | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 91658326b..bcccd73e4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ linux (4.19.37-4) UNRELEASED; urgency=medium * libbpf: Fix various build bugs: - Drop unnecessary changes from "libbpf: add SONAME to shared object" + - libbpf: Use only 2 components in soversion, matching package name + (Closes: #929187) -- Ben Hutchings Sun, 19 May 2019 00:04:16 +0100 diff --git a/debian/patches/bugfix/all/libbpf-add-soname-to-shared-object.patch b/debian/patches/bugfix/all/libbpf-add-soname-to-shared-object.patch index 945a5304d..301d32bb5 100644 --- a/debian/patches/bugfix/all/libbpf-add-soname-to-shared-object.patch +++ b/debian/patches/bugfix/all/libbpf-add-soname-to-shared-object.patch @@ -29,7 +29,7 @@ Signed-off-by: Hilko Bengen N = -LIBBPF_VERSION = $(BPF_VERSION).$(BPF_PATCHLEVEL).$(BPF_EXTRAVERSION) -+LIBBPF_VERSION = $(shell make --no-print-directory -sC ../../.. kernelversion) ++LIBBPF_VERSION = $(shell make --no-print-directory -sC ../../.. kernelversion | cut -d. -f1,2) # Set compile option CFLAGS ifdef EXTRA_CFLAGS