public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Lemures Lemniscati <lemures.lemniscati@gmail.com>
To: cygwin-apps@cygwin.com
Subject: Re: cygport: Request a new feature in order to set owner/group names in packaged tarballs.
Date: Fri, 07 Aug 2020 23:33:53 +0900	[thread overview]
Message-ID: <20200807233351.4B7D.50F79699@gmail.com> (raw)
In-Reply-To: <f5811477-8edd-15df-f15c-a857aadbfb30@towo.net>

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.
https://github.com/cygwin-lem/cygport/commit/7155f24df1d6058c5c5554d28b9eeb8b2b9f1a16




Regards,

Lem


  reply	other threads:[~2020-08-07 14:34 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200803205512.E3F1.50F79699@gmail.com>
     [not found] ` <87d047r0ro.fsf@Rainer.invalid>
2020-08-04 12:54   ` Lemures Lemniscati
2020-08-04 13:46     ` Thomas Wolff
2020-08-04 20:34       ` Lemures Lemniscati
2020-08-05 18:31         ` ASSI
2020-08-05 21:21           ` Lemures Lemniscati
2020-08-06 18:25             ` ASSI
2020-08-07  7:45         ` Thomas Wolff
2020-08-07 14:33           ` Lemures Lemniscati [this message]
2020-08-07 19:09             ` ASSI
2020-08-08  0:43               ` Lemures Lemniscati
2020-08-08  4:32                 ` ASSI
2020-08-08 11:14                   ` Lemures Lemniscati
2020-08-10  3:42                     ` Lemures Lemniscati
2020-08-10 19:51                       ` Achim Gratz
2020-08-10 21:45                         ` Lemures Lemniscati
2020-08-04 17:02     ` ASSI
2020-08-04 20:49       ` Lemures Lemniscati
2020-08-05 19:34         ` Jon Turney
2020-08-05 21:50           ` Lemures Lemniscati
2020-08-06 17:13             ` Jon Turney
2020-08-07 14:43               ` Lemures Lemniscati

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200807233351.4B7D.50F79699@gmail.com \
    --to=lemures.lemniscati@gmail.com \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).