]> git.ipfire.org Git - thirdparty/systemd.git/commit
mkosi: Set up -ffile-prefix-map= correctly when building debuginfo packages
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 17 Apr 2024 12:55:08 +0000 (14:55 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 17 Apr 2024 13:21:01 +0000 (15:21 +0200)
commit8e728c14ec802059bf6b586545c4e5241b64920a
treedd2fe7de6003968aceb15c4a45d47ab89a9bb302
parentd398a2e0044d5e954642f35fac1bb460654174db
mkosi: Set up -ffile-prefix-map= correctly when building debuginfo packages

This makes sure that the debuginfo files contain source files pointing
to the source files shipped by the debugsource package.

Normally this should be done automatically by rpm invoking debugedit
but for some unknown reason debugedit refuses to rewrite the source
files in our binaries.

Given that debugedit is completely undebugable (does not generate any
logs at all, and its source code is ridiculously obtuse), let's set
-ffile-prefix-map= when building instead which achieves the same
effect.
mkosi.images/system/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot