mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 15:08:40 +01:00
Merge pull request #11724 from jefferyto/python2-remove-plugins
treewide: Remove Python 2 plugin/bindings/etc from non-Python packages
This commit is contained in:
+5
-39
@@ -64,7 +64,6 @@ This package provides the following run-time libraries:
|
||||
- log
|
||||
- math
|
||||
- program_options
|
||||
- python
|
||||
- python3
|
||||
- random
|
||||
- regex
|
||||
@@ -80,10 +79,7 @@ There are many more header-only libraries supported by Boost.
|
||||
See more at http://www.boost.org/doc/libs/1_72_0/
|
||||
endef
|
||||
|
||||
PKG_BUILD_DEPENDS:=boost/host PACKAGE_python:python PACKAGE_python3:python3
|
||||
|
||||
include ../../lang/python/python-version.mk
|
||||
BOOST_PYTHON_VER=$(PYTHON_VERSION)
|
||||
PKG_BUILD_DEPENDS:=boost/host PACKAGE_python3:python3
|
||||
|
||||
include ../../lang/python/python3-version.mk
|
||||
BOOST_PYTHON3_VER=$(PYTHON3_VERSION)
|
||||
@@ -283,10 +279,10 @@ define Package/boost/config
|
||||
|
||||
$(foreach lib,$(BOOST_LIBS), \
|
||||
config PACKAGE_boost-$(lib)
|
||||
prompt "Boost $(lib) $(if $(findstring python,$(lib)),$(paren_left)v$(if $(findstring 3,$(lib)),$(BOOST_PYTHON3_VER),$(BOOST_PYTHON_VER))$(paren_right) ,)library."
|
||||
prompt "Boost $(lib) $(if $(findstring python3,$(lib)),$(paren_left)v$(BOOST_PYTHON3_VER)$(paren_right) ,)library."
|
||||
default m if ALL
|
||||
$(if $(findstring locale,$(lib)),depends on BUILD_NLS,)\
|
||||
$(if $(findstring python,$(lib)),depends on PACKAGE_$(lib),)\
|
||||
$(if $(findstring python3,$(lib)),depends on PACKAGE_python3,)\
|
||||
$(if $(findstring fiber,$(lib)),depends on !boost-fiber-exclude,)\
|
||||
$(if $(findstring context,$(lib)),depends on !boost-context-exclude,)
|
||||
$(if $(findstring coroutine,$(lib)),depends on !boost-coroutine-exclude,)
|
||||
@@ -346,7 +342,6 @@ $(eval $(call DefineBoostLibrary,log,system chrono date_time thread filesystem r
|
||||
$(eval $(call DefineBoostLibrary,math))
|
||||
#$(eval $(call DefineBoostLibrary,mpi,,)) # OpenMPI does no exist in OpenWRT at this time.
|
||||
$(eval $(call DefineBoostLibrary,program_options))
|
||||
$(eval $(call DefineBoostLibrary,python,,,PACKAGE_python))
|
||||
$(eval $(call DefineBoostLibrary,python3,,,PACKAGE_python3))
|
||||
$(eval $(call DefineBoostLibrary,random,system))
|
||||
$(eval $(call DefineBoostLibrary,regex))
|
||||
@@ -425,7 +420,7 @@ define Build/Compile
|
||||
$(if $(CONFIG_PACKAGE_boost-test),,--without-test) \
|
||||
--without-python \
|
||||
$(foreach lib,$(BOOST_LIBS), \
|
||||
$(if $(findstring python,$(lib)),, \
|
||||
$(if $(findstring python3,$(lib)),, \
|
||||
$(if $(CONFIG_PACKAGE_boost-$(lib)),, \
|
||||
$(if $(findstring wserialization,$(lib)),,--without-$(lib)) \
|
||||
) \
|
||||
@@ -437,32 +432,6 @@ define Build/Compile
|
||||
$(if $(CONFIG_PACKAGE_boost-iostreams),-sNO_BZIP2=1 -sZLIB_INCLUDE=$(STAGING_DIR)/usr/include \
|
||||
-sZLIB_LIBPATH=$(STAGING_DIR)/usr/lib) \
|
||||
install ;\
|
||||
$(if $(CONFIG_PACKAGE_boost-python), \
|
||||
echo "using gcc : $(GCC_VERSION) : $(GNU_TARGET_NAME)-gcc : <compileflags>\"$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/python$(BOOST_PYTHON_VER)/ \" <cxxflags>\"$(TARGET_CXXFLAGS) $(EXTRA_CXXFLAGS)\" <linkflags>\"$(TARGET_LDFLAGS)\" ;" > \
|
||||
tools/build/src/user-config.jam ; \
|
||||
echo "using python : $(BOOST_PYTHON_VER) : : $(STAGING_DIR)/usr/include/python$(BOOST_PYTHON_VER)/ : $(STAGING_DIR)/usr/lib/libpython$(BOOST_PYTHON_VER).so ;" >> \
|
||||
tools/build/src/user-config.jam; \
|
||||
b2 -a \
|
||||
$(CONFIGURE_ARGS) \
|
||||
--ignore-site-config \
|
||||
--toolset=gcc abi=$(BOOST_ABI) \
|
||||
--disable-long-double \
|
||||
$(if $(CONFIG_boost-variant-release), variant=release,) \
|
||||
$(if $(CONFIG_boost-variant-debug), variant=debug,) \
|
||||
$(if $(CONFIG_boost-variant-profile), variant=profile,) \
|
||||
$(if $(CONFIG_boost-use-name-tags),--layout=tagged,--layout=system) \
|
||||
$(if $(CONFIG_boost-build-type-complete),--build-type=complete,--build-type=minimal) \
|
||||
$(if $(CONFIG_boost-shared-libs),link=shared,) \
|
||||
$(if $(CONFIG_boost-static-libs),link=static,) \
|
||||
$(if $(CONFIG_boost-static-and-shared-libs),link=static$(comma)shared,) \
|
||||
$(if $(CONFIG_boost-runtime-shared),runtime-link=shared,) \
|
||||
$(if $(CONFIG_boost-runtime-static),runtime-link=static,) \
|
||||
$(if $(CONFIG_boost-runtime-static-and-shared),runtime-link=shared$(comma)static,) \
|
||||
$(if $(CONFIG_boost-single-thread),threading=single,) \
|
||||
threading=multi \
|
||||
--with-python \
|
||||
install ;\
|
||||
,) \
|
||||
$(if $(CONFIG_PACKAGE_boost-python3), \
|
||||
echo "using gcc : $(GCC_VERSION) : $(GNU_TARGET_NAME)-gcc : <compileflags>\"$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/python$(BOOST_PYTHON3_VER)/ \" <cxxflags>\"$(TARGET_CXXFLAGS) $(EXTRA_CXXFLAGS)\" <linkflags>\"$(TARGET_LDFLAGS)\" ;" > \
|
||||
tools/build/src/user-config.jam ; \
|
||||
@@ -513,10 +482,7 @@ endef
|
||||
|
||||
define Package/boost/Default/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(if $(findstring python,$(2)), $(if $(findstring 3,$(2)), \
|
||||
$(CP) $(PKG_INSTALL_DIR)/lib/libboost_python3*.so* $(1)/usr/lib/ , \
|
||||
$(CP) $(PKG_INSTALL_DIR)/lib/libboost_python2*.so* $(1)/usr/lib/ ), \
|
||||
$(CP) $(PKG_INSTALL_DIR)/lib/libboost_$(2)*.so* $(1)/usr/lib/ )
|
||||
$(CP) $(PKG_INSTALL_DIR)/lib/libboost_$(2)*.so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/boost-test/install
|
||||
|
||||
+2
-21
@@ -15,7 +15,7 @@ PKG_NAME:=elektra
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_LICENSE_FILES:=LICENSE.md
|
||||
PKG_VERSION:=0.8.21
|
||||
PKG_RELEASE:=4
|
||||
PKG_RELEASE:=5
|
||||
|
||||
# Use this for official releasees
|
||||
PKG_HASH:=51892570f18d1667d0da4d0908a091e41b41c20db9835765677109a3d150cd26
|
||||
@@ -234,19 +234,6 @@ $(call Package/libelektra/Default-description)
|
||||
This package contains support for storing the key database as yaml files.
|
||||
endef
|
||||
|
||||
|
||||
define Package/libelektra-python2
|
||||
$(call Package/libelektra/Default)
|
||||
TITLE:=Elektra python2 plugin
|
||||
DEPENDS:=+libelektra-core +python-light +libstdcpp
|
||||
endef
|
||||
|
||||
define Package/libelektra-python2/description
|
||||
$(call Package/libelektra/Default-description)
|
||||
|
||||
This package adds python2 support to elektra.
|
||||
endef
|
||||
|
||||
define Package/libelektra-python3
|
||||
$(call Package/libelektra/Default)
|
||||
TITLE:=Elektra python3 plugin
|
||||
@@ -304,7 +291,7 @@ CMAKE_OPTIONS = \
|
||||
-DKDB_DEFAULT_RESOLVER=resolver_fm_pb_b \
|
||||
-DKDB_DEFAULT_STORAGE=ini \
|
||||
-DENABLE_OPTIMIZATIONS=OFF \
|
||||
-DPLUGINS="ALL;-multifile" \
|
||||
-DPLUGINS="ALL;-multifile;-python2" \
|
||||
-DICONV_FIND_REQUIRED=ON \
|
||||
-DICONV_INCLUDE_DIR="$(ICONV_PREFIX)/include" \
|
||||
-DICONV_LIBRARY="$(ICONV_PREFIX)/lib"
|
||||
@@ -409,11 +396,6 @@ define Package/libelektra-yamlcpp/install
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libelektra-yamlcpp.so $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/libelektra-python2/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libelektra-python2.so $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/libelektra-python3/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libelektra-python.so $(1)/usr/lib/
|
||||
@@ -451,7 +433,6 @@ $(eval $(call BuildPackage,libelektra-xerces))
|
||||
$(eval $(call BuildPackage,libelektra-yamlcpp))
|
||||
$(eval $(call BuildPackage,libelektra-xml))
|
||||
$(eval $(call BuildPackage,libelektra-yajl))
|
||||
$(eval $(call BuildPackage,libelektra-python2))
|
||||
$(eval $(call BuildPackage,libelektra-python3))
|
||||
$(eval $(call BuildPackage,libelektra-lua))
|
||||
$(eval $(call BuildPackage,libelektra-extra))
|
||||
|
||||
@@ -26,7 +26,6 @@ PKG_USE_MIPS16:=0
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
include $(TOPDIR)/feeds/packages/lang/python/python-package.mk
|
||||
include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
|
||||
|
||||
CMAKE_OPTIONS=-DENABLEEXAMPLES=0 \
|
||||
@@ -74,18 +73,6 @@ $(call Package/libmraa/Default/description)
|
||||
This package contains the Node.js libraries.
|
||||
endef
|
||||
|
||||
define Package/libmraa-python
|
||||
$(call Package/libmraa/Default)
|
||||
TITLE:=Eclipse MRAA lowlevel IO Python library
|
||||
DEPENDS:=+libmraa +python-light
|
||||
endef
|
||||
|
||||
define Package/libmraa-python/description
|
||||
$(call Package/libmraa/Default/description)
|
||||
|
||||
This package contains the Python libraries.
|
||||
endef
|
||||
|
||||
define Package/libmraa-python3
|
||||
$(call Package/libmraa/Default)
|
||||
TITLE:=Eclipse MRAA lowlevel IO Python3 library
|
||||
@@ -110,12 +97,6 @@ define Package/libmraa-node/install
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/node_modules/mraa/* $(1)/usr/lib/node/mraa/
|
||||
endef
|
||||
|
||||
define Package/libmraa-python/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/python$(PYTHON_VERSION)/site-packages
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON_VERSION)/site-packages/* \
|
||||
$(1)/usr/lib/python$(PYTHON_VERSION)/site-packages/
|
||||
endef
|
||||
|
||||
define Package/libmraa-python3/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON3_VERSION)/site-packages/* \
|
||||
@@ -124,5 +105,4 @@ endef
|
||||
|
||||
$(eval $(call BuildPackage,libmraa))
|
||||
$(eval $(call BuildPackage,libmraa-node))
|
||||
$(eval $(call BuildPackage,libmraa-python))
|
||||
$(eval $(call BuildPackage,libmraa-python3))
|
||||
|
||||
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libsearpc
|
||||
PKG_VERSION:=3.2.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/haiwen/libsearpc/tar.gz/v$(PKG_VERSION)?
|
||||
@@ -25,7 +25,6 @@ PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/nls.mk
|
||||
include ../../lang/python/python-package.mk
|
||||
include ../../lang/python/python3-package.mk
|
||||
|
||||
define Package/libsearpc
|
||||
@@ -70,13 +69,9 @@ define Build/InstallDev
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/searpc-codegen.py $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
# Include Python 2 bindings in this package to maintain compatibility with previous versions
|
||||
define Package/libsearpc/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/pysearpc
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsearpc.so* $(1)/usr/lib/
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/pysearpc/*.py $(1)$(PYTHON_PKG_DIR)/pysearpc/
|
||||
rm -f $(1)$(PYTHON_PKG_DIR)/pysearpc/{pygencode,test_pysearpc}.py
|
||||
endef
|
||||
|
||||
define Py3Build/Compile
|
||||
|
||||
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||
PKG_NAME:=talloc
|
||||
PKG_VERSION:=2.3.1
|
||||
MAJOR_VERSION:=2
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://www.samba.org/ftp/talloc
|
||||
@@ -19,8 +19,6 @@ PKG_LICENSE:=LGPL-3.0-or-later
|
||||
|
||||
PKG_BUILD_PARALLEL:=0
|
||||
|
||||
HOST_BUILD_DEPENDS:=python/host
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
include $(TOPDIR)/feeds/packages/lang/python/python-package.mk
|
||||
include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
|
||||
|
||||
UPM_MODULES:= \
|
||||
@@ -75,7 +74,6 @@ define Package/libupm
|
||||
DEPENDS+=+libjpeg +libmodbus +openzwave
|
||||
DEPENDS+= $(foreach module, $(UPM_MODULES), +libupm-$(module))
|
||||
DEPENDS+= $(foreach module, $(UPM_MODULES), +libupm-$(module)-node)
|
||||
DEPENDS+= $(foreach module, $(UPM_MODULES), +libupm-$(module)-python)
|
||||
DEPENDS+= $(foreach module, $(UPM_MODULES), +libupm-$(module)-python3)
|
||||
endef
|
||||
|
||||
@@ -95,14 +93,6 @@ define Package/libupm/install/Default-node
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/node_modules/jsupm_$(2) $(1)/usr/lib/node/ ;
|
||||
endef
|
||||
|
||||
define Package/libupm/install/Default-python
|
||||
$(INSTALL_DIR) $(1)/usr/lib/python$(PYTHON_VERSION)/site-packages/upm
|
||||
$(CP) $(CMAKE_BINARY_DIR)/$(if $(filter interfaces, $(2)),,src/)$(2)/python$(PYTHON_VERSION)/pyupm_$(2).py \
|
||||
$(1)/usr/lib/python$(PYTHON_VERSION)/site-packages/upm/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON_VERSION)/site-packages/upm/_pyupm_$(2).so \
|
||||
$(1)/usr/lib/python$(PYTHON_VERSION)/site-packages/upm/ ;
|
||||
endef
|
||||
|
||||
define Package/libupm/install/Default-python3
|
||||
$(INSTALL_DIR) $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/upm
|
||||
$(CP) $(CMAKE_BINARY_DIR)/$(if $(filter interfaces, $(2)),,src/)$(2)/python$(PYTHON3_VERSION)/pyupm_$(2).py \
|
||||
@@ -115,7 +105,6 @@ define Package/libupm/install
|
||||
$(foreach module, $(UPM_MODULES), \
|
||||
$(call Package/libupm/install/Default,$(1),$(module)) \
|
||||
$(call Package/libupm/install/Default-node,$(1),$(module)) \
|
||||
$(call Package/libupm/install/Default-python,$(1),$(module)) \
|
||||
$(call Package/libupm/install/Default-python3,$(1),$(module)))
|
||||
endef
|
||||
|
||||
@@ -364,19 +353,6 @@ $(call Package/libupm/Default/description)
|
||||
This package contains $(1) sensor Node.js library
|
||||
endef
|
||||
|
||||
define Package/libupm-$(1)-python
|
||||
$(call Package/libupm/Default)
|
||||
$(call UpmPackage/depends,$(1))
|
||||
TITLE:=$(1) Python library
|
||||
DEPENDS+=+libupm-$(1) +libmraa-python +python-light
|
||||
endef
|
||||
|
||||
define Package/libupm-$(1)-python/description
|
||||
$(call Package/libupm/Default/description)
|
||||
|
||||
This package contains $(1) sensor Python library
|
||||
endef
|
||||
|
||||
define Package/libupm-$(1)-python3
|
||||
$(call Package/libupm/Default)
|
||||
$(call UpmPackage/depends,$(1))
|
||||
@@ -396,9 +372,6 @@ endef
|
||||
define Package/libupm-$(1)-node/install
|
||||
$(call Package/libupm/install/Default-node,$$(1),$(1))
|
||||
endef
|
||||
define Package/libupm-$(1)-python/install
|
||||
$(call Package/libupm/install/Default-python,$$(1),$(1))
|
||||
endef
|
||||
define Package/libupm-$(1)-python3/install
|
||||
$(call Package/libupm/install/Default-python3,$$(1),$(1))
|
||||
endef
|
||||
@@ -409,5 +382,4 @@ $(foreach module, $(UPM_MODULES), \
|
||||
$(eval $(call UpmPackage,$(module))) \
|
||||
$(eval $(call BuildPackage,libupm-$(module))) \
|
||||
$(eval $(call BuildPackage,libupm-$(module)-node)) \
|
||||
$(eval $(call BuildPackage,libupm-$(module)-python)) \
|
||||
$(eval $(call BuildPackage,libupm-$(module)-python3)))
|
||||
|
||||
Reference in New Issue
Block a user