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] sway: added 'elogind' build option (default disabled).
Date: Wed, 12 Jun 2019 12:01:13 +0200	[thread overview]
Message-ID: <20190612100113.KHKiXrA_4BI_urxo2QWutrJMn_a2Hzvf9xhpw9a89u8@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12419@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 449 bytes --]

There is an updated pull request by xtraeme against master on the void-packages repository

https://github.com/xtraeme/void-packages sway-elogind
https://github.com/void-linux/void-packages/pull/12419

sway: added 'elogind' build option (default disabled).
If enabled the sway binary does not need to be setuid.

Signed-off-by: Juan RP <xtraeme@gmail.com>

A patch file from https://github.com/void-linux/void-packages/pull/12419.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sway-elogind-12419.patch --]
[-- Type: application/text/x-diff, Size: 1231 bytes --]

From 29fedcee096b45af6b63ec30c0fd8af6bb79ead5 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Wed, 12 Jun 2019 12:00:50 +0200
Subject: [PATCH] sway: added 'elogind' build option (default disabled).

If enabled the sway binary does not need to be setuid.

Signed-off-by: Juan RP <xtraeme@gmail.com>
---
 srcpkgs/sway/template | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/sway/template b/srcpkgs/sway/template
index e998f70b04f..099252eea33 100644
--- a/srcpkgs/sway/template
+++ b/srcpkgs/sway/template
@@ -1,7 +1,7 @@
 # Template file for 'sway'
 pkgname=sway
 version=1.0
-revision=1
+revision=2
 build_style=meson
 conf_files="/etc/sway/config"
 hostmakedepends="pkg-config wayland-devel scdoc git"
@@ -14,9 +14,12 @@ license="MIT"
 homepage="https://swaywm.org"
 distfiles="https://github.com/swaywm/${pkgname}/archive/${version}.tar.gz"
 checksum=24dafd0f1e630e97a5dd47233841adf856b665e2321d6207acfe6b3002d1bc56
+build_options="elogind"
 
 post_install() {
 	vlicense LICENSE
-	# must be setuid without logind!
-	chmod u+s ${DESTDIR}/usr/bin/sway
+	if [ -z "$build_option_elogind" ]; then
+		# must be setuid without logind!
+		chmod u+s ${DESTDIR}/usr/bin/sway
+	fi
 }

  reply	other threads:[~2019-06-12 10:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-12  9:53 [PR PATCH] " voidlinux-github
2019-06-12 10:01 ` voidlinux-github [this message]
2019-06-12 10:01 ` [PR PATCH] [Updated] " voidlinux-github
2019-06-15 12:17 ` [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=20190612100113.KHKiXrA_4BI_urxo2QWutrJMn_a2Hzvf9xhpw9a89u8@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).