From 8cce704c9a3e598356b3a5035270a4dd33285120 Mon Sep 17 00:00:00 2001
From: Adam Wujek <dev_public@wujek.eu>
Date: Thu, 14 Mar 2024 02:35:26 +0100
Subject: [PATCH] userspace/snmpd/Makefile: don't fail a build if snmptranslate
 is not available

It is good to have this command being executed, but build shall not fail
if this command is missing.

Signed-off-by: Adam Wujek <dev_public@wujek.eu>
---
 userspace/snmpd/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/userspace/snmpd/Makefile b/userspace/snmpd/Makefile
index 82b06f0f7..1632d75bd 100644
--- a/userspace/snmpd/Makefile
+++ b/userspace/snmpd/Makefile
@@ -89,7 +89,7 @@ $(SHLIB): $(OBJECTS)
 	$(CC) $(LDFLAGS) $^ -o $@
 
 $(OID_FILE): $(MIBS)
-	snmptranslate -Pu -Tz -M +./ -m ./$(MIBS) >$(OID_FILE)
+	snmptranslate -Pu -Tz -M +./ -m ./$(MIBS) >$(OID_FILE) || true
 
 clean:
 	rm -f $(SHLIB) $(OBJECTS)
-- 
GitLab