Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow searching $TZDIR for timezone data #1772

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

saschagrunert
Copy link
Member

glibc supports the environment variable as additional search path. We now add this to the config validation to allow runtimes to search that path as well.

glibc supports the environment variable as additional search path. We
now add this to the config validation to allow runtimes to search that
path as well.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
saschagrunert added a commit to saschagrunert/podman that referenced this pull request Dec 20, 2023
glibc supports the environment variable as additional search path, means
we allow to override the `/usr/share/zoneinfo` path by setting the
variable.

Analogous change to containers/common#1772

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
saschagrunert added a commit to saschagrunert/podman that referenced this pull request Dec 20, 2023
glibc supports the environment variable as additional search path, means
we allow to override the `/usr/share/zoneinfo` path by setting the
variable.

Analogous change to containers/common#1772

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
saschagrunert added a commit to saschagrunert/podman that referenced this pull request Dec 20, 2023
glibc supports the environment variable as additional search path, means
we allow to override the `/usr/share/zoneinfo` path by setting the
variable.

Analogous change to containers/common#1772

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
saschagrunert added a commit to saschagrunert/podman that referenced this pull request Dec 20, 2023
glibc supports the environment variable as additional search path, means
we allow to override the `/usr/share/zoneinfo` path by setting the
variable.

Analogous change to containers/common#1772

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@rhatdan
Copy link
Member

rhatdan commented Dec 20, 2023

/approve
LGTM
@giuseppe @baude @mheon @lsm5 @ashley-cui @umohnani8 @nalind PTAL

Copy link
Contributor

openshift-ci bot commented Dec 20, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rhatdan, saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Member

@ashley-cui ashley-cui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Dec 20, 2023
@openshift-merge-bot openshift-merge-bot bot merged commit a328c8c into containers:main Dec 20, 2023
7 checks passed
@edsantiago
Copy link
Member

Shit. I should've blocked this.

@saschagrunert I trust you'll submit a new PR?

@saschagrunert saschagrunert deleted the tzdir branch December 21, 2023 08:09
saschagrunert added a commit to saschagrunert/common that referenced this pull request Dec 21, 2023
The TZDIR environment variable override the lookup paths and does not
append them. This patch fixes that behavior and is a follow-up on:

containers#1772

Ref: containers/podman#21063 (comment)

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
saschagrunert added a commit to saschagrunert/common that referenced this pull request Dec 21, 2023
The TZDIR environment variable override the lookup paths and does not
append them. This patch fixes that behavior and is a follow-up on:

containers#1772

Ref: containers/podman#21063 (comment)

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@saschagrunert
Copy link
Member Author

@edsantiago sure: #1774

saschagrunert added a commit to saschagrunert/common that referenced this pull request Dec 21, 2023
The TZDIR environment variable override the lookup paths and does not
append them. This patch fixes that behavior and is a follow-up on:

containers#1772

Ref: containers/podman#21063 (comment)

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants