cygport: Request a new feature in order to set owner/group names in packaged tarballs.

Lemures Lemniscati
Fri Aug 7 14:33:53 GMT 2020

On Fri, 7 Aug 2020 09:45:34 +0200, Thomas Wolff
> Am 04.08.2020 um 22:34 schrieb Lemures Lemniscati via Cygwin-apps:
> > CYGPORT_TAR_OPTS="--owner=foo --group=bar" cygport baz.cygport package
> >
> > And if you have tar >=1.31, these will also work:
> >
> > CYGPORT_TAR_EXT=".tar.zst" cygport baz.cygport package
> >
> > CYGPORT_TAR_OPTS="--owner=foo --group=bar" CYGPORT_TAR_EXT=".tar.zst" cygport baz.cygport package
> I'd like to suggest, additionally to an explicit option, to set user and group by default, as it is also a privacy issue to spread the packager's user name out to the world in the tar archive.
> In that case I'd use the project name (no version) for the user name and "cygwin" for the group name.

Now the default is --owner=${NAME} --group=cygwin
And we can override like this

CYGPORT_TAR_OPTS="--owner=very --group=happy" cygport aaa.cygport package

On Thu, 06 Aug 2020 20:25:01 +0200, ASSI
> Lemures Lemniscati via Cygwin-apps writes:
> > Do you mean controlling with '-I' or '--use-compress-program='?
> > (And I didn't know these options of tar... oh.)
> No, I was talking about things like XZ_OPT or ZSTD_CLEVEL.

I think XZ_OPT or ZSTD_CLEVEL can be passed through environment.
And this should control xz or zstd..

XZ_OPT="..." cygport foo.cygport package
ZSTD_CLEVEL="..." cygport foo.cygport package

And cygport does not prevent from passing parameter through environment.
Maybe I understand you in a wrong way. Pardon me.

But I've introduced a variable CYGPORT_TAR_FILTER to be passed to tar
with '-I' option which can contain spaces.

For example, it's ok now to invoke like this:

CYGPORT_TAR_FILTER="zstd -T0 --long --19" CYGPORT_TAR_EXT=".tar.zst" cygport aaa.cygport package

Here is the new commit revised.



More information about the Cygwin-apps mailing list