Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [RFC] build-style/haskell-stack: place stack root in /host to make it persistent
@ 2024-03-25 15:43 tornaria
  2024-03-25 19:58 ` classabbyamp
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: tornaria @ 2024-03-25 15:43 UTC (permalink / raw)
  To: ml

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

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

https://github.com/tornaria/void-packages stack-root
https://github.com/void-linux/void-packages/pull/49526

[RFC] build-style/haskell-stack: place stack root in /host to make it persistent
Similar to `CARGO_HOME=/host/cargo` maybe we should set `STACK_ROOT=/host/stack`.

@leahneukirchen any thoughts?

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

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From a604cfd7efea30e37b1037a899fcc3b396a0a1d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 25 Mar 2024 12:35:53 -0300
Subject: [PATCH] build-style/haskell-stack: place stack root in /host to make
 it persistent

---
 common/build-style/haskell-stack.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/build-style/haskell-stack.sh b/common/build-style/haskell-stack.sh
index 2a28ffc9881168..8131d60db009e9 100644
--- a/common/build-style/haskell-stack.sh
+++ b/common/build-style/haskell-stack.sh
@@ -20,11 +20,11 @@ do_build() {
 			msg_error "Stackage version not set in \$stackage.\n"
 		fi
 		msg_normal "Using stackage resolver ${stackage}.\n"
-		STACK_ROOT="$wrksrc/.stack" \
+		STACK_ROOT="/host/stack" \
 			stack init ${_stack_args} --force --resolver ${stackage}
 	fi
 
-	STACK_ROOT="$wrksrc/.stack" stack ${_stack_args} ${makejobs} build \
+	STACK_ROOT="/host/stack" stack ${_stack_args} ${makejobs} build \
 		${make_build_args}
 }
 
@@ -32,6 +32,6 @@ do_install() {
 	local _stack_args="--system-ghc --skip-ghc-check"
 
 	vmkdir usr/bin
-	STACK_ROOT="$wrksrc/.stack" stack ${_stack_args} install \
+	STACK_ROOT="/host/stack" stack ${_stack_args} install \
 	       	${make_build_args} --local-bin-path=${DESTDIR}/usr/bin
 }

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

end of thread, other threads:[~2024-03-26 18:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-25 15:43 [PR PATCH] [RFC] build-style/haskell-stack: place stack root in /host to make it persistent tornaria
2024-03-25 19:58 ` classabbyamp
2024-03-25 23:53 ` [PR PATCH] [Updated] " tornaria
2024-03-26  0:29 ` [PR REVIEW] " sgn
2024-03-26  0:38 ` classabbyamp
2024-03-26  0:45 ` [PR PATCH] [Updated] " tornaria
2024-03-26  0:52 ` tornaria
2024-03-26  1:04 ` [PR PATCH] [Updated] " tornaria
2024-03-26  7:59 ` 0x5c
2024-03-26 18:08 ` tornaria

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