Re: [PATCH] build: prereq: drop support for Python 3.5

2021-04-19 Thread Andre Heider

On 17/04/2021 23:45, Sven Roederer wrote:

Am Samstag, 17. April 2021, 16:45:01 CEST schrieb Sven Roederer:

On my Ubuntu 16.04 based build-system I also have build-failures for meson
using Python3.5.


Correction: it's a 18.04 LTS ...


But 18.04 ships python3.6?
https://packages.ubuntu.com/bionic/python3

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] build: prereq: drop support for Python 3.5

2021-04-19 Thread Andre Heider

On 18/04/2021 20:45, Etienne Champetier wrote:

Le mar. 16 févr. 2021 à 11:19, Petr Štetiar  a écrit :


Andre Heider  [2021-02-16 08:21:08]:

Hi,


The meson build system bumped their python requirement to 3.6 for the 0.57.0
release. This patch ensures that OpenWrt can update meson while still
relying on the host python.


Current buildbot images are based on Debian 9, which uses Python 3.5 so merging 
this
would result in broken buildbots.


Debian 9 is EOL, so we should definitely update the buildbot images


That was already done >4 weeks ago:
https://lists.infradead.org/pipermail/openwrt-devel/2021-March/034292.html
https://lists.infradead.org/pipermail/openwrt-devel/2021-March/034310.html

And the quoted patch has been merged too:
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=7379f8bd3e7ee0722faa6ec8b2969081fbdc1e07

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] build: prereq: drop support for Python 3.5

2021-04-18 Thread Hauke Mehrtens

On 4/18/21 9:33 PM, Alberto Bursi wrote:



On 18/04/21 20:51, Etienne Champetier wrote:
Le sam. 17 avr. 2021 à 17:47, Sven Roederer  a 
écrit :


Am Samstag, 17. April 2021, 16:45:01 CEST schrieb Sven Roederer:
On my Ubuntu 16.04 based build-system I also have build-failures for 
meson

using Python3.5.


Correction: it's a 18.04 LTS ...


Should we just recommend to people that want to use "old stable" OS to
use the buildbot container images ?



Maybe. Although what's the point of using "old stable" if you are going 
to use it as a base for a docker setup anyway. If you migrate to a 
docker setup you can use pretty much anything as the base, even OpenWrt 
can run docker containers now.


-Alberto


Hi,

Many libraries, like glibc, are backwards compatible when we link it 
against an older version, it also works when it runs with a more recent 
version of the library. The OpenWrt SDK is build against an old Debian 
so it can be used with such an old systems, but it also works with a 
recent Arch Linux for example.


Hauke

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] build: prereq: drop support for Python 3.5

2021-04-18 Thread Alberto Bursi



On 18/04/21 20:51, Etienne Champetier wrote:

Le sam. 17 avr. 2021 à 17:47, Sven Roederer  a écrit :


Am Samstag, 17. April 2021, 16:45:01 CEST schrieb Sven Roederer:

On my Ubuntu 16.04 based build-system I also have build-failures for meson
using Python3.5.


Correction: it's a 18.04 LTS ...


Should we just recommend to people that want to use "old stable" OS to
use the buildbot container images ?



Maybe. Although what's the point of using "old stable" if you are going 
to use it as a base for a docker setup anyway. If you migrate to a 
docker setup you can use pretty much anything as the base, even OpenWrt 
can run docker containers now.


-Alberto

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] build: prereq: drop support for Python 3.5

2021-04-18 Thread Etienne Champetier
Le sam. 17 avr. 2021 à 17:47, Sven Roederer  a écrit :
>
> Am Samstag, 17. April 2021, 16:45:01 CEST schrieb Sven Roederer:
> > On my Ubuntu 16.04 based build-system I also have build-failures for meson
> > using Python3.5.
>
> Correction: it's a 18.04 LTS ...

Should we just recommend to people that want to use "old stable" OS to
use the buildbot container images ?

>
> Sven

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] build: prereq: drop support for Python 3.5

2021-04-18 Thread Etienne Champetier
Le mar. 16 févr. 2021 à 11:19, Petr Štetiar  a écrit :
>
> Andre Heider  [2021-02-16 08:21:08]:
>
> Hi,
>
> > The meson build system bumped their python requirement to 3.6 for the 0.57.0
> > release. This patch ensures that OpenWrt can update meson while still
> > relying on the host python.
>
> Current buildbot images are based on Debian 9, which uses Python 3.5 so 
> merging this
> would result in broken buildbots.

Debian 9 is EOL, so we should definitely update the buildbot images

>
> Cheers,
>
> Petr
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] build: prereq: drop support for Python 3.5

2021-04-17 Thread Rosen Penev
On Sat, Apr 17, 2021 at 2:49 PM Sven Roederer  wrote:
>
> Am Samstag, 17. April 2021, 16:45:01 CEST schrieb Sven Roederer:
> > On my Ubuntu 16.04 based build-system I also have build-failures for meson
> > using Python3.5.
>
> Correction: it's a 18.04 LTS ...
GCC6 is now minimum, breaking CentOS 7. That and the make version update.

I tried installing homebrew on CentOS7 but the build system prefers to
use the OS tools...

Speaking of homebrew, you could try that on Ubuntu.
>
> Sven
>
>
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] build: prereq: drop support for Python 3.5

2021-04-17 Thread Sven Roederer
Am Samstag, 17. April 2021, 16:45:01 CEST schrieb Sven Roederer:
> On my Ubuntu 16.04 based build-system I also have build-failures for meson
> using Python3.5.

Correction: it's a 18.04 LTS ...

Sven



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] build: prereq: drop support for Python 3.5

2021-04-17 Thread Sven Roederer
Hi,


Am Dienstag, 16. Februar 2021, 17:17:17 CEST schrieb Petr Štetiar:
> 
> > The meson build system bumped their python requirement to 3.6 for the
> > 0.57.0 release. This patch ensures that OpenWrt can update meson while
> > still relying on the host python.
> 
> Current buildbot images are based on Debian 9, which uses Python 3.5 so
> merging this would result in broken buildbots.
> 

On my Ubuntu 16.04 based build-system I also have build-failures for meson 
using Python3.5. They are triggered by the "mlog module" . Cherry-picking the 
recent meson updates into the packages feed fixing these errors, not sure if 
this is caused by the meson upgrade or the python-upgrade.

So it's indeed a tricky situation. But having the EOLed Python3.5 as minimum 
requirement for an upcoming release seems non optimal.

Sven



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] build: prereq: drop support for Python 3.5

2021-02-16 Thread Andre Heider

Hi,

On 16/02/2021 17:17, Petr Štetiar wrote:

Andre Heider  [2021-02-16 08:21:08]:

Hi,


The meson build system bumped their python requirement to 3.6 for the 0.57.0
release. This patch ensures that OpenWrt can update meson while still
relying on the host python.


Current buildbot images are based on Debian 9, which uses Python 3.5 so merging 
this
would result in broken buildbots.


that's unfortunate.

Are there plans to update from oldstable to stable?

Thanks,
Andre

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] build: prereq: drop support for Python 3.5

2021-02-16 Thread Petr Štetiar
Andre Heider  [2021-02-16 08:21:08]:

Hi,

> The meson build system bumped their python requirement to 3.6 for the 0.57.0
> release. This patch ensures that OpenWrt can update meson while still
> relying on the host python.

Current buildbot images are based on Debian 9, which uses Python 3.5 so merging 
this
would result in broken buildbots.

Cheers,

Petr

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[PATCH] build: prereq: drop support for Python 3.5

2021-02-15 Thread Andre Heider
The final Python 3.5 release was 3.5.10 in September 2020 [0].
This release series is now End-of-Life (EOL).

The only LTS distribution that still only ships Python 3.5 is Ubuntu 16.04,
which will be EOL in April 2021 [1].

The meson build system bumped their python requirement to 3.6 for the 0.57.0
release. This patch ensures that OpenWrt can update meson while still
relying on the host python.

[0] https://www.python.org/dev/peps/pep-0478/#id4
[1] https://ubuntu.com/about/release-cycle
[2] 
https://mesonbuild.com/Release-notes-for-0-57-0.html#minimum-required-python-version-updated-to-36

Signed-off-by: Andre Heider 
---
 include/prereq-build.mk | 10 --
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/include/prereq-build.mk b/include/prereq-build.mk
index f88e853b52..88064abf98 100644
--- a/include/prereq-build.mk
+++ b/include/prereq-build.mk
@@ -141,21 +141,19 @@ $(eval $(call SetupHostCommand,perl,Please install Perl 
5.x, \
 
 $(eval $(call CleanupPython2))
 
-$(eval $(call SetupHostCommand,python,Please install Python >= 3.5, \
+$(eval $(call SetupHostCommand,python,Please install Python >= 3.6, \
python3.9 -V 2>&1 | grep 'Python 3', \
python3.8 -V 2>&1 | grep 'Python 3', \
python3.7 -V 2>&1 | grep 'Python 3', \
python3.6 -V 2>&1 | grep 'Python 3', \
-   python3.5 -V 2>&1 | grep 'Python 3', \
-   python3 -V 2>&1 | grep -E 'Python 3\.[5-9]\.?'))
+   python3 -V 2>&1 | grep -E 'Python 3\.[6-9]\.?'))
 
-$(eval $(call SetupHostCommand,python3,Please install Python >= 3.5, \
+$(eval $(call SetupHostCommand,python3,Please install Python >= 3.6, \
python3.9 -V 2>&1 | grep 'Python 3', \
python3.8 -V 2>&1 | grep 'Python 3', \
python3.7 -V 2>&1 | grep 'Python 3', \
python3.6 -V 2>&1 | grep 'Python 3', \
-   python3.5 -V 2>&1 | grep 'Python 3', \
-   python3 -V 2>&1 | grep -E 'Python 3\.[5-9]\.?'))
+   python3 -V 2>&1 | grep -E 'Python 3\.[6-9]\.?'))
 
 $(eval $(call SetupHostCommand,git,Please install Git (git-core) >= 1.7.12.2, \
git --exec-path | xargs -I % -- grep -q -- --recursive %/git-submodule))
-- 
2.30.0


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel