diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /games-strategy/liquidwar/files | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'games-strategy/liquidwar/files')
-rw-r--r-- | games-strategy/liquidwar/files/liquidwar-5.6.4-ovflfix.patch | 18 | ||||
-rw-r--r-- | games-strategy/liquidwar/files/liquidwar-5.6.4-underlink.patch | 11 | ||||
-rw-r--r-- | games-strategy/liquidwar/files/liquidwar-5.6.5-exec-stack.patch (renamed from games-strategy/liquidwar/files/liquidwar-5.6.4-exec-stack.patch) | 0 | ||||
-rw-r--r-- | games-strategy/liquidwar/files/liquidwar-5.6.5-gcc10.patch | 30 | ||||
-rw-r--r-- | games-strategy/liquidwar/files/liquidwar-5.6.5-makefile.patch | 93 |
5 files changed, 123 insertions, 29 deletions
diff --git a/games-strategy/liquidwar/files/liquidwar-5.6.4-ovflfix.patch b/games-strategy/liquidwar/files/liquidwar-5.6.4-ovflfix.patch deleted file mode 100644 index c092f02beabe..000000000000 --- a/games-strategy/liquidwar/files/liquidwar-5.6.4-ovflfix.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/src/wwwsrv.c.old 2010-10-26 14:16:31.000000000 +0200 -+++ b/src/wwwsrv.c 2010-10-26 14:17:35.000000000 +0200 -@@ -100,12 +100,12 @@ - - data->privacy = privacy; - data->log = log; -- strncpy (data->metaserver, metaserver, URL_SIZE); -+ strncpy (data->metaserver, metaserver, sizeof(data->metaserver)); - data->port = port; - data->busy_players = busy_players; - data->max_players = max_players; -- strncpy (data->password, password, URL_SIZE); -- strncpy (data->comment, comment, URL_SIZE); -+ strncpy (data->password, password, sizeof(data->password)); -+ strncpy (data->comment, comment, sizeof(data->comment)); - } - - /*------------------------------------------------------------------*/ diff --git a/games-strategy/liquidwar/files/liquidwar-5.6.4-underlink.patch b/games-strategy/liquidwar/files/liquidwar-5.6.4-underlink.patch deleted file mode 100644 index d80e349bf1b1..000000000000 --- a/games-strategy/liquidwar/files/liquidwar-5.6.4-underlink.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/src/Makefile.in.old 2011-06-22 07:45:05.756127862 +0200 -+++ b/src/Makefile.in 2011-06-22 07:46:00.681613957 +0200 -@@ -223,7 +223,7 @@ - EXTERN_LIBS = `allegro-config --static $(ALLEGRO_LIBRARY)` $(EFENCE_LIBRARY) - else - LINK_OPTIONS = -- EXTERN_LIBS = `allegro-config --libs $(ALLEGRO_LIBRARY)` $(EFENCE_LIBRARY) -+ EXTERN_LIBS = `allegro-config --libs $(ALLEGRO_LIBRARY)` $(EFENCE_LIBRARY) -lm - endif - - CONFIG_OPTIONS = \ diff --git a/games-strategy/liquidwar/files/liquidwar-5.6.4-exec-stack.patch b/games-strategy/liquidwar/files/liquidwar-5.6.5-exec-stack.patch index a1e93c9b738c..a1e93c9b738c 100644 --- a/games-strategy/liquidwar/files/liquidwar-5.6.4-exec-stack.patch +++ b/games-strategy/liquidwar/files/liquidwar-5.6.5-exec-stack.patch diff --git a/games-strategy/liquidwar/files/liquidwar-5.6.5-gcc10.patch b/games-strategy/liquidwar/files/liquidwar-5.6.5-gcc10.patch new file mode 100644 index 000000000000..7d69c705e0c8 --- /dev/null +++ b/games-strategy/liquidwar/files/liquidwar-5.6.5-gcc10.patch @@ -0,0 +1,30 @@ +Author: Reiner Herrmann <reiner@reiner-h.de> +Description: Fix FTBFS with GCC 10 +Bug-Debian: https://bugs.debian.org/957493 + +--- a/src/fighter.h ++++ b/src/fighter.h +@@ -59,8 +59,8 @@ + /* variables globales */ + /*==================================================================*/ + +-int FIGHTER_MOVE_X[2][NB_DIRS][5]; +-int FIGHTER_MOVE_Y[2][NB_DIRS][5]; ++extern int FIGHTER_MOVE_X[2][NB_DIRS][5]; ++extern int FIGHTER_MOVE_Y[2][NB_DIRS][5]; + + /*==================================================================*/ + /* fonctions globales */ +--- a/src/random.h ++++ b/src/random.h +@@ -66,8 +66,8 @@ + /* variables globales */ + /*==================================================================*/ + +-void *LW_RANDOM_RAW_MAP; +-int LW_RANDOM_ON; ++extern void *LW_RANDOM_RAW_MAP; ++extern int LW_RANDOM_ON; + + /*==================================================================*/ + /* fonctions globales */ diff --git a/games-strategy/liquidwar/files/liquidwar-5.6.5-makefile.patch b/games-strategy/liquidwar/files/liquidwar-5.6.5-makefile.patch new file mode 100644 index 000000000000..b034a2947265 --- /dev/null +++ b/games-strategy/liquidwar/files/liquidwar-5.6.5-makefile.patch @@ -0,0 +1,93 @@ +Fix paths. Don't install COPYING and obsolete .desktop + +diff --git a/Makefile.in b/Makefile.in +index 45f13ec..d27dddc 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -27,21 +27,19 @@ mandir = @mandir@ + infodir = @infodir@ + + BINDIR = $(bindir) +-GAMEDIR = $(exec_prefix)/games +-DATADIR = $(datadir)/games/liquidwar ++GAMEDIR = $(bindir) ++DATADIR = $(datadir)/liquidwar + PIXDIR = $(datadir)/pixmaps + DOCDIR = $(datadir)/doc/liquidwar + DESKTOPDIR = $(datadir)/applications + # We don't use the autoconf default mandir=$(prefix)/man man + # directory since the FHS (File Hierarchy Standard recommends + # to place man pages in $(datadir)/man (ie /usr/share/man). +-# MANDIR = $(mandir)/man6 +-MANDIR = $(datadir)/man/man6 ++MANDIR = $(mandir)/man6 + # We don't use the autoconf default infodir=$(prefix)/info info + # directory since the FHS (File Hierarchy Standard recommends + # to place info pages in $(datadir)/info (ie /usr/share/info). +-# INFODDIR = $(infodir) +-INFODIR = $(datadir)/info ++INFODDIR = $(infodir) + INFODIRDIR = $(infodir) + + HOST = @host@ +@@ -123,7 +121,7 @@ build_doc: + + install: install_link install_nolink + +-# the install_nolink is for distribs where $(prefix)/games is in the PATH, ++# the install_nolink is for distribs where $(prefix) is in the PATH, + # for instance Debian, where a link in $(prefix)/bin is pretty much useless + install_nolink: install_bin install_data install_custom_map install_custom_texture install_custom_music install_icon install_doc install_gpl install_desktop install_readme + @echo +@@ -136,9 +134,9 @@ install_nolink: install_bin install_data install_custom_map install_custom_textu + install_bin: src/liquidwar src/liquidwar-server src/liquidwar-mapgen + @echo "Installing liquidwar binaries in $(GAMEDIR)." + @install -d $(DESTDIR)$(GAMEDIR) +- @install -c -s src/liquidwar $(DESTDIR)$(GAMEDIR) +- @install -c -s src/liquidwar-server $(DESTDIR)$(GAMEDIR) +- @install -c -s src/liquidwar-mapgen $(DESTDIR)$(GAMEDIR) ++ @install -c src/liquidwar $(DESTDIR)$(GAMEDIR) ++ @install -c src/liquidwar-server $(DESTDIR)$(GAMEDIR) ++ @install -c src/liquidwar-mapgen $(DESTDIR)$(GAMEDIR) + + install_link: + @echo "Installing link in $(BINDIR)." +@@ -174,7 +172,7 @@ install_custom_music: + @install -c -m 0644 custom/music/*.* $(DESTDIR)$(DATADIR)/music + + install_doc: +- @if [ -f $(MAKE_DOC_DIR)/txt/rules.txt ]; then echo "Installing liquidwar plain text doc in $(DOCDIR)/txt."; install -d $(DESTDIR)$(DOCDIR)/txt; install -c -m 0644 $(MAKE_DOC_DIR)/txt/*.txt $(DESTDIR)$(DOCDIR)/txt; fi ++ @if [ -f $(MAKE_DOC_DIR)/txt/rules.txt ]; then echo "Installing liquidwar plain text doc in $(DOCDIR)."; install -d $(DESTDIR)$(DOCDIR); install -c -m 0644 $(MAKE_DOC_DIR)/txt/*.txt $(DESTDIR)$(DOCDIR); fi + @if [ -f $(MAKE_DOC_DIR)/html/rules.html ]; then echo "Installing liquidwar HTML doc in $(DOCDIR)/html."; install -d $(DESTDIR)$(DOCDIR)/html; install -c -m 0644 $(MAKE_DOC_DIR)/html/*.html $(DESTDIR)$(DOCDIR)/html; fi + @if [ -f $(MAKE_DOC_DIR)/man/liquidwar.6.gz ]; then echo "Installing liquidwar man page in $(MANDIR)."; install -d $(DESTDIR)$(MANDIR); install -c -m 0644 $(MAKE_DOC_DIR)/man/liquidwar.6.gz $(DESTDIR)$(MANDIR); ln -s -f liquidwar.6.gz $(DESTDIR)$(MANDIR)/liquidwar-server.6.gz; ln -s -f liquidwar.6.gz $(DESTDIR)$(MANDIR)/liquidwar-mapgen.6.gz; fi + @if [ -f $(MAKE_DOC_DIR)/info/liquidwar.info.gz ]; then echo "Installing info page $(INFODIR)/liquidwar.info.gz."; install -d $(DESTDIR)$(INFODIR); install -c -m 644 $(MAKE_DOC_DIR)/info/liquidwar.info* $(DESTDIR)$(INFODIR); if which install-info; then if test -d $(DESTDIR)$(INFODIRDIR); then if test -f $(DESTDIR)$(INFODIRDIR)/dir; then echo "Installing liquidwar info entry."; install-info --info-dir=$(DESTDIR)$(INFODIRDIR) $(MAKE_DOC_DIR)/info/liquidwar.info.gz; fi; fi; fi; fi +@@ -189,12 +187,12 @@ install_icon: + install_desktop: + @echo "Installing desktop file in $(DESKTOPDIR)." + @install -d $(DESTDIR)$(DESKTOPDIR) +- @install -c -m 0644 misc/liquidwar.desktop $(DESTDIR)$(DESKTOPDIR) ++ #@install -c -m 0644 misc/liquidwar.desktop $(DESTDIR)$(DESKTOPDIR) + + install_gpl: + @echo "Installing GPL in $(DOCDIR)." + @install -d $(DESTDIR)$(DOCDIR) +- @install -c -m 0644 COPYING $(DESTDIR)$(DOCDIR) ++ #@install -c -m 0644 COPYING $(DESTDIR)$(DOCDIR) + + install_readme: + @echo "Installing README in $(DOCDIR)." +diff --git a/src/Makefile.in b/src/Makefile.in +index f9a471a..deb6692 100644 +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -4,8 +4,8 @@ exec_prefix = @exec_prefix@ + datarootdir = @datarootdir@ + datadir = @datadir@ + +-DATADIR = $(datadir)/games/liquidwar +-GAMEDIR = $(exec_prefix)/games ++DATADIR = $(datadir)/liquidwar ++GAMEDIR = @bindir@ + + HOST_OPT = @HOST_OPT@ + STATIC = @STATIC@ |