From 302a80b51497b38afd4e1bbb8bc07b3dc617abb1 Mon Sep 17 00:00:00 2001 From: Tom spot Callaway Date: Thu, 26 Aug 2021 08:23:52 -0400 Subject: [PATCH] work around stupid binary bundling of eu-strip --- chromium.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chromium.spec b/chromium.spec index c0c93ec6..4f13b615 100644 --- a/chromium.spec +++ b/chromium.spec @@ -484,6 +484,8 @@ BuildRequires: libstdc++-devel, openssl-devel # Fedora tries to use system libs whenever it can. BuildRequires: bzip2-devel BuildRequires: dbus-glib-devel +# For eu-strip +BuildRequires: elfutils BuildRequires: elfutils-libelf-devel BuildRequires: flac-devel %if 0%{?bundlefreetype} @@ -1560,6 +1562,11 @@ sed -i '/aarch64)/ a \ exec "/usr/bin/ninja-build" "$@";;\' ../depot_tool %endif sed -i 's|exec "${THIS_DIR}/ninja-linux${LONG_BIT}"|exec "/usr/bin/ninja-build"|g' ../depot_tools/ninja +# Get rid of the pre-built eu-strip binary, it is x86_64 and of mysterious origin +rm -rf buildtools/third_party/eu-strip/bin/eu-strip +# Replace it with a symlink to the Fedora copy +ln -s %{_bindir}/eu-strip buildtools/third_party/eu-strip/bin/eu-strip + %if 0%{?rhel} == 7 . /opt/rh/devtoolset-%{dts_version}/enable %endif