Subject: only for text files
To: None <>
From: Klaus Heinz <>
List: tech-pkg
Date: 12/12/2003 01:12:33

today, using pkgsrc/mk/ I encountered a small problem on Solaris
where a file was not altered because the test _SUBST_IS_TEXT_FILE (used
to verify that only text files are changed) failed. /usr/bin/file on
Solaris uses some output strings different from NetBSD's "file" command
and the egrep regular expression didn't catch this output.

I could work around the problem by changing the regular expression for
egrep in but this made me wonder why the test is there at all.

Could anyone explain the reason behind this?

A package creator using knows which files will be changed
and I cannot see the need for a runtime test like this.