public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/rsyslog/files/8-stable/, app-admin/rsyslog/
Date: Thu,  1 Jun 2017 14:19:54 +0000 (UTC)	[thread overview]
Message-ID: <1496326788.7ce43d2ae8bd68ae2c5f6964b26817851ed53cd1.whissi@gentoo> (raw)

commit:     7ce43d2ae8bd68ae2c5f6964b26817851ed53cd1
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu Jun  1 14:19:26 2017 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Thu Jun  1 14:19:48 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ce43d2a

app-admin/rsyslog: Rev bump to fix hostname detection without network

See https://github.com/rsyslog/rsyslog/pull/1595

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 ...hostname-detection-when-getaddrinfo-fails.patch | 27 ++++++++++++++++++++++
 ...slog-8.27.0.ebuild => rsyslog-8.27.0-r1.ebuild} |  1 +
 2 files changed, 28 insertions(+)

diff --git a/app-admin/rsyslog/files/8-stable/rsyslog-8.27.0-fix-hostname-detection-when-getaddrinfo-fails.patch b/app-admin/rsyslog/files/8-stable/rsyslog-8.27.0-fix-hostname-detection-when-getaddrinfo-fails.patch
new file mode 100644
index 00000000000..a9470ccf4b6
--- /dev/null
+++ b/app-admin/rsyslog/files/8-stable/rsyslog-8.27.0-fix-hostname-detection-when-getaddrinfo-fails.patch
@@ -0,0 +1,27 @@
+From 1a7d3a088969b47798bc1da712ca2772f91a7c02 Mon Sep 17 00:00:00 2001
+From: Jiri Vymazal <jvymazal@redhat.com>
+Date: Wed, 31 May 2017 16:26:56 +0200
+Subject: [PATCH] Ignoring NONAME error from getaddrinfo so we have hostname
+ set even without working network
+
+---
+ runtime/net.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/runtime/net.c b/runtime/net.c
+index 2d8de9429..edffc677a 100644
+--- a/runtime/net.c
++++ b/runtime/net.c
+@@ -1188,7 +1188,11 @@ getLocalHostname(uchar **ppName)
+ 		memset(&flags, 0, sizeof(flags));
+ 		flags.ai_flags = AI_CANONNAME;
+ 		int error = getaddrinfo((char*)hnbuf, NULL, &flags, &res);
+-		if (error != 0) {
++		if (error != 0 &&
++		    error != EAI_NONAME && error != EAI_AGAIN && error != EAI_FAIL) {
++			/* If we get one of errors above, network is probably
++			 * not working yet, so we fall back to local hostname below
++			 */
+ 			dbgprintf("getaddrinfo: %s\n", gai_strerror(error));
+ 			ABORT_FINALIZE(RS_RET_IO_ERROR);
+ 		}

diff --git a/app-admin/rsyslog/rsyslog-8.27.0.ebuild b/app-admin/rsyslog/rsyslog-8.27.0-r1.ebuild
similarity index 99%
rename from app-admin/rsyslog/rsyslog-8.27.0.ebuild
rename to app-admin/rsyslog/rsyslog-8.27.0-r1.ebuild
index ef11286bd70..c1791672bd3 100644
--- a/app-admin/rsyslog/rsyslog-8.27.0.ebuild
+++ b/app-admin/rsyslog/rsyslog-8.27.0-r1.ebuild
@@ -56,6 +56,7 @@ else
 	PATCHES=(
 		"${FILESDIR}"/8-stable/${PN}-8.26.0-fix-zmq3-format-security.patch
 		"${FILESDIR}"/8-stable/${PN}-8.27.0-fix-librdkafka-detection.patch
+		"${FILESDIR}"/8-stable/${PN}-8.27.0-fix-hostname-detection-when-getaddrinfo-fails.patch
 	)
 fi
 


             reply	other threads:[~2017-06-01 14:19 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-01 14:19 Thomas Deutschmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-08-03  1:19 [gentoo-commits] repo/gentoo:master commit in: app-admin/rsyslog/files/8-stable/, app-admin/rsyslog/ Thomas Deutschmann
2018-07-14 13:52 Thomas Deutschmann
2018-02-09 23:21 Thomas Deutschmann
2018-01-11 17:42 Thomas Deutschmann
2018-01-11 17:34 Thomas Deutschmann
2017-10-17 16:23 Thomas Deutschmann
2017-09-24 17:49 Thomas Deutschmann
2017-08-12 18:20 Thomas Deutschmann
2017-05-17 22:28 Thomas Deutschmann
2017-04-01 17:39 Thomas Deutschmann
2017-03-01 22:19 Thomas Deutschmann
2016-08-28 18:48 Thomas Deutschmann
2016-08-24  0:57 Thomas Deutschmann
2016-06-12 17:52 Patrice Clement
2016-03-12  4:31 Ian Delaney
2016-02-05 15:24 Lars Wendler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1496326788.7ce43d2ae8bd68ae2c5f6964b26817851ed53cd1.whissi@gentoo \
    --to=whissi@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox