From 917ea9d214fe4a6ef8e000c50761ac6d302f8162 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 23 May 2023 08:30:06 +0200 Subject: [PATCH 01/31] lcd4linux: fix build error for custom build This change fixes the following build error: hecking that generated files are newer than configure... done configure: error: conditional "ANSICXX" was never defined. Usually this means the macro was only invoked conditionally. make[2]: *** [Makefile:300: /home/feckert/openwrt/build_dir/target-x86_64_musl/lcd4linux-custom/lcd4linux-2019-07-19-0b83bb3a/.configured_a17fb5ef857664f03cd0ce37cc5ea591] Error 1 make[2]: Leaving directory '/home/feckert/feeds/packages/utils/lcd4linux' time: package/feeds/packages/lcd4linux/custom/compile#15.43#0.79#16.92 ERROR: package/feeds/packages/lcd4linux failed to build (build variant: custom). make[1]: *** [package/Makefile:120: package/feeds/packages/lcd4linux/compile] Error 1 make[1]: Leaving directory '/home/feckert/openwrt' make: *** [/home/feckert/openwrt/include/toplevel.mk:231: package/feeds/packages/lcd4linux/compile] Error 2 Signed-off-by: Florian Eckert Suggested-by: Oskari Rauta --- utils/lcd4linux/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/lcd4linux/Makefile b/utils/lcd4linux/Makefile index 4f42576da..74265172a 100644 --- a/utils/lcd4linux/Makefile +++ b/utils/lcd4linux/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=lcd4linux -PKG_RELEASE:=8 +PKG_RELEASE:=9 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/feckert/lcd4linux @@ -195,6 +195,10 @@ $(call Package/lcd4linux/Default/description) endef +CONFIGURE_VARS+= \ + ANSICXX_TRUE=yes \ + am__fastdepCXX_TRUE=yes + CONFIGURE_ARGS+= \ --disable-rpath From 84b1ce49a949f8d04c2ddc85fde6811f2eb03fa5 Mon Sep 17 00:00:00 2001 From: John Audia Date: Mon, 22 May 2023 12:29:22 -0400 Subject: [PATCH 02/31] snort3: update to 3.1.62.0 Upstream bump Build system: x86_64 Build-tested: bcm2711/RPi4B Run-tested: bcm2711/RPi4B Signed-off-by: John Audia --- net/snort3/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/snort3/Makefile b/net/snort3/Makefile index a3f17cf70..23bb17121 100644 --- a/net/snort3/Makefile +++ b/net/snort3/Makefile @@ -6,12 +6,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=snort3 -PKG_VERSION:=3.1.61.0 +PKG_VERSION:=3.1.62.0 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/snort3/snort3/archive/refs/tags/ -PKG_HASH:=207963ece2eddd3c85ad90c9e2dabe33dc67eaa485ba9576e2b244f7ac45fc5d +PKG_HASH:=1f18936da65d52702f75e5b9ffe2cfbc9c9373201801ad275f6e636451f7e06f PKG_MAINTAINER:=W. Michael Petullo PKG_LICENSE:=GPL-2.0-only From 05b0c5be88cf9e407db451f2cca8d8a257bcc602 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 23 May 2023 10:12:03 +0200 Subject: [PATCH 03/31] lcd4linux: rename dpf to DPF to fix compilation Signed-off-by: Florian Eckert --- utils/lcd4linux/Config.in | 4 ++-- utils/lcd4linux/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/lcd4linux/Config.in b/utils/lcd4linux/Config.in index 968560410..1de3bbd79 100644 --- a/utils/lcd4linux/Config.in +++ b/utils/lcd4linux/Config.in @@ -76,9 +76,9 @@ config LCD4LINUX_CUSTOM_DRIVER_D4D prompt "D4D" select LCD4LINUX_CUSTOM_NEEDS_libgd -config LCD4LINUX_CUSTOM_DRIVER_dpf +config LCD4LINUX_CUSTOM_DRIVER_DPF bool - prompt "dpf" + prompt "DPF" select LCD4LINUX_CUSTOM_NEEDS_libusb select LCD4LINUX_CUSTOM_NEEDS_libgd diff --git a/utils/lcd4linux/Makefile b/utils/lcd4linux/Makefile index 74265172a..141fba833 100644 --- a/utils/lcd4linux/Makefile +++ b/utils/lcd4linux/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=lcd4linux -PKG_RELEASE:=9 +PKG_RELEASE:=10 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/feckert/lcd4linux From 72c8977b3b4b3b8c905bd53db7557cf6bc8963db Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Fri, 19 May 2023 21:14:13 +0800 Subject: [PATCH 04/31] ipfs-http-client: remove package This package lacks proper maintenance in both upstream and here. Signed-off-by: Tianling Shen --- libs/ipfs-http-client/Makefile | 81 ------ .../patches/001-add-srv-addr.patch | 251 ------------------ 2 files changed, 332 deletions(-) delete mode 100644 libs/ipfs-http-client/Makefile delete mode 100644 libs/ipfs-http-client/patches/001-add-srv-addr.patch diff --git a/libs/ipfs-http-client/Makefile b/libs/ipfs-http-client/Makefile deleted file mode 100644 index 6a853eb6e..000000000 --- a/libs/ipfs-http-client/Makefile +++ /dev/null @@ -1,81 +0,0 @@ -# -# This is free software, licensed under the GNU General Public License v2. -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=ipfs-http-client -PKG_RELEASE:=2 - -PKG_SOURCE_PROTO:=git -PKG_SOURCE_URL:=https://github.com/vasild/cpp-ipfs-http-client.git -PKG_SOURCE_DATE:=2021-03-01 -PKG_SOURCE_VERSION:=27f6439303f7afb5b8b2e4154f4269ba296059c7 -PKG_MIRROR_HASH:=61814d666bbd927750a0af7d350ad8ba27c2a78e0b5f5196ec4e0b5049ef2690 - -PKG_MAINTAINER:=Leonid Esman -PKG_LICENSE:=MIT -PKG_LICENSE_FILES:=LICENSE.MIT - -PKG_BUILD_DEPENDS:=nlohmannjson - -include $(INCLUDE_DIR)/package.mk -include $(INCLUDE_DIR)/cmake.mk - -define Package/ipfs-http-client/Default/description - IPFS (the InterPlanetary File System) is the Distributed Web. - Specs, docs, sources, links: https://ipfs.io/ and https://github.com/ipfs. - This is Vasil Dimov's C++ IPFS HTTP API client library. -endef - -define Package/libipfs-http-client - SECTION:=libs - CATEGORY:=Libraries - TITLE:=IPFS client library - URL:=https://github.com/vasild/cpp-ipfs-http-client - DEPENDS:= +libcurl +libstdcpp +libatomic -endef - -define Package/libipfs-http-client/description - $(call Package/ipfs-http-client/Default/description) - This package contains shared library. -endef - -define Package/ipfs-http-client-tests - SECTION:=utils - CATEGORY:=Utilities - TITLE:=IPFS client library tests - URL:=https://github.com/vasild/cpp-ipfs-http-client - DEPENDS:=+libipfs-http-client +libcurl -endef - -define Package/ipfs-http-client-tests/description - $(call Package/ipfs-http-client/Default/description) - This package contains library tests. -endef - -CMAKE_OPTIONS += \ - -DBUILD_SHARED_LIBS=ON \ - -DBUILD_TESTING=ON - -define Package/libipfs-http-client/install - $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipfs-http-client.so* $(1)/usr/lib -endef - -define Package/ipfs-http-client-tests/install - $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_block $(1)/usr/bin/ipfs-block - $(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_config $(1)/usr/bin/ipfs-config - $(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_dht $(1)/usr/bin/ipfs-dht - $(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_files $(1)/usr/bin/ipfs-files - $(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_generic $(1)/usr/bin/ipfs-generic - $(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_key $(1)/usr/bin/ipfs-key - $(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_name $(1)/usr/bin/ipfs-name - $(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_object $(1)/usr/bin/ipfs-object - $(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_pin $(1)/usr/bin/ipfs-pin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test_swarm $(1)/usr/bin/ipfs-swarm -endef - -$(eval $(call BuildPackage,libipfs-http-client)) -$(eval $(call BuildPackage,ipfs-http-client-tests)) diff --git a/libs/ipfs-http-client/patches/001-add-srv-addr.patch b/libs/ipfs-http-client/patches/001-add-srv-addr.patch deleted file mode 100644 index d2fe784ca..000000000 --- a/libs/ipfs-http-client/patches/001-add-srv-addr.patch +++ /dev/null @@ -1,251 +0,0 @@ ---- a/test/test_block.cc -+++ b/test/test_block.cc -@@ -24,9 +24,16 @@ CONNECTION WITH THE SOFTWARE OR THE USE - #include - #include - --int main(int, char**) { -+int main(int argc, char** argv) { -+ char addr127001[]="127.0.0.1"; -+ char *srvaddr; -+ if (argc<2) -+ srvaddr=addr127001; -+ else -+ srvaddr=argv[1]; -+ - try { -- ipfs::Client client("localhost", 5001); -+ ipfs::Client client(srvaddr, 5001); - - /** [ipfs::Client::BlockPut] */ - ipfs::Json block; ---- a/test/test_config.cc -+++ b/test/test_config.cc -@@ -23,9 +23,16 @@ CONNECTION WITH THE SOFTWARE OR THE USE - #include - #include - --int main(int, char**) { -+int main(int argc, char** argv) { -+ char addr127001[]="127.0.0.1"; -+ char *srvaddr; -+ if (argc<2) -+ srvaddr=addr127001; -+ else -+ srvaddr=argv[1]; -+ - try { -- ipfs::Client client("localhost", 5001); -+ ipfs::Client client(srvaddr, 5001); - - /** [ipfs::Client::ConfigSet] */ - client.ConfigSet("Datastore.StorageMax", "20GB"); ---- a/test/test_dht.cc -+++ b/test/test_dht.cc -@@ -23,9 +23,16 @@ CONNECTION WITH THE SOFTWARE OR THE USE - #include - #include - --int main(int, char**) { -+int main(int argc, char** argv) { -+ char addr127001[]="127.0.0.1"; -+ char *srvaddr; -+ if (argc<2) -+ srvaddr=addr127001; -+ else -+ srvaddr=argv[1]; -+ - try { -- ipfs::Client client("localhost", 5001); -+ ipfs::Client client(srvaddr, 5001); - - ipfs::Json add_result; - client.FilesAdd( ---- a/test/test_error.cc -+++ b/test/test_error.cc -@@ -35,16 +35,23 @@ extern std::string replace_body; - } - } // namespace ipfs - --int main(int, char**) { -+int main(int argc, char** argv) { -+ char addr127001[]="127.0.0.1"; -+ char *srvaddr; -+ if (argc<2) -+ srvaddr=addr127001; -+ else -+ srvaddr=argv[1]; -+ - try { -- ipfs::Client client_cant_connect("localhost", 57); -+ ipfs::Client client_cant_connect(srvaddr, 57); - - ipfs::test::must_fail("client.Version()", [&client_cant_connect]() { - ipfs::Json version; - client_cant_connect.Version(&version); - }); - -- ipfs::Client client("localhost", 5001); -+ ipfs::Client client(srvaddr, 5001); - - std::string object_id; - client.ObjectNew(&object_id); ---- a/test/test_files.cc -+++ b/test/test_files.cc -@@ -24,10 +24,17 @@ CONNECTION WITH THE SOFTWARE OR THE USE - #include - #include - --int main(int, char**) { -+int main(int argc, char** argv) { -+ char addr127001[]="127.0.0.1"; -+ char *srvaddr; -+ if (argc<2) -+ srvaddr=addr127001; -+ else -+ srvaddr=argv[1]; -+ - try { - // Try Files API tests with time-out setting of 20 seconds -- ipfs::Client client("localhost", 5001, "20s"); -+ ipfs::Client client(srvaddr, 5001, "20s"); - - /** [ipfs::Client::FilesGet] */ - std::stringstream contents; ---- a/test/test_generic.cc -+++ b/test/test_generic.cc -@@ -24,11 +24,18 @@ CONNECTION WITH THE SOFTWARE OR THE USE - #include - #include - --int main(int, char**) { -+int main(int argc, char** argv) { -+ char addr127001[]="127.0.0.1"; -+ char *srvaddr; -+ if (argc<2) -+ srvaddr=addr127001; -+ else -+ srvaddr=argv[1]; -+ - try { - // Test client constructor - /** [ipfs::Client::Client] */ -- ipfs::Client client("localhost", 5001); -+ ipfs::Client client(srvaddr, 5001); - /** [ipfs::Client::Client] */ - - // Test client constructor with additional parameters -@@ -38,7 +45,7 @@ int main(int, char**) { - ipfs::Client clientA(client); - clientA = client; - ipfs::Client clientB(std::move(clientA)); -- ipfs::Client clientC("localhost", 5001); -+ ipfs::Client clientC(srvaddr, 5001); - clientC = std::move(clientB); - - #pragma GCC diagnostic push ---- a/test/test_key.cc -+++ b/test/test_key.cc -@@ -26,9 +26,16 @@ CONNECTION WITH THE SOFTWARE OR THE USE - - using Json = nlohmann::json; - --int main(int, char**) { -+int main(int argc, char** argv) { -+ char addr127001[]="127.0.0.1"; -+ char *srvaddr; -+ if (argc<2) -+ srvaddr=addr127001; -+ else -+ srvaddr=argv[1]; -+ - try { -- ipfs::Client client("localhost", 5001); -+ ipfs::Client client(srvaddr, 5001); - - /** [ipfs::Client::KeyGen] */ - std::string key_id; ---- a/test/test_name.cc -+++ b/test/test_name.cc -@@ -24,9 +24,16 @@ CONNECTION WITH THE SOFTWARE OR THE USE - #include - #include - --int main(int, char**) { -+int main(int argc, char** argv) { -+ char addr127001[]="127.0.0.1"; -+ char *srvaddr; -+ if (argc<2) -+ srvaddr=addr127001; -+ else -+ srvaddr=argv[1]; -+ - try { -- ipfs::Client client("localhost", 5001); -+ ipfs::Client client(srvaddr, 5001); - - // We need a key here, so as not to clobber the "self" key. - std::string key_id; ---- a/test/test_object.cc -+++ b/test/test_object.cc -@@ -24,9 +24,16 @@ CONNECTION WITH THE SOFTWARE OR THE USE - #include - #include - --int main(int, char**) { -+int main(int argc, char** argv) { -+ char addr127001[]="127.0.0.1"; -+ char *srvaddr; -+ if (argc<2) -+ srvaddr=addr127001; -+ else -+ srvaddr=argv[1]; -+ - try { -- ipfs::Client client("localhost", 5001); -+ ipfs::Client client(srvaddr, 5001); - - /** [ipfs::Client::ObjectNew] */ - std::string object_id; ---- a/test/test_pin.cc -+++ b/test/test_pin.cc -@@ -23,9 +23,16 @@ CONNECTION WITH THE SOFTWARE OR THE USE - #include - #include - --int main(int, char**) { -+int main(int argc, char** argv) { -+ char addr127001[]="127.0.0.1"; -+ char *srvaddr; -+ if (argc<2) -+ srvaddr=addr127001; -+ else -+ srvaddr=argv[1]; -+ - try { -- ipfs::Client client("localhost", 5001); -+ ipfs::Client client(srvaddr, 5001); - - std::string object_id; - ---- a/test/test_swarm.cc -+++ b/test/test_swarm.cc -@@ -23,9 +23,16 @@ CONNECTION WITH THE SOFTWARE OR THE USE - #include - #include - --int main(int, char**) { -+int main(int argc, char** argv) { -+ char addr127001[]="127.0.0.1"; -+ char *srvaddr; -+ if (argc<2) -+ srvaddr=addr127001; -+ else -+ srvaddr=argv[1]; -+ - try { -- ipfs::Client client("localhost", 5001); -+ ipfs::Client client(srvaddr, 5001); - - /** [ipfs::Client::SwarmAddrs] */ - ipfs::Json addresses; From b9c7aa50f42e5680bae5c26182a359d0fed5b9ce Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Tue, 23 May 2023 17:59:55 +0000 Subject: [PATCH 05/31] curl: update to 8.1.0 * https://curl.se/changes.html#8_1_0 Signed-off-by: Stan Grishin --- net/curl/Makefile | 6 +++--- net/curl/patches/200-no_docs_tests.patch | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/net/curl/Makefile b/net/curl/Makefile index c79ca80d8..d167cebfc 100644 --- a/net/curl/Makefile +++ b/net/curl/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/nls.mk PKG_NAME:=curl -PKG_VERSION:=8.0.1 +PKG_VERSION:=8.1.0 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz @@ -17,7 +17,7 @@ PKG_SOURCE_URL:=https://github.com/curl/curl/releases/download/curl-$(subst .,_, https://dl.uxnr.de/mirror/curl/ \ https://curl.askapache.com/download/ \ https://curl.se/download/ -PKG_HASH:=0a381cd82f4d00a9a334438b8ca239afea5bfefcfa9a1025f2bf118e79e0b5f0 +PKG_HASH:=6bd80ad4f07187015911216ee7185b90d285ac5162aed1bded144f9f93232a3c PKG_LICENSE:=MIT PKG_LICENSE_FILES:=COPYING @@ -26,7 +26,6 @@ PKG_CPE_ID:=cpe:/a:haxx:libcurl PKG_FIXUP:=autoreconf PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 -PKG_BUILD_FLAGS:=gc-sections PKG_CONFIG_DEPENDS:= \ CONFIG_IPV6 \ @@ -108,6 +107,7 @@ endef TARGET_CFLAGS += $(FPIC) TARGET_CPPFLAGS += $(if $(CONFIG_LIBCURL_NTLM),,-DCURL_DISABLE_NTLM) +TARGET_LDFLAGS += -Wl,--gc-sections CONFIGURE_ARGS += \ --disable-debug \ diff --git a/net/curl/patches/200-no_docs_tests.patch b/net/curl/patches/200-no_docs_tests.patch index 863c82801..d3a5cca61 100644 --- a/net/curl/patches/200-no_docs_tests.patch +++ b/net/curl/patches/200-no_docs_tests.patch @@ -1,6 +1,6 @@ --- a/Makefile.am +++ b/Makefile.am -@@ -158,7 +158,7 @@ CLEANFILES = $(VC10_LIBVCXPROJ) $(VC10_S +@@ -159,7 +159,7 @@ CLEANFILES = $(VC10_LIBVCXPROJ) $(VC10_S bin_SCRIPTS = curl-config SUBDIRS = lib src @@ -9,7 +9,7 @@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libcurl.pc -@@ -272,8 +272,6 @@ cygwinbin: +@@ -273,8 +273,6 @@ cygwinbin: # We extend the standard install with a custom hook: install-data-hook: (cd include && $(MAKE) install) From abfe6272cd7dbb04f3cdc884eaf9febe3a96fe16 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Mon, 22 May 2023 12:29:27 +0800 Subject: [PATCH 06/31] inih: add new package It's required by next xfsprogs update. Signed-off-by: Tianling Shen --- libs/inih/Makefile | 75 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 libs/inih/Makefile diff --git a/libs/inih/Makefile b/libs/inih/Makefile new file mode 100644 index 000000000..c499b22ac --- /dev/null +++ b/libs/inih/Makefile @@ -0,0 +1,75 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=inih +PKG_VERSION:=r56 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://codeload.github.com/benhoyt/inih/tar.gz/$(PKG_VERSION)? +PKG_HASH:=4f2ba6bd122d30281a8c7a4d5723b7af90b56aa828c0e88256d7fceda03a491a + +PKG_MAINTAINER:=Tianling Shen +PKG_LICENSE:=BSD-3-Clause +PKG_LICENSE_FILES:=LICENSE.txt + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/meson.mk + +define Package/libinih/Default + SECTION:=libs + CATEGORY:=Libraries + URL:=https://github.com/benhoyt/inih +endef + +define Package/libinih + $(call Package/libinih/Default) + TITLE:=Simple .INI file parser in C +endef + +define Package/libinireader + $(call Package/libinih/Default) + TITLE:=C++ library and API for inih + DEPENDS:=+libinih +libstdcpp +endef + +define Package/libinih/description + inih (INI Not Invented Here) is a simple .INI file parser written + in C. It's only a couple of pages of code, and it was designed to + be small and simple, so it's good for embedded systems. It's also + more or less compatible with Python's ConfigParser style of .INI + files, including RFC 822-style multi-line syntax and name: value + entries. +endef + +Package/libinireader/description = $(Package/libinih/description) + +MESON_ARGS += \ + -Ddefault_library=both \ + -Ddistro_install=true \ + -Dwith_INIReader=true \ + -Dmulti-line_entries=true \ + -Dutf-8_bom=true \ + -Dinline_comments=true \ + -Duse_heap=false + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/{ini,INIReader}.h $(1)/usr/include + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/{inih,INIReader}.pc $(1)/usr/lib/pkgconfig + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{inih,INIReader}.a $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{inih,INIReader}.so* $(1)/usr/lib/ +endef + +define Package/libinih/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libinih.so* $(1)/usr/lib/ +endef + +define Package/libinireader/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libINIReader.so* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libinih)) +$(eval $(call BuildPackage,libinireader)) From 284093d85af82a001227547cc5458ce77cfec101 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Mon, 22 May 2023 12:29:27 +0800 Subject: [PATCH 07/31] xfsprogs: Update to 6.2.0 * Added new dependencies introduced in this version * Disabled mips16 due to build issues * Fixed the usage of the `CONFIG_USE_MUSL` variable (missing $) * Refreshed patches Signed-off-by: Tianling Shen --- utils/xfsprogs/Makefile | 15 +++++++++------ utils/xfsprogs/patches/120-disable_assert.patch | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/utils/xfsprogs/Makefile b/utils/xfsprogs/Makefile index 71cf38c7d..c74143859 100644 --- a/utils/xfsprogs/Makefile +++ b/utils/xfsprogs/Makefile @@ -8,20 +8,22 @@ include $(TOPDIR)/rules.mk PKG_NAME:=xfsprogs -PKG_VERSION:=5.9.0 -PKG_RELEASE:=3 +PKG_VERSION:=6.2.0 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@KERNEL/linux/utils/fs/xfs/xfsprogs -PKG_HASH:=bc5c805596bc609a18dc1f1b4ed6a2821dba9f47408ec00e7799ceea1b2097f1 +PKG_HASH:=d67dcba5a28e0904b60886b6e5f752bc7c9c3a5c7096153855b5adca9db86c51 PKG_MAINTAINER:= PKG_LICENSE:=GPL-2.0-only PKG_LICENSE_FILES:=LICENSES/GPL-2.0 PKG_CPE_ID:=cpe:/a:sgi:xfsprogs -PKG_INSTALL:=1 +PKG_BUILD_DEPENDS:=inih +PKG_BUILD_FLAGS:=no-mips16 PKG_BUILD_PARALLEL:=1 +PKG_INSTALL:=1 include $(INCLUDE_DIR)/package.mk @@ -29,7 +31,7 @@ define Package/xfsprogs/default SECTION:=utils CATEGORY:=Utilities SUBMENU:=Filesystem - DEPENDS:=+libuuid +libpthread + DEPENDS:=+liburcu +libuuid +libpthread URL:=https://xfs.org/ endef @@ -41,6 +43,7 @@ endef define Package/xfs-mkfs $(call Package/xfsprogs/default) TITLE:=Utility for creating XFS filesystems + DEPENDS+=+libinih endef define Package/xfs-fsck @@ -67,7 +70,7 @@ CONFIGURE_ARGS += \ --disable-scrub \ --disable-libicu -TARGET_CFLAGS += -DHAVE_MAP_SYNC $(if (CONFIG_USE_MUSL),-D_LARGEFILE64_SOURCE) +TARGET_CFLAGS += -DHAVE_MAP_SYNC $(if $(CONFIG_USE_MUSL),-D_LARGEFILE64_SOURCE) TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lrt) define Package/xfs-admin/install diff --git a/utils/xfsprogs/patches/120-disable_assert.patch b/utils/xfsprogs/patches/120-disable_assert.patch index 5bde4fbf9..2e3f90087 100644 --- a/utils/xfsprogs/patches/120-disable_assert.patch +++ b/utils/xfsprogs/patches/120-disable_assert.patch @@ -1,6 +1,6 @@ --- a/libxfs/libxfs_priv.h +++ b/libxfs/libxfs_priv.h -@@ -87,9 +87,6 @@ struct iomap; +@@ -89,9 +89,6 @@ struct iomap; /* for all the support code that uses progname in error messages */ extern char *progname; From 0e3398dd61bc9662371a36df9dfcb219df0f1318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20H=C3=B6gberg?= Date: Thu, 18 May 2023 09:59:21 +0200 Subject: [PATCH 08/31] squeezelite: update to 1.9.9-1432 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Högberg --- sound/squeezelite/Makefile | 6 +++--- .../patches/010-select_broadcast_interface.patch | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sound/squeezelite/Makefile b/sound/squeezelite/Makefile index 311728e2b..3f8338fd0 100644 --- a/sound/squeezelite/Makefile +++ b/sound/squeezelite/Makefile @@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=squeezelite -PKG_VERSION:=1.9.9-1415 +PKG_VERSION:=1.9.9-1432 PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/ralph-irving/squeezelite -PKG_SOURCE_VERSION:=5361789c8df37d87a22cc2253ff746557044931a -PKG_MIRROR_HASH:=c6cabb4041c1197881d9f5e9ea8293ece2d409356ccf56d4a8948743b49b13ca +PKG_SOURCE_VERSION:=575b59398dd19945d2038474062240fc527407fb +PKG_MIRROR_HASH:=1f1ae2514b7e9da81cf4881a79a810bfe4768a16209ccc903edd434aef8f96d6 PKG_MAINTAINER:=Ted Hess PKG_LICENSE:=GPL-3.0-or-later diff --git a/sound/squeezelite/patches/010-select_broadcast_interface.patch b/sound/squeezelite/patches/010-select_broadcast_interface.patch index 50a50c39c..07581429a 100644 --- a/sound/squeezelite/patches/010-select_broadcast_interface.patch +++ b/sound/squeezelite/patches/010-select_broadcast_interface.patch @@ -132,16 +132,16 @@ } else { --- a/squeezelite.h +++ b/squeezelite.h -@@ -458,7 +458,7 @@ char* strcasestr(const char *haystack, c +@@ -463,7 +463,7 @@ char* strcasestr(const char *haystack, c char *next_param(char *src, char c); u32_t gettime_ms(void); -void get_mac(u8_t *mac); +in_addr_t get_iface_info(log_level level, char *iface, u8_t *mac); void set_nonblock(sockfd s); + void set_recvbufsize(sockfd s); int connect_timeout(sockfd sock, const struct sockaddr *addr, socklen_t addrlen, int timeout); - void server_addr(char *server, in_addr_t *ip_ptr, unsigned *port_ptr); -@@ -515,7 +515,7 @@ void buf_init(struct buffer *buf, size_t +@@ -521,7 +521,7 @@ void buf_init(struct buffer *buf, size_t void buf_destroy(struct buffer *buf); // slimproto.c From 3032e7063f5a215a4a2b15f79be8d54aace6b614 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Mon, 8 May 2023 23:42:37 +0800 Subject: [PATCH 09/31] python3: Remove --without-pymalloc --without-pymalloc was added in 7bf1ae65a89e380ce20ef5ab13b1a7276d6f7047 because leaving it enabled added an "m" flag/suffix to file names. This flag/suffix was removed in Python 3.8[1], so disabling pymalloc is no longer necessary. [1]: https://docs.python.org/3.8/whatsnew/3.8.html#build-and-c-api-changes Signed-off-by: Jeffery To --- lang/python/python3/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index 1fd8f43d1..328a5c920 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:=4 +PKG_RELEASE:=5 PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO) PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz @@ -160,7 +160,6 @@ CONFIGURE_ARGS+= \ --with-system-ffi \ --without-cxx-main \ --without-ensurepip \ - --without-pymalloc \ --disable-test-modules \ $(if $(CONFIG_IPV6),--enable-ipv6) \ $(if $(findstring mips,$(CONFIG_ARCH)),,--with-lto) \ @@ -335,7 +334,6 @@ HOST_CONFIGURE_ARGS+= \ --with-system-expat=$(STAGING_DIR_HOST) \ --with-ssl-default-suites=openssl \ --without-cxx-main \ - --without-pymalloc \ --disable-test-modules \ CONFIG_SITE= From 8a4da017902d21ac6cada21a3bb23caa5b39af0b Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Fri, 12 May 2023 19:40:11 +0800 Subject: [PATCH 10/31] python3: Fix __pycache__ files included in python3-light 003-do-not-run-distutils-tests.patch was removed in 4e05541782edeb06b51d691dadf52648df24c940. This patch stopped "make install" from, among other things, running compileall. When this patch was removed, "make install" ran compileall as normal and created bytecode files in __pycache__ directories. These files were then packaged in python3-light. This adds a patch to stop compileall from being run during "make install". Fixes: 4e05541782ed ("python3: bump to version 3.10.0") Signed-off-by: Jeffery To --- lang/python/python3/Makefile | 2 +- .../patches/003-do-not-run-compileall.patch | 18 ++++++++++++++++++ .../patches/016-adjust-config-paths.patch | 2 +- .../025-choose-python-config-version.patch | 2 +- 4 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 lang/python/python3/patches/003-do-not-run-compileall.patch diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index 328a5c920..28d80b00d 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:=5 +PKG_RELEASE:=6 PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO) PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz diff --git a/lang/python/python3/patches/003-do-not-run-compileall.patch b/lang/python/python3/patches/003-do-not-run-compileall.patch new file mode 100644 index 000000000..212b7720a --- /dev/null +++ b/lang/python/python3/patches/003-do-not-run-compileall.patch @@ -0,0 +1,18 @@ +--- a/Makefile.pre.in ++++ b/Makefile.pre.in +@@ -1600,6 +1600,7 @@ libinstall: build_all $(srcdir)/Modules/ + $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \ + $(DESTDIR)$(LIBDEST)/distutils/tests ; \ + fi ++ifeq (1,) + -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ + $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \ + -j0 -d $(LIBDEST) -f \ +@@ -1627,6 +1628,7 @@ libinstall: build_all $(srcdir)/Modules/ + $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \ + -j0 -d $(LIBDEST)/site-packages -f \ + -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages ++endif + -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ + $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt + -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ diff --git a/lang/python/python3/patches/016-adjust-config-paths.patch b/lang/python/python3/patches/016-adjust-config-paths.patch index 641661f5c..6c7e67700 100644 --- a/lang/python/python3/patches/016-adjust-config-paths.patch +++ b/lang/python/python3/patches/016-adjust-config-paths.patch @@ -19,7 +19,7 @@ $(DESTDIR)$(LIBDEST); \ $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \ -@@ -1751,7 +1751,7 @@ sharedinstall: sharedmods +@@ -1753,7 +1753,7 @@ sharedinstall: sharedmods --install-scripts=$(BINDIR) \ --install-platlib=$(DESTSHARED) \ --root=$(DESTDIR)/ diff --git a/lang/python/python3/patches/025-choose-python-config-version.patch b/lang/python/python3/patches/025-choose-python-config-version.patch index b5a278d8e..15cfebd24 100644 --- a/lang/python/python3/patches/025-choose-python-config-version.patch +++ b/lang/python/python3/patches/025-choose-python-config-version.patch @@ -1,6 +1,6 @@ --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1643,7 +1643,7 @@ python-config: $(srcdir)/Misc/python-con +@@ -1645,7 +1645,7 @@ python-config: $(srcdir)/Misc/python-con @ # On Darwin, always use the python version of the script, the shell @ # version doesn't use the compiler customizations that are provided @ # in python (_osx_support.py). From e1a95786358c64483fc16d52eac6746267f0abec Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Thu, 18 May 2023 17:42:12 +0800 Subject: [PATCH 11/31] python3: Fix readelf program name not replaced in _sysconfigdata.py The Makefile lines to add READELF to TARGET_CONFIGURE_OPTS was removed in 4e05541782edeb06b51d691dadf52648df24c940. Without setting READELF, configure finds the symlink to $(TARGET_CROSS)readelf (e.g. arm-openwrt-linux-readelf) instead of $(TARGET_CROSS)readelf (e.g. arm-openwrt-linux-muslgnueabi-readelf). This leads to the symlink name being saved to _sysconfigdata.py, and so the readelf name is not replaced correctly (in Py3Package/python3-base/install). This restores the removed Makefile lines. Fixes: 4e05541782ed ("python3: bump to version 3.10.0") Signed-off-by: Jeffery To --- lang/python/python3/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index 28d80b00d..eb2c4c8b2 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:=6 +PKG_RELEASE:=7 PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO) PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz @@ -138,6 +138,11 @@ define Package/python3/description It's python3-light + all other packages. endef +# Set READELF here so that the exact same readelf program name can be +# replaced in _sysconfigdata.py (in Py3Package/python3-base/install) +TARGET_CONFIGURE_OPTS+= \ + READELF="$(TARGET_CROSS)readelf" + EXTRA_LDFLAGS+= \ -L$(PKG_BUILD_DIR) \ -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib From 67e47f11962c4ea0b1b734913f64c32fbba9edf2 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Sat, 20 May 2023 19:07:22 +0800 Subject: [PATCH 12/31] python3: Fix race condition when doing parallel builds When doing parallel builds, host Python can install the python3 symlink before the Python standard library is installed completely. When this occurs, it is possible for other packages to detect the python3 symlink and try to use host Python before it is fully installed. This adds a patch to make commoninstall (where the standard library is installed) a prerequisite of bininstall (where the python3 symlink is installed), so that commoninstall is fully completed before bininstall begins. Patch has been submitted upstream: https://github.com/python/cpython/pull/104693 Fixes: https://github.com/openwrt/packages/issues/19241 Signed-off-by: Jeffery To --- .../027-install-python3-symlink-after-stdlib.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lang/python/python3/patches/027-install-python3-symlink-after-stdlib.patch diff --git a/lang/python/python3/patches/027-install-python3-symlink-after-stdlib.patch b/lang/python/python3/patches/027-install-python3-symlink-after-stdlib.patch new file mode 100644 index 000000000..efd193a7d --- /dev/null +++ b/lang/python/python3/patches/027-install-python3-symlink-after-stdlib.patch @@ -0,0 +1,11 @@ +--- a/Makefile.pre.in ++++ b/Makefile.pre.in +@@ -1361,7 +1361,7 @@ altbininstall: $(BUILDPYTHON) @FRAMEWORK + $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE); \ + fi + +-bininstall: altbininstall ++bininstall: commoninstall altbininstall + if test ! -d $(DESTDIR)$(LIBPC); then \ + echo "Creating directory $(LIBPC)"; \ + $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \ From f006d0ea23f76a1846c93d0ec3b1ea60ba36d093 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Tue, 23 May 2023 17:49:43 +0800 Subject: [PATCH 13/31] python3: Fix multiarch/local paths added when building host Python By default, the Python build process will add /usr/local/{lib,include}, and multiarch paths (e.g. /usr/{lib,include}/x86_64-linux-gnu) if building on Debian/Ubuntu, to its library and includes paths. 006-remove-multi-arch-and-local-paths.patch was added in 84202f17e1aac6faf66b8d186f7c5c62b6f72ffb to stop the Python build process from adding these paths. 006-remove-multi-arch-and-local-paths.patch was removed in 48277ec9158151763239461c6f60808e38a99c2f. 006-do-not-add-multiarch-paths-when-cross-compiling.patch was added in 0c8b0b0bf727a57b0138a1425d2f32786dddd146 to stop the Python build process from adding these paths for target Python. These paths are still added by the Python build process when building host Python. This replaces the cross-compiling-only patch with the original patch, renamed slightly and adapted for Python 3.10. Fixes: 48277ec91581 ("python3: bump to version 3.8") Signed-off-by: Jeffery To --- lang/python/python3/Makefile | 2 +- ...006-do-not-add-multiarch-local-paths.patch | 19 +++++++++++++++++++ ...multiarch-paths-when-cross-compiling.patch | 12 ------------ 3 files changed, 20 insertions(+), 13 deletions(-) create mode 100644 lang/python/python3/patches/006-do-not-add-multiarch-local-paths.patch delete mode 100644 lang/python/python3/patches/006-do-not-add-multiarch-paths-when-cross-compiling.patch diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index eb2c4c8b2..e27457051 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:=7 +PKG_RELEASE:=8 PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO) PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz diff --git a/lang/python/python3/patches/006-do-not-add-multiarch-local-paths.patch b/lang/python/python3/patches/006-do-not-add-multiarch-local-paths.patch new file mode 100644 index 000000000..333370eb8 --- /dev/null +++ b/lang/python/python3/patches/006-do-not-add-multiarch-local-paths.patch @@ -0,0 +1,19 @@ +--- a/setup.py ++++ b/setup.py +@@ -822,16 +822,9 @@ class PyBuildExt(build_ext): + add_dir_to_list(dir_list, directory) + + def configure_compiler(self): +- # Ensure that /usr/local is always used, but the local build +- # directories (i.e. '.' and 'Include') must be first. See issue +- # 10520. +- if not CROSS_COMPILING: +- add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') +- add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') + # only change this for cross builds for 3.3, issues on Mageia + if CROSS_COMPILING: + self.add_cross_compiling_paths() +- self.add_multiarch_paths() + self.add_ldflags_cppflags() + + def init_inc_lib_dirs(self): diff --git a/lang/python/python3/patches/006-do-not-add-multiarch-paths-when-cross-compiling.patch b/lang/python/python3/patches/006-do-not-add-multiarch-paths-when-cross-compiling.patch deleted file mode 100644 index a2bb0fba0..000000000 --- a/lang/python/python3/patches/006-do-not-add-multiarch-paths-when-cross-compiling.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- a/setup.py -+++ b/setup.py -@@ -831,7 +831,8 @@ class PyBuildExt(build_ext): - # only change this for cross builds for 3.3, issues on Mageia - if CROSS_COMPILING: - self.add_cross_compiling_paths() -- self.add_multiarch_paths() -+ else: -+ self.add_multiarch_paths() - self.add_ldflags_cppflags() - - def init_inc_lib_dirs(self): From 44fb4927f11add18baa11617e67c8a697a3f528d Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Tue, 23 May 2023 19:12:27 +0800 Subject: [PATCH 14/31] python3: Fix uuid module not compiled for host Python This adds $(STAGING_DIR_HOST)/include/e2fsprogs to HOST_CFLAGS and HOST_CPPFLAGS so that configure can find uuid/uuid.h. Signed-off-by: Jeffery To --- lang/python/python3/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index e27457051..24e9a4a3a 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:=8 +PKG_RELEASE:=9 PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO) PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz @@ -314,6 +314,13 @@ define Py3Package/python3/filespec -|$(PYTHON3_PKG_DIR) endef +# libuuid is provided by e2fsprogs and uuid/uuid.h is moved into +# $(STAGING_DIR_HOST)/include/e2fsprogs +HOST_CFLAGS += \ + -I$(STAGING_DIR_HOST)/include/e2fsprogs +HOST_CPPFLAGS += \ + -I$(STAGING_DIR_HOST)/include/e2fsprogs + HOST_LDFLAGS += \ -Wl$(comma)-rpath$(comma)$(STAGING_DIR_HOSTPKG)/lib From 02eb5c100c8462823ea19df6af637be97570ccdb Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Mon, 22 May 2023 23:26:19 +0800 Subject: [PATCH 15/31] python3: Fix hashlib module not compiled for host Python 026-openssl-feature-flags.patch and 028-host-python-support-ssl-with-libressl.patch were removed in 4ecd9d67e90651a8e93760bf0b5771f7057c74a8 to fix the ssl module after libressl was upgraded to 3.7.0[1]. However, the cause of the ssl module build failure was only 028-host-python-support-ssl-with-libressl.patch. Removing 026-openssl-feature-flags.patch caused a build failure for the hashlib module. This restores 026-openssl-feature-flags.patch with an updated version of the patch from OpenBSD[2]. [1]: https://github.com/openwrt/packages/issues/20107 [2]: https://github.com/openbsd/ports/blob/26a04435bf2a09dcbe22b718bfee08997617a906/lang/python/3.10/patches/patch-Modules__hashopenssl_c Fixes: 4ecd9d67e906 ("python3: fix ssl support by removing libressl patches") Signed-off-by: Jeffery To --- lang/python/python3/Makefile | 2 +- .../patches/026-openssl-feature-flags.patch | 65 +++++++++++++++++++ 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 lang/python/python3/patches/026-openssl-feature-flags.patch diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index 24e9a4a3a..b1e292cbb 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:=9 +PKG_RELEASE:=10 PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO) PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz diff --git a/lang/python/python3/patches/026-openssl-feature-flags.patch b/lang/python/python3/patches/026-openssl-feature-flags.patch new file mode 100644 index 000000000..2546048b0 --- /dev/null +++ b/lang/python/python3/patches/026-openssl-feature-flags.patch @@ -0,0 +1,65 @@ +--- a/Modules/_hashopenssl.c ++++ b/Modules/_hashopenssl.c +@@ -45,10 +45,18 @@ + + #define MUNCH_SIZE INT_MAX + ++#ifdef NID_id_scrypt + #define PY_OPENSSL_HAS_SCRYPT 1 ++#endif ++#ifdef NID_sha3_256 + #define PY_OPENSSL_HAS_SHA3 1 ++#endif ++#ifdef NID_shake256 + #define PY_OPENSSL_HAS_SHAKE 1 ++#endif ++#ifdef NID_blake2s256 + #define PY_OPENSSL_HAS_BLAKE2 1 ++#endif + + #if OPENSSL_VERSION_NUMBER >= 0x30000000L + #define PY_EVP_MD EVP_MD +@@ -120,19 +128,27 @@ static const py_hashentry_t py_hashes[] + PY_HASH_ENTRY(Py_hash_sha384, "SHA384", SN_sha384, NID_sha384), + PY_HASH_ENTRY(Py_hash_sha512, "SHA512", SN_sha512, NID_sha512), + /* truncated sha2 */ ++#ifdef NID_sha512_256 + PY_HASH_ENTRY(Py_hash_sha512_224, "SHA512_224", SN_sha512_224, NID_sha512_224), + PY_HASH_ENTRY(Py_hash_sha512_256, "SHA512_256", SN_sha512_256, NID_sha512_256), ++#endif + /* sha3 */ ++#ifdef PY_OPENSSL_HAS_SHA3 + PY_HASH_ENTRY(Py_hash_sha3_224, NULL, SN_sha3_224, NID_sha3_224), + PY_HASH_ENTRY(Py_hash_sha3_256, NULL, SN_sha3_256, NID_sha3_256), + PY_HASH_ENTRY(Py_hash_sha3_384, NULL, SN_sha3_384, NID_sha3_384), + PY_HASH_ENTRY(Py_hash_sha3_512, NULL, SN_sha3_512, NID_sha3_512), ++#endif + /* sha3 shake */ ++#ifdef PY_OPENSSL_HAS_SHAKE + PY_HASH_ENTRY(Py_hash_shake_128, NULL, SN_shake128, NID_shake128), + PY_HASH_ENTRY(Py_hash_shake_256, NULL, SN_shake256, NID_shake256), ++#endif + /* blake2 digest */ ++#ifdef PY_OPENSSL_HAS_BLAKE2 + PY_HASH_ENTRY(Py_hash_blake2s, "blake2s256", SN_blake2s256, NID_blake2s256), + PY_HASH_ENTRY(Py_hash_blake2b, "blake2b512", SN_blake2b512, NID_blake2b512), ++#endif + PY_HASH_ENTRY(NULL, NULL, NULL, 0), + }; + +@@ -873,11 +889,15 @@ py_evp_fromname(PyObject *module, const + goto exit; + } + ++#ifndef EVP_MD_FLAG_XOF ++ type = get_hashlib_state(module)->EVPtype; ++#else + if ((EVP_MD_flags(digest) & EVP_MD_FLAG_XOF) == EVP_MD_FLAG_XOF) { + type = get_hashlib_state(module)->EVPXOFtype; + } else { + type = get_hashlib_state(module)->EVPtype; + } ++#endif + + self = newEVPobject(type); + if (self == NULL) { From 2445fe9fb25e6d9eed28aa9ad237bd250d1600d1 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Fri, 5 May 2023 17:23:49 +0800 Subject: [PATCH 16/31] python3: Update to 3.11.3, refresh/redo patches * Removed patches: * 001-enable-zlib.patch: zlib module should be enabled automatically * 007-distutils-do-not-adjust-path.patch: Not necessary since we process shebang lines for all scripts (in python3-package.mk) * 030-bpo-43112-detect-musl-as-a-separate-SOABI-GH-24502.patch: Already merged * Move configure vars from config.site back into Makefile Centralizing all build information into one file makes it easier to maintain * No longer set ac_cv_header_uuid_h=yes as configure should detect libuuid * Order configure args by enable-/disable-/with-/without-, then alphabetically * Set ac_cv_working_openssl_hashlib=yes for host configure to bypass the OpenSSL API tests with LibreSSL * Use the default Host/Compile recipe instead of picking out specific targets to make Signed-off-by: Jeffery To --- lang/python/python3-version.mk | 8 +- lang/python/python3/Makefile | 56 +++++++------- lang/python/python3/files/config.site | 13 ---- .../python3/files/python3-package-ctypes.mk | 2 +- .../python3/files/python3-package-readline.mk | 2 +- .../patches-pip/001-pep517-pyc-fix.patch | 27 ++++--- .../python3/patches/001-enable-zlib.patch | 11 --- .../patches/003-do-not-run-compileall.patch | 4 +- .../004-do-not-write-bytes-codes.patch | 2 +- ...006-do-not-add-multiarch-local-paths.patch | 2 +- .../007-distutils-do-not-adjust-path.patch | 10 --- .../008-distutils-use-python-sysroot.patch | 2 +- .../014-remove-platform-so-suffix.patch | 4 +- .../patches/016-adjust-config-paths.patch | 44 +++++------ .../025-choose-python-config-version.patch | 2 +- ...install-python3-symlink-after-stdlib.patch | 2 +- ...ct-musl-as-a-separate-SOABI-GH-24502.patch | 75 ------------------- ...itch-PLATFORM_TRIPLET-suffix-to-musl.patch | 4 +- 18 files changed, 87 insertions(+), 183 deletions(-) delete mode 100644 lang/python/python3/files/config.site delete mode 100644 lang/python/python3/patches/001-enable-zlib.patch delete mode 100644 lang/python/python3/patches/007-distutils-do-not-adjust-path.patch delete mode 100644 lang/python/python3/patches/030-bpo-43112-detect-musl-as-a-separate-SOABI-GH-24502.patch diff --git a/lang/python/python3-version.mk b/lang/python/python3-version.mk index d8e72df19..08bbe3d9a 100644 --- a/lang/python/python3-version.mk +++ b/lang/python/python3-version.mk @@ -7,13 +7,13 @@ # Note: keep in sync with setuptools & pip PYTHON3_VERSION_MAJOR:=3 -PYTHON3_VERSION_MINOR:=10 -PYTHON3_VERSION_MICRO:=7 +PYTHON3_VERSION_MINOR:=11 +PYTHON3_VERSION_MICRO:=3 PYTHON3_VERSION:=$(PYTHON3_VERSION_MAJOR).$(PYTHON3_VERSION_MINOR) PYTHON3_SETUPTOOLS_PKG_RELEASE:=1 PYTHON3_PIP_PKG_RELEASE:=1 -PYTHON3_SETUPTOOLS_VERSION:=63.2.0 -PYTHON3_PIP_VERSION:=22.2.2 +PYTHON3_SETUPTOOLS_VERSION:=65.5.0 +PYTHON3_PIP_VERSION:=22.3.1 diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index b1e292cbb..0a3e4cbc5 100644 --- a/lang/python/python3/Makefile +++ b/lang/python/python3/Makefile @@ -11,12 +11,12 @@ include $(TOPDIR)/rules.mk include ../python3-version.mk PKG_NAME:=python3 -PKG_RELEASE:=10 +PKG_RELEASE:=1 PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO) PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION) -PKG_HASH:=6eed8415b7516fb2f260906db5d48dd4c06acc0cb24a7d6cc15296a604dcdc48 +PKG_HASH:=8a5db99c961a7ecf27c75956189c9602c968751f11dbeae2b900dbff1c085b5e PKG_MAINTAINER:=Jeffery To PKG_LICENSE:=PSF-2.0 @@ -71,7 +71,7 @@ endef define Package/libpython3 $(call Package/python3/Default) TITLE:=Python $(PYTHON3_VERSION) core library - DEPENDS:=+libpthread +zlib + DEPENDS:=+libpthread ABI_VERSION:=$(PYTHON3_VERSION) endef @@ -82,7 +82,7 @@ endef define Package/python3-base $(call Package/python3/Default) TITLE:=Python $(PYTHON3_VERSION) interpreter - DEPENDS:=+libpthread +zlib +libpython3 + DEPENDS:=+libpython3 endef define Package/python3-base/description @@ -93,7 +93,7 @@ endef define Package/python3-light $(call Package/python3/Default) TITLE:=Python $(PYTHON3_VERSION) light installation - DEPENDS:=+python3-base +libffi +libbz2 + DEPENDS:=+python3-base +libbz2 +zlib endef define Package/python3-light/config @@ -147,6 +147,18 @@ EXTRA_LDFLAGS+= \ -L$(PKG_BUILD_DIR) \ -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib +# Bypass configure tests for cross compilation +CONFIGURE_VARS += \ + ac_cv_buggy_getaddrinfo=no \ + ac_cv_file__dev_ptc=no \ + ac_cv_file__dev_ptmx=yes + +# Disable stdlib modules +# Check for a better way in the future: https://github.com/python/cpython/issues/98558 +CONFIGURE_VARS += \ + py_cv_module__tkinter=n/a \ + py_cv_module_nis=n/a + # Workaround for hardfloat mips # https://bugs.python.org/issue46265 ifneq ($(findstring mips,$(CONFIG_ARCH)),) @@ -159,22 +171,16 @@ endif MAKE_VARS += \ PYTHONSTRICTEXTENSIONBUILD=1 -CONFIGURE_ARGS+= \ +CONFIGURE_ARGS += \ --enable-optimizations \ --enable-shared \ + --disable-test-modules \ + --with-build-python \ --with-system-ffi \ --without-cxx-main \ --without-ensurepip \ - --disable-test-modules \ $(if $(CONFIG_IPV6),--enable-ipv6) \ - $(if $(findstring mips,$(CONFIG_ARCH)),,--with-lto) \ - CONFIG_SITE="$(PKG_BUILD_DIR)/config.site" \ - OPT="$(TARGET_CFLAGS)" - -define Build/Prepare - $(call Build/Prepare/Default) - $(CP) ./files/config.site $(PKG_BUILD_DIR)/config.site -endef + $(if $(findstring mips,$(CONFIG_ARCH)),,--with-lto) ifdef CONFIG_PACKAGE_python3-setuptools PYTHON3_SETUPTOOLS_BUILD:=1 @@ -333,6 +339,10 @@ endif # HOST_MAKE_VARS += \ # PYTHONSTRICTEXTENSIONBUILD=1 +# Bypass configure test +HOST_CONFIGURE_VARS += \ + ac_cv_working_openssl_hashlib=yes + ifeq ($(HOST_OS),Darwin) HOST_CONFIGURE_VARS += \ ac_cv_header_libintl_h=no @@ -340,25 +350,19 @@ HOST_MAKE_VARS += \ USE_PYTHON_CONFIG_PY=1 endif -HOST_CONFIGURE_ARGS+= \ +HOST_CONFIGURE_ARGS += \ --enable-optimizations \ - --with-ensurepip=upgrade \ - --with-system-expat=$(STAGING_DIR_HOST) \ - --with-ssl-default-suites=openssl \ - --without-cxx-main \ --disable-test-modules \ - CONFIG_SITE= + --with-ensurepip=upgrade \ + --with-ssl-default-suites=openssl \ + --with-system-expat \ + --without-cxx-main define Host/Configure $(SED) 's/^ENABLE_USER_SITE = None$$$$/ENABLE_USER_SITE = False/' $(HOST_BUILD_DIR)/Lib/site.py $(call Host/Configure/Default) endef -define Host/Compile - $(call Host/Compile/Default,python) - $(call Host/Compile/Default,sharedmods) -endef - define Host/Install $(if $(wildcard $(HOST_PYTHON3_PKG_DIR)/.setuptools_installed_$(PYTHON3_SETUPTOOLS_VERSION)-$(PYTHON3_SETUPTOOLS_PKG_RELEASE)),, rm -rf \ diff --git a/lang/python/python3/files/config.site b/lang/python/python3/files/config.site deleted file mode 100644 index 65c2d9585..000000000 --- a/lang/python/python3/files/config.site +++ /dev/null @@ -1,13 +0,0 @@ -#! /bin/sh -# -# Copyright (C) 2007-2014 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -ac_cv_file__dev_ptmx=yes -ac_cv_file__dev_ptc=no -ac_cv_buggy_getaddrinfo=no -ac_cv_header_uuid_h=yes - diff --git a/lang/python/python3/files/python3-package-ctypes.mk b/lang/python/python3/files/python3-package-ctypes.mk index 90e8cefed..e1bac47cd 100644 --- a/lang/python/python3/files/python3-package-ctypes.mk +++ b/lang/python/python3/files/python3-package-ctypes.mk @@ -8,7 +8,7 @@ define Package/python3-ctypes $(call Package/python3/Default) TITLE:=Python $(PYTHON3_VERSION) ctypes module - DEPENDS:=+python3-light + DEPENDS:=+python3-light +libffi endef $(eval $(call Py3BasePackage,python3-ctypes, \ diff --git a/lang/python/python3/files/python3-package-readline.mk b/lang/python/python3/files/python3-package-readline.mk index 4ce408db2..fbff134a3 100644 --- a/lang/python/python3/files/python3-package-readline.mk +++ b/lang/python/python3/files/python3-package-readline.mk @@ -8,7 +8,7 @@ define Package/python3-readline $(call Package/python3/Default) TITLE:=Python $(PYTHON3_VERSION) readline module - DEPENDS:=+python3-light +libreadline +libncursesw + DEPENDS:=+python3-light +libreadline endef $(eval $(call Py3BasePackage,python3-readline, \ diff --git a/lang/python/python3/patches-pip/001-pep517-pyc-fix.patch b/lang/python/python3/patches-pip/001-pep517-pyc-fix.patch index e600b0a30..df5f90cce 100644 --- a/lang/python/python3/patches-pip/001-pep517-pyc-fix.patch +++ b/lang/python/python3/patches-pip/001-pep517-pyc-fix.patch @@ -1,16 +1,25 @@ diff --git a/pip/_vendor/pep517/in_process/__init__.py b/pip/_vendor/pep517/in_process/__init__.py -index c932313..a01143b 100644 +index 281a356cfe26..77acbfc2670b 100644 --- a/pip/_vendor/pep517/in_process/__init__.py +++ b/pip/_vendor/pep517/in_process/__init__.py -@@ -10,8 +10,13 @@ try: - import importlib.resources as resources - - def _in_proc_script_path(): -- return resources.path(__package__, '_in_process.py') -+ if resources.is_resource(__package__, '_in_process.py'): -+ return resources.path(__package__, '_in_process.py') -+ return resources.path(__package__, '_in_process.pyc') +@@ -14,13 +14,21 @@ try: + except AttributeError: + # Python 3.8 compatibility + def _in_proc_script_path(): +- return resources.path(__package__, '_in_process.py') ++ if resources.is_resource(__package__, '_in_process.py'): ++ return resources.path(__package__, '_in_process.py') ++ return resources.path(__package__, '_in_process.pyc') + else: + def _in_proc_script_path(): ++ if resources.files(__package__).joinpath('_in_process.py').is_file(): ++ return resources.as_file( ++ resources.files(__package__).joinpath('_in_process.py')) + return resources.as_file( +- resources.files(__package__).joinpath('_in_process.py')) ++ resources.files(__package__).joinpath('_in_process.pyc')) except ImportError: + # Python 3.6 compatibility @contextmanager def _in_proc_script_path(): - yield pjoin(dirname(abspath(__file__)), '_in_process.py') diff --git a/lang/python/python3/patches/001-enable-zlib.patch b/lang/python/python3/patches/001-enable-zlib.patch deleted file mode 100644 index 75766ee19..000000000 --- a/lang/python/python3/patches/001-enable-zlib.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/Modules/Setup -+++ b/Modules/Setup -@@ -343,7 +343,7 @@ _symtable symtablemodule.c - # Andrew Kuchling's zlib module. - # This require zlib 1.1.3 (or later). - # See http://www.gzip.org/zlib/ --#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz -+zlib zlibmodule.c -lz - - # Interface to the Expat XML parser - # More information on Expat can be found at www.libexpat.org. diff --git a/lang/python/python3/patches/003-do-not-run-compileall.patch b/lang/python/python3/patches/003-do-not-run-compileall.patch index 212b7720a..9f0067b25 100644 --- a/lang/python/python3/patches/003-do-not-run-compileall.patch +++ b/lang/python/python3/patches/003-do-not-run-compileall.patch @@ -1,6 +1,6 @@ --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1600,6 +1600,7 @@ libinstall: build_all $(srcdir)/Modules/ +@@ -2084,6 +2084,7 @@ libinstall: all $(srcdir)/Modules/xxmodu $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \ $(DESTDIR)$(LIBDEST)/distutils/tests ; \ fi @@ -8,7 +8,7 @@ -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \ -j0 -d $(LIBDEST) -f \ -@@ -1627,6 +1628,7 @@ libinstall: build_all $(srcdir)/Modules/ +@@ -2111,6 +2112,7 @@ libinstall: all $(srcdir)/Modules/xxmodu $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \ -j0 -d $(LIBDEST)/site-packages -f \ -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages diff --git a/lang/python/python3/patches/004-do-not-write-bytes-codes.patch b/lang/python/python3/patches/004-do-not-write-bytes-codes.patch index 40b4e5b0c..6f01f9d8e 100644 --- a/lang/python/python3/patches/004-do-not-write-bytes-codes.patch +++ b/lang/python/python3/patches/004-do-not-write-bytes-codes.patch @@ -1,6 +1,6 @@ --- a/Python/initconfig.c +++ b/Python/initconfig.c -@@ -163,7 +163,7 @@ int Py_NoSiteFlag = 0; /* Suppress 'impo +@@ -198,7 +198,7 @@ int Py_NoSiteFlag = 0; /* Suppress 'impo int Py_BytesWarningFlag = 0; /* Warn on str(bytes) and str(buffer) */ int Py_FrozenFlag = 0; /* Needed by getpath.c */ int Py_IgnoreEnvironmentFlag = 0; /* e.g. PYTHONPATH, PYTHONHOME */ diff --git a/lang/python/python3/patches/006-do-not-add-multiarch-local-paths.patch b/lang/python/python3/patches/006-do-not-add-multiarch-local-paths.patch index 333370eb8..7b35eb7b4 100644 --- a/lang/python/python3/patches/006-do-not-add-multiarch-local-paths.patch +++ b/lang/python/python3/patches/006-do-not-add-multiarch-local-paths.patch @@ -1,6 +1,6 @@ --- a/setup.py +++ b/setup.py -@@ -822,16 +822,9 @@ class PyBuildExt(build_ext): +@@ -843,16 +843,9 @@ class PyBuildExt(build_ext): add_dir_to_list(dir_list, directory) def configure_compiler(self): diff --git a/lang/python/python3/patches/007-distutils-do-not-adjust-path.patch b/lang/python/python3/patches/007-distutils-do-not-adjust-path.patch deleted file mode 100644 index d4680cad4..000000000 --- a/lang/python/python3/patches/007-distutils-do-not-adjust-path.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/Lib/distutils/command/build_scripts.py -+++ b/Lib/distutils/command/build_scripts.py -@@ -91,6 +91,7 @@ class build_scripts(Command): - adjust = True - post_interp = match.group(1) or b'' - -+ adjust = 0 - if adjust: - log.info("copying and adjusting %s -> %s", script, - self.build_dir) diff --git a/lang/python/python3/patches/008-distutils-use-python-sysroot.patch b/lang/python/python3/patches/008-distutils-use-python-sysroot.patch index 26f22d7df..c3e856290 100644 --- a/lang/python/python3/patches/008-distutils-use-python-sysroot.patch +++ b/lang/python/python3/patches/008-distutils-use-python-sysroot.patch @@ -36,7 +36,7 @@ Signed-off-by: Thomas Petazzoni self.library_dirs.append('.') --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py -@@ -123,10 +123,17 @@ _SCHEME_KEYS = ('stdlib', 'platstdlib', +@@ -168,10 +168,17 @@ _SCHEME_KEYS = ('stdlib', 'platstdlib', _PY_VERSION = sys.version.split()[0] _PY_VERSION_SHORT = f'{sys.version_info[0]}.{sys.version_info[1]}' _PY_VERSION_SHORT_NO_DOT = f'{sys.version_info[0]}{sys.version_info[1]}' diff --git a/lang/python/python3/patches/014-remove-platform-so-suffix.patch b/lang/python/python3/patches/014-remove-platform-so-suffix.patch index fc3aadbfc..8c23b83f3 100644 --- a/lang/python/python3/patches/014-remove-platform-so-suffix.patch +++ b/lang/python/python3/patches/014-remove-platform-so-suffix.patch @@ -1,6 +1,6 @@ --- a/configure +++ b/configure -@@ -15616,7 +15616,7 @@ $as_echo_n "checking ABIFLAGS... " >&6; +@@ -20712,7 +20712,7 @@ $as_echo_n "checking ABIFLAGS... " >&6; $as_echo "$ABIFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 $as_echo_n "checking SOABI... " >&6; } @@ -11,7 +11,7 @@ --- a/configure.ac +++ b/configure.ac -@@ -4824,7 +4824,7 @@ AC_SUBST(SOABI) +@@ -5684,7 +5684,7 @@ AC_SUBST(SOABI) AC_MSG_CHECKING(ABIFLAGS) AC_MSG_RESULT($ABIFLAGS) AC_MSG_CHECKING(SOABI) diff --git a/lang/python/python3/patches/016-adjust-config-paths.patch b/lang/python/python3/patches/016-adjust-config-paths.patch index 6c7e67700..a8ef48c7e 100644 --- a/lang/python/python3/patches/016-adjust-config-paths.patch +++ b/lang/python/python3/patches/016-adjust-config-paths.patch @@ -1,6 +1,6 @@ --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py -@@ -407,6 +407,7 @@ def get_makefile_filename(): +@@ -461,6 +461,7 @@ def get_makefile_filename(): def _get_sysconfigdata_name(): @@ -10,7 +10,7 @@ '_PYTHON_SYSCONFIGDATA_NAME', --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1593,7 +1593,7 @@ libinstall: build_all $(srcdir)/Modules/ +@@ -2077,7 +2077,7 @@ libinstall: all $(srcdir)/Modules/xxmodu esac; \ done; \ done @@ -19,7 +19,7 @@ $(DESTDIR)$(LIBDEST); \ $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \ -@@ -1753,7 +1753,7 @@ sharedinstall: sharedmods +@@ -2239,7 +2239,7 @@ sharedinstall: all --install-scripts=$(BINDIR) \ --install-platlib=$(DESTSHARED) \ --root=$(DESTDIR)/ @@ -30,16 +30,16 @@ # Here are a couple of targets for MacOSX again, to install a full --- a/configure +++ b/configure -@@ -3019,7 +3019,7 @@ $as_echo_n "checking for python interpre - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 - $as_echo "$interp" >&6; } -- PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$interp -+ PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata '$interp +@@ -3262,7 +3262,7 @@ fi fi - elif test "$cross_compiling" = maybe; then - as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 -@@ -15686,7 +15686,7 @@ fi + ac_cv_prog_PYTHON_FOR_REGEN=$with_build_python + PYTHON_FOR_FREEZE="$with_build_python" +- PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$with_build_python ++ PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata '$with_build_python + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_build_python" >&5 + $as_echo "$with_build_python" >&6; } + +@@ -20782,7 +20782,7 @@ fi @@ -50,16 +50,16 @@ LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" --- a/configure.ac +++ b/configure.ac -@@ -82,7 +82,7 @@ if test "$cross_compiling" = yes; then - AC_MSG_ERROR([python$PACKAGE_VERSION interpreter not found]) - fi - AC_MSG_RESULT($interp) -- PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$interp -+ PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata '$interp - fi - elif test "$cross_compiling" = maybe; then - AC_MSG_ERROR([Cross compiling required --host=HOST-TUPLE and --build=ARCH]) -@@ -4882,7 +4882,7 @@ fi], +@@ -162,7 +162,7 @@ AC_ARG_WITH( + dnl Build Python interpreter is used for regeneration and freezing. + ac_cv_prog_PYTHON_FOR_REGEN=$with_build_python + PYTHON_FOR_FREEZE="$with_build_python" +- PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$with_build_python ++ PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata '$with_build_python + AC_MSG_RESULT([$with_build_python]) + ], [ + AS_VAR_IF([cross_compiling], [yes], +@@ -5742,7 +5742,7 @@ fi], dnl define LIBPL after ABIFLAGS and LDVERSION is defined. AC_SUBST(PY_ENABLE_SHARED) diff --git a/lang/python/python3/patches/025-choose-python-config-version.patch b/lang/python/python3/patches/025-choose-python-config-version.patch index 15cfebd24..80d9985fb 100644 --- a/lang/python/python3/patches/025-choose-python-config-version.patch +++ b/lang/python/python3/patches/025-choose-python-config-version.patch @@ -1,6 +1,6 @@ --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1645,7 +1645,7 @@ python-config: $(srcdir)/Misc/python-con +@@ -2129,7 +2129,7 @@ python-config: $(srcdir)/Misc/python-con @ # On Darwin, always use the python version of the script, the shell @ # version doesn't use the compiler customizations that are provided @ # in python (_osx_support.py). diff --git a/lang/python/python3/patches/027-install-python3-symlink-after-stdlib.patch b/lang/python/python3/patches/027-install-python3-symlink-after-stdlib.patch index efd193a7d..26241d03e 100644 --- a/lang/python/python3/patches/027-install-python3-symlink-after-stdlib.patch +++ b/lang/python/python3/patches/027-install-python3-symlink-after-stdlib.patch @@ -1,6 +1,6 @@ --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1361,7 +1361,7 @@ altbininstall: $(BUILDPYTHON) @FRAMEWORK +@@ -1839,7 +1839,7 @@ altbininstall: $(BUILDPYTHON) @FRAMEWORK $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE); \ fi diff --git a/lang/python/python3/patches/030-bpo-43112-detect-musl-as-a-separate-SOABI-GH-24502.patch b/lang/python/python3/patches/030-bpo-43112-detect-musl-as-a-separate-SOABI-GH-24502.patch deleted file mode 100644 index f22075e26..000000000 --- a/lang/python/python3/patches/030-bpo-43112-detect-musl-as-a-separate-SOABI-GH-24502.patch +++ /dev/null @@ -1,75 +0,0 @@ -From 3f79de7b8411c76a1fcd1ca850ea62500be7a881 Mon Sep 17 00:00:00 2001 -From: Natanael Copa -Date: Sat, 29 Jan 2022 00:02:54 +0100 -Subject: [PATCH 1/2] bpo-43112: detect musl as a separate SOABI (GH-24502) -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -musl libc and gnu libc are not ABI compatible so we need set different -SOABI for musl and not simply assume that all linux is linux-gnu. - -Replace linux-gnu with the detected os for the build from config.guess -for linux-musl*. - -(cherry picked from commit 1f036ede59e2c4befc07714cf76603c591d5c972) -Signed-off-by: Šimon Bořek ---- - Lib/test/test_sysconfig.py | 8 ++++---- - .../next/Build/2021-02-10-17-54-04.bpo-43112.H5Lat6.rst | 1 + - configure | 5 +++++ - configure.ac | 5 +++++ - 4 files changed, 15 insertions(+), 4 deletions(-) - create mode 100644 Misc/NEWS.d/next/Build/2021-02-10-17-54-04.bpo-43112.H5Lat6.rst - ---- a/Lib/test/test_sysconfig.py -+++ b/Lib/test/test_sysconfig.py -@@ -425,11 +425,11 @@ class TestSysConfig(unittest.TestCase): - self.assertTrue('linux' in suffix, suffix) - if re.match('(i[3-6]86|x86_64)$', machine): - if ctypes.sizeof(ctypes.c_char_p()) == 4: -- self.assertTrue(suffix.endswith('i386-linux-gnu.so') or -- suffix.endswith('x86_64-linux-gnux32.so'), -- suffix) -+ expected_suffixes = 'i386-linux-gnu.so', 'x86_64-linux-gnux32.so', 'i386-linux-musl.so' - else: # 8 byte pointer size -- self.assertTrue(suffix.endswith('x86_64-linux-gnu.so'), suffix) -+ expected_suffixes = 'x86_64-linux-gnu.so', 'x86_64-linux-musl.so' -+ self.assertTrue(suffix.endswith(expected_suffixes), -+ f'unexpected suffix {suffix!r}') - - @unittest.skipUnless(sys.platform == 'darwin', 'OS X-specific test') - def test_osx_ext_suffix(self): ---- /dev/null -+++ b/Misc/NEWS.d/next/Build/2021-02-10-17-54-04.bpo-43112.H5Lat6.rst -@@ -0,0 +1 @@ -+Detect musl libc as a separate SOABI (tagged as ``linux-musl``). -\ No newline at end of file ---- a/configure -+++ b/configure -@@ -5376,6 +5376,11 @@ EOF - - if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then - PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` -+ case "$build_os" in -+ linux-musl*) -+ PLATFORM_TRIPLET=`echo "$PLATFORM_TRIPLET" | sed 's/linux-gnu/linux-musl/'` -+ ;; -+ esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 - $as_echo "$PLATFORM_TRIPLET" >&6; } - else ---- a/configure.ac -+++ b/configure.ac -@@ -866,6 +866,11 @@ EOF - - if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then - PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` -+ case "$build_os" in -+ linux-musl*) -+ PLATFORM_TRIPLET=`echo "$PLATFORM_TRIPLET" | sed 's/linux-gnu/linux-musl/'` -+ ;; -+ esac - AC_MSG_RESULT([$PLATFORM_TRIPLET]) - else - AC_MSG_RESULT([none]) diff --git a/lang/python/python3/patches/131-configure_ac-switch-PLATFORM_TRIPLET-suffix-to-musl.patch b/lang/python/python3/patches/131-configure_ac-switch-PLATFORM_TRIPLET-suffix-to-musl.patch index dfe8e06fe..675682ab4 100644 --- a/lang/python/python3/patches/131-configure_ac-switch-PLATFORM_TRIPLET-suffix-to-musl.patch +++ b/lang/python/python3/patches/131-configure_ac-switch-PLATFORM_TRIPLET-suffix-to-musl.patch @@ -27,7 +27,7 @@ Signed-off-by: Šimon Bořek --- a/configure +++ b/configure -@@ -5376,7 +5376,7 @@ EOF +@@ -6186,7 +6186,7 @@ EOF if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` @@ -38,7 +38,7 @@ Signed-off-by: Šimon Bořek ;; --- a/configure.ac +++ b/configure.ac -@@ -866,7 +866,7 @@ EOF +@@ -1081,7 +1081,7 @@ EOF if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` From 96de355818bdbaae51e17042806ef1856f784922 Mon Sep 17 00:00:00 2001 From: Oskari Rauta Date: Sun, 21 May 2023 17:11:06 +0300 Subject: [PATCH 17/31] perl: fix tests Enabling Perl tests causes failure during build. Files that should be installed into packages, are missing or in different location. This PR removes missing files/paths and replaces paths that have changed with working ones. Most likely, test files have been relocated during time and this portion hasn't been updated when perl package has updated. Fixes #21127 Signed-off-by: Oskari Rauta --- lang/perl/Makefile | 2 +- lang/perl/perlbase.mk | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lang/perl/Makefile b/lang/perl/Makefile index 40532b5f0..2763de277 100644 --- a/lang/perl/Makefile +++ b/lang/perl/Makefile @@ -11,7 +11,7 @@ include perlver.mk PKG_NAME:=perl PKG_VERSION:=$(PERL_VERSION) -PKG_RELEASE:=8 +PKG_RELEASE:=9 PKG_SOURCE_URL:=\ https://cpan.metacpan.org/src/5.0 \ diff --git a/lang/perl/perlbase.mk b/lang/perl/perlbase.mk index 51d49fd54..e23bf8ef5 100644 --- a/lang/perl/perlbase.mk +++ b/lang/perl/perlbase.mk @@ -209,7 +209,7 @@ endef define Package/perlbase-bignum/install $(call perlmod/Install,$(1),bignum.pm bigrat.pm,) -$(call perlmod/InstallBaseTests,$(1),dist/bignum/t) +$(call perlmod/InstallBaseTests,$(1),cpan/bignum/t) endef $(eval $(call BuildPackage,perlbase-bignum)) @@ -306,7 +306,7 @@ endef define Package/perlbase-cpan/install $(call perlmod/Install,$(1),CPAN CPAN.pm Parse/CPAN/Meta.pm,CPAN/FirstTime.pm) $(call perlmod/Install/NoStrip,$(1),CPAN/FirstTime.pm,) -$(call perlmod/InstallBaseTests,$(1),cpan/CPAN-Meta-Requirements/t cpan/CPAN-Meta-YAML/t cpan/CPAN-Meta/t cpan/CPAN/t cpan/Parse-CPAN-Meta/t) +$(call perlmod/InstallBaseTests,$(1),cpan/CPAN-Meta-Requirements/t cpan/CPAN-Meta-YAML/t cpan/CPAN-Meta/t cpan/CPAN/t) endef $(eval $(call BuildPackage,perlbase-cpan)) @@ -390,7 +390,7 @@ endef define Package/perlbase-devel/install $(call perlmod/Install,$(1),Devel auto/Devel,Devel/PPPort.pm) $(call perlmod/Install/NoStrip,$(1),Devel/PPPort.pm,) -$(call perlmod/InstallBaseTests,$(1),cpan/Devel-PPPort/t dist/Devel-SelfStubber/t ext/Devel-Peek/t) +$(call perlmod/InstallBaseTests,$(1),dist/Devel-PPPort/t dist/Devel-SelfStubber/t ext/Devel-Peek/t) endef $(eval $(call BuildPackage,perlbase-devel)) @@ -502,7 +502,7 @@ endef define Package/perlbase-encoding/install $(call perlmod/Install,$(1),encoding encoding.pm,) -$(call perlmod/InstallBaseTests,$(1),cpan/encoding-warnings/t) +$(call perlmod/InstallBaseTests,$(1),dist/encoding-warnings/t) endef $(eval $(call BuildPackage,perlbase-encoding)) @@ -588,7 +588,7 @@ endef define Package/perlbase-extutils/install $(call perlmod/Install,$(1),ExtUtils,ExtUtils/MakeMaker/FAQ.pod ExtUtils/MakeMaker/Tutorial.pod ExtUtils/ParseXS.pm ExtUtils/ParseXS/Utilities.pm) $(call perlmod/Install/NoStrip,$(1),ExtUtils/ParseXS.pm ExtUtils/ParseXS/Utilities.pm,) -$(call perlmod/InstallBaseTests,$(1),cpan/ExtUtils-Command/t cpan/ExtUtils-Constant/t cpan/ExtUtils-Install/t cpan/ExtUtils-MakeMaker/t cpan/ExtUtils-Manifest/t dist/ExtUtils-CBuilder/t dist/ExtUtils-ParseXS/t lib/ExtUtils/t lib/h2ph.t lib/h2xs.t utils/h2ph utils/h2xs) +$(call perlmod/InstallBaseTests,$(1),cpan/ExtUtils-Constant/t cpan/ExtUtils-Install/t cpan/ExtUtils-MakeMaker/t cpan/ExtUtils-Manifest/t dist/ExtUtils-CBuilder/t dist/ExtUtils-ParseXS/t lib/ExtUtils/t lib/h2ph.t lib/h2xs.t utils/h2ph utils/h2xs) endef $(eval $(call BuildPackage,perlbase-extutils)) @@ -919,7 +919,7 @@ endef define Package/perlbase-math/install $(call perlmod/Install,$(1),Math auto/Math,) -$(call perlmod/InstallBaseTests,$(1),cpan/Math-Complex/t dist/Math-BigInt-FastCalc/t dist/Math-BigInt/t dist/Math-BigRat/t) +$(call perlmod/InstallBaseTests,$(1),cpan/Math-Complex/t cpan/Math-BigInt-FastCalc/t cpan/Math-BigInt/t cpan/Math-BigRat/t) endef $(eval $(call BuildPackage,perlbase-math)) @@ -1384,7 +1384,7 @@ endef define Package/perlbase-test/install $(call perlmod/Install,$(1),Test Test.pm ok.pm,Test/Builder.pm Test/Harness/TAP.pod Test/More.pm Test/Tutorial.pod) $(call perlmod/Install/NoStrip,$(1),Test/Builder.pm Test/More.pm,) -$(call perlmod/InstallBaseTests,$(1),cpan/Test-Harness/t cpan/Test-Simple/t cpan/Test/t) +$(call perlmod/InstallBaseTests,$(1),cpan/Test-Harness/t cpan/Test-Simple/t dist/Test/t) $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/prove $(1)/usr/bin endef @@ -1456,7 +1456,7 @@ endef define Package/perlbase-time/install $(call perlmod/Install,$(1),Time auto/Time,) -$(call perlmod/InstallBaseTests,$(1),cpan/Time-HiRes/t cpan/Time-Local/t cpan/Time-Piece/t lib/Time/gmtime.t lib/Time/localtime.t) +$(call perlmod/InstallBaseTests,$(1),dist/Time-HiRes/t cpan/Time-Local/t cpan/Time-Piece/t lib/Time/gmtime.t lib/Time/localtime.t) endef $(eval $(call BuildPackage,perlbase-time)) @@ -1470,7 +1470,7 @@ endef define Package/perlbase-unicode/install $(call perlmod/Install,$(1),Unicode auto/Unicode,) -$(call perlmod/InstallBaseTests,$(1),cpan/Unicode-Collate/t cpan/Unicode-Normalize/t lib/Unicode/UCD.t) +$(call perlmod/InstallBaseTests,$(1),cpan/Unicode-Collate/t dist/Unicode-Normalize/t lib/Unicode/UCD.t) endef $(eval $(call BuildPackage,perlbase-unicode)) From 5059cfccae8fda6837481569bdf3fff02144d614 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Fri, 19 May 2023 13:54:09 +0800 Subject: [PATCH 18/31] borgbackup: Move from lang/python into utils lang/python is meant for Python libraries and other packages closely related to the Python language. It makes more sense for borgbackup to be in utils instead. Signed-off-by: Jeffery To --- {lang/python => utils}/borgbackup/Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) rename {lang/python => utils}/borgbackup/Makefile (93%) diff --git a/lang/python/borgbackup/Makefile b/utils/borgbackup/Makefile similarity index 93% rename from lang/python/borgbackup/Makefile rename to utils/borgbackup/Makefile index 95fd7eaff..ab932de82 100644 --- a/lang/python/borgbackup/Makefile +++ b/utils/borgbackup/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=borgbackup PKG_VERSION:=1.2.4 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PYPI_NAME:=borgbackup PKG_HASH:=a4bd54e9469e81b7a30a6711423115abc818d9cd844ecb1ca0e6104bc5374da8 @@ -18,15 +18,14 @@ PKG_LICENSE:=BSD-3-Clause PKG_LICENSE_FILES:=LICENSE PKG_MAINTAINER:=Julien Malik -include ../pypi.mk +include ../../lang/python/pypi.mk include $(INCLUDE_DIR)/package.mk -include ../python3-package.mk +include ../../lang/python/python3-package.mk # see #20462 and #12942: email and urllib shall come with python3-light define Package/borgbackup - SECTION:=lang - CATEGORY:=Languages - SUBMENU:=Python + SECTION:=utils + CATEGORY:=Utilities TITLE:=Deduplicated, encrypted, authenticated and compressed backups URL:=https://github.com/borgbackup/borg DEPENDS:= \ From 6b8340d3cad7a6bd36aa21c93de82c47bf871c33 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Mon, 22 May 2023 15:54:42 +0800 Subject: [PATCH 19/31] python-flit-core: Update to 3.9.0 Signed-off-by: Jeffery To --- lang/python/python-flit-core/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/python/python-flit-core/Makefile b/lang/python/python-flit-core/Makefile index 42274d6d8..66b246cae 100644 --- a/lang/python/python-flit-core/Makefile +++ b/lang/python/python-flit-core/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-flit-core -PKG_VERSION:=3.8.0 +PKG_VERSION:=3.9.0 PKG_RELEASE:=1 PYPI_NAME:=flit-core PYPI_SOURCE_NAME:=flit_core -PKG_HASH:=b305b30c99526df5e63d6022dd2310a0a941a187bd3884f4c8ef0418df6c39f3 +PKG_HASH:=72ad266176c4a3fcfab5f2930d76896059851240570ce9a98733b658cb786eba PKG_LICENSE:=BSD-3-Clause PKG_LICENSE_FILES:=LICENSE From 60bf01cb606344619e002901646171da1e69c0f9 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Thu, 25 May 2023 12:01:17 +0800 Subject: [PATCH 20/31] python3: Fix unnecessary linking with libbsd configure will try to link with libbsd for the flock function, even when flock is available without it. Fixes: https://github.com/openwrt/packages/issues/21161 Fixes: 2445fe9fb25e ("python3: Update to 3.11.3, refresh/redo patches") Signed-off-by: Jeffery To --- lang/python/python3/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index 0a3e4cbc5..020d88a6e 100644 --- a/lang/python/python3/Makefile +++ b/lang/python/python3/Makefile @@ -153,6 +153,11 @@ CONFIGURE_VARS += \ ac_cv_file__dev_ptc=no \ ac_cv_file__dev_ptmx=yes +# Do not link with libbsd for flock +# https://github.com/openwrt/packages/issues/21161 +CONFIGURE_VARS += \ + ac_cv_lib_bsd_flock=no + # Disable stdlib modules # Check for a better way in the future: https://github.com/python/cpython/issues/98558 CONFIGURE_VARS += \ From 626c7efda92b9fc386d3e408d72f18bcd9e9d2c7 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Thu, 25 May 2023 15:30:08 +0800 Subject: [PATCH 21/31] python-poetry-core: Update to 1.6.0 Signed-off-by: Jeffery To --- lang/python/python-poetry-core/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/python/python-poetry-core/Makefile b/lang/python/python-poetry-core/Makefile index 6cdb6d285..c39c10203 100644 --- a/lang/python/python-poetry-core/Makefile +++ b/lang/python/python-poetry-core/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-poetry-core -PKG_VERSION:=1.5.2 +PKG_VERSION:=1.6.0 PKG_RELEASE:=1 PYPI_NAME:=poetry-core PYPI_SOURCE_NAME:=poetry_core -PKG_HASH:=c6556c3b1ec5b8668e6ef5a4494726bc41d31907339425e194e78a6178436c14 +PKG_HASH:=a9c7296a12d6c8e4f8aa50a66ef3c967b2b50fba634da144d358e676fad9989f PKG_LICENSE:=MIT PKG_LICENSE_FILES:=LICENSE From ad98bf5d503fd6d4b5f3986805f3a4af6f36d2df Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Wed, 26 Apr 2023 08:49:59 +0200 Subject: [PATCH 22/31] postgresql: update to 15.2 Release Notes: https://www.postgresql.org/docs/release/15.2/ Fixes: CVE-2022-41862 Signed-off-by: Nick Hainke --- libs/postgresql/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/postgresql/Makefile b/libs/postgresql/Makefile index 13b167698..719cc6b35 100644 --- a/libs/postgresql/Makefile +++ b/libs/postgresql/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=postgresql -PKG_VERSION:=15.1 +PKG_VERSION:=15.2 PKG_RELEASE:=1 PKG_MAINTAINER:=Daniel Golle PKG_LICENSE:=PostgreSQL @@ -17,7 +17,7 @@ PKG_SOURCE_URL:=\ http://ftp.postgresql.org/pub/source/v$(PKG_VERSION) \ ftp://ftp.postgresql.org/pub/source/v$(PKG_VERSION) -PKG_HASH:=64fdf23d734afad0dfe4077daca96ac51dcd697e68ae2d3d4ca6c45cb14e21ae +PKG_HASH:=99a2171fc3d6b5b5f56b757a7a3cb85d509a38e4273805def23941ed2b8468c7 PKG_BUILD_FLAGS:=no-mips16 PKG_FIXUP:=autoreconf From 2fe50a6da24ddbb61efb0514039febca089e7ceb Mon Sep 17 00:00:00 2001 From: "W. Michael Petullo" Date: Wed, 24 May 2023 09:59:51 -0500 Subject: [PATCH 23/31] gstreamer1: update to 1.22.3 Signed-off-by: W. Michael Petullo --- multimedia/gstreamer1/Makefile | 4 ++-- multimedia/gstreamer1/patches/020-distutils.patch | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/multimedia/gstreamer1/Makefile b/multimedia/gstreamer1/Makefile index 41017411e..81653efac 100644 --- a/multimedia/gstreamer1/Makefile +++ b/multimedia/gstreamer1/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gstreamer1 -PKG_VERSION:=1.20.5 +PKG_VERSION:=1.22.3 PKG_RELEASE:=1 PKG_SOURCE:=gstreamer-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://gstreamer.freedesktop.org/src/gstreamer -PKG_HASH:=5a19083faaf361d21fc391124f78ba6d609be55845a82fa8f658230e5fa03dff +PKG_HASH:=9ffeab95053f9f6995eb3b3da225e88f21c129cd60da002d3f795db70d6d5974 PKG_BUILD_DIR:=$(BUILD_DIR)/gstreamer-$(PKG_VERSION) PKG_MAINTAINER:=W. Michael Petullo \ diff --git a/multimedia/gstreamer1/patches/020-distutils.patch b/multimedia/gstreamer1/patches/020-distutils.patch index 76880452d..8be9d76ef 100644 --- a/multimedia/gstreamer1/patches/020-distutils.patch +++ b/multimedia/gstreamer1/patches/020-distutils.patch @@ -1,6 +1,6 @@ --- a/meson.build +++ b/meson.build -@@ -537,7 +537,7 @@ if get_option('default_library') == 'sta +@@ -572,7 +572,7 @@ if get_option('default_library') == 'sta endif # Used in gst/parse/meson.build and below From be08c11c4a3c50d568848137742eae650fcd7473 Mon Sep 17 00:00:00 2001 From: "W. Michael Petullo" Date: Wed, 24 May 2023 10:00:46 -0500 Subject: [PATCH 24/31] gst1-plugins-base: update to 1.22.3 Signed-off-by: W. Michael Petullo --- multimedia/gst1-plugins-base/Makefile | 13 +++++-------- .../gst1-plugins-base/patches/010-distutils.patch | 2 +- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/multimedia/gst1-plugins-base/Makefile b/multimedia/gst1-plugins-base/Makefile index 4de6aca84..24907d141 100644 --- a/multimedia/gst1-plugins-base/Makefile +++ b/multimedia/gst1-plugins-base/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gst1-plugins-base -PKG_VERSION:=1.20.5 +PKG_VERSION:=1.22.3 PKG_RELEASE:=1 PKG_SOURCE:=gst-plugins-base-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://gstreamer.freedesktop.org/src/gst-plugins-base -PKG_HASH:=11f911ef65f3095d7cf698a1ad1fc5242ac3ad6c9270465fb5c9e7f4f9c19b35 +PKG_HASH:=1c596289a0d4207380233eba8c36a932c4d1aceba19932937d9b57c24cef89f3 PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-base-$(PKG_VERSION) PKG_MAINTAINER:=W. Michael Petullo \ @@ -40,9 +40,8 @@ PKG_CONFIG_DEPENDS:= \ CONFIG_PACKAGE_gst1-mod-tcp \ CONFIG_PACKAGE_gst1-mod-theora \ CONFIG_PACKAGE_gst1-mod-typefind \ - CONFIG_PACKAGE_gst1-mod-videoconvert \ + CONFIG_PACKAGE_gst1-mod-videoconvertscale \ CONFIG_PACKAGE_gst1-mod-videorate \ - CONFIG_PACKAGE_gst1-mod-videoscale \ CONFIG_PACKAGE_gst1-mod-videotestsrc \ CONFIG_PACKAGE_gst1-mod-volume \ CONFIG_PACKAGE_gst1-mod-vorbis \ @@ -138,9 +137,8 @@ MESON_ARGS += \ $(call GST_COND_SELECT,subparse) \ $(call GST_COND_SELECT,tcp) \ -Dtypefind=$(if $(CONFIG_PACKAGE_gst1-mod-typefindfunctions),en,dis)abled \ - $(call GST_COND_SELECT,videoconvert) \ + $(call GST_COND_SELECT,videoconvertscale) \ $(call GST_COND_SELECT,videorate) \ - $(call GST_COND_SELECT,videoscale) \ $(call GST_COND_SELECT,videotestsrc) \ $(call GST_COND_SELECT,volume) \ \ @@ -302,9 +300,8 @@ $(eval $(call GstBuildPlugin,subparse,subparse,video,,)) $(eval $(call GstBuildPlugin,rawparse,parse raw media,audio video,,)) $(eval $(call GstBuildPlugin,tcp,TCP,net,,)) $(eval $(call GstBuildPlugin,typefindfunctions,'typefind' functions,audio pbutils tag video,,)) -$(eval $(call GstBuildPlugin,videoconvert,video format conversion,video,,)) +$(eval $(call GstBuildPlugin,videoconvertscale,video format conversion and scaling,video,,)) $(eval $(call GstBuildPlugin,videorate,Adjusts video frames,video,,)) -$(eval $(call GstBuildPlugin,videoscale,Resizes video,video,,)) $(eval $(call GstBuildPlugin,videotestsrc,video test,video,,)) $(eval $(call GstBuildPlugin,volume,volume,audio controller,,)) diff --git a/multimedia/gst1-plugins-base/patches/010-distutils.patch b/multimedia/gst1-plugins-base/patches/010-distutils.patch index 198c2cf77..67bcdf774 100644 --- a/multimedia/gst1-plugins-base/patches/010-distutils.patch +++ b/multimedia/gst1-plugins-base/patches/010-distutils.patch @@ -1,6 +1,6 @@ --- a/meson.build +++ b/meson.build -@@ -452,7 +452,7 @@ pkgconfig_subdirs = ['gstreamer-1.0'] +@@ -464,7 +464,7 @@ pkgconfig_subdirs = ['gstreamer-1.0'] meson_pkg_config_file_fixup_script = find_program('scripts/meson-pkg-config-file-fixup.py') From 8ebaa5c124bce46ed7b34ca243a1344e8816ffed Mon Sep 17 00:00:00 2001 From: "W. Michael Petullo" Date: Wed, 24 May 2023 10:01:15 -0500 Subject: [PATCH 25/31] gst1-plugins-good: update to 1.22.3 Signed-off-by: W. Michael Petullo --- multimedia/gst1-plugins-good/Makefile | 4 ++-- multimedia/gst1-plugins-good/patches/010-distutils.patch | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/multimedia/gst1-plugins-good/Makefile b/multimedia/gst1-plugins-good/Makefile index b9966b208..3b3853c82 100644 --- a/multimedia/gst1-plugins-good/Makefile +++ b/multimedia/gst1-plugins-good/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gst1-plugins-good -PKG_VERSION:=1.20.5 +PKG_VERSION:=1.22.3 PKG_RELEASE:=1 PKG_SOURCE:=gst-plugins-good-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://gstreamer.freedesktop.org/src/gst-plugins-good/ -PKG_HASH:=e83ab4d12ca24959489bbb0ec4fac9b90e32f741d49cda357cb554b2cb8b97f9 +PKG_HASH:=af81154b3a2ef3f4d2feba395f25696feea6fd13ec62c92d3c7a973470710273 PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-good-$(PKG_VERSION) PKG_MAINTAINER:=W. Michael Petullo \ diff --git a/multimedia/gst1-plugins-good/patches/010-distutils.patch b/multimedia/gst1-plugins-good/patches/010-distutils.patch index 7092bfcda..582df3b62 100644 --- a/multimedia/gst1-plugins-good/patches/010-distutils.patch +++ b/multimedia/gst1-plugins-good/patches/010-distutils.patch @@ -1,6 +1,6 @@ --- a/meson.build +++ b/meson.build -@@ -434,7 +434,7 @@ endif +@@ -461,7 +461,7 @@ endif presetdir = join_paths(get_option('datadir'), 'gstreamer-' + api_version, 'presets') From b6af05e6cba7bf0a33e903a7677fe8bb18598061 Mon Sep 17 00:00:00 2001 From: "W. Michael Petullo" Date: Wed, 24 May 2023 10:01:43 -0500 Subject: [PATCH 26/31] gst1-plugins-bad: update to 1.22.3 Signed-off-by: W. Michael Petullo --- multimedia/gst1-plugins-bad/Makefile | 6 +++--- multimedia/gst1-plugins-bad/patches/010-distutils.patch | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/multimedia/gst1-plugins-bad/Makefile b/multimedia/gst1-plugins-bad/Makefile index 8795f8cc1..b5dad4177 100644 --- a/multimedia/gst1-plugins-bad/Makefile +++ b/multimedia/gst1-plugins-bad/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gst1-plugins-bad -PKG_VERSION:=1.20.5 +PKG_VERSION:=1.22.3 PKG_RELEASE:=1 PKG_SOURCE:=gst-plugins-bad-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-bad/ -PKG_HASH:=f431214b0754d7037adcde93c3195106196588973e5b32dcb24938805f866363 +PKG_HASH:=e1798fee2d86127f0637481c607f983293bf0fd81aad70a5c7b47205af3621d8 PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-bad-$(PKG_VERSION) PKG_MAINTAINER:=W. Michael Petullo \ @@ -374,7 +374,7 @@ $(eval $(call GstBuildPlugin,interlace,interlace support,,,)) $(eval $(call GstBuildPlugin,ivfparse,ivfparse support,,,)) $(eval $(call GstBuildPlugin,ivtc,ivtc support,,,)) $(eval $(call GstBuildPlugin,jp2kdecimator,jp2kdecimator support,,,)) -$(eval $(call GstBuildPlugin,jpegformat,jpegformat support,tag,,)) +$(eval $(call GstBuildPlugin,jpegformat,jpegformat support,tag codecparsers,,)) $(eval $(call GstBuildPlugin,legacyrawparse,rawparse support,audio video,,)) $(eval $(call GstBuildPlugin,midi,midi support,audio,,)) $(eval $(call GstBuildPlugin,mpegpsdemux,mpegpsdemux support,pbutils,,)) diff --git a/multimedia/gst1-plugins-bad/patches/010-distutils.patch b/multimedia/gst1-plugins-bad/patches/010-distutils.patch index fbea8ae10..952d52577 100644 --- a/multimedia/gst1-plugins-bad/patches/010-distutils.patch +++ b/multimedia/gst1-plugins-bad/patches/010-distutils.patch @@ -1,6 +1,6 @@ --- a/meson.build +++ b/meson.build -@@ -467,7 +467,7 @@ gst_plugins_bad_args = ['-DHAVE_CONFIG_H +@@ -501,7 +501,7 @@ gst_plugins_bad_args = ['-DHAVE_CONFIG_H configinc = include_directories('.') libsinc = include_directories('gst-libs') From 3ecb521c31927b6302d29af9a53457a150c919ac Mon Sep 17 00:00:00 2001 From: "W. Michael Petullo" Date: Wed, 24 May 2023 10:02:25 -0500 Subject: [PATCH 27/31] gst1-plugins-ugly: update to 1.22.3 Signed-off-by: W. Michael Petullo --- multimedia/gst1-plugins-ugly/Makefile | 5 ++--- multimedia/gst1-plugins-ugly/patches/010-distutils.patch | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/multimedia/gst1-plugins-ugly/Makefile b/multimedia/gst1-plugins-ugly/Makefile index c4f413d61..572adda1e 100644 --- a/multimedia/gst1-plugins-ugly/Makefile +++ b/multimedia/gst1-plugins-ugly/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gst1-plugins-ugly -PKG_VERSION:=1.20.5 +PKG_VERSION:=1.22.3 PKG_RELEASE:=1 PKG_SOURCE:=gst-plugins-ugly-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://gstreamer.freedesktop.org/src/gst-plugins-ugly -PKG_HASH:=af67d8ba7cab230f64d0594352112c2c443e2aa36a87c35f9f98a43d11430b87 +PKG_HASH:=3dc98ed5c2293368b3c4e6ce55d89be834a0a62e9bf88ef17928cf03b7d5a360 PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-ugly-$(PKG_VERSION) PKG_MAINTAINER:=W. Michael Petullo \ @@ -95,7 +95,6 @@ MESON_ARGS += \ -Ddvdlpcmdec=disabled \ -Ddvdsub=disabled \ -Drealmedia=disabled \ - -Dxingmux=disabled \ \ -Da52dec=disabled \ -Damrnb=disabled \ diff --git a/multimedia/gst1-plugins-ugly/patches/010-distutils.patch b/multimedia/gst1-plugins-ugly/patches/010-distutils.patch index 9f1b2efab..4603938d7 100644 --- a/multimedia/gst1-plugins-ugly/patches/010-distutils.patch +++ b/multimedia/gst1-plugins-ugly/patches/010-distutils.patch @@ -1,6 +1,6 @@ --- a/meson.build +++ b/meson.build -@@ -278,7 +278,7 @@ endif +@@ -305,7 +305,7 @@ endif gpl_allowed = get_option('gpl').allowed() From 250f08cd4e36f4ca90f5fa2e188c56f684e044ee Mon Sep 17 00:00:00 2001 From: "W. Michael Petullo" Date: Wed, 24 May 2023 10:02:40 -0500 Subject: [PATCH 28/31] gst1-libav: update to 1.22.3 Signed-off-by: W. Michael Petullo --- multimedia/gst1-libav/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/multimedia/gst1-libav/Makefile b/multimedia/gst1-libav/Makefile index 40ddb74a6..8237ca1c2 100644 --- a/multimedia/gst1-libav/Makefile +++ b/multimedia/gst1-libav/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gst1-libav -PKG_VERSION:=1.20.5 +PKG_VERSION:=1.22.3 PKG_RELEASE:=1 PKG_SOURCE:=gst-libav-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://gstreamer.freedesktop.org/src/gst-libav -PKG_HASH:=b152e3cc49d014899f53c39d8a6224a44e1399b4cf76aa5f9a903fdf9793c3cc +PKG_HASH:=2ec5c805808b4371a7e32b1da0202a1c8a6b36b6ce905080bf5c34097d12a923 PKG_BUILD_DIR:=$(BUILD_DIR)/gst-libav-$(PKG_VERSION) PKG_MAINTAINER:=W. Michael Petullo \ From 4d8cc440a4341d0074269db76e1b9b29deeb2db4 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Thu, 25 May 2023 20:52:26 +0800 Subject: [PATCH 29/31] uwsgi: Update to 2.0.21, refresh patches This version includes support for Python 3.11. This also: * Updates Build/Compile to only build selected subpackages. * Removes the submenu in menuconfig; there are too few subpackages to justify the extra complexity. Fixes: https://github.com/openwrt/packages/issues/21163 Signed-off-by: Jeffery To --- net/uwsgi/Makefile | 55 ++++++++++++------- ...03-hard-code-Linux-as-compilation-os.patch | 2 +- 2 files changed, 36 insertions(+), 21 deletions(-) diff --git a/net/uwsgi/Makefile b/net/uwsgi/Makefile index d27b9ff04..57c8a314a 100644 --- a/net/uwsgi/Makefile +++ b/net/uwsgi/Makefile @@ -1,18 +1,27 @@ include $(TOPDIR)/rules.mk PKG_NAME:=uwsgi -PKG_VERSION:=2.0.20 -PKG_RELEASE:=2 +PKG_VERSION:=2.0.21 +PKG_RELEASE:=1 -PYPI_NAME:=uwsgi -PKG_HASH:=88ab9867d8973d8ae84719cf233b7dafc54326fcaec89683c3f9f77c002cdff9 -PKG_BUILD_DEPENDS:=python3/host -PYTHON3_PKG_BUILD:=0 +PYPI_NAME:=uWSGI +PYPI_SOURCE_NAME:=uwsgi +PKG_HASH:=35a30d83791329429bc04fe44183ce4ab512fcf6968070a7bfba42fc5a0552a9 PKG_LICENSE:=GPL-2.0-or-later PKG_LICENSE_FILES:=LICENSE PKG_MAINTAINER:=Ansuel Smith +PKG_BUILD_DEPENDS:=python3/host +PYTHON3_PKG_BUILD:=0 + +PKG_CONFIG_DEPENDS:= \ + CONFIG_PACKAGE_uwsgi-logfile-plugin \ + CONFIG_PACKAGE_uwsgi-syslog-plugin \ + CONFIG_PACKAGE_uwsgi-cgi-plugin \ + CONFIG_PACKAGE_uwsgi-python3-plugin \ + CONFIG_PACKAGE_uwsgi-luci-support + include ../../lang/python/pypi.mk include $(INCLUDE_DIR)/package.mk include ../../lang/python/python3-package.mk @@ -26,7 +35,6 @@ define Package/uwsgi TITLE:=The uWSGI server URL:=https://uwsgi-docs.readthedocs.io/en/latest/ DEPENDS:=+libpcre +libcap +libuuid - MENU:=1 endef define Package/uwsgi-logfile-plugin @@ -35,7 +43,6 @@ define Package/uwsgi-logfile-plugin SUBMENU:=Web Servers/Proxies TITLE:=The Logfile plugin for the uWSGI server DEPENDS:=uwsgi - MDEPENDS:=uwsgi endef define Package/uwsgi-syslog-plugin @@ -44,7 +51,6 @@ define Package/uwsgi-syslog-plugin SUBMENU:=Web Servers/Proxies TITLE:=The Syslog plugin for the uWSGI server DEPENDS:=uwsgi - MDEPENDS:=uwsgi endef define Package/uwsgi-cgi-plugin @@ -53,7 +59,6 @@ define Package/uwsgi-cgi-plugin SUBMENU:=Web Servers/Proxies TITLE:=The CGI plugin for the uWSGI server DEPENDS:=uwsgi - MDEPENDS:=uwsgi endef define Package/uwsgi-python3-plugin @@ -62,7 +67,6 @@ define Package/uwsgi-python3-plugin SUBMENU:=Web Servers/Proxies TITLE:=The Python3 plugin for the uWSGI server DEPENDS:=uwsgi +python3-light - MDEPENDS:=uwsgi endef define Package/uwsgi-luci-support @@ -71,7 +75,6 @@ define Package/uwsgi-luci-support SUBMENU:=Web Servers/Proxies TITLE:=Support files for LuCI on Nginx DEPENDS:=uwsgi +uwsgi-syslog-plugin +uwsgi-cgi-plugin - MDEPENDS:=uwsgi endef define Package/uwsgi/description @@ -98,23 +101,35 @@ define Package/uwsgi-luci-support/description Support files for LuCI on Nginx endef -MAKE_VARS+=\ +MAKE_VARS+= \ CPP=$(TARGET_CROSS)cpp \ - PYTHON=$(STAGING_DIR_HOSTPKG)/bin/python3 \ LINUX_UNAME_VERSION=$(LINUX_UNAME_VERSION) +MAKE_FLAGS+= PROFILE=openwrt + define Build/Compile - $(call Build/Compile/Default,PROFILE=openwrt) - $(call Build/Compile/Default,plugin.logfile PROFILE=openwrt) - $(call Build/Compile/Default,plugin.syslog PROFILE=openwrt) - $(call Build/Compile/Default,plugin.cgi PROFILE=openwrt) + $(call Build/Compile/Default) + + ifneq ($(CONFIG_PACKAGE_uwsgi-logfile-plugin),) + $(call Build/Compile/Default,plugin.logfile) + endif + + ifneq ($(CONFIG_PACKAGE_uwsgi-syslog-plugin),) + $(call Build/Compile/Default,plugin.syslog) + endif + + ifneq ($(CONFIG_PACKAGE_uwsgi-cgi-plugin),) + $(call Build/Compile/Default,plugin.cgi) + endif + + ifneq ($(CONFIG_PACKAGE_uwsgi-python3-plugin),) $(call Python3/Run, \ $(PKG_BUILD_DIR), \ uwsgiconfig.py --plugin plugins/python openwrt, \ - CPP="$(TARGET_CROSS)cpp" \ - LINUX_UNAME_VERSION=$(LINUX_UNAME_VERSION) \ + $(MAKE_VARS) \ CFLAGS="$(TARGET_CPPFLAGS) -I$(PYTHON3_INC_DIR) $(TARGET_CFLAGS)" \ ) + endif endef define Package/uwsgi/install diff --git a/net/uwsgi/patches/003-hard-code-Linux-as-compilation-os.patch b/net/uwsgi/patches/003-hard-code-Linux-as-compilation-os.patch index 81c11164b..8adc220dd 100644 --- a/net/uwsgi/patches/003-hard-code-Linux-as-compilation-os.patch +++ b/net/uwsgi/patches/003-hard-code-Linux-as-compilation-os.patch @@ -1,6 +1,6 @@ --- a/uwsgiconfig.py +++ b/uwsgiconfig.py -@@ -5,9 +5,9 @@ uwsgi_version = '2.0.20' +@@ -5,9 +5,9 @@ uwsgi_version = '2.0.21' import os import re import time From 7b71d000da1ee927452c1d1044e6ea43d86ea3c7 Mon Sep 17 00:00:00 2001 From: Luiz Angelo Daros de Luca Date: Tue, 23 May 2023 18:03:26 -0300 Subject: [PATCH 30/31] openvpn-easy-rsa: update to 3.1.3 Version 3.0.9 of EasyRSA introduces OpenSSL 3 (3.0.3) support. For other changes, see: - https://github.com/OpenVPN/easy-rsa/releases/tag/v3.0.9 - https://github.com/OpenVPN/easy-rsa/releases/tag/v3.1.0 - https://github.com/OpenVPN/easy-rsa/releases/tag/v3.1.1 - https://github.com/OpenVPN/easy-rsa/releases/tag/v3.1.2 - https://github.com/OpenVPN/easy-rsa/releases/tag/v3.1.3 Closes #21142 Signed-off-by: Luiz Angelo Daros de Luca --- net/openvpn-easy-rsa/Makefile | 6 +++--- .../patches/100-Make-package-reproducible.patch | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/net/openvpn-easy-rsa/Makefile b/net/openvpn-easy-rsa/Makefile index b35937ca2..128b01792 100644 --- a/net/openvpn-easy-rsa/Makefile +++ b/net/openvpn-easy-rsa/Makefile @@ -9,11 +9,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=openvpn-easy-rsa -PKG_VERSION:=3.0.8 -PKG_RELEASE:=4 +PKG_VERSION:=3.1.3 +PKG_RELEASE:=1 PKG_SOURCE_URL:=https://codeload.github.com/OpenVPN/easy-rsa/tar.gz/v$(PKG_VERSION)? PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_HASH:=fd6b67d867c3b8afd53efa2ca015477f6658a02323e1799432083472ac0dd200 +PKG_HASH:=f2967aa598cb603dd20791002e767d0ce58e300b04c9cff1b6d6b14fedae6a80 # For git snapshots #PKG_SOURCE_PROTO:=git diff --git a/net/openvpn-easy-rsa/patches/100-Make-package-reproducible.patch b/net/openvpn-easy-rsa/patches/100-Make-package-reproducible.patch index 8ebfe10af..addb27ab8 100644 --- a/net/openvpn-easy-rsa/patches/100-Make-package-reproducible.patch +++ b/net/openvpn-easy-rsa/patches/100-Make-package-reproducible.patch @@ -10,8 +10,8 @@ Signed-off-by: Luiz Angelo Daros de Luca --- a/build/build-dist.sh +++ b/build/build-dist.sh -@@ -80,7 +80,7 @@ stage_unix() { - +@@ -86,7 +86,7 @@ stage_unix() { + # FreeBSD does not accept -i without argument in a way also acceptable by GNU sed sed -i.tmp -e "s/~VER~/$VERSION/" \ - -e "s/~DATE~/$(date)/" \ @@ -19,9 +19,9 @@ Signed-off-by: Luiz Angelo Daros de Luca -e "s/~HOST~/$(hostname -s)/" \ -e "s/~GITHEAD~/$(git rev-parse HEAD)/" \ "$DIST_ROOT/unix/$PV/easyrsa" || die "Cannot update easyrsa version data" -@@ -122,7 +122,7 @@ stage_win() { +@@ -128,7 +128,7 @@ stage_win() { done - + sed -i.tmp -e "s/~VER~/$VERSION/" \ - -e "s/~DATE~/$(date)/" \ + -e "s/~DATE~/$(SOURCE_DATE_EPOCH)/" \ From 7e796b73be00d85af012dfa62ea0768e6175ca57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20H=C3=B6gberg?= Date: Thu, 18 May 2023 00:01:24 +0200 Subject: [PATCH 31/31] squeezelite: restructure package variants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The squeezelite packages were lacking some features/codecs (ssl, opus, wma, dsd and resampling) and required manual compilation to enable these features/codecs. Now there are 3 packages available that hopefully should satisfy most users: * full This package enables all features and codecs. * dynamic This package only enables PCM/AIFF and MP3 codecs and all other features/codecs can be added by manually installing OpenWrt packages. * custom This package allows for customizing squeezelite. Signed-off-by: Robert Högberg --- sound/squeezelite/Makefile | 220 +++++++++++++++++++++++++------------ 1 file changed, 150 insertions(+), 70 deletions(-) diff --git a/sound/squeezelite/Makefile b/sound/squeezelite/Makefile index 3f8338fd0..b530bc2fb 100644 --- a/sound/squeezelite/Makefile +++ b/sound/squeezelite/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=squeezelite PKG_VERSION:=1.9.9-1432 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/ralph-irving/squeezelite @@ -18,6 +18,7 @@ PKG_MAINTAINER:=Ted Hess PKG_LICENSE:=GPL-3.0-or-later PKG_LICENSE_FILES:=LICENSE.txt +PKG_BUILD_DEPENDS:=faad2 ffmpeg flac libsoxr libvorbis openssl opusfile PKG_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk @@ -28,104 +29,183 @@ define Package/squeezelite/default TITLE:=Headless squeezebox emulator PROVIDES:=squeezelite URL:=https://github.com/ralph-irving/squeezelite - DEPENDS:= +alsa-lib +SQUEEZELITE_RESAMPLE:libsoxr - MENU:=1 + DEPENDS:=+alsa-lib endef define Package/squeezelite-full $(call Package/squeezelite/default) TITLE+= (full) - DEPENDS+= +libflac +libvorbis +libmpg123 +libfaad2 \ - +SQUEEZELITE_OPUS:libopusfile \ - +SQUEEZELITE_SSL:libopenssl \ - +SQUEEZELITE_WMA:libffmpeg-audio-dec VARIANT:=full + DEPENDS+= +libfaad2 +libffmpeg-audio-dec +libflac +libmpg123 \ + +libopenssl +libopusfile +libsoxr +libvorbis endef -define Package/squeezelite-mini +define Package/squeezelite-dynamic $(call Package/squeezelite/default) - TITLE+= (minimal) - VARIANT:=mini + TITLE+= (dynamic) + VARIANT:=dynamic + DEPENDS+= +libmpg123 endef -define Package/squeezelite/config/default - - config SQUEEZELITE_WMA - bool "WMA/ALAC decode support" - depends on BUILD_PATENTED - help - Include WMA and ALAC decoding using ffmpeg - default n - - config SQUEEZELITE_RESAMPLE - bool "Resample support" - help - Include support for resampling using libsoxr - default n - - config SQUEEZELITE_DSD - bool "DSD playback over PCM (DoP)" - help - Include support for DSD over PCM for compatible DAC - default n - - config SQUEEZELITE_SSL - bool "SSL/TLS support" - help - Include SSL/TLS support for use with e.g. https media URLs - default n - - config SQUEEZELITE_OPUS - bool "Opus codec support" - help - Include Opus codec support - default n +define Package/squeezelite-custom + $(call Package/squeezelite/default) + TITLE+= (custom) + VARIANT:=custom + DEPENDS+= @!ALL \ + +SQUEEZELITE_AAC:libfaad2 \ + +SQUEEZELITE_FLAC:libflac \ + +SQUEEZELITE_MP3_MAD:libmad \ + +SQUEEZELITE_MP3_MPG123:libmpg123 \ + +SQUEEZELITE_OPUS:libopusfile \ + +SQUEEZELITE_RESAMPLE:libsoxr \ + +SQUEEZELITE_SSL:libopenssl \ + +SQUEEZELITE_VORBIS:libvorbis \ + +SQUEEZELITE_VORBIS_TREMOR:libvorbisidec \ + +SQUEEZELITE_WMA_ALAC:libffmpeg-audio-dec + MENU:=1 endef -define Package/squeezelite-full/config - if PACKAGE_squeezelite-full - $(call Package/squeezelite/config/default) - endif -endef +define Package/squeezelite-custom/config + if PACKAGE_squeezelite-custom + config SQUEEZELITE_AAC + bool "AAC codec support" + help + AAC codec support + default n -define Package/squeezelite-mini/config - if PACKAGE_squeezelite-mini - $(call Package/squeezelite/config/default) - endif + config SQUEEZELITE_DSD + bool "DSD playback over PCM (DoP)" + help + Include support for DSD over PCM for compatible DAC + default n + + config SQUEEZELITE_FLAC + bool "FLAC codec support" + help + FLAC codec support + default n + + config SQUEEZELITE_MP3_MAD + bool "MP3 codec support (libmad)" + help + MP3 codec support (libmad) + default n + + config SQUEEZELITE_MP3_MPG123 + bool "MP3 codec support (libmpg123)" + help + MP3 codec support (libmpg123) + default n + + config SQUEEZELITE_OPUS + bool "Opus codec support" + help + Opus codec support + default n + + config SQUEEZELITE_RESAMPLE + bool "Resample support" + help + Include support for resampling using libsoxr + default n + + config SQUEEZELITE_SSL + bool "SSL/TLS support" + help + Include SSL/TLS support for use with e.g. https media URLs + default n + + config SQUEEZELITE_VORBIS + bool "Vorbis codec support" + help + Vorbis codec support + default n + + config SQUEEZELITE_VORBIS_TREMOR + bool "Vorbis codec support (Tremor)" + help + Vorbis codec support (Tremor (libvorbisidec)) + default n + + config SQUEEZELITE_WMA_ALAC + bool "WMA/ALAC decode support" + help + WMA and ALAC codec support + default n + endif endef define Package/squeezelite/description/default Squeezelite is a small headless squeezebox emulator for linux using alsa audio output + It is aimed at supporting high quality audio at multiple sample rates including - 44.1/48/88.2/96/176.4/192k/352.8/384kHz - Supported codecs: mp3, flac, ogg, aac, (wma and alac via ffmpeg), opus (optional) - Native support for PCM builtin - Optional support of DSD playback via PCM for DoP capable DAC - Optional resampling to match sound device + 44.1/48/88.2/96/176.4/192/352.8/384 kHz endef define Package/squeezelite-full/description $(call Package/squeezelite/description/default) + This package includes all features and codecs. - This package has all the audio codecs compiled in. + Supported codecs: AAC, AIFF, ALAC, FLAC, MP3, Ogg, Opus, PCM and WMA + Features: + * Resampling to match sound device + * DSD playback via PCM for DoP capable DAC endef -define Package/squeezelite-mini/description +define Package/squeezelite-dynamic/description $(call Package/squeezelite/description/default) + This package includes some basic functionality, and it's possible to + add more features and codecs by manually installing additional libraries. - This package will dynamically load installed codecs. + Built in codec support: AIFF, MP3, PCM + + The following features and codecs can be enabled by installing additional + libraries (library package name in parentheses): + * Resampling (libsoxr) + * Codecs: + * AAC (libfaad2) + * FLAC (libflac) + * Ogg (libvorbis or libvorbisidec) + * Opus (libopusfile) + * WMA and ALAC (libffmpeg-audio-dec) endef -opts+= -DNO_MAD +define Package/squeezelite-custom/description + $(call Package/squeezelite/description/default) + This package allows for customizing squeezelite with specific codecs and features. +endef -ifeq ($(CONFIG_SQUEEZELITE_WMA),y) - opts+= -DFFMPEG +ifeq ($(BUILD_VARIANT),full) + opts+= -DLINKALL + opts+= -DDSD -DFFMPEG -DOPUS -DRESAMPLE -DUSE_SSL + opts+= -DNO_MAD + TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/opus +else ifeq ($(BUILD_VARIANT),dynamic) + opts+= -DFFMPEG -DOPUS -DRESAMPLE -DUSE_SSL + opts+= -DNO_MAD + TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/opus +else ifeq ($(BUILD_VARIANT),custom) +ifneq ($(CONFIG_SQUEEZELITE_AAC),y) + opts+= -DNO_FAAD endif ifeq ($(CONFIG_SQUEEZELITE_DSD),y) opts+= -DDSD endif +ifneq ($(CONFIG_SQUEEZELITE_MP3_MAD),y) + opts+= -DNO_MAD +endif + +ifneq ($(CONFIG_SQUEEZELITE_MP3_MPG123),y) + opts+= -DNO_MPG123 +endif + +ifeq ($(CONFIG_SQUEEZELITE_OPUS),y) + opts+= -DOPUS + TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/opus +endif + ifeq ($(CONFIG_SQUEEZELITE_RESAMPLE),y) opts+= -DRESAMPLE endif @@ -134,13 +214,10 @@ ifeq ($(CONFIG_SQUEEZELITE_SSL),y) opts+= -DUSE_SSL endif -ifeq ($(CONFIG_SQUEEZELITE_OPUS),y) - opts+= -DOPUS - TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/opus +ifeq ($(CONFIG_SQUEEZELITE_WMA_ALAC),y) + opts+= -DFFMPEG endif -ifeq ($(BUILD_VARIANT),full) - opts+= -DLINKALL endif MAKE_FLAGS+=OPTS="$(opts)" @@ -149,8 +226,9 @@ define Package/squeezelite/conffiles /etc/config/squeezelite endef -Package/squeezelite-mini/conffiles = $(Package/squeezelite/conffiles) Package/squeezelite-full/conffiles = $(Package/squeezelite/conffiles) +Package/squeezelite-dynamic/conffiles = $(Package/squeezelite/conffiles) +Package/squeezelite-custom/conffiles = $(Package/squeezelite/conffiles) define Package/squeezelite/install $(INSTALL_DIR) $(1)/usr/bin @@ -161,8 +239,10 @@ define Package/squeezelite/install $(INSTALL_CONF) ./files/squeezelite.conf $(1)/etc/config/squeezelite endef -Package/squeezelite-mini/install=$(Package/squeezelite/install) Package/squeezelite-full/install=$(Package/squeezelite/install) +Package/squeezelite-dynamic/install=$(Package/squeezelite/install) +Package/squeezelite-custom/install=$(Package/squeezelite/install) -$(eval $(call BuildPackage,squeezelite-mini)) $(eval $(call BuildPackage,squeezelite-full)) +$(eval $(call BuildPackage,squeezelite-dynamic)) +$(eval $(call BuildPackage,squeezelite-custom))