pkgsrc/math/djbsort/patches/patch-test
schmonz 70d46b6be7 From DJB: "For correctness, ./test has to be run on the installation
machine, not on the machine preparing a binary package." (Also: "The
issues are explained in Section 8 of
https://pqcrypto.eu.org/deliverables/d2.4.pdf.")

For this to work, we install the source tree (with built objects) to
${PREFIX}/share/djbsort. Then we run tests, install to ${PREFIX}/include
and ${PREFIX}/lib, and check the installed files against pseudo-PLIST.

This means pkg_add(1) will fail if no C compiler is present, which is
unusual behavior for pkg_add but perhaps not entirely unreasonable for a
C library.

Bump PKGREVISION.
2018-07-31 05:38:56 +00:00

14 lines
463 B
Text

$NetBSD: patch-test,v 1.1 2018/07/31 05:38:56 schmonz Exp $
Don't bake build host into binary packages.
--- test.orig 2018-07-17 14:55:25.000000000 +0000
+++ test
@@ -36,6 +36,7 @@ version = readfile('version').strip()
shorthostname = platform.node().split('.')[0].lower()
okcharacters = string.ascii_letters + string.digits
shorthostname = ''.join(c for c in shorthostname if c in okcharacters)
+shorthostname = 'pkgsrchostname'
startdir = os.getcwd()