tech-pkg archive

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

Re: Making mk/ more robust

I like it.

On Sat, Jan 30, 2016 at 1:52 PM, Roland Illig <> wrote:
> Hi,
> currently, the SUBST framework in mk/ may lead to file
> corruption during active package development. This happens when a sed(1)
> command has a syntax error, so that the whole command is terminated. In
> such a case, the original file becomes empty.
> The appended patch fixes that 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.
> The one tricky part is the SUBST_POSTCMD, which relies on the exact
> procedure from before the patch. But since it is only used in exactly
> one place (mk/wrapper), not by any packages in either main pkgsrc or
> pkgsrc-wip, I would like to remove that variable.
> Thoughts?
> Roland

The first essential in chemistry is that you should perform practical
work and conduct experiments, for he who performs not practical work
nor makes experiments will never attain the least degree of mastery.
        -- Abu Musa Jabir ibn Hayyan (721-815)

Home | Main Index | Thread Index | Old Index