* [gentoo-commits] repo/gentoo:master commit in: x11-libs/libyui-qt/files/, x11-libs/libyui-qt/
@ 2018-03-03 22:56 Andreas Hüttel
0 siblings, 0 replies; only message in thread
From: Andreas Hüttel @ 2018-03-03 22:56 UTC (permalink / raw
To: gentoo-commits
commit: ab25aaad6dbd69d70986a7ded58e3d690cf9c2a1
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 3 22:55:59 2018 +0000
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Mar 3 22:55:59 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab25aaad
x11-libs/libyui-qt: Fix build with glibc-2.26, bug 631056
Closes: https://bugs.gentoo.org/631056
Package-Manager: Portage-2.3.24, Repoman-2.3.6
.../libyui-qt/files/libyui-qt-2.46.21-norpc.patch | 24 ++++++++++++++++++++++
x11-libs/libyui-qt/libyui-qt-2.46.21.ebuild | 4 +++-
2 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/x11-libs/libyui-qt/files/libyui-qt-2.46.21-norpc.patch b/x11-libs/libyui-qt/files/libyui-qt-2.46.21-norpc.patch
new file mode 100644
index 00000000000..8258fe7b191
--- /dev/null
+++ b/x11-libs/libyui-qt/files/libyui-qt-2.46.21-norpc.patch
@@ -0,0 +1,24 @@
+From a6e599e79bd15f6a97ff6d8f2e3109759ff37aaf Mon Sep 17 00:00:00 2001
+From: Thorsten Kukuk <kukuk@thkukuk.de>
+Date: Mon, 13 Nov 2017 11:15:21 +0100
+Subject: [PATCH] Include sys/param.h instead of rpc/types.h for
+ MAXHOSTNAMELEN, we are not using RPC functions and sunrpc is deprecated in
+ glibc.
+
+---
+ src/YQUI.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/YQUI.cc b/src/YQUI.cc
+index 7c82468..f949979 100644
+--- a/src/YQUI.cc
++++ b/src/YQUI.cc
+@@ -22,7 +22,7 @@
+
+ /-*/
+
+-#include <rpc/types.h> // MAXHOSTNAMELEN
++#include <sys/param.h> // MAXHOSTNAMELEN
+ #include <dlfcn.h>
+ #include <libintl.h>
+ #include <algorithm>
diff --git a/x11-libs/libyui-qt/libyui-qt-2.46.21.ebuild b/x11-libs/libyui-qt/libyui-qt-2.46.21.ebuild
index 885e3886395..dbd9945ad3a 100644
--- a/x11-libs/libyui-qt/libyui-qt-2.46.21.ebuild
+++ b/x11-libs/libyui-qt/libyui-qt-2.46.21.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -30,6 +30,8 @@ DEPEND="${RDEPEND}
S="${WORKDIR}/${PN}-${PN}-master-${PV}"
+PATCHES=( "${FILESDIR}/${P}-norpc.patch" )
+
src_prepare() {
cp "${EPREFIX}/usr/share/libyui/buildtools/CMakeLists.common" CMakeLists.txt || die
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-03-03 22:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-03 22:56 [gentoo-commits] repo/gentoo:master commit in: x11-libs/libyui-qt/files/, x11-libs/libyui-qt/ Andreas Hüttel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox