Automatically compute and substitute current values for all $(AUTORELEASE) instances as this feature is deprecated and shouldn't be used. The following temporary change was made to the core: diff --git a/rules.mk b/rules.mk index 57d7995d4fa8..f16367de87a8 100644 --- a/rules.mk +++ b/rules.mk @@ -429,7 +429,7 @@ endef abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1)))) COMMITCOUNT = $(if $(DUMP),0,$(call commitcount)) -AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1)) +AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile)) all: FORCE: ; And this command used to fix affected packages: for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \ sed 's^.*/\([^/]*\)/Makefile^\1^';); do make package/$i/download done Signed-off-by: Paul Fertser <fercerpav@gmail.com>
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=sqlparse
|
|
PKG_VERSION:=0.4.2
|
|
PKG_RELEASE:=2
|
|
|
|
PYPI_NAME:=sqlparse
|
|
PKG_HASH:=0c00730c74263a94e5a9919ade150dfc3b19c574389985446148402998287dae
|
|
|
|
PKG_MAINTAINER:=Peter Stadler <peter.stadler@student.uibk.ac.at>
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include ../pypi.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../python3-package.mk
|
|
|
|
define Package/python3-sqlparse
|
|
SUBMENU:=Python
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
TITLE:=Non-validating SQL parser module.
|
|
URL:=https://github.com/andialbrecht/sqlparse
|
|
DEPENDS:=+python3-light
|
|
endef
|
|
|
|
define Package/python3-sqlparse/description
|
|
A non-validating SQL parser module. It provides support for parsing, splitting and formatting SQL statements.
|
|
endef
|
|
|
|
define Py3Package/python3-sqlparse/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/$(PYTHON3_PKG_DIR)/sqlparse/__main__.py \
|
|
$(1)/usr/bin/sqlformat
|
|
endef
|
|
|
|
$(eval $(call Py3Package,python3-sqlparse))
|
|
$(eval $(call BuildPackage,python3-sqlparse))
|
|
$(eval $(call BuildPackage,python3-sqlparse-src))
|