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

Latest dev-util/android-studio-2023.1.1.27 fails to install

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

      Build log:

       * Package:    dev-util/android-studio-2023.1.1.27
       * Repository: dev-kit
       * USE:        amd64 elibc_glibc kernel_linux userland_GNU
       * FEATURES:   network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox
      >>> Unpacking source...
      >>> Unpacking android-studio-2023.1.1.27-linux.tar.gz to /var/tmp/portage/dev-util/android-studio-2023.1.1.27/work
      >>> Source unpacked in /var/tmp/portage/dev-util/android-studio-2023.1.1.27/work
      >>> Preparing source in /var/tmp/portage/dev-util/android-studio-2023.1.1.27/work/android-studio ...
      >>> Source prepared.
      >>> Configuring source in /var/tmp/portage/dev-util/android-studio-2023.1.1.27/work/android-studio ...
      >>> Source configured.
      >>> Compiling source in /var/tmp/portage/dev-util/android-studio-2023.1.1.27/work/android-studio ...
      >>> Source compiled.
      >>> Test phase [not enabled]: dev-util/android-studio-2023.1.1.27
      
      >>> Install dev-util/android-studio-2023.1.1.27 into /var/tmp/portage/dev-util/android-studio-2023.1.1.27/image
      chmod: missing operand after ‘755’
      Try 'chmod --help' for more information.
       * ERROR: dev-util/android-studio-2023.1.1.27::dev-kit failed (install phase):
       *   fperms failed
       * 
       * If you need support, post the output of `emerge --info '=dev-util/android-studio-2023.1.1.27::dev-kit'`,
       * the complete build log and the output of `emerge -pqv '=dev-util/android-studio-2023.1.1.27::dev-kit'`.
       * The complete build log is located at '/var/tmp/portage/dev-util/android-studio-2023.1.1.27/temp/build.log'.
       * The ebuild environment file is located at '/var/tmp/portage/dev-util/android-studio-2023.1.1.27/temp/environment'.
       * Working directory: '/var/tmp/portage/dev-util/android-studio-2023.1.1.27/work/android-studio'
       * S: '/var/tmp/portage/dev-util/android-studio-2023.1.1.27/work/android-studio'
      

      This happens because a file is missing. I reworked the fperms operation so that it doesn't run it on empty file paths. Diff:

      
      diff --git a/dev-kit/curated/dev-util/android-studio/templates/android-studio.tmpl b/dev-kit/curated/dev-util/android-studio/templates/android-studio.tmpl
      index 1b325b914..27da25001 100644
      --- a/dev-kit/curated/dev-util/android-studio/templates/android-studio.tmpl
      +++ b/dev-kit/curated/dev-util/android-studio/templates/android-studio.tmpl
      @@ -93,7 +93,9 @@ src_install() {
              # These have been moving around on us:
              for fn in clang-tidy clangd; do
                      fn_path=$(cd "${D}"; find ."${dir}/plugins/c-clangd/bin/clang/linux" -name $fn)
      -               fperms 755 ${fn_path#.}
      +               if [[ "${fn_path#.}" != "" ]]; then
      +                       fperms 755 ${fn_path#.}
      +               fi
              done
              fperms -R 755 "${dir}"/plugins/terminal/{,fish}
      

      I have the changes ready for inclusion

            madman10k madman10k
            madman10k madman10k
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: