Skip to content

utillinux: rename to util-linux#104776

Merged
grahamc merged 1 commit intoNixOS:masterfrom
grahamc:utillinux
Nov 24, 2020
Merged

utillinux: rename to util-linux#104776
grahamc merged 1 commit intoNixOS:masterfrom
grahamc:utillinux

Conversation

@grahamc
Copy link
Member

@grahamc grahamc commented Nov 24, 2020

Motivation for this change

Having the pname not match the attribute name in this case, when the pname is the project's actual name causes me quite a lot of headache.

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.

Copy link
Contributor

@makefu makefu left a comment

Choose a reason for hiding this comment

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

Can confirm, i fell over a trace when upgrading to 20.09 which stated i should use util-linux package instead

@grahamc
Copy link
Member Author

grahamc commented Nov 24, 2020

I'm not sure this large patch should cleanup whitespace for the files which are already messy. Opinions?

@SuperSandro2000
Copy link
Member

I'm not sure this large patch should cleanup whitespace for the files which are already messy. Opinions?

If we keep the changes to minimum we maybe can skip staging and go straight to master. With whitespace fixes we could cause a lot of rebuilds if they are in the wrong places.

Copy link
Member

Choose a reason for hiding this comment

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

👍

@ofborg ofborg bot added 6.topic: haskell General-purpose, statically typed, purely functional programming language 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: printing Drivers, CUPS & Co. 6.topic: python Python is a high-level, general-purpose programming language. 6.topic: qt/kde Object-oriented framework for GUI creation 6.topic: ruby A dynamic, open source programming language with a focus on simplicity and productivity. 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` labels Nov 24, 2020
Copy link
Member

@vikanezrimaya vikanezrimaya left a comment

Choose a reason for hiding this comment

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

I love this. utillinux made me stumble first time I explicitly requested the package somewhere in my configuration, because I totally expected it to be util-linux, since dashes were always OK in attribute sets (unlike e.g. Python or JS where you could get in trouble with that kind of syntax)

@7c6f434c
Copy link
Member

7c6f434c commented Nov 24, 2020 via email

@grahamc
Copy link
Member Author

grahamc commented Nov 24, 2020

Just pushed a fixup addressing:

getting status of '/var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/packet-spot-eval-4/pkgs/os-specific/linux/pam_mount/insert_util-linux_path_hooks.patch': No such file or directory

@ofborg ofborg bot added 8.has: clean-up This PR removes packages or removes other cruft 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Nov 24, 2020
@grahamc grahamc marked this pull request as ready for review November 24, 2020 19:29
Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

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

looks like rebuilds are from changing comments inside of code blocks

https://github.com/NixOS/nixpkgs/pull/104776
2 packages blacklisted:
tests.nixos-functions.nixos-test tests.nixos-functions.nixosTest-test

4 packages built:
lxcfs unixtools.util-linux util-linux util-linuxMinimal

Copy link
Member

@roberth roberth left a comment

Choose a reason for hiding this comment

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

💯

@grahamc
Copy link
Member Author

grahamc commented Nov 24, 2020

alleyoop

@ElvishJerricco
Copy link
Contributor

Hm. Wish this would have included aliases for the other utillinux variants e.g. utillinuxMinimal.

@grahamc
Copy link
Member Author

grahamc commented Jan 9, 2021 via email

sternenseemann added a commit that referenced this pull request Jun 10, 2021
These attribute names were converted into aliases in the following
changes:

* 62733b3
* #104776

cabal2nix-unstable has been updated to be aware of these changes in
7a9080d, so these aliases should no
longer cause issues when evaluating with `allowAliases = false`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: haskell General-purpose, statically typed, purely functional programming language 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: printing Drivers, CUPS & Co. 6.topic: python Python is a high-level, general-purpose programming language. 6.topic: qt/kde Object-oriented framework for GUI creation 6.topic: ruby A dynamic, open source programming language with a focus on simplicity and productivity. 8.has: clean-up This PR removes packages or removes other cruft 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.