commit: 6319a14ff0ebedc9ea24c87a5b2725773c94d284 Author: Z. Liu <zhixu.liu <AT> gmail <DOT> com> AuthorDate: Tue Jan 28 16:52:42 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Apr 10 09:50:04 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6319a14f
app-misc/beep: remove ld option "--cref" which is unavailbe for mold Closes: https://bugs.gentoo.org/947768 Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/40348 Signed-off-by: Sam James <sam <AT> gentoo.org> app-misc/beep/beep-1.4.12-r2.ebuild | 2 ++ .../files/beep-1.4.12-avoid-cref-linker-option.patch | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/app-misc/beep/beep-1.4.12-r2.ebuild b/app-misc/beep/beep-1.4.12-r2.ebuild index aa4e594491c6..106f71b00f80 100644 --- a/app-misc/beep/beep-1.4.12-r2.ebuild +++ b/app-misc/beep/beep-1.4.12-r2.ebuild @@ -16,6 +16,8 @@ KEYWORDS="~alpha amd64 arm ppc ppc64 sparc x86" # Tests require a speaker RESTRICT="test" +PATCHES=( "${FILESDIR}"/${P}-avoid-cref-linker-option.patch ) + src_prepare() { default diff --git a/app-misc/beep/files/beep-1.4.12-avoid-cref-linker-option.patch b/app-misc/beep/files/beep-1.4.12-avoid-cref-linker-option.patch new file mode 100644 index 000000000000..2f91b4c99272 --- /dev/null +++ b/app-misc/beep/files/beep-1.4.12-avoid-cref-linker-option.patch @@ -0,0 +1,19 @@ +from upstream commit d3c3fb6e18a6b359c263156f556a5520121ca7fd + +Not all linkers support that option, and it seems the option was included +solely for informational purposes (possibly to debug issues in the past). +Therefore, it appears safe to remove the option from the makefile. + +diff --git a/GNUmakefile b/GNUmakefile +index a27b453..11bc3a1 100644 +--- a/GNUmakefile ++++ b/GNUmakefile +@@ -261,7 +261,7 @@ beep-usage.c: beep-usage.txt + define LINK_RULE + $(1): $$($(2)_OBJS) + @: echo "LINK_RULE $$@: $$^" +- $(CC) -Wl,-Map=$$(@:%=%.map),--cref $(CFLAGS) $(common_CFLAGS) $(LDFLAGS) $(common_LDFLAGS) -o $$@ $$^ $$($(2)_LIBS) $(common_LIBS) $(LIBS) ++ $(CC) -Wl,-Map=$$(@:%=%.map) $(CFLAGS) $(common_CFLAGS) $(LDFLAGS) $(common_LDFLAGS) -o $$@ $$^ $$($(2)_LIBS) $(common_LIBS) $(LIBS) + + $$(patsubst %.o,.deps/%.o.dep,$$($(2)_OBJS))): +
