In the ebuild we add -Wl--no-undefined which causes the failure when -fsanitize=address is enabled (undefined reference to __asan*).
where do you specify -fsanitize=address? I'd like to reproduce fix this issue.
in C/CXX FLAGS
I can reproduce the problem and I'm indeed not sure why we want to have "-Wl--no-undefined", which is a development tool, in an ebuild, but on the other hand, why do you want to have "-fsanitize=address"? To test the security of mupdf in the context of Gentoo? I'm not sure that we should take steps to accommodate this kind of activity in the ebuild: it is expected that, for this kind of stuff, you'll have to hack through ebuild a little bit. Also, this is temporary, you won't actually run systems with that flag. What do you think?
(In reply to Virgil Dupras from comment #3) > I can reproduce the problem and I'm indeed not sure why we want to have > "-Wl--no-undefined", which is a development tool, in an ebuild, but on the > why do you want to have "-fsanitize=address"? I don't want it as default. I just expect the a custom set of cflags works like other packages
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e0b3e7722417649362c3909fbf1fc0b5c80eb93 commit 6e0b3e7722417649362c3909fbf1fc0b5c80eb93 Author: Virgil Dupras <vdupras@gentoo.org> AuthorDate: 2019-05-07 02:37:54 +0000 Commit: Virgil Dupras <vdupras@gentoo.org> CommitDate: 2019-05-07 02:38:46 +0000 app-text/mupdf: bump to 1.15.0 We remove the "curl" USE flag because upstream stopped depending on it with its removal of "progressive loading code". Closes: https://bugs.gentoo.org/653298 Closes: https://bugs.gentoo.org/683490 Closes: https://bugs.gentoo.org/595190 Signed-off-by: Virgil Dupras <vdupras@gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11 app-text/mupdf/Manifest | 1 + app-text/mupdf/files/mupdf-1.15-CFLAGS.patch | 13 +++ app-text/mupdf/files/mupdf-1.15-Makefile.patch | 42 ++++++++ app-text/mupdf/files/mupdf-1.15-openssl-x11.patch | 20 ++++ app-text/mupdf/mupdf-1.15.0.ebuild | 122 ++++++++++++++++++++++ 5 files changed, 198 insertions(+)