Github messages for voidlinux
 help / color / mirror / Atom feed
From: olafmersmann <olafmersmann@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] starship: update to 0.48.0.
Date: Sat, 09 Jan 2021 01:28:41 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27778@inbox.vuxu.org> (raw)

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

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

https://github.com/olafmersmann/void-packages starship
https://github.com/void-linux/void-packages/pull/27778

starship: update to 0.48.0.
Some tests fail because `/` is world writable and `$HOME` is `/tmp` inside the the chroot. 

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

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

From 7a38ed047ff5a09a4ecb590d4098b5e907173a9a Mon Sep 17 00:00:00 2001
From: Olaf Mersmann <olafm@p-value.net>
Date: Fri, 8 Jan 2021 22:55:32 +0100
Subject: [PATCH] starship: update to 0.48.0.

---
 srcpkgs/starship/template | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/starship/template b/srcpkgs/starship/template
index 06b6406295d..0eae193aece 100644
--- a/srcpkgs/starship/template
+++ b/srcpkgs/starship/template
@@ -1,18 +1,18 @@
 # Template file for 'starship'
 pkgname=starship
-version=0.46.2
+version=0.48.0
 revision=1
 build_style=cargo
 build_helper=qemu
 hostmakedepends="pkg-config"
 makedepends="libgit2-devel"
-checkdepends="git"
+checkdepends="git fish-shell"
 short_desc="Minimal, fast and customizable cross-shell prompt"
 maintainer="Aluísio Augusto Silva Gonçalves <aluisio@aasg.name>"
 license="ISC"
 homepage="https://starship.rs"
 distfiles="https://github.com/starship/starship/archive/v${version}.tar.gz"
-checksum=39301c8118239eda7b6d8dbcae498f28bfd901932e69003c249d99ee7989c1bb
+checksum=23e729ace48ec0bf6d8eff5f99003351463841f3b28fe453faceb62e6f99bae6
 
 post_build() {
 	STARSHIP="target/${RUST_TARGET}/release/starship"
@@ -21,9 +21,12 @@ post_build() {
 	vtargetrun ${STARSHIP} completions fish >starship.fish
 }
 
-pre_check() {
-	[ -L target/debug ] && unlink target/debug
-	ln -s release target/debug
+do_check() {
+	mkdir -p fake-home
+	local OLDHOME=$HOME
+	export HOME=$(pwd)/fake-home
+	cargo test -q --release --target ${RUST_TARGET}
+	export HOME=$OLDHOME
 }
 
 post_install() {

             reply	other threads:[~2021-01-09  0:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-09  0:28 olafmersmann [this message]
2021-01-09  0:50 ` [PR PATCH] [Merged]: " ericonr

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-27778@inbox.vuxu.org \
    --to=olafmersmann@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).