diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2021-09-15 16:55:00 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2021-09-15 17:19:09 -0400 |
commit | 2bcc305712bba0e7f340557771f03dcf11d7473c (patch) | |
tree | 2e4fff3ff2a5b144b932c47d14d78dcb2f8335eb /games-action/snipes/files | |
parent | net-libs/glib-networking: avoid QA warning (diff) | |
download | gentoo-2bcc305712bba0e7f340557771f03dcf11d7473c.tar.gz gentoo-2bcc305712bba0e7f340557771f03dcf11d7473c.tar.bz2 gentoo-2bcc305712bba0e7f340557771f03dcf11d7473c.zip |
games-action/snipes: EAPI6->8, fix building with lld
Also pass raw ldflags where they weren't used (side-needed for lld),
plus cleanup old tc-getLD most likely was meant to be tc-export.
HOMEPAGE seems gone, there is another very similar game on github
by the same name but it uses an entirely different code base and
does not seem to be the same project.
Closes: https://bugs.gentoo.org/730852
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-action/snipes/files')
-rw-r--r-- | games-action/snipes/files/snipes-1.0.4-ldflags.patch | 9 | ||||
-rw-r--r-- | games-action/snipes/files/snipes-1.0.4-nongnulinker.patch | 20 |
2 files changed, 9 insertions, 20 deletions
diff --git a/games-action/snipes/files/snipes-1.0.4-ldflags.patch b/games-action/snipes/files/snipes-1.0.4-ldflags.patch new file mode 100644 index 000000000000..af1f40d02917 --- /dev/null +++ b/games-action/snipes/files/snipes-1.0.4-ldflags.patch @@ -0,0 +1,9 @@ +"fake" flags cause non-gnu linkers to fail, and need a way to pass raw flags. +https://bugs.gentoo.org/369287 +--- a/Makefile ++++ b/Makefile +@@ -54,3 +54,3 @@ + $(INTERMEDIATE)/%.o: $(IMG)/%.pbm +- $(LD) -r -b binary -z noexecstack -z really_noexecstack -z pretty_please_noexecstack -o $@ $< ++ $(LD) -r -b binary -z noexecstack $(RAW_LDFLAGS) -o $@ $< + diff --git a/games-action/snipes/files/snipes-1.0.4-nongnulinker.patch b/games-action/snipes/files/snipes-1.0.4-nongnulinker.patch deleted file mode 100644 index 8bdaeef3e356..000000000000 --- a/games-action/snipes/files/snipes-1.0.4-nongnulinker.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- a/Makefile 2011-12-18 17:24:28.795315064 +0100 -+++ b/Makefile 2011-12-18 17:24:59.005311478 +0100 -@@ -33,7 +33,7 @@ - IMGOBJ = $(OIMGS:%.pbm=$(INTERMEDIATE)/%.o) - - CFLAGS += `sdl-config --cflags` -I$(INTERMEDIATE) --LDLIBS += `sdl-config --libs` -+LDLIBS += `sdl-config --libs` -lm - LDFLAGS += -Wl,-z,noexecstack - - -@@ -52,7 +52,7 @@ - - # Why does this result in an executable stack? Can I run my bitmaps? Do bitmaps behave like Conway's game of life, when run? - $(INTERMEDIATE)/%.o: $(IMG)/%.pbm -- $(LD) -r -b binary -z noexecstack -z really_noexecstack -z pretty_please_noexecstack -o $@ $< -+ $(LD) -r -b binary -z noexecstack -o $@ $< - - snipes.6: snipes.6.in - sed s/'`VERSION`'/`cat VERSION`/ < $< > $@ |