diff options
author | rillig <rillig> | 2016-01-31 17:27:41 +0000 |
---|---|---|
committer | rillig <rillig> | 2016-01-31 17:27:41 +0000 |
commit | c00f8c3897a69290eb43187a0f70a30e1dff1607 (patch) | |
tree | 2832887a601f9d4b5e548053ac1adc615d58d29e /net/samba4 | |
parent | 7d7ba809b5ba37c9dfe2646bf385dc3f6815d049 (diff) | |
download | pkgsrc-c00f8c3897a69290eb43187a0f70a30e1dff1607.tar.gz |
Fixed subst.mk not to corrupt files
Up to now, using subst.mk may have led to file corruption during active
package development. This happened when a sed(1) command had a syntax
error, in which case the whole sed(1) command was terminated, leaving an
empty original file behind.
This commit changes that behavior by applying the sed(1) commands to
the original file and saving the result in a temporary file. Only
after that succeeded is the original file overwritten.
During this rewrite, SUBST_POSTCMD has been removed, since it was
only used in one place (mk/wrapper), and since it relied on the exact
sequence of the internal commands. No package in either main pkgsrc
or pkgsrc-wip uses this variable right now.
Diffstat (limited to 'net/samba4')
0 files changed, 0 insertions, 0 deletions