commit: 6e1322ac311e9b9f9488260c527076e331e8fb40
Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 16 14:39:56 2016 +0000
Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
CommitDate: Sun Oct 16 14:39:56 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e1322ac
app-admin/conky: Update NOAA METAR uri.
This fixes bug #592906. Thanks to Brand Huntsman for the report.
Package-Manager: portage-2.3.0
app-admin/conky/conky-1.9.0-r3.ebuild | 3 ++-
app-admin/conky/files/conky-1.9.0-update-noaa-metar-uri.patch | 11 +++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/app-admin/conky/conky-1.9.0-r3.ebuild
b/app-admin/conky/conky-1.9.0-r3.ebuild
index 884c867..a1f0800 100644
--- a/app-admin/conky/conky-1.9.0-r3.ebuild
+++ b/app-admin/conky/conky-1.9.0-r3.ebuild
@@ -67,7 +67,8 @@ src_prepare() {
"${FILESDIR}/${P}-apcupsd.patch" \
"${FILESDIR}/${P}-default-graph-size.patch" \
"${FILESDIR}/${P}-diskio-dmmajor.patch" \
- "${FILESDIR}/${P}-tinfo.patch"
+ "${FILESDIR}/${P}-tinfo.patch" \
+ "${FILESDIR}/${P}-update-noaa-metar-uri.patch"
# Allow user patches #478482
epatch_user
diff --git a/app-admin/conky/files/conky-1.9.0-update-noaa-metar-uri.patch
b/app-admin/conky/files/conky-1.9.0-update-noaa-metar-uri.patch
new file mode 100644
index 00000000..0dbf3d3
--- /dev/null
+++ b/app-admin/conky/files/conky-1.9.0-update-noaa-metar-uri.patch
@@ -0,0 +1,11 @@
+--- a/src/weather.c
++++ b/src/weather.c
+@@ -858,7 +858,7 @@
+ }
+ } else
+ #endif /* XOAP */
+- if (strstr(uri, "weather.noaa.gov")) {
++ if (strstr(uri, "tgftp.nws.noaa.gov")) {
+ strcat(uri, locID);
+ strcat(uri, ".TXT");
+ } else if (!strstr(uri, "localhost") && !strstr(uri, "127.0.0.1")) {