$OpenBSD: patch-apertium_apertium_tagger_cc,v 1.2 2021/11/15 04:23:36 bentley Exp $

Index: apertium/apertium_tagger.cc
--- apertium/apertium_tagger.cc.orig
+++ apertium/apertium_tagger.cc
@@ -30,6 +30,11 @@
 #include <unistd.h>
 
 int main(int argc, char **argv) {
+  if (pledge("stdio rpath wpath cpath", NULL) == -1) {
+    std::wcerr << "pledge" << std::endl;
+    return 1;
+  }
+
   try {
     Apertium::apertium_tagger(argc, argv);
   } catch (const Apertium::Exception::apertium_tagger::err_Exception &err_Exception_) {
