Skip to contentSkip to conversation

package/meson: bump to version 1.2.0

PATCH Applied Bernd Kuhls 6 participants 7 messages Jul 22, 2023 – Nov 9, 2023 1 message not in the archive Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/meson: bump to version 1.2.0

Release notes: https://mesonbuild.com/Release-notes-for-1-2-0.html

---
 package/meson/meson.hash | 4 ++--
 package/meson/meson.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/meson/meson.hash +2 -2
index cb36b674fa..02fa1535ef 100644
@@ -1,4 +1,4 @@
 # Locally calculated after checking pgp signature
-# https://github.com/mesonbuild/meson/releases/download/1.1.1/meson-1.1.1.tar.gz.asc
-sha256  d04b541f97ca439fb82fab7d0d480988be4bd4e62563a5ca35fadb5400727b1c  meson-1.1.1.tar.gz
+# https://github.com/mesonbuild/meson/releases/download/1.2.0/meson-1.2.0.tar.gz.asc
+sha256  1c0b634fe6b6a7072e398647f1bf392048577068a5c92ae44d04085dab0ded6f  meson-1.2.0.tar.gz
 sha256  cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30  COPYING
package/meson/meson.mk +1 -1
index 503aca8c25..8eabe108c4 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-MESON_VERSION = 1.1.1
+MESON_VERSION = 1.2.0
 MESON_SITE = https://github.com/mesonbuild/meson/releases/download/$(MESON_VERSION)
 MESON_LICENSE = Apache-2.0
 MESON_LICENSE_FILES = COPYING
Signature · 6 lines
2.39.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 7 lines · On Sat, 22 Jul 2023 09:35:33 +0200 Bernd Kuhls <[email protected]> wrote:

Release notes: https://mesonbuild.com/Release-notes-for-1-2-0.html

---
 package/meson/meson.hash | 4 ++--
 package/meson/meson.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Hello Bernd,

Le 22/07/2023 à 23:23, Thomas Petazzoni via buildroot a écrit :

Quoted 5 lines
Quoted 2 lines · On Sat, 22 Jul 2023 09:35:33 +0200 Bernd Kuhls <[email protected]> wrote:

Release notes: https://mesonbuild.com/Release-notes-for-1-2-0.html

Quoted 7 lines
Quoted 5 lines
---
 package/meson/meson.hash | 4 ++--
 package/meson/meson.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Applied to master, thanks.

This meson version bump introduce a regression while building host-qemu on some host:

host/lib/libgio-2.0.so: undefined reference to `g_module_open_full'
collect2: error: ld returned 1 exit status

Can you have a look?

Best regards,
Romain

Quoted 2 lines

Thomas

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

A message that is not in the archive (sent off-list or not yet received): 6f65d64b-61e4-c574-1c6d-075beec80025__2330.9377183736$1691097798$gmane$org@gmail.com

#4 lore raw

Am Thu, 3 Aug 2023 23:22:13 +0200 schrieb Romain Naour:

Quoted 5 lines

This meson version bump introduce a regression while building host-qemu on some host:

host/lib/libgio-2.0.so: undefined reference to `g_module_open_full'
collect2: error: ld returned 1 exit status

Hi Romain,

my machine, running Debian Bookworm, does not belong to "some host" since I can not reproduce the build error with this defconfig:

BR2_PER_PACKAGE_DIRECTORIES=y
BR2_PACKAGE_HOST_QEMU=y

Can you provide more informations?

Regards, Bernd

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#5 lore raw

Hi Bernd,

Le 04/08/2023 à 17:32, Bernd Kuhls a écrit :

Quoted 10 lines

Am Thu, 3 Aug 2023 23:22:13 +0200 schrieb Romain Naour:

Quoted 5 lines

This meson version bump introduce a regression while building host-qemu on some host:

host/lib/libgio-2.0.so: undefined reference to `g_module_open_full'
collect2: error: ld returned 1 exit status

Hi Romain,

Quoted 7 lines

my machine, running Debian Bookworm, does not belong to "some host" since I can not reproduce the build error with this defconfig:

BR2_PER_PACKAGE_DIRECTORIES=y
BR2_PACKAGE_HOST_QEMU=y

Can you provide more informations?

Sorry for the lack of information about "some host" but I didn't know why the error occurre only on some specific host.

I did a git bisect on meson and find the first bad commit [1].

With this commit applied, the ninja build file (build/host-qemu-8.0.3/build/build.ninja) uses paths reported by "gcc --print-search-dirs" before searching libraries in host directory (where host-qemu is supposed to find libgio-2.0.so).

LINK_ARGS = -L/usr/lib/gcc/x86_64-linux-gnu/10

            -L/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu
            -L/usr/lib/x86_64-linux-gnu
            -L/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib
            -L/usr/lib -L/lib/x86_64-linux-gnu
            -L/lib/../lib
            -L/usr/lib/../lib
            -L/usr/lib/gcc/x86_64-linux-gnu/10/../../.. -L/lib
            [...]

It seems a real meson issue since qemu detect and want to use the libglib2 provided by Buildroot (2.76.1) from host directory...

but since libglib2-dev older than the one provided by Buildroot is installed in "/usr/lib/x86_64-linux-gnu" it try to link with it and fail since this version doesn't provide g_module_open_full symbol.

[...]/host/lib/libgio-2.0.so.0.7600.1
/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6600.8

[1]
https://github.com/mesonbuild/meson/commit/59cfbf68e00aa774a9868101f423bd662938c15d

I'm not sure yet how to fix or workaround this issue, help welcome!

Best regards,
Romain

Quoted 7 lines

Regards, Bernd

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#6 lore raw
In reply to Bernd Kuhls

Bernd, All,

+James who previously looked at a lot of meson changes

On 2023-07-22 09:35 +0200, Bernd Kuhls spake thusly:

Quoted 1 line

Release notes: https://mesonbuild.com/Release-notes-for-1-2-0.html

Unfortunately, we've had to revert this change, as it caused unforeseen breakage that is not easily fixed.

Specifically, the way the library search paths are forced into the link step for native builds, like we've seen in host-qemu.

So, let's try to bump later, when we can have a better understanding on why the change was made and how we can fix it.

One lead could be to udnerstand why some libs are linked by full apth while others are linked by name:

    /path/to/host/lib/libgio-2.0.so -L /path/to/host/lib/ -lgmodule-2.0

So, if you or James could look into that and take the matter with upstream as a follow up to Romain's and others' reports [0] [1], that would be awesome.

[0] https://github.com/mesonbuild/meson/issues/11914#issuecomment-1678090566
[1] https://github.com/mesonbuild/meson/issues/12140

Regards,
Yann E. MORIN.

Quoted 37 lines
---
 package/meson/meson.hash | 4 ++--
 package/meson/meson.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/meson/meson.hash +2 -2
index cb36b674fa..02fa1535ef 100644
@@ -1,4 +1,4 @@
 # Locally calculated after checking pgp signature
-# https://github.com/mesonbuild/meson/releases/download/1.1.1/meson-1.1.1.tar.gz.asc
-sha256  d04b541f97ca439fb82fab7d0d480988be4bd4e62563a5ca35fadb5400727b1c  meson-1.1.1.tar.gz
+# https://github.com/mesonbuild/meson/releases/download/1.2.0/meson-1.2.0.tar.gz.asc
+sha256  1c0b634fe6b6a7072e398647f1bf392048577068a5c92ae44d04085dab0ded6f  meson-1.2.0.tar.gz
 sha256  cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30  COPYING
package/meson/meson.mk +1 -1
index 503aca8c25..8eabe108c4 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-MESON_VERSION = 1.1.1
+MESON_VERSION = 1.2.0
 MESON_SITE = https://github.com/mesonbuild/meson/releases/download/$(MESON_VERSION)
 MESON_LICENSE = Apache-2.0
 MESON_LICENSE_FILES = COPYING
Signature · 6 lines
2.39.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw
Quoted 20 lines · Yann E. MORIN

Bernd, All,

+James who previously looked at a lot of meson changes

On 2023-07-22 09:35 +0200, Bernd Kuhls spake thusly:

Quoted 1 line

Release notes: https://mesonbuild.com/Release-notes-for-1-2-0.html

Unfortunately, we've had to revert this change, as it caused unforeseen breakage that is not easily fixed.

Specifically, the way the library search paths are forced into the link step for native builds, like we've seen in host-qemu.

So, let's try to bump later, when we can have a better understanding on why the change was made and how we can fix it.

One lead could be to udnerstand why some libs are linked by full apth while others are linked by name:

Quoted 8 lines
    /path/to/host/lib/libgio-2.0.so -L /path/to/host/lib/ -lgmodule-2.0

So, if you or James could look into that and take the matter with upstream as a follow up to Romain's and others' reports [0] [1], that would be awesome.

[0] https://github.com/mesonbuild/meson/issues/11914#issuecomment-1678090566
[1] https://github.com/mesonbuild/meson/issues/12140

There's some test code here that may fix the issue, I am unable to reproduce the issue myself, so would be good if someone who can reproduce it can test:
https://github.com/mesonbuild/meson/issues/11914#issuecomment-1764880338

Quoted 44 lines

Regards,
Yann E. MORIN.

Quoted 33 lines
---
 package/meson/meson.hash | 4 ++--
 package/meson/meson.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/meson/meson.hash +2 -2
index cb36b674fa..02fa1535ef 100644
@@ -1,4 +1,4 @@
 # Locally calculated after checking pgp signature
-# https://github.com/mesonbuild/meson/releases/download/1.1.1/meson-1.1.1.tar.gz.asc
-sha256  d04b541f97ca439fb82fab7d0d480988be4bd4e62563a5ca35fadb5400727b1c  meson-1.1.1.tar.gz
+# https://github.com/mesonbuild/meson/releases/download/1.2.0/meson-1.2.0.tar.gz.asc
+sha256  1c0b634fe6b6a7072e398647f1bf392048577068a5c92ae44d04085dab0ded6f  meson-1.2.0.tar.gz
 sha256  cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30  COPYING
package/meson/meson.mk +1 -2
index 503aca8c25..8eabe108c4 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-MESON_VERSION = 1.1.1
+MESON_VERSION = 1.2.0
 MESON_SITE = https://github.com/mesonbuild/meson/releases/download/$(MESON_VERSION)
 MESON_LICENSE = Apache-2.0
 MESON_LICENSE_FILES = COPYING
--

2.39.2

Quoted 4 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

--
.-----------------.--------------------.------------------.--------------------.

Quoted 5 lines
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |

'------------------------------^-------^------------------^--------------------'

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot