From ae3e0e827273bda6b908d539dc91544dfd648114 Mon Sep 17 00:00:00 2001 From: William Fleurant Date: Sat, 18 Jun 2022 17:24:26 +0200 Subject: [PATCH] cjdns: bump release with patch to prefer python2 Signed-off-by: William Fleurant --- cjdns/Makefile | 2 +- cjdns/patches/020-prefer-python2.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 cjdns/patches/020-prefer-python2.patch diff --git a/cjdns/Makefile b/cjdns/Makefile index d69386e..d55c6fd 100644 --- a/cjdns/Makefile +++ b/cjdns/Makefile @@ -18,7 +18,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=cjdns PKG_VERSION:=v21.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/cjdelisle/cjdns/tar.gz/$(PKG_NAME)-$(PKG_VERSION)? diff --git a/cjdns/patches/020-prefer-python2.patch b/cjdns/patches/020-prefer-python2.patch new file mode 100644 index 0000000..5bb8624 --- /dev/null +++ b/cjdns/patches/020-prefer-python2.patch @@ -0,0 +1,11 @@ +--- a/node_build/FindPython.js ++++ b/node_build/FindPython.js +@@ -23,7 +23,7 @@ var Fs = require('fs'); + // de-prioritize because the testing script accepts ANY python3 version + // (as of this writing, we don't know what python3 versions actually work) + // whereas we know that python2.7 is the only working python2 version. +-var PYTHONS = ["python3.7", "python3", "python2.7", "python2", "python"]; ++var PYTHONS = ["python2", "python2.7", "python3.7", "python3.8", "python3.9", "python3"] + + var SCRIPT = [ + 'import sys',