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

doc: Document a workaround for using an FQDN as hostname #100151

Merged
merged 1 commit into from Oct 10, 2020

Conversation

@primeos
Copy link
Member

@primeos primeos commented Oct 10, 2020

Since #76542 this workaround is required to use a FQDN as hostname. See
#94011 and #94022 for the related discussion. Due to some
potential/unresolved issues (legacy software, backward compatibility,
etc.) we're documenting this workaround 0.

Status

nixos-rebuild works but I couldn't test the NixOS manual due to:

error: a 'aarch64-linux' with features {} is required to build '/nix/store/1pppcxbi7m74j52fziprdx5q6mp1n8rs-options-docbook.xml.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}

Either there must be a regression or nix-build nixos/release.nix -A manual isn't the correct command anymore.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Since #76542 this workaround is required to use a FQDN as hostname. See
#94011 and #94022 for the related discussion. Due to some
potential/unresolved issues (legacy software, backward compatibility,
etc.) we're documenting this workaround [0].

[0]: #94011 (comment)
@jonringer
Copy link
Contributor

@jonringer jonringer commented Oct 10, 2020

for the nixos manual, you need to specificy an architecture

nix-build nixos/release.nix -A manual.x86_64-linux

Copy link
Contributor

@jonringer jonringer left a comment

diff LGTM

manual builds fine

nix-build ./nixpkgs/nixos/release.nix -A manual.x86_64-linux
@jonringer jonringer merged commit 4a600af into NixOS:master Oct 10, 2020
17 checks passed
17 checks passed
@github-actions
tests tests
Details
@github-actions
action
Details
@ofborg
Evaluation Performance Report Evaluator Performance Report
Details
@github-actions
Wait for ofborg
Details
@ofborg
grahamcofborg-eval ^.^!
Details
@ofborg
grahamcofborg-eval-check-maintainers matching changed paths to changed attrs...
Details
@ofborg
grahamcofborg-eval-check-meta config.nix: checkMeta = true
Details
@ofborg
grahamcofborg-eval-darwin nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="32e9ae5"; rev="32e9ae5a18283940a29c1f0daeec0e30db16762e"; } ./pkgs/t
Details
@ofborg
grahamcofborg-eval-lib-tests nix-build --arg pkgs import ./. {} ./lib/tests/release.nix
Details
@ofborg
grahamcofborg-eval-nixos nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="32e9ae5"; rev="32e9ae5a18283940a29c1f0daeec0e30db16762e"; } ./nixos/
Details
@ofborg
grahamcofborg-eval-nixos-manual nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="32e9ae5"; rev="32e9ae5a18283940a29c1f0daeec0e30db16762e"; } ./nixos/
Details
@ofborg
grahamcofborg-eval-nixos-options nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="32e9ae5"; rev="32e9ae5a18283940a29c1f0daeec0e30db16762e"; } ./nixos/
Details
@ofborg
grahamcofborg-eval-nixpkgs-manual nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="32e9ae5"; rev="32e9ae5a18283940a29c1f0daeec0e30db16762e"; } ./pkgs/t
Details
@ofborg
grahamcofborg-eval-nixpkgs-tarball nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="32e9ae5"; rev="32e9ae5a18283940a29c1f0daeec0e30db16762e"; } ./pkgs/t
Details
@ofborg
grahamcofborg-eval-nixpkgs-unstable-jobset nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="32e9ae5"; rev="32e9ae5a18283940a29c1f0daeec0e30db16762e"; } ./pkgs/t
Details
@ofborg
grahamcofborg-eval-package-list nix-env -qa --json --file .
Details
@ofborg
grahamcofborg-eval-package-list-no-aliases nix-env -qa --json --file . --arg config { allowAliases = false; }
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants