* Re: [PR PATCH] [Updated] PopCorn: add logging
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-16848@inbox.vuxu.org>
@ 2020-01-12 4:34 ` voidlinux-github
2020-01-12 4:39 ` voidlinux-github
1 sibling, 0 replies; 2+ messages in thread
From: voidlinux-github @ 2020-01-12 4:34 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 420 bytes --]
There is an updated pull request by the-antz against master on the void-packages repository
https://github.com/the-antz/void-packages popcorn
https://github.com/void-linux/void-packages/pull/16848
PopCorn: add logging
This prevents PopCorn from printing warnings to tty1 because of a (not
yet) available network connection.
A patch file from https://github.com/void-linux/void-packages/pull/16848.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-popcorn-16848.patch --]
[-- Type: text/x-diff, Size: 1607 bytes --]
From 4edbec3e35996f582ca9c3919b5bdd9809fe7909 Mon Sep 17 00:00:00 2001
From: Antz <antzz@protonmail.ch>
Date: Tue, 26 Nov 2019 19:02:35 +0100
Subject: [PATCH] PopCorn: add logging
This prevents PopCorn from printing warnings to tty1 because of a (not
yet) available network connection.
[skip ci]
---
srcpkgs/PopCorn/files/popcorn/log/run | 1 +
srcpkgs/PopCorn/files/popcorn/run | 1 +
srcpkgs/PopCorn/template | 2 +-
3 files changed, 3 insertions(+), 1 deletion(-)
create mode 120000 srcpkgs/PopCorn/files/popcorn/log/run
diff --git a/srcpkgs/PopCorn/files/popcorn/log/run b/srcpkgs/PopCorn/files/popcorn/log/run
new file mode 120000
index 00000000000..3a5b4a58605
--- /dev/null
+++ b/srcpkgs/PopCorn/files/popcorn/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/PopCorn/files/popcorn/run b/srcpkgs/PopCorn/files/popcorn/run
index 59e740ed934..4236e0c4bfa 100644
--- a/srcpkgs/PopCorn/files/popcorn/run
+++ b/srcpkgs/PopCorn/files/popcorn/run
@@ -5,5 +5,6 @@
: ${SERVER:=popcorn.voidlinux.org}
: ${PORT:=8001}
+exec 2>&1
chpst -u _popcorn:_popcorn popcorn --server $SERVER --port $PORT
exec chpst -u _popcorn:_popcorn snooze popcorn --server $SERVER --port $PORT
diff --git a/srcpkgs/PopCorn/template b/srcpkgs/PopCorn/template
index 86b03287d71..119c0ec7686 100644
--- a/srcpkgs/PopCorn/template
+++ b/srcpkgs/PopCorn/template
@@ -1,7 +1,7 @@
# Template file for 'PopCorn'
pkgname=PopCorn
version=0.4
-revision=1
+revision=2
build_style=go
go_import_path=github.com/the-maldridge/popcorn
go_package="${go_import_path}/cmd/popcorn
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Updated] PopCorn: add logging
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-16848@inbox.vuxu.org>
2020-01-12 4:34 ` [PR PATCH] [Updated] PopCorn: add logging voidlinux-github
@ 2020-01-12 4:39 ` voidlinux-github
1 sibling, 0 replies; 2+ messages in thread
From: voidlinux-github @ 2020-01-12 4:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 420 bytes --]
There is an updated pull request by the-antz against master on the void-packages repository
https://github.com/the-antz/void-packages popcorn
https://github.com/void-linux/void-packages/pull/16848
PopCorn: add logging
This prevents PopCorn from printing warnings to tty1 because of a (not
yet) available network connection.
A patch file from https://github.com/void-linux/void-packages/pull/16848.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-popcorn-16848.patch --]
[-- Type: text/x-diff, Size: 1600 bytes --]
From efaad9264dcdfeaf966dc85136f283fa61da72b6 Mon Sep 17 00:00:00 2001
From: Antz <antzz@protonmail.ch>
Date: Tue, 26 Nov 2019 19:02:35 +0100
Subject: [PATCH] PopCorn: add logging
This prevents PopCorn from printing warnings to tty1 because of a (not
yet) available network connection.
[skip ci]
---
srcpkgs/PopCorn/files/popcorn/log/run | 2 ++
srcpkgs/PopCorn/files/popcorn/run | 1 +
srcpkgs/PopCorn/template | 2 +-
3 files changed, 4 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/PopCorn/files/popcorn/log/run
diff --git a/srcpkgs/PopCorn/files/popcorn/log/run b/srcpkgs/PopCorn/files/popcorn/log/run
new file mode 100644
index 00000000000..35f950bef68
--- /dev/null
+++ b/srcpkgs/PopCorn/files/popcorn/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -t popcorn
diff --git a/srcpkgs/PopCorn/files/popcorn/run b/srcpkgs/PopCorn/files/popcorn/run
index 59e740ed934..4236e0c4bfa 100644
--- a/srcpkgs/PopCorn/files/popcorn/run
+++ b/srcpkgs/PopCorn/files/popcorn/run
@@ -5,5 +5,6 @@
: ${SERVER:=popcorn.voidlinux.org}
: ${PORT:=8001}
+exec 2>&1
chpst -u _popcorn:_popcorn popcorn --server $SERVER --port $PORT
exec chpst -u _popcorn:_popcorn snooze popcorn --server $SERVER --port $PORT
diff --git a/srcpkgs/PopCorn/template b/srcpkgs/PopCorn/template
index 86b03287d71..119c0ec7686 100644
--- a/srcpkgs/PopCorn/template
+++ b/srcpkgs/PopCorn/template
@@ -1,7 +1,7 @@
# Template file for 'PopCorn'
pkgname=PopCorn
version=0.4
-revision=1
+revision=2
build_style=go
go_import_path=github.com/the-maldridge/popcorn
go_package="${go_import_path}/cmd/popcorn
^ permalink raw reply [flat|nested] 2+ messages in thread