diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index 83e44a0..286afac 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1724024901 -commit: 1a2400f02946a839c983e3c551740f9d5b3383283791fe2ace29003b7813c6bd +mtime: 1724027419 +commit: 72bf126e4bcaec767dfd0fe42b21205b414db6d7e5ffe3936377129f20650fa2 url: https://src.opensuse.org/jengelh/bcachefs-tools revision: master diff --git a/bcachefs-tools.changes b/bcachefs-tools.changes index 943dbaf..49c5fc1 100644 --- a/bcachefs-tools.changes +++ b/bcachefs-tools.changes @@ -4,6 +4,7 @@ Sun Aug 18 23:46:46 UTC 2024 - Jan Engelhardt - Update to release 1.11.0 * mount: Fix UAF in option string handling * mount: Support asking for password via systemd-ask-password +- Fix a crash in mkfs.bcachefs by disabling LTO. ------------------------------------------------------------------- Mon Jul 22 09:06:43 UTC 2024 - David Disseldorp diff --git a/bcachefs-tools.spec b/bcachefs-tools.spec index 85af85b..489609a 100644 --- a/bcachefs-tools.spec +++ b/bcachefs-tools.spec @@ -62,11 +62,16 @@ This package contains utilities for creating and mounting bcachefs. %autosetup -p1 %build +# LTO produces a broken mkfs.bcachefs which crashes. +# Also, the LTO WPA linker requires ludicrous amount of memory (>80G) with -ggdb3. +%define _lto_cflags %nil # gh/koverstreet/bcachefs-tools#237 # bcachefs-tools uses malloc_usable_size, which is incompatible # with fortification level 3 export CFLAGS="${RPM_OPT_FLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" -export CXXFLAGS="${RPM_OPT_FLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" +export CXXFLAGS="$CFLAGS" +# Workaround antisocial Makefile that forces its own -O level +export EXTRA_CFLAGS="$CFLAGS" %make_build PREFIX="%_prefix" ROOT_SBINDIR="%_sbindir" %install diff --git a/build.specials.obscpio b/build.specials.obscpio index a28a6b4..2b122cc 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fe65e99b1653d6a07b6abc5ba5dd2bb86cedab1b048464fa21ad71f7d90ea423 +oid sha256:38c9fc1f178a7cea13bd807856abce29c36157202cd0769f49df0e760c6df3f4 size 256