Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] common/build-helper/meson.sh: only write cross file once
@ 2023-10-26 13:20 ahesford
  2023-10-27 11:09 ` [PR PATCH] [Updated] " ahesford
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ahesford @ 2023-10-26 13:20 UTC (permalink / raw)
  To: ml

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

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

https://github.com/ahesford/void-packages meson
https://github.com/void-linux/void-packages/pull/46904

common/build-helper/meson.sh: only write cross file once
Rewriting the file every time the helper is sourced is needless and apparently triggers meson to regenerate build files multiple times, so we should only write this file once.

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

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

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

From 5c19a2dc80ee1542aecc0159d3708c21228d4de8 Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Thu, 26 Oct 2023 09:18:13 -0400
Subject: [PATCH] common/build-helper/meson.sh: only write cross file once

---
 common/build-helper/meson.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/build-helper/meson.sh b/common/build-helper/meson.sh
index 5ac9d2fe1badc..192bf930a84dd 100644
--- a/common/build-helper/meson.sh
+++ b/common/build-helper/meson.sh
@@ -1,7 +1,8 @@
 # This build helper writes a Meson cross-file, allowing other build styles
 # to properly drive cross-builds in Meson when appropriate
 
-if [ -n "$CROSS_BUILD" ]; then
+# The cross file should only be written once
+if [ -n "$CROSS_BUILD" ] && [ ! -e "${XBPS_WRAPPERDIR}/meson/xbps_meson.cross" ]; then
 	mkdir -p "${XBPS_WRAPPERDIR}/meson"
 
 	_MESON_TARGET_ENDIAN=little

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

end of thread, other threads:[~2023-10-27 16:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-26 13:20 [PR PATCH] common/build-helper/meson.sh: only write cross file once ahesford
2023-10-27 11:09 ` [PR PATCH] [Updated] " ahesford
2023-10-27 16:16 ` [PR PATCH] [Closed]: " ahesford
2023-10-27 16:17 ` ahesford

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