From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8EC00138334 for ; Mon, 27 Aug 2018 13:32:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A2F86E0961; Mon, 27 Aug 2018 13:32:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5C56FE08DA for ; Mon, 27 Aug 2018 13:32:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CFC2B335C36 for ; Mon, 27 Aug 2018 13:32:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 75EEF3B8 for ; Mon, 27 Aug 2018 13:32:05 +0000 (UTC) From: "Joerg Bornkessel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joerg Bornkessel" Message-ID: <1535376713.ddda7c9abad6a161baaf65520b6ca6b4fad7b325.hd_brummy@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/vdr/, media-video/vdr/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-video/vdr/files/vdr-2.2.0_glibc-2.24.patch media-video/vdr/vdr-2.2.0-r3.ebuild X-VCS-Directories: media-video/vdr/ media-video/vdr/files/ X-VCS-Committer: hd_brummy X-VCS-Committer-Name: Joerg Bornkessel X-VCS-Revision: ddda7c9abad6a161baaf65520b6ca6b4fad7b325 X-VCS-Branch: master Date: Mon, 27 Aug 2018 13:32:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 209608e2-797f-4ee7-bb15-3434d45a4f6d X-Archives-Hash: b16874fe95cbf2f0e71eca30d7fe3040 commit: ddda7c9abad6a161baaf65520b6ca6b4fad7b325 Author: Joerg Bornkessel gentoo org> AuthorDate: Mon Aug 27 13:30:59 2018 +0000 Commit: Joerg Bornkessel gentoo org> CommitDate: Mon Aug 27 13:31:53 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddda7c9a media-video/vdr: glibc-2.24 deprecated warning fixed Package-Manager: Portage-2.3.48, Repoman-2.3.10 media-video/vdr/files/vdr-2.2.0_glibc-2.24.patch | 35 ++++++++++++++++++++++++ media-video/vdr/vdr-2.2.0-r3.ebuild | 1 + 2 files changed, 36 insertions(+) diff --git a/media-video/vdr/files/vdr-2.2.0_glibc-2.24.patch b/media-video/vdr/files/vdr-2.2.0_glibc-2.24.patch new file mode 100644 index 00000000000..98cc13b0c3b --- /dev/null +++ b/media-video/vdr/files/vdr-2.2.0_glibc-2.24.patch @@ -0,0 +1,35 @@ +patch will fix readdir_r() is deprecated as of glibc-2.24 +https://www.vdr-portal.de/forum/index.php?thread/130752-handle-deprecated-functions-readdir-r-auto-ptr/&postID=1293833#post1293833 + +Signed-of by: Joerg Bornkessel (27 Aug 2018) +diff -Naur vdr-2.2.0.orig/tools.c vdr-2.2.0/tools.c +--- vdr-2.2.0.orig/tools.c 2018-08-27 12:59:28.571326559 +0200 ++++ vdr-2.2.0/tools.c 2018-08-27 13:03:11.222326559 +0200 +@@ -1466,7 +1466,11 @@ + struct dirent *cReadDir::Next(void) + { + if (directory) { ++#if !__GLIBC_PREREQ(2, 24) // readdir_r() is deprecated as of GLIBC 2.24 + while (readdir_r(directory, &u.d, &result) == 0 && result) { ++#else ++ while ((result = readdir(directory)) != NULL) { ++#endif + if (strcmp(result->d_name, ".") && strcmp(result->d_name, "..")) + return result; + } +diff -Naur vdr-2.2.0.orig/tools.h vdr-2.2.0/tools.h +--- vdr-2.2.0.orig/tools.h 2018-08-27 12:59:28.641326559 +0200 ++++ vdr-2.2.0/tools.h 2018-08-27 13:01:44.022326559 +0200 +@@ -369,10 +369,12 @@ + private: + DIR *directory; + struct dirent *result; ++#if !__GLIBC_PREREQ(2, 24) // readdir_r() is deprecated as of GLIBC 2.24 + union { // according to "The GNU C Library Reference Manual" + struct dirent d; + char b[offsetof(struct dirent, d_name) + NAME_MAX + 1]; + } u; ++#endif + public: + cReadDir(const char *Directory); + ~cReadDir(); diff --git a/media-video/vdr/vdr-2.2.0-r3.ebuild b/media-video/vdr/vdr-2.2.0-r3.ebuild index 2b4a137a165..dbb8e986c4a 100644 --- a/media-video/vdr/vdr-2.2.0-r3.ebuild +++ b/media-video/vdr/vdr-2.2.0-r3.ebuild @@ -218,6 +218,7 @@ src_prepare() { eapply "${FILESDIR}/${P}_gentoo.patch" #gcc-7.2, this will fix only the core vdr, not the extpatch eapply "${FILESDIR}/${P}_unsignedtosigned.patch" + eapply "${FILESDIR}/${P}_glibc-2.24.patch" # fix some makefile issues sed -e "s:ifndef NO_KBD:ifeq (\$(USE_KBD),1):" \