diff options
Diffstat (limited to 'media-sound/mpdscribble')
-rw-r--r-- | media-sound/mpdscribble/Manifest | 3 | ||||
-rw-r--r-- | media-sound/mpdscribble/files/mpdscribble-0.23-gcc12-time.patch | 37 | ||||
-rw-r--r-- | media-sound/mpdscribble/mpdscribble-0.24.ebuild | 1 |
3 files changed, 40 insertions, 1 deletions
diff --git a/media-sound/mpdscribble/Manifest b/media-sound/mpdscribble/Manifest index 46ab2c6aef9b..9e3f5f909ef4 100644 --- a/media-sound/mpdscribble/Manifest +++ b/media-sound/mpdscribble/Manifest @@ -1,10 +1,11 @@ AUX mpdscribble-0.23-Don-t-install-AUTHORS-COPYING-NEWS-README.rst.patch 682 BLAKE2B 2f5944640d764dc77e601f74b22ce8487c80ec69827b3c3d551e732c33e38b126048e9c877e37e1732ffd18ae57808ee3fb1dc529653da1fa523be8499fdc0bd SHA512 65c153616b9b7d471cf793cec3294aa983247fc5b9c218a4fdb9ff9825c38499f5bfb7b81c1a98506e9102d1bc347e94d21f2296d50871787cdfada03a69aaaf AUX mpdscribble-0.23-Unconditionally-generate-systemd-unit-files.patch 1407 BLAKE2B 9c70170c57f1eb1c43e22e824f1c208bc4c72ad751e10f68195e42fd331342bca4bc3066af671382258102bc63dd75386ead151e0ca8218e8df945373293db7a SHA512 d6c5582a7f4fc2059679ac8bba7dadd63133166522d63efce0c4adb77162fcedc8bee9d03cf4d192d9c6f97e827225b1993d0831e752f5c54f4badbab278a269 +AUX mpdscribble-0.23-gcc12-time.patch 1184 BLAKE2B efe572750084d7c625007280fbb3a7e5703aecc37e81a0a0f4b6d81bfa9d2b855e684c8da0d64d5c825306a1cd9ed7d23d2a62ba7c7eb9f9bd9f0f33c1491f7f SHA512 cafc2aaa95f4e9a184ae1724c1343991ee9f2b4937ae09ca41abdbf2e3d09263229c3d9070bf8b8ac37b0d2a583d8c6bb20dcb49ef55e5aaa9323851584302d8 AUX mpdscribble.rc 475 BLAKE2B f57a87b042cd60d87119ea396bd84bdf846a04fcfadff69b6bfa6700cd177dd95cb5e7c753fc51eb4916410a64e20d42dff1a9e0b5024f2ad1d1d7e3ed3751f9 SHA512 b82d3e5678aba145a5c8d172ebf74960d164e3e934426cc755948d795743bb07158f502705d40c1730a40b6a6d73e84c5792419adaf6ab83ec7c33756f0abb43 DIST mpdscribble-0.22.tar.bz2 116981 BLAKE2B 13b15ca9e49faa3e5d254bc2864de4a0c409d8767db586def3a7bee415c67f84ddffbd7fce6093afe4aba5d5e66db8182aed52d9a141bebf4094a400f2ababe3 SHA512 bedd93392a4d5a0609dcaf7aefeeff3851f3084da8c34a4fc1f8fde51c2ba10b8370ac52cc8d55f0c9a96fffed975827a0935087c2c51880b7bfef8d79182dc8 DIST mpdscribble-0.23.tar.xz 46624 BLAKE2B 47c59a4b2936b7990bb2d8563422c553d1e08b39a09a873fae1ad0215bd1fcc0dbcaa69e62eab9332530717a200a52295018a578e3c615e83d68d84564060402 SHA512 f924076a8aa201f67ba81e72a44d3dd1c31618bd87e4f75f6b63f7b3814fa08f6ef4f7964b1d518c5f8b68a1f8ba88f867c08ed8b0387157eec8e9f97eb0b825 DIST mpdscribble-0.24.tar.xz 69856 BLAKE2B 84143ed7f6978aff32fa759bbe90c934ba5c58df294d375921ffb1cd45de13ecd867fb832940088228fdad4c09948cd82c8dfe9b7fe77d6652743d522bfde8b7 SHA512 cca57f54f69ec1c870805cc58057e6325b6f5897370c315dcd6a64c5dd28ac07fdbddaa8b56f8c1fd88e71d27505f1a87decd68fbdff1f3fe1eaadec8ae80dae EBUILD mpdscribble-0.22.ebuild 707 BLAKE2B 2ce67900b9bde1e81839e257cf3365f934873177b9675113915f6c46e68b6de006e703e37930162ef07558f46a0213ad1d06ecf038dd0546788388ac51ca0aaf SHA512 e2aaf1b1bb18bb8a0311b3e34379669666606fc2af58b2eaec6098dc88b2cb9a6f25a5c0db3ec01d83a68e041853a2c6963e01b1466e15400c188d604c27e131 EBUILD mpdscribble-0.23.ebuild 1006 BLAKE2B 07297a75cee5e1c3ab03420fa971c86360cba4a45cbcce3ba30f30085724593195560587b11e3f678bbb422045496c489a74de923e855c0c2a309ac03ebb74ae SHA512 831bc63481bdb6474d906c45b6af9a9720dfb394f6ec83f71fa680428f5a016fc5a4a86d157a8a7380a2c1cbd0af42bffcd38cde46808bfeed94a2652cb41518 -EBUILD mpdscribble-0.24.ebuild 1006 BLAKE2B 6e1d134e86c00e23be443d48103ef094138378be767f87eeefb73eb101a0acfd7518c2a49ddfaa9b445778fba6658e6022b9bbd8ae8c6a154188b6829ed0e028 SHA512 ae4b2a9cfeee25a9c58cf7d0a60208cabd6fb3e241b59cb73a923a54e1d869c33e5d9911e260b0c17136de5bb2f166dae8d25fab22d05abcd72c5a5476f67960 +EBUILD mpdscribble-0.24.ebuild 1049 BLAKE2B 1db73a25ab89729df94c009fb55be4d11de546e3d52f96204d852c070d9c6c6868d6bf6a258d51b3acc666946af07e2e28412a998351077e3655b0046e035c70 SHA512 3e7ba1db5e0fdbe1957d84fef30c5137ee21136940f6ebf4cf650aa28294e46e9a9d9e3e116b8e4fe377a26b0422b5dc86b0dc77bb4c3d49b5358956b662bb51 MISC metadata.xml 784 BLAKE2B c38018b5bc728569e23dccc11fe4509b916448fec5316ac7170fe2fd4decb9a4ed568f40d039ed2d514e22209c18033f14324a5ff26521658e27e79c4102eab9 SHA512 f52ee040880383020d9f945359fd2597b44898fa215619e2ad435dfb1128791f8fcddcaa4cf1426712d684e3c1fa41e35fa35e1920364199e158cf24001c1443 diff --git a/media-sound/mpdscribble/files/mpdscribble-0.23-gcc12-time.patch b/media-sound/mpdscribble/files/mpdscribble-0.23-gcc12-time.patch new file mode 100644 index 000000000000..7a6a247d73d0 --- /dev/null +++ b/media-sound/mpdscribble/files/mpdscribble-0.23-gcc12-time.patch @@ -0,0 +1,37 @@ +https://github.com/MusicPlayerDaemon/mpdscribble/pull/42 + +From: Sam James <sam@gentoo.org> +Date: Sun, 12 Jun 2022 11:11:08 +0100 +Subject: [PATCH] Fix build with GCC 12 (missing <time.h> include) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes the following build failure with GCC 12: +``` +FAILED: mpdscribble.p/src_Log.cxx.o +[...] +../mpdscribble-0.24/src/Log.cxx: In function ‘const char* log_date()’: +../mpdscribble-0.24/src/Log.cxx:48:13: error: ‘time’ was not declared in this scope + 48 | t = time(nullptr); + | ^~~~ +../mpdscribble-0.24/src/Log.cxx:49:15: error: ‘localtime’ was not declared in this scope + 49 | tmp = localtime(&t); + | ^~~~~~~~~ +../mpdscribble-0.24/src/Log.cxx:55:14: error: ‘strftime’ was not declared in this scope + 55 | if (!strftime(buf, sizeof(buf), "%Y-%m-%dT%H:%M:%S%z", tmp)) { + | ^~~~~~~~ +``` + +Bug: https://bugs.gentoo.org/851513 +--- a/src/Log.cxx ++++ b/src/Log.cxx +@@ -29,6 +29,7 @@ + #include <stdio.h> + #include <string.h> + #include <errno.h> ++#include <time.h> + + #ifdef HAVE_SYSLOG + #include <syslog.h> + diff --git a/media-sound/mpdscribble/mpdscribble-0.24.ebuild b/media-sound/mpdscribble/mpdscribble-0.24.ebuild index 9265bd6c5a2d..cecfbd65aaba 100644 --- a/media-sound/mpdscribble/mpdscribble-0.24.ebuild +++ b/media-sound/mpdscribble/mpdscribble-0.24.ebuild @@ -30,6 +30,7 @@ DOCS=( AUTHORS COPYING NEWS README.rst ) PATCHES=( "${FILESDIR}"/${PN}-0.23-Unconditionally-generate-systemd-unit-files.patch "${FILESDIR}"/${PN}-0.23-Don-t-install-AUTHORS-COPYING-NEWS-README.rst.patch + "${FILESDIR}"/${PN}-0.23-gcc12-time.patch ) src_install() { |