Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] sway: added 'elogind' build option (default disabled).
Date: Wed, 12 Jun 2019 11:53:19 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12419@inbox.vuxu.org> (raw)

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

There is a new 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: 1179 bytes --]

From 0a5b4c0976c480cc57c75a842a1151caf885760f Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Wed, 12 Jun 2019 11:43:10 +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..4247d943bbe 100644
--- a/srcpkgs/sway/template
+++ b/srcpkgs/sway/template
@@ -1,8 +1,9 @@
 # Template file for 'sway'
 pkgname=sway
 version=1.0
-revision=1
+revision=2
 build_style=meson
+build_options="elogind"
 conf_files="/etc/sway/config"
 hostmakedepends="pkg-config wayland-devel scdoc git"
 makedepends="wlroots-devel wayland-devel wayland-protocols pcre-devel
@@ -17,6 +18,8 @@ checksum=24dafd0f1e630e97a5dd47233841adf856b665e2321d6207acfe6b3002d1bc56
 
 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  9:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-12  9:53 voidlinux-github [this message]
2019-06-12 10:01 ` [PR PATCH] [Updated] " voidlinux-github
2019-06-12 10:01 ` 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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12419@inbox.vuxu.org \
    --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).