public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/systemd] rawhide: Disable rust on i686
@ 2026-11-27 12:39 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-11-27 12:39 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/systemd
            Branch : rawhide
            Commit : c0e3a2cec7c7f0efad4120984861e2d711705902
            Author : Zbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
            Date   : 2026-11-27T13:25:49+01:00
            Stats  : +6/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/systemd/c/c0e3a2cec7c7f0efad4120984861e2d711705902?branch=rawhide

            Log:
            Disable rust on i686

Unfortunately
https://github.com/rpm-software-management/rpm/issues/3165 hasn't
been implemented yet, so let's take the easy path and disable rust on
non-64bit builds, which happens to be just i686.

The rust tests failed on i686. This should be fixed, but also, right
now rust is only for new leaf features, and we don't need to enable
those on the legacy arches.

---
diff --git a/systemd.spec b/systemd.spec
index 1399a67..2137fba 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -9,6 +9,7 @@
 
 %bcond bzip2     1
 %bcond gnutls    1
+%bcond rust      %[ 0%{?__isa_bits} == 64 ]     # disabled on i686
 %bcond lz4       1
 %bcond xz        1
 %bcond zlib      1
@@ -167,11 +168,13 @@ Patch:          0001-core-create-userdb-root-directory-with-correct-label.patch
 %global want_bootloader 1
 %endif
 
-BuildRequires:  bindgen-cli
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
 BuildRequires:  clang
+%if %{with rust}
+BuildRequires:  bindgen-cli
 BuildRequires:  rustc
+%endif
 BuildRequires:  coreutils
 BuildRequires:  rpmdevtools
 BuildRequires:  libmount-devel
@@ -848,6 +851,7 @@ main systemd package and is meant for use in exitrds.
 
 %define status %{shrink:
        '**'
+       rust=%{?with_rust}%{!?with_rust:0}
        bzip2=%{?with_bzip2}%{!?with_bzip2:0}
        gnutls=%{?with_gnutls}%{!?with_gnutls:0}
        lz4=%{?with_lz4}%{!?with_lz4:0}
@@ -939,6 +943,7 @@ CONFIGURE_OPTS=(
         -Dvmlinux-h-path="$VMLINUX_H_PATH"
         -Dapparmor=disabled
         -Dpolkit=enabled
+        -Drust=%[%{with rust}?"enabled":"disabled"]
         -Dxz=%[%{with xz}?"enabled":"disabled"]
         -Dzlib=%[%{with zlib}?"enabled":"disabled"]
         -Dbzip2=%[%{with bzip2}?"enabled":"disabled"]

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-27 12:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 12:39 [rpms/systemd] rawhide: Disable rust on i686 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox