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

Fixes for resolv.conf detection and specification #1547

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dvershinin
Copy link

@dvershinin dvershinin commented Mar 31, 2021

This PR fixes #1546 and also allows to unconditionally specify location of /etc/resolv.conf, thus avoiding the file check for environments that might not yet have /etc/resolv.conf created; as well as allowing Tengine to have its own app-specific resolv.conf location customized.

E.g.

./configure --with-resolve-file=/etc/resolv.conf

This disables file check during built and unconditionally uses the specified filename.

Summary example:

  ...
  nginx http fastcgi temporary files: "fastcgi_temp"
  nginx http uwsgi temporary files: "uwsgi_temp"
  nginx http scgi temporary files: "scgi_temp"
  resolv.conf file: "/etc/resolv.conf"

When --with-resolve-file is unspecified, /etc/resolv.conf is checked for existence, as prior to the change.

@CLAassistant
Copy link

CLAassistant commented Mar 31, 2021

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure to build when /etc/resolv.conf is missing (e.g. with Mock)
2 participants