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

treewide: chown user:group instead of user.group to fix warnings from coreutils 9.1 #171703

Merged
merged 2 commits into from May 6, 2022

Conversation

ivan
Copy link
Member

@ivan ivan commented May 5, 2022

Description of changes

This fixes the following warnings when using coreutils 9.1 (#169046) and activating a new NixOS configuration, and also fixes chown user.group everywhere else in the tree.

activating the configuration...
setting up /etc...
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.messagebus’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
reloading user units for root...
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

cc @Artturin @dasJ @alyssais

@ivan
Copy link
Member Author

ivan commented May 5, 2022

The .md/.xml inconsistency at https://github.com/NixOS/nixpkgs/runs/6313067719?check_suite_focus=true#step:4:110 seems to be someone else's fault, unless I'm missing something.

Copy link
Contributor

@Mindavi Mindavi left a comment

Choose a reason for hiding this comment

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

Diff LGTM

@Artturin
Copy link
Member

Artturin commented May 5, 2022

doesn't need to target staging

@Mindavi
Copy link
Contributor

Mindavi commented May 5, 2022

Reran the manual but still issues, and not seeing them on other PRs. Not sure what's up with that.

ivan added 2 commits May 5, 2022 22:05
…x warnings from coreutils 9.1

activating the configuration...
setting up /etc...
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.messagebus’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
chown: warning: '.' should be ':': ‘root.root’
reloading user units for root...
@ivan ivan changed the base branch from staging to master May 5, 2022 22:06
@ivan
Copy link
Member Author

ivan commented May 5, 2022

@Mindavi I changed this to target master, does that help?

@Mindavi
Copy link
Contributor

Mindavi commented May 6, 2022

Jep, looks good now.

@Mindavi Mindavi merged commit 32bebf4 into NixOS:master May 6, 2022
mkdir -p /etc/tinc/${network}/invitations
chown tinc.${network} /etc/tinc/${network}/invitations
chown tinc:${network} /etc/tinc/${network}/invitations
Copy link
Member

Choose a reason for hiding this comment

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

This is not correct. The group is actually called tinc.${network}.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry about that, I will make a PR

ivan added a commit to ivan/nixpkgs that referenced this pull request May 8, 2022
The user is actually tinc.${network}, as Mic92 points out in
NixOS#171703 (comment)

Sorry, I broke this in NixOS#171703 earlier.

coreutils 9.1 chown does not complain in this case with a valid dotted user.
@ivan ivan mentioned this pull request May 8, 2022
13 tasks
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.

None yet

4 participants