From 415461d912cad95648027cc531122eb58ad897b9 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Tue, 15 Dec 2020 11:07:21 +0200 Subject: [PATCH] python3: introduce ABI_VERSION flag Related to discussion: https://github.com/openwrt/packages/pull/14060 Every once in a while a version bump will occur that requires an ABI change. Example: Python 3.8 to 3.9. When this happens some Python packages would need to be rebuilt especially if they are linking against the shared binary libraries. To do this, we add an ABI_VERSION option in Python3's Makefile. Signed-off-by: Alexandru Ardelean --- lang/python/python3/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index 99e71d383fd67e..d32b9b21dcb563 100644 --- a/lang/python/python3/Makefile +++ b/lang/python/python3/Makefile @@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk include ../python3-version.mk PKG_NAME:=python3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO) PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz @@ -23,6 +23,8 @@ PKG_LICENSE:=Python/2.0 PKG_LICENSE_FILES:=LICENSE Doc/copyright.rst Doc/license.rst Modules/_ctypes/darwin/LICENSE Modules/_ctypes/libffi_osx/LICENSE Modules/expat/COPYING PKG_CPE_ID:=cpe:/a:python:python +ABI_VERSION:=$(PYTHON3_VERSION_MAJOR).$(PYTHON3_VERSION_MINOR) + # This file provides the necsessary host build variables include ../python3-host.mk