From 61395e3f5a0fdbbea28ec03c6befcf482cb96792 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 12 Jul 2023 11:34:00 +0100 Subject: [PATCH] Disable stripping on bytecode platforms as that breaks the binary. --- supermin.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/supermin.spec b/supermin.spec index fc0c1ae..a3d03f4 100644 --- a/supermin.spec +++ b/supermin.spec @@ -1,6 +1,14 @@ # OCaml packages not built on i686 since OCaml 5 / Fedora 39. ExcludeArch: %{ix86} +# Stripping breaks bytecode binaries. We also have to disable LTO +# because of https://bugzilla.redhat.com/1915570 +%ifnarch %{ocaml_native_compiler} +%global __strip /bin/true +%global _lto_cflags %nil +%global debug_package %{nil} +%endif + # On platforms and architectures that support it, the default is # ‘--with dietlibc’. # @@ -32,7 +40,7 @@ ExcludeArch: %{ix86} Summary: Tool for creating supermin appliances Name: supermin Version: 5.3.3 -Release: 11%{?dist} +Release: 12%{?dist} License: GPL-2.0-or-later ExclusiveArch: %{kernel_arches} @@ -203,8 +211,9 @@ make check || { %changelog -* Tue Jul 11 2023 Richard W.M. Jones - 5.3.3-11 +* Tue Jul 11 2023 Richard W.M. Jones - 5.3.3-12 - OCaml 5.0 rebuild for Fedora 39 +- Disable stripping on bytecode platforms as that breaks the binary. * Mon Jul 10 2023 Jerry James - 5.3.3-10 - OCaml 5.0.0 rebuild