aports/community/browserpass/enable-cgo.patch

16 lines
655 B
Diff

Required to fix build with -buildmode=pie.
See: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15809
diff -upr browserpass-native-3.1.0.orig/Makefile browserpass-native-3.1.0/Makefile
--- browserpass-native-3.1.0.orig/Makefile 2024-03-11 11:00:29.075384439 +0100
+++ browserpass-native-3.1.0/Makefile 2024-03-11 11:00:42.388752117 +0100
@@ -10,7 +10,6 @@ XDG_CONFIG_HOME ?= $(HOME)/.config
BIN_PATH = $(BIN_DIR)/$(BIN)
BIN_PATH_WINDOWS = C:\\\\\\\\\\\\\\\\Program Files\\\\\\\\\\\\\\\\Browserpass\\\\\\\\\\\\\\\\browserpass-windows64.exe
-export CGO_ENABLED := 0
GOFLAGS := -buildmode=pie -trimpath
APP_ID = com.github.browserpass.native