Since recently I need to test a different package version set than that defined in package Makefiles. Since I'm not aware of any official way to do that and I didn't want to change every packages Makefile, I made a little patch allowing me to define versions in a single file named package-versions.conf. I know it breaks several package version redefinition from feeds and probably can be done in some other/right way. I thought that maybe openwrt community can also benefit from such feature, so here is my patch.
diff --git a/include/package.mk b/include/package.mk index 99d2dd2..8ce8128 100644 --- a/include/package.mk +++ b/include/package.mk @@ -9,6 +9,16 @@ __package_mk:=1 all: $(if $(DUMP),dumpinfo,compile) +-include $(TOPDIR)/package-versions.conf +ifdef $(PKG_NAME)_VERSION + PKG_VERSION:=$(call qstrip,$($(PKG_NAME)_VERSION)) + PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE) + PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz + PKG_SOURCE_VERSION:=$(PKG_VERSION) + PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR) + MD5SUM:= +endif + PKG_BUILD_DIR ?= $(BUILD_DIR)/$(PKG_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION)) PKG_INSTALL_DIR ?= $(PKG_BUILD_DIR)/ipkg-install PKG_MD5SUM ?= unknown _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
