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

ciscoPacketTracer8: fix build with noBrokenSymlinks #380309

Merged

Conversation

gepbird
Copy link
Contributor

@gepbird gepbird commented Feb 8, 2025

Fixes #380374

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 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
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1 10.rebuild-linux: 1-10 labels Feb 8, 2025
@gepbird gepbird changed the title ciscoPacketTrace8: fix build with noBrokenSymlinks ciscoPacketTracer8: fix build with noBrokenSymlinks Feb 8, 2025
@gepbird gepbird force-pushed the cisco-packet-tracer-8-fix-build branch from 7028026 to ed1ddba Compare February 8, 2025 14:13
@wolfgangwalther
Copy link
Contributor

Could you give a few words of explanation why this is the right change to make?

@gepbird
Copy link
Contributor Author

gepbird commented Feb 9, 2025

Could you give a few words of explanation why this is the right change to make?

It fixes the build failure caused by #370750. See #380279 for a similar issue.

I tested the package and it works. Either ${fhs-env}/usr never existed or it was removed in some update or refactor.

@wolfgangwalther
Copy link
Contributor

Sorry, I should have been more precise.

It fixes the build failure caused by #370750.

Yes, I understand that part.

I tested the package and it works.

I assumed that, yes.

Either ${fhs-env}/usr never existed or it was removed in some update or refactor.

This is what we should get more info on. I'm not happy with "it probably was that way". Let's find out, if we can. We should have at least a reasonable amount of understanding why this happens and why this is the right fix.

Copy link
Contributor

@wolfgangwalther wolfgangwalther left a comment

Choose a reason for hiding this comment

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

Either ${fhs-env}/usr never existed or it was removed in some update or refactor.

So this seems to have been introduced in #356289, which claims:

This PR is mostly a revert of 2920b6f with additional refactors and the addition of wayland for newer versions of packet tracer.

It seems like the link was not created before that commit, so it seems to be newly-introduced in #356289.

Since then, there was only one commit for that file, which very likely didn't change anything.

So my best guess would be: It was not required from the beginning when it was introduced.

@wolfgangwalther wolfgangwalther merged commit 8937a85 into NixOS:master Feb 9, 2025
27 checks passed
@gepbird
Copy link
Contributor Author

gepbird commented Feb 9, 2025

Yes, I mistakenly added it, maybe because I tried to include the desktop file, then just used the declerative desktopItems attr, not entirely sure.

@gepbird gepbird deleted the cisco-packet-tracer-8-fix-build branch February 9, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ciscoPacketTracer8: Broken symlink while trying to build
2 participants