tech-pkg archive

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

Re: Skipping certain files during distfile extraction



On 20.03.2020 20:00, Joerg Sonnenberger wrote:
On Fri, Mar 20, 2020 at 07:08:12PM +0100, Roland Illig wrote:
when the portability check fails for a shell program, one approach is to
patch it, the other is to ignore it.

There's a third way, which is to not extract that file at all. Currently
that would involve setting two variables:

IMO that's the worst of the three approaches.

Why would that approach be the worst? What's the downside?

It also doesn't add
anything compared to removing them in post-extract. It is questionable
complexity at best.

My point is that having a post-extract action involves programming, and
setting a variable is more declarative.

Why is the complexity questionable? I like to express the idea of
"extract this archive, except for these files" in only two lines in a
package Makefile, instead of declaring DISTFILES at the top and
post-extract at the bottom.

Roland


Home | Main Index | Thread Index | Old Index