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: Broken symlink while trying to build #380374

Closed
3 tasks done
Lokito23 opened this issue Feb 8, 2025 · 2 comments · Fixed by #380309
Closed
3 tasks done

ciscoPacketTracer8: Broken symlink while trying to build #380374

Lokito23 opened this issue Feb 8, 2025 · 2 comments · Fixed by #380309
Labels
0.kind: bug Something is broken

Comments

@Lokito23
Copy link

Lokito23 commented Feb 8, 2025

Nixpkgs version

  • Unstable (25.05)

Describe the bug

While trying to update my system, having added the Cisco Packet Tracer deb file on the nix store (using nix-store --add-fixed sha256 CiscoPacketTracer822_amd64_signed.deb) the build fails with the error noBrokenSymlinks.

Steps to reproduce

  1. Add CiscoPacketTracer822_amd64_signed.deb to the store using nix-store --add-fixed sha256 CiscoPacketTracer822_amd64_signed.deb
  2. Attempt to rebuild the configuration
  3. While rebuilding the system, the error will appear and cancel the build.

Expected behaviour

Rebuild the system

Screenshots

No response

Relevant log output

Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
no Makefile or custom buildPhase, doing nothing
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Copying '/nix/store/zfxgnj7b91b2j7bwk0c8sgwl1cjvsh3g-cisco-pt8.desktop.desktop/share/applications/cisco-pt8.desktop>
Running phase: fixupPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
shrinking RPATHs of ELF executables and libraries in /nix/store/8f2l5by7y2fpz3yd0wkwbkq86n0bvhm0-ciscoPacketTracer8>
checking for references to /build/ in /nix/store/8f2l5by7y2fpz3yd0wkwbkq86n0bvhm0-ciscoPacketTracer8-8.2.2...
patching script interpreter paths in /nix/store/8f2l5by7y2fpz3yd0wkwbkq86n0bvhm0-ciscoPacketTracer8-8.2.2
ERROR: noBrokenSymlinks: the symlink /nix/store/8f2l5by7y2fpz3yd0wkwbkq86n0bvhm0-ciscoPacketTracer8-8.2.2/usr point>
ERROR: noBrokenSymlinks: found 1 dangling symlinks and 0 reflexive symlinks

Additional context

The error message after the error is the following:

error: builder for '/nix/store/r8fbmadcbvbx1ggp3y0h00z0n81f4zdv-ciscoPacketTracer8-8.2.2.drv' failed with exit code 1;
       last 14 log lines:
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > no configure script, doing nothing
       > Running phase: buildPhase
       > no Makefile or custom buildPhase, doing nothing
       > Running phase: installPhase
       > Copying '/nix/store/zfxgnj7b91b2j7bwk0c8sgwl1cjvsh3g-cisco-pt8.desktop.desktop/share/applications/cisco-pt8.desktop.desktop' into '/nix/store/8f2l5by7y2fpz3yd0wkwbkq86n0bvhm0-ciscoPacketTracer8-8.2.2/share/applications'
       > Running phase: fixupPhase
       > shrinking RPATHs of ELF executables and libraries in /nix/store/8f2l5by7y2fpz3yd0wkwbkq86n0bvhm0-ciscoPacketTracer8-8.2.2
       > checking for references to /build/ in /nix/store/8f2l5by7y2fpz3yd0wkwbkq86n0bvhm0-ciscoPacketTracer8-8.2.2...
       > patching script interpreter paths in /nix/store/8f2l5by7y2fpz3yd0wkwbkq86n0bvhm0-ciscoPacketTracer8-8.2.2
       > ERROR: noBrokenSymlinks: the symlink /nix/store/8f2l5by7y2fpz3yd0wkwbkq86n0bvhm0-ciscoPacketTracer8-8.2.2/usr points to a missing target /nix/store/x0rjss8zwlsh5yjw0wlyw9wxc4ashx01-ciscoPacketTracer8-fhs-env/usr
       > ERROR: noBrokenSymlinks: found 1 dangling symlinks and 0 reflexive symlinks
       For full logs, run 'nix log /nix/store/r8fbmadcbvbx1ggp3y0h00z0n81f4zdv-ciscoPacketTracer8-8.2.2.drv'.
error: 1 dependencies of derivation '/nix/store/kz1i5cmgdz0ix9pi0xvncmps0sn62fg3-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/78f06r8jwf0s9zcr1k805gjprnzkg4xg-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/q7nmw2khxvwnhxmml7na91gchwbbwj78-unit-home-manager-airan.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/shnfqsd84b4q5d89xhgvx48madyra67h-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/g491cwvrflzzjigg5rqz3is43nh8m865-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jxh678jqmv2l4irv4hpw6ywyv0pavsgz-nixos-system-LinBook-25.05.20250207.a3eaf5e.drv' failed to build

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.13.0, NixOS, 25.05 (Warbler), 25.05.20250201.3a22805
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.12
  • nixpkgs: /nix/store/hjb1rqv2mfs5ny47amj2gsc8xk05x5g6-source

Notify maintainers

@gepbird

Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@Lokito23 Lokito23 added the 0.kind: bug Something is broken label Feb 8, 2025
@gepbird
Copy link
Contributor

gepbird commented Feb 8, 2025

#380309 fixes this

Until that's merged, you can include that PR in your flake, or use this workaround:

  environment.systemPackages = with pkgs; [
    (ciscoPacketTracer8.overrideAttrs {
      dontCheckForBrokenSymlinks = true;
     })
  ];

@Lokito23
Copy link
Author

Lokito23 commented Feb 8, 2025

#380309 fixes this

Until that's merged, you can include that PR in your flake, or use this workaround:

environment.systemPackages = with pkgs; [
(ciscoPacketTracer8.overrideAttrs {
dontCheckForBrokenSymlinks = true;
})
];

Can confirm the workaround works, unsure about if adding the PR would (I don't know how to add the PR to the flake).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants