* [Buildroot] [PATCH next 1/1] package/spice: re-enable on all cpu architectures
@ 2024-11-22 21:38 Julien Olivain
2024-11-22 23:19 ` Vincent Jardin
2026-01-02 21:47 ` Thomas Petazzoni via buildroot
0 siblings, 2 replies; 3+ messages in thread
From: Julien Olivain @ 2024-11-22 21:38 UTC (permalink / raw)
To: buildroot; +Cc: Yann E . MORIN, Julien Olivain
Buildroot commit [1] restricted spice compilation to x86 only.
As the log of this commit mention, this was because at that time,
spice 0.12.0 was generating an error on untested cpu architectures.
See [2] (we can also see that armv6+ platforms was apparently
supported).
Spice commit [3] (first included in spice v0.12.6) relaxed this error
to a warning. The reason was that big endian support was improved,
and also there was an intent to make testing easier.
This commit removes this i386/x86_64 cpu architecture restriction.
It reverts the commit [1] and also adds the dependency on
BR2_USE_MMU, as it is needed by libglib2. This dependency was
missing, but was implied by the cpu restriction (as all i386/x86_64
cpus has a MMU). Spice also needs a gcc version with C++11 support,
including with std::list allocator which correspond to gcc >= 6.
See gcc commit [4].
[1] https://gitlab.com/buildroot.org/buildroot/-/commit/4f452a86b8523d90ffa7a94cb1d540e574ceb165
[2] https://gitlab.freedesktop.org/spice/spice/-/blob/v0.12.0/configure.ac#L60
[3] https://gitlab.freedesktop.org/spice/spice/-/commit/f80eef8f9ca04f923752efbda043ab856801be8a
[4] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=cc7f3d0eeef05fb8fc11384a9a29afae10a54cc7
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Patch tested in:
https://gitlab.com/jolivain/buildroot/-/pipelines/1556927270
---
package/spice/Config.in | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/package/spice/Config.in b/package/spice/Config.in
index ca5c562ca1..4ef4376a5a 100644
--- a/package/spice/Config.in
+++ b/package/spice/Config.in
@@ -1,14 +1,16 @@
-comment "spice server needs a toolchain w/ wchar, threads, C++"
- depends on BR2_i386 || BR2_x86_64
+comment "spice server needs a toolchain w/ wchar, threads, C++, gcc >= 6"
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
- !BR2_INSTALL_LIBSTDCPP
+ !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_6
config BR2_PACKAGE_SPICE
bool "spice server"
- depends on BR2_i386 || BR2_x86_64
+ depends on BR2_USE_MMU # libglib2
depends on BR2_USE_WCHAR # libglib2
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
depends on BR2_INSTALL_LIBSTDCPP
+ # Needs gcc >= 6 with c++11 std::list allocator
+ # https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=cc7f3d0eeef05fb8fc11384a9a29afae10a54cc7
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_6
select BR2_PACKAGE_JPEG
select BR2_PACKAGE_LIBGLIB2
select BR2_PACKAGE_OPENSSL
--
2.47.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH next 1/1] package/spice: re-enable on all cpu architectures
2024-11-22 21:38 [Buildroot] [PATCH next 1/1] package/spice: re-enable on all cpu architectures Julien Olivain
@ 2024-11-22 23:19 ` Vincent Jardin
2026-01-02 21:47 ` Thomas Petazzoni via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Vincent Jardin @ 2024-11-22 23:19 UTC (permalink / raw)
To: Julien Olivain; +Cc: buildroot, Yann E . MORIN
Hi Julien,
On Fri, Nov 22, 2024 at 10:38:09PM UTC, Julien Olivain wrote:
> Buildroot commit [1] restricted spice compilation to x86 only.
> As the log of this commit mention, this was because at that time,
> spice 0.12.0 was generating an error on untested cpu architectures.
> See [2] (we can also see that armv6+ platforms was apparently
> supported).
>
> Spice commit [3] (first included in spice v0.12.6) relaxed this error
> to a warning. The reason was that big endian support was improved,
> and also there was an intent to make testing easier.
>
> This commit removes this i386/x86_64 cpu architecture restriction.
> It reverts the commit [1] and also adds the dependency on
> BR2_USE_MMU, as it is needed by libglib2. This dependency was
> missing, but was implied by the cpu restriction (as all i386/x86_64
> cpus has a MMU). Spice also needs a gcc version with C++11 support,
> including with std::list allocator which correspond to gcc >= 6.
> See gcc commit [4].
Thanks for enabling spice for many platforms. LGTM
Reviewed-by: Vincent Jardin <vjardin@free.fr>
Best regards,
Vincent
> [1] https://gitlab.com/buildroot.org/buildroot/-/commit/4f452a86b8523d90ffa7a94cb1d540e574ceb165
> [2] https://gitlab.freedesktop.org/spice/spice/-/blob/v0.12.0/configure.ac#L60
> [3] https://gitlab.freedesktop.org/spice/spice/-/commit/f80eef8f9ca04f923752efbda043ab856801be8a
> [4] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=cc7f3d0eeef05fb8fc11384a9a29afae10a54cc7
>
> Signed-off-by: Julien Olivain <ju.o@free.fr>
> ---
> Patch tested in:
> https://gitlab.com/jolivain/buildroot/-/pipelines/1556927270
> ---
> package/spice/Config.in | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/package/spice/Config.in b/package/spice/Config.in
> index ca5c562ca1..4ef4376a5a 100644
> --- a/package/spice/Config.in
> +++ b/package/spice/Config.in
> @@ -1,14 +1,16 @@
> -comment "spice server needs a toolchain w/ wchar, threads, C++"
> - depends on BR2_i386 || BR2_x86_64
> +comment "spice server needs a toolchain w/ wchar, threads, C++, gcc >= 6"
> depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
> - !BR2_INSTALL_LIBSTDCPP
> + !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_6
>
> config BR2_PACKAGE_SPICE
> bool "spice server"
> - depends on BR2_i386 || BR2_x86_64
> + depends on BR2_USE_MMU # libglib2
> depends on BR2_USE_WCHAR # libglib2
> depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
> depends on BR2_INSTALL_LIBSTDCPP
> + # Needs gcc >= 6 with c++11 std::list allocator
> + # https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=cc7f3d0eeef05fb8fc11384a9a29afae10a54cc7
> + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_6
> select BR2_PACKAGE_JPEG
> select BR2_PACKAGE_LIBGLIB2
> select BR2_PACKAGE_OPENSSL
> --
> 2.47.0
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH next 1/1] package/spice: re-enable on all cpu architectures
2024-11-22 21:38 [Buildroot] [PATCH next 1/1] package/spice: re-enable on all cpu architectures Julien Olivain
2024-11-22 23:19 ` Vincent Jardin
@ 2026-01-02 21:47 ` Thomas Petazzoni via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-01-02 21:47 UTC (permalink / raw)
To: Julien Olivain; +Cc: buildroot, Yann E . MORIN
Hello Julien,
On Fri, 22 Nov 2024 22:38:09 +0100
Julien Olivain <ju.o@free.fr> wrote:
> Buildroot commit [1] restricted spice compilation to x86 only.
> As the log of this commit mention, this was because at that time,
> spice 0.12.0 was generating an error on untested cpu architectures.
> See [2] (we can also see that armv6+ platforms was apparently
> supported).
>
> Spice commit [3] (first included in spice v0.12.6) relaxed this error
> to a warning. The reason was that big endian support was improved,
> and also there was an intent to make testing easier.
>
> This commit removes this i386/x86_64 cpu architecture restriction.
> It reverts the commit [1] and also adds the dependency on
> BR2_USE_MMU, as it is needed by libglib2. This dependency was
> missing, but was implied by the cpu restriction (as all i386/x86_64
> cpus has a MMU). Spice also needs a gcc version with C++11 support,
> including with std::list allocator which correspond to gcc >= 6.
> See gcc commit [4].
>
> [1] https://gitlab.com/buildroot.org/buildroot/-/commit/4f452a86b8523d90ffa7a94cb1d540e574ceb165
> [2] https://gitlab.freedesktop.org/spice/spice/-/blob/v0.12.0/configure.ac#L60
> [3] https://gitlab.freedesktop.org/spice/spice/-/commit/f80eef8f9ca04f923752efbda043ab856801be8a
> [4] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=cc7f3d0eeef05fb8fc11384a9a29afae10a54cc7
>
> Signed-off-by: Julien Olivain <ju.o@free.fr>
> ---
> Patch tested in:
> https://gitlab.com/jolivain/buildroot/-/pipelines/1556927270
> ---
> package/spice/Config.in | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
I've applied, but after splitting this in 3 commits:
- Adding the missing BR2_USE_MMU dependency (it's a fix, even though it
doesn't really have an impact)
- Adding the missing gcc >= 6 dependency (it's a fix)
- Re-enabling on all CPU architectures (it's not a fix)
Indeed, the first two are eligible for LTS, while the last one isn't.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-01-02 21:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-22 21:38 [Buildroot] [PATCH next 1/1] package/spice: re-enable on all cpu architectures Julien Olivain
2024-11-22 23:19 ` Vincent Jardin
2026-01-02 21:47 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox