Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] warzone2100: don't install /usr/bin/.portable
@ 2022-03-22 10:55 Piraty
  2022-03-22 14:54 ` Piraty
  2022-03-22 15:01 ` [PR PATCH] [Closed]: " Piraty
  0 siblings, 2 replies; 3+ messages in thread
From: Piraty @ 2022-03-22 10:55 UTC (permalink / raw)
  To: ml

[-- 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() {

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: warzone2100: don't install /usr/bin/.portable
  2022-03-22 10:55 [PR PATCH] warzone2100: don't install /usr/bin/.portable Piraty
@ 2022-03-22 14:54 ` Piraty
  2022-03-22 15:01 ` [PR PATCH] [Closed]: " Piraty
  1 sibling, 0 replies; 3+ messages in thread
From: Piraty @ 2022-03-22 14:54 UTC (permalink / raw)
  To: ml

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

New comment by Piraty on void-packages repository

https://github.com/void-linux/void-packages/pull/36277#issuecomment-1075285608

Comment:
https://github.com/Warzone2100/warzone2100/issues/2645

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Closed]: warzone2100: don't install /usr/bin/.portable
  2022-03-22 10:55 [PR PATCH] warzone2100: don't install /usr/bin/.portable Piraty
  2022-03-22 14:54 ` Piraty
@ 2022-03-22 15:01 ` Piraty
  1 sibling, 0 replies; 3+ messages in thread
From: Piraty @ 2022-03-22 15:01 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

warzone2100: don't install /usr/bin/.portable
https://github.com/void-linux/void-packages/pull/36277

Description:
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**



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-22 15:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-22 10:55 [PR PATCH] warzone2100: don't install /usr/bin/.portable Piraty
2022-03-22 14:54 ` Piraty
2022-03-22 15:01 ` [PR PATCH] [Closed]: " Piraty

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).