Github messages for voidlinux
 help / color / mirror / Atom feed
From: Piraty <Piraty@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] warzone2100: don't install /usr/bin/.portable
Date: Tue, 22 Mar 2022 11:55:59 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-36277@inbox.vuxu.org> (raw)

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

There is a new pull request by Piraty against master on the void-packages repository

https://github.com/Piraty/void-packages warzone-no-portable
https://github.com/void-linux/void-packages/pull/36277

warzone2100: don't install /usr/bin/.portable
it tricks keepassxc into portable mode

```
...
access("/usr/bin/.portable", F_OK)      = -1 ENOENT (No such file or directory)
...
```

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **NO**



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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-warzone-no-portable-36277.patch --]
[-- Type: text/x-diff, Size: 929 bytes --]

From 8a92d149fc7523844866be8c85d8277f85649e6a Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Tue, 22 Mar 2022 11:51:31 +0100
Subject: [PATCH] warzone2100: don't install /usr/bin/.portable

it tricks keepassxc into portable mode
---
 srcpkgs/warzone2100/template | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/warzone2100/template b/srcpkgs/warzone2100/template
index 9ef2297baeb7..769c66445914 100644
--- a/srcpkgs/warzone2100/template
+++ b/srcpkgs/warzone2100/template
@@ -1,7 +1,7 @@
 # Template file for 'warzone2100'
 pkgname=warzone2100
 version=4.2.7
-revision=1
+revision=3
 wrksrc="warzone2100"
 build_style=cmake
 configure_args="-DWZ_ENABLE_WARNINGS_AS_ERRORS=OFF -DWZ_DISTRIBUTOR=void"
@@ -28,6 +28,10 @@ post_extract() {
 	fi
 }
 
+post_install() {
+	rm "$DESTDIR"/usr/bin/.portable
+}
+
 warzone2100-data_package() {
 	short_desc+=" - data files"
 	pkg_install() {

             reply	other threads:[~2022-03-22 10:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-22 10:55 Piraty [this message]
2022-03-22 14:54 ` Piraty
2022-03-22 15:01 ` [PR PATCH] [Closed]: " Piraty

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-36277@inbox.vuxu.org \
    --to=piraty@users.noreply.github.com \
    --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).