Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-6265

call `eselect rust` in rust pkg_postinst()

    • Icon: Bug Bug
    • Resolution: Fixed Earlier
    • Icon: Normal Normal
    • None
    • None

      cargo is now provided by rust itself. Unfortunately it's version-named. For rustc there's a symlink:

       

      $ ls -l /usr/bin/rust*
      lrwxrwxrwx 1 root root      25 Feb 25 14:22 /usr/bin/rust-gdb -> //usr/bin/rust-gdb-1.32.0
      -rwxr-xr-x 1 root root    1062 Feb 25 14:22 /usr/bin/rust-gdb-1.32.0
      lrwxrwxrwx 1 root root      26 Feb 25 14:22 /usr/bin/rust-lldb -> //usr/bin/rust-lldb-1.32.0
      -rwxr-xr-x 1 root root    1702 Feb 25 14:22 /usr/bin/rust-lldb-1.32.0
      lrwxrwxrwx 1 root root      22 Feb 25 14:22 /usr/bin/rustc -> //usr/bin/rustc-1.32.0
      -rwxr-xr-x 1 root root   14048 Feb 25 14:22 /usr/bin/rustc-1.32.0
      lrwxrwxrwx 1 root root      24 Feb 25 14:22 /usr/bin/rustdoc -> //usr/bin/rustdoc-1.32.0
      -rwxr-xr-x 1 root root 4724928 Feb 25 14:22 /usr/bin/rustdoc-1.32.0 

       

      You can see that symlinks are a bit odd (would like them to have single leading slash not double), but they are in place which is good. And there are no same symlinks for cargo:

       

      $ ls -l /usr/bin/cargo*
      -rwxr-xr-x 1 root root 9918264 Feb 25 14:22 /usr/bin/cargo-1.32.0
      

       

      It was OK till recent update though.

            Unassigned Unassigned
            ixti ixti
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: