pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

databases/mongo-tools fail due to PaX, patch included



I had reason to use these tools, and discovered they do weird magic which
breaks due to PaX. The attached patch fixes this for me.

-- 
Paul Ripke
"Great minds discuss ideas, average minds discuss events, small minds
 discuss people."
-- Disputed: Often attributed to Eleanor Roosevelt. 1948.
diff --git a/databases/mongo-tools/Makefile b/databases/mongo-tools/Makefile
index fe08c5bd91e7..611b956a718f 100644
--- a/databases/mongo-tools/Makefile
+++ b/databases/mongo-tools/Makefile
@@ -27,6 +27,11 @@ BUILDLINK_PASSTHRU_DIRS+=	/tmp
 
 INSTALLATION_DIRS+=		bin
 
+.for tool in ${MONGO_TOOLS}
+NOT_PAX_MPROTECT_SAFE+=	bin/${tool}
+NOT_PAX_ASLR_SAFE+=	bin/${tool}
+.endfor
+
 post-extract:
 	${MKDIR} -p ${WRKSRC}/vendor/github.com/mongodb/mongo-tools
 .for tool in common legacy ${MONGO_TOOLS}


Home | Main Index | Thread Index | Old Index