mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 08:28:20 +04:00
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>
64 lines
1.6 KiB
Makefile
64 lines
1.6 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=runc
|
|
PKG_VERSION:=1.1.4
|
|
PKG_RELEASE:=2
|
|
PKG_LICENSE:=Apache-2.0
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/opencontainers/runc/tar.gz/v${PKG_VERSION}?
|
|
PKG_HASH:=4f02077432642eebd768fc857318ae7929290b3a3511eb1be338005e360cfa34
|
|
|
|
PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
|
|
|
|
PKG_BUILD_DEPENDS:=golang/host
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_INSTALL:=1
|
|
PKG_BUILD_FLAGS:=no-mips16
|
|
|
|
GO_PKG:=github.com/opencontainers/runc
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../../lang/golang/golang-package.mk
|
|
|
|
define Package/runc
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=runc container runtime
|
|
URL:=https://www.opencontainers.org/
|
|
DEPENDS:=$(GO_ARCH_DEPENDS) +KERNEL_SECCOMP_FILTER:libseccomp
|
|
endef
|
|
|
|
define Package/runc/description
|
|
runc is a CLI tool for spawning and running containers according to the OCI specification.
|
|
endef
|
|
|
|
GO_PKG_INSTALL_ALL:=1
|
|
MAKE_PATH:=$(GO_PKG_WORK_DIR_NAME)/build/src/$(GO_PKG)
|
|
MAKE_VARS += $(GO_PKG_VARS)
|
|
MAKE_FLAGS += COMMIT=$(PKG_SOURCE_VERSION)
|
|
|
|
ifeq ($(ARCH),mips)
|
|
MAKE_FLAGS += EXTRA_FLAGS='-buildmode=default'
|
|
endif
|
|
|
|
BUILDTAGS:=
|
|
ifeq ($(CONFIG_KERNEL_SECCOMP_FILTER),y)
|
|
BUILDTAGS += seccomp
|
|
endif
|
|
ifeq ($(CONFIG_SELINUX),y)
|
|
BUILDTAGS += selinux
|
|
endif
|
|
MAKE_FLAGS += BUILDTAGS='$(BUILDTAGS)'
|
|
|
|
# Reset golang-package.mk overrides so we can use the Makefile
|
|
Build/Compile=$(call Build/Compile/Default)
|
|
|
|
define Package/runc/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin/
|
|
$(INSTALL_BIN) $(GO_PKG_BUILD_DIR)/src/$(GO_PKG)/runc $(1)/usr/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,runc))
|