public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Christian Franke <Christian.Franke@t-online.de>
To: cygwin-apps@cygwin.com
Subject: Re: [PATCH cygport] Add more checks of SOURCE_DATE_EPOCH
Date: Sun, 10 Mar 2024 16:12:36 +0100	[thread overview]
Message-ID: <e9319a23-ec56-c8b0-32cc-e2157a97a6b2@t-online.de> (raw)
In-Reply-To: <4e277f6b-882d-4aaa-bbed-bb505dec7deb@dronecode.org.uk>

Jon Turney wrote:
> On 26/02/2024 19:53, Christian Franke via Cygwin-apps wrote:
>>
>>> Would it not make more sense to just re-export it if set?
>>
>> If the cygport file decides to set but not export it, there is 
>> possibly no need to do it. An example is smartmontools.cygport which 
>> passes the unexported variable as a parameter to configure.
>
> Ok, but exporting it is harmless there, right?

I'm not aware of any corner cases where exporting would break something. 
But leaving the decision to the user would allow to handle such cases. 
It would also allow to check whether it makes a difference and if yes, 
which files are affected.


>
>
>>> (so that commands like "SOURCE_DATE_EPOCH=something cygport foo" 
>>> work as expected?)
>>>
>>
>> Would make no difference as the 'VAR=val CMD...' syntax already 
>> exports the variable to the CMD:
>>
>> $ unset FOO; FOO=bar sh -c 'sh -c "sh -c printenv\ FOO"'
>> bar
>>
> Ah, right.
>
> So you seem to be saying that the only situation where it's set but 
> not exported is where it's set in the cygport.
>
> So we're just making people (need to remember to) explicitly write 
> "export SOURCE_DATE_EPOCH" in their cygport where needed?

Exactly.


      reply	other threads:[~2024-03-10 15:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-16 12:29 Christian Franke
2024-02-26 19:30 ` Jon Turney
2024-02-26 19:53   ` Christian Franke
2024-03-10 13:50     ` Jon Turney
2024-03-10 15:12       ` Christian Franke [this message]

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=e9319a23-ec56-c8b0-32cc-e2157a97a6b2@t-online.de \
    --to=christian.franke@t-online.de \
    --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).