Bug#1042398: debhelper: should disable Python byte-compilation when building .deb with Meson

2023-08-06 Thread Simon McVittie
Control: tags -1 + patch On Thu, 27 Jul 2023 at 15:43:26 +0100, Simon McVittie wrote: > [A Meson behaviour change that breaks the build of src:libgit2-glib] > can be turned off by passing -Dpython.bytecompile=-1 to `meson setup`. Please consider

Bug#1042398: debhelper: should disable Python byte-compilation when building .deb with Meson

2023-08-06 Thread Eli Schwartz
On 8/6/23 9:27 AM, Simon McVittie wrote: > On Tue, 01 Aug 2023 at 15:14:13 -0400, Eli Schwartz wrote: >> My conclusion was that all distros want bytecode, except for Debian, >> which doesn't want bytecode. > > Debian does want bytecode, but the Debian Python team's policy is to > generate it at

Bug#1042398: debhelper: should disable Python byte-compilation when building .deb with Meson

2023-08-06 Thread Simon McVittie
On Tue, 01 Aug 2023 at 15:14:13 -0400, Eli Schwartz wrote: > My conclusion was that all distros want bytecode, except for Debian, > which doesn't want bytecode. Debian does want bytecode, but the Debian Python team's policy is to generate it at package-installation time, rather than generating it

Bug#1042398: debhelper: should disable Python byte-compilation when building .deb with Meson

2023-08-01 Thread Eli Schwartz
On 8/1/23 3:13 PM, Eli Schwartz wrote: > On Thu, 27 Jul 2023 15:43:26 +0100 Simon McVittie wrote: >> Is there a way this can be done, without making packages FTBFS if debhelper >> is backported to an older suite but Meson is not? -Dpython.bytecompile=-1 >> will cause `meson setup` to fail if

Bug#1042398: debhelper: should disable Python byte-compilation when building .deb with Meson

2023-08-01 Thread Eli Schwartz
On Thu, 27 Jul 2023 15:43:26 +0100 Simon McVittie wrote: > Is there a way this can be done, without making packages FTBFS if debhelper > is backported to an older suite but Meson is not? -Dpython.bytecompile=-1 > will cause `meson setup` to fail if Meson is an older version, and I'm not > aware

Bug#1042398: debhelper: should disable Python byte-compilation when building .deb with Meson

2023-08-01 Thread Eli Schwartz
On Fri, 28 Jul 2023 13:41:14 +0300 Jussi Pakkanen wrote: > On Thu, 27 Jul 2023 at 17:45, Simon McVittie wrote: > > > As far as I'm aware, we never want to include .pyc in Debian packages, > > so I think debhelper's meson build system plugin should be turning this off > > as a standard setting

Bug#1042398: debhelper: should disable Python byte-compilation when building .deb with Meson

2023-08-01 Thread Jussi Pakkanen
On Mon, 31 Jul 2023 at 21:21, Adrian Bunk wrote: > In this case Breaks would be required in both directions, otherwise a > build dependency on a new meson might result in using new meson and old > debhelper in backports. For reference we are currently discussing how to handle this. The original

Bug#1042398: debhelper: should disable Python byte-compilation when building .deb with Meson

2023-07-31 Thread Adrian Bunk
On Fri, Jul 28, 2023 at 02:11:54PM +0200, Niels Thykier wrote: > Jussi Pakkanen: > > On Thu, 27 Jul 2023 at 17:45, Simon McVittie wrote: >... > > > Is there a way this can be done, without making packages FTBFS if > > > debhelper > > > is backported to an older suite but Meson is not?

Bug#1042398: debhelper: should disable Python byte-compilation when building .deb with Meson

2023-07-28 Thread Niels Thykier
Jussi Pakkanen: On Thu, 27 Jul 2023 at 17:45, Simon McVittie wrote: As far as I'm aware, we never want to include .pyc in Debian packages, so I think debhelper's meson build system plugin should be turning this off as a standard setting for all Debian packages (similar to the way it sets

Bug#1042398: debhelper: should disable Python byte-compilation when building .deb with Meson

2023-07-28 Thread Simon McVittie
On Fri, 28 Jul 2023 at 13:41:14 +0300, Jussi Pakkanen wrote: > Obviously the defaults should do the correct thing. In fact until > yesterday that is what I thought the code does not do byte > compilation. We might even consider changing the default for this as I > would imagine all distros will

Bug#1042398: debhelper: should disable Python byte-compilation when building .deb with Meson

2023-07-28 Thread Jussi Pakkanen
On Thu, 27 Jul 2023 at 17:45, Simon McVittie wrote: > As far as I'm aware, we never want to include .pyc in Debian packages, > so I think debhelper's meson build system plugin should be turning this off > as a standard setting for all Debian packages (similar to the way it > sets --prefix=/usr

Bug#1042398: debhelper: should disable Python byte-compilation when building .deb with Meson

2023-07-27 Thread Simon McVittie
Package: debhelper Version: 13.11.4 Tags: trixie sid Severity: normal X-Debbugs-Cc: me...@packages.debian.org Control: affects -1 + src:meson As a result of upstream changes in meson, rebuilding libgit2-glib with meson >= 1.2.0 results in the installed tree in debian/tmp containing