diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-08-21 23:14:26 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-08-21 23:14:26 +0100 |
commit | 7c59acba5699c9c58090a7a738669669a7307023 (patch) | |
tree | d51d27d020895a6b7a3298d9d1b9846c1fcb59a0 /games-strategy/colobot | |
parent | e2db47eaae00ec33f8971db44b68645c5d3b9590 (diff) |
gentoo resync : 21.08.2021
Diffstat (limited to 'games-strategy/colobot')
-rw-r--r-- | games-strategy/colobot/Manifest | 3 | ||||
-rw-r--r-- | games-strategy/colobot/colobot-0.1.12.ebuild | 2 | ||||
-rw-r--r-- | games-strategy/colobot/files/colobot-0.1.12-sndfile-link.patch | 40 |
3 files changed, 44 insertions, 1 deletions
diff --git a/games-strategy/colobot/Manifest b/games-strategy/colobot/Manifest index 5c9a1a38671e..e9e582c03a53 100644 --- a/games-strategy/colobot/Manifest +++ b/games-strategy/colobot/Manifest @@ -1,5 +1,6 @@ AUX colobot-0.1.12-includes.patch 1283 BLAKE2B 0f1e402e770d57365d53488b86838f401815e0749065bf2581d228a566873b31d021a1486ce7cf4a051407b96c540c954ce56ef9efc168522f0ea94ec1606fcd SHA512 26c1bbbd9605482a5a6ffef4b3a919518224e3802bcf0d7248bba94227039bf69a5d6a41bcacdb1ec170e58e719f1cde722f869c4ec26cf20ecd7d1eae091cd0 +AUX colobot-0.1.12-sndfile-link.patch 2114 BLAKE2B 11aebe223c809301fd7851ed20ab0867f47ca6d41d198951a81dc4d23a80d203a6955bc4df06dd09f9131fc6ed5f5cb5c1c001503564e89dde3143f58fa7cb59 SHA512 c4f15073aa7f9f84ca369f56944d8c3daba67b419f7d1a4e886b23bd210f84268beddeb13bb9dcb88a86e9dd1bc24a4364ed4bd2065062eac771002f367150e1 DIST colobot-gold-0.1.12-alpha.tar.gz 1468594 BLAKE2B 2b470e8b074e4a973b751062dca2358396066d8816c2b1b5b44649b798610dccd73ab5fed4086f2aa8d4495f3de69dd8b72b45f97f23f66b18a50fc976bf25ef SHA512 63647a16b376db6544830f96e7d323c0f58003645bf636abd1cab0ffd47b39b0bef47191d584f5156b75324d75dfdfdcabe8b89be565087c37c367ca366f3cbe -EBUILD colobot-0.1.12.ebuild 1529 BLAKE2B 10963bb2d419873121541c8beedb01c79309c25c210979cb1ecab20993233085fb5c93371102dc460af743cf9a0bdf7b3630382ac467af768bb8bc5506c1c1e2 SHA512 0505d423b3e9b3e076e88fbea3cd7a1a6d0a45b7216671d442b2fa4f49dae920d0b4dccd0ea9675b08853a0245a1b155540ca7be334bd60d429ad1c138827aaa +EBUILD colobot-0.1.12.ebuild 1616 BLAKE2B 0044f75977deebfdd035bc6b0a0815613a2f9bc00aad6a5898737b8884089842d2d8d1185bbb0cfdb04356a431ee35aea37c53610daaf6276088a7d7f55d811a SHA512 58ffa32138e8f26109bbfcd8604bfa358db0fffb49949ae5efef9d3e638643b9edd1da7f972278e4285fcee0bbeaacd69dba82a828ad89accd1564d7dbfdf4fb EBUILD colobot-9999.ebuild 1377 BLAKE2B 98d1de0557f5edc06166bc191e5fe1beb4bf0f7f8975069d81f2a8aaf005c17348f649f477a3c16ab5aa5b35130a10607bb5395266c1c983816fed0b9f811bb2 SHA512 61b61b0cdb4c29348333c30a13c1986d69587164734bc2c52e07e63b1d5b795270bae19642055662155563b1cc91cd5cb7697b1172fecd1ae375702e879dcbe8 MISC metadata.xml 418 BLAKE2B b30194895d7f35dc6b2bf5ed2d6153ab03832eff44536e837058b4c5641760c55ea846a3ffe91027d8892ab7ccd4a36be688b89a5909c57ca57a18f8a610f022 SHA512 6ffc5220d200c722b0e7da2ee8734282ea0fabd7d319f8a21cd88da6743312c869f44bd3b14af7031ce970feb9b6c4349236db2a7aee69ea8041e3b000812e3c diff --git a/games-strategy/colobot/colobot-0.1.12.ebuild b/games-strategy/colobot/colobot-0.1.12.ebuild index 56e82f5815b8..152ba200e160 100644 --- a/games-strategy/colobot/colobot-0.1.12.ebuild +++ b/games-strategy/colobot/colobot-0.1.12.ebuild @@ -40,6 +40,8 @@ RDEPEND="${DEPEND} PATCHES=( # https://github.com/colobot/colobot/pull/1300 "${FILESDIR}"/${P}-includes.patch + # https://github.com/colobot/colobot/pull/1453 + "${FILESDIR}"/${P}-sndfile-link.patch ) src_prepare() { diff --git a/games-strategy/colobot/files/colobot-0.1.12-sndfile-link.patch b/games-strategy/colobot/files/colobot-0.1.12-sndfile-link.patch new file mode 100644 index 000000000000..349bb91c487b --- /dev/null +++ b/games-strategy/colobot/files/colobot-0.1.12-sndfile-link.patch @@ -0,0 +1,40 @@ +From f13ca0c15efc80da7034ae1d06224e31591cfc46 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Thu, 19 Aug 2021 09:11:16 +0200 +Subject: [PATCH] Fix missing linking to sndfile with OPENAL_SOUND=OFF + +Fix the CMake files to use sndfile even if OPENAL_SOUND is disabled. +The package code (via sndfile_wrapper.cpp) uses sndfile unconditionally, +and it currently fails to build with -DOPENAL_SOUND=OFF: + + [293/293] Linking CXX executable colobot + FAILED: colobot + : && /usr/bin/c++ -std=gnu++11 -Wall -Werror -Wold-style-cast -pedantic-errors -Wmissing-declarations -Wno-error=deprecated-declarations -Wsuggest-override -g -O0 -rdynamic src/CMakeFiles/colobot.dir/app/main.cpp.o -o colobot -L/tmp/colobot/src/CBot -Wl,-rpath,/tmp/colobot/src/CBot:/tmp/colobot/build/src/CBot: src/libcolobotbase.a src/CBot/libCBot.so lib/localename/liblocalename.a -Wl,-Bstatic -lSDL2main -Wl,-Bdynamic -lSDL2 -lpthread -lSDL2_image -lSDL2_ttf -lGL -lGLU -lpng -lz -lGLEW /usr/lib64/libboost_system.so.1.76.0 /usr/lib64/libboost_filesystem.so.1.76.0 /usr/lib64/libboost_regex.so.1.76.0 -lphysfs && : + /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/libcolobotbase.a(sndfile_wrapper.cpp.o): undefined reference to symbol 'sf_close@@libsndfile.so.1.0' + /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libsndfile.so.1: error adding symbols: DSO missing from command line + collect2: error: ld returned 1 exit status + ninja: build stopped: subcommand failed. +--- + CMakeLists.txt | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 90843488..95927733 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -303,10 +303,11 @@ find_package(Boost COMPONENTS system filesystem regex REQUIRED) + + find_package(GLEW REQUIRED) + ++find_package(LibSndFile REQUIRED) ++ + if (OPENAL_SOUND) + find_package(OpenAL REQUIRED) + include_directories(${OPENAL_INCLUDE_DIR}) +- find_package(LibSndFile REQUIRED) + endif() + + +-- +2.33.0 + |