Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] PopCorn: add logging
Date: Sun, 12 Jan 2020 05:39:33 +0100	[thread overview]
Message-ID: <20200112043933.Ud25t5J1An2QzUtz1hQx8WX79aGmL6IjOWMmqVQmpnw@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-16848@inbox.vuxu.org>

[-- 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

  parent reply	other threads:[~2020-01-12  4:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 [this message]
2020-01-12  4:40 ` [PR PATCH] [Merged]: " voidlinux-github

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=20200112043933.Ud25t5J1An2QzUtz1hQx8WX79aGmL6IjOWMmqVQmpnw@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).