Package Details: mergiraf-git 0.5.1.r0.g720c974-1

Git Clone URL: https://aur.archlinux.org/mergiraf-git.git (read-only, click to copy)
Package Base: mergiraf-git
Description: A syntax-aware git merge driver for a growing collection of programming languages and file formats
Upstream URL: https://mergiraf.org/
Licenses: GPL-3.0-or-later
Conflicts: mergiraf, mergiraf-bin
Provides: mergiraf
Submitter: vcalv
Maintainer: vcalv
Last Packager: vcalv
Votes: 1
Popularity: 0.000055
First Submitted: 2024-12-07 20:34 (UTC)
Last Updated: 2025-02-09 00:24 (UTC)

Latest Comments

csmantle commented on 2026-05-09 11:28 (UTC) (edited on 2026-05-09 11:36 (UTC) by csmantle)

-fno-strict-aliasing is probably needed to workaround an UB bug ^0 in tree-sitter-haskell, one of mergiraf's dependency. Also, it's probably better to run the tests in release mode to match the installed files better.

diff --git a/PKGBUILD b/PKGBUILD
index c635f88..af919ef 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -33,13 +33,15 @@ build() {
     cd "$_pkgname"
     export RUSTUP_TOOLCHAIN=stable
     export CARGO_TARGET_DIR=target
+    export CFLAGS="${CFLAGS} -fno-strict-aliasing"
     cargo build --frozen --release --all-features
 }

 check() {
     cd "$_pkgname"
     export RUSTUP_TOOLCHAIN=stable
-    cargo test --frozen --all-features
+    export CFLAGS="${CFLAGS} -fno-strict-aliasing"
+    cargo test --frozen --release --all-features
 }