From 2f19f12b7d8e1616249acf2fcb40d904ed433620 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 15 Mar 2025 21:15:35 +0100 Subject: T5400: initialize OPAM environment where it's really needed Instead of trying to fix - what we call - "Schroedingers build environment" in the outside world calling this package build, we should rather fix the Makefile/build system.. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3f3ba5ba7..3ec5ed73f 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ libvyosconfig: git clone https://github.com/vyos/libvyosconfig.git /tmp/libvyosconfig || exit 1 cd /tmp/libvyosconfig && \ git checkout 677d1e2bf8109b9fd4da60e20376f992b747e384 || exit 1 - ./build.sh + eval $$(opam env --root=/opt/opam --set-root) && ./build.sh fi .PHONY: interface_definitions -- cgit v1.2.3