Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] slack-desktop: add -p to mkdir to avoid error
@ 2021-01-04 18:14 acobaugh
  2021-01-04 20:52 ` Chocimier
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: acobaugh @ 2021-01-04 18:14 UTC (permalink / raw)
  To: ml

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

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

https://github.com/acobaugh/void-packages master
https://github.com/void-linux/void-packages/pull/27663

slack-desktop: add -p to mkdir to avoid error
I encountered this error when attempting to build slack-desktop locally. Unsure if there's a better fix, but it seems harmless.

```
=> slack-desktop-4.12.0_1: running do_install ...
mkdir: cannot create directory ‘/destdir//slack-desktop-4.12.0/usr/lib’: File exists
=> ERROR: slack-desktop-4.12.0_1: do_install: 'mkdir ${DESTDIR}/usr/{bin,lib}' exited with 1
=> ERROR:   in do_install() at srcpkgs/slack-desktop/template:27
```

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-27663.patch --]
[-- Type: text/x-diff, Size: 870 bytes --]

From 017a6906d382cece720bbb42d42c24623d28097f Mon Sep 17 00:00:00 2001
From: Andy Cobaugh <andrew.cobaugh@gmail.com>
Date: Mon, 4 Jan 2021 12:12:31 -0500
Subject: [PATCH] slack-desktop: add -p to mkdir to avoid error

---
 srcpkgs/slack-desktop/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/slack-desktop/template b/srcpkgs/slack-desktop/template
index 9eda6c37e60..e64807863c1 100644
--- a/srcpkgs/slack-desktop/template
+++ b/srcpkgs/slack-desktop/template
@@ -24,7 +24,7 @@ do_install() {
 	vlicense usr/share/doc/slack-desktop/copyright
 	vinstall usr/share/applications/slack.desktop 644 usr/share/applications
 	vinstall usr/share/pixmaps/slack.png 644 usr/share/pixmaps
-	mkdir ${DESTDIR}/usr/{bin,lib}
+	mkdir -p ${DESTDIR}/usr/{bin,lib}
 	vcopy usr/lib/slack usr/lib
 	ln -s ../lib/slack/slack ${DESTDIR}/usr/bin/slack
 }

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

end of thread, other threads:[~2021-01-04 21:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-04 18:14 [PR PATCH] slack-desktop: add -p to mkdir to avoid error acobaugh
2021-01-04 20:52 ` Chocimier
2021-01-04 21:18 ` [PR PATCH] [Updated] " acobaugh
2021-01-04 21:20 ` acobaugh
2021-01-04 21:59 ` [PR PATCH] [Merged]: " ericonr

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