Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669616 - dev-util/android-studio-3.2.0.26.181.5014246 - src_install(): chmod: cannot access '.../image/opt/android-studio/bin/*.py': No such file or directory
Summary: dev-util/android-studio-3.2.0.26.181.5014246 - src_install(): chmod: cannot a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-25 18:39 UTC by Michal Plichta
Modified: 2018-12-10 13:57 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info (emerge.info.log,5.63 KB, text/x-log)
2018-10-25 18:42 UTC, Michal Plichta
Details
corrected ebuild for Android Studio 3.2.0 (android-studio-3.2.0.26.181.5014246-r1.ebuild,3.15 KB, text/plain)
2018-11-21 11:37 UTC, Adam Giergun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Plichta 2018-10-25 18:39:08 UTC
>>> Install android-studio-3.2.0.26.181.5014246 into /var/tmp/portage/dev-util/android-studio-3.2.0.26.181.5014246/image/ category dev-util
chmod: cannot access '/var/tmp/portage/dev-util/android-studio-3.2.0.26.181.5014246/image/opt/android-studio/bin/*.py': No such file or directory
chmod: cannot access '/var/tmp/portage/dev-util/android-studio-3.2.0.26.181.5014246/image/opt/android-studio/bin/*.sh': No such file or directory
 * ERROR: dev-util/android-studio-3.2.0.26.181.5014246::gentoo failed (install phase):
 *   fperms failed
 * 
 * If you need support, post the output of `emerge --info '=dev-util/android-studio-3.2.0.26.181.5014246::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/android-studio-3.2.0.26.181.5014246::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-util:android-studio-3.2.0.26.181.5014246:20181025-174430.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-util/android-studio-3.2.0.26.181.5014246/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/android-studio-3.2.0.26.181.5014246/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-util/android-studio-3.2.0.26.181.5014246/work/android-studio'
 * S: '/var/tmp/portage/dev-util/android-studio-3.2.0.26.181.5014246/work/android-studio'
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =android-studio-3.2.0.26.181.5014246
Comment 1 Michal Plichta 2018-10-25 18:41:42 UTC
# java-config --list-available-vms
The following VMs are available for generation-2:
1)      IcedTea JDK 3.9.0 [icedtea-bin-8]
*)      Oracle JDK 1.8.0.192 [oracle-jdk-bin-1.8]
Comment 2 Michal Plichta 2018-10-25 18:42:24 UTC
Created attachment 553026 [details]
emerge info
Comment 3 Amel Hodzic 2018-11-05 15:28:44 UTC
Interesting; it works for me with icedtea-bin-8 java installed.  I wonder if it would work if the default java is set to that, rather than the oracle java.
Comment 4 Amel Hodzic 2018-11-05 15:31:38 UTC
It might be worth noting as well that the newest version of android-studio is reported to be 3.2.1 as of this writing.  Yet, the latest version available via the ebuild is 3.2.0.
Comment 5 Mateusz Mandera 2018-11-13 14:58:01 UTC
Getting same error. A question was asked about what happens with icedtea-bin-8, which is my setting:

# java-config --list-available-vms
The following VMs are available for generation-2:
1)      IcedTea JDK 3.9.0 [icedtea-8]
*)      IcedTea JDK 3.9.0 [icedtea-bin-8]
Comment 6 Mateusz Mandera 2018-11-13 15:11:59 UTC
It start working after installing the 3.1.4 version first, and then upgrading to 3.2.0.

1. # emerge -av =android-studio-3.1.4.0.173.4907809
2. # emerge -av android-studio

When done in this order, 3.2 builds fine.
Comment 7 Adam Giergun 2018-11-21 11:37:24 UTC
Created attachment 555860 [details]
corrected ebuild for Android Studio 3.2.0

Android Studio 3.2.0
Comment 8 Mateusz Mandera 2018-11-21 20:49:39 UTC
I can confirm the proposed ebuild works for me.
Comment 9 Michal Plichta 2018-11-24 12:48:36 UTC
(In reply to Mateusz Mandera from comment #6)
> It start working after installing the 3.1.4 version first, and then
> upgrading to 3.2.0.
> 
> 1. # emerge -av =android-studio-3.1.4.0.173.4907809
> 2. # emerge -av android-studio
> 
> When done in this order, 3.2 builds fine.

not for me:

>>> Installing (5 of 5) dev-util/android-studio-3.1.4.0.173.4907809::gentoo
 * Package 'dev-util/android-studio-3.1.4.0.173.4907809' has one or more
 * collisions between symlinks and directories, which is explicitly
 * forbidden by PMS section 13.4 (see bug #326685):
 *
 *      /opt/android-studio/jre
Comment 10 Michal Plichta 2018-11-24 12:49:52 UTC
>>> Emerging (5 of 5) dev-util/android-studio-3.1.4.0.173.4907809::gentoo
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * android-studio-ide-173.4907809-linux.zip BLAKE2B SHA512 size ;-) ...                                                                                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking android-studio-ide-173.4907809-linux.zip to /var/tmp/portage/dev-util/android-studio-3.1.4.0.173.4907809/work
>>> Source unpacked in /var/tmp/portage/dev-util/android-studio-3.1.4.0.173.4907809/work
>>> Preparing source in /var/tmp/portage/dev-util/android-studio-3.1.4.0.173.4907809/work/android-studio ...
 * Applying 0001-use-java-home-before-bundled.patch ...                                                                                                                                                                [ ok ]
removed 'commons-logging-1.2.jar'
removed 'log4j.jar'
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-util/android-studio-3.1.4.0.173.4907809/work/android-studio ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-util/android-studio-3.1.4.0.173.4907809/work/android-studio ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-util/android-studio-3.1.4.0.173.4907809

>>> Install android-studio-3.1.4.0.173.4907809 into /var/tmp/portage/dev-util/android-studio-3.1.4.0.173.4907809/image/ category dev-util
>>> Completed installing android-studio-3.1.4.0.173.4907809 into /var/tmp/portage/dev-util/android-studio-3.1.4.0.173.4907809/image/

 * Final size of build directory: 1237728 KiB (1.1 GiB)
 * Final size of installed tree:  1237952 KiB (1.1 GiB)
Comment 11 Larry the Git Cow gentoo-dev 2018-12-09 15:59:52 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd35d61b88bd6ff5b0bbfbf47a9e8b98d5764668

commit fd35d61b88bd6ff5b0bbfbf47a9e8b98d5764668
Author:     Jason Zaman <perfinion@gentoo.org>
AuthorDate: 2018-12-09 15:49:49 +0000
Commit:     Jason Zaman <perfinion@gentoo.org>
CommitDate: 2018-12-09 15:50:55 +0000

    dev-util/android-studio: bump 3.2.1
    
    Bug: https://bugs.gentoo.org/669616
    Signed-off-by: Jason Zaman <perfinion@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-util/android-studio/Manifest                   |   1 +
 .../android-studio-3.2.1.0.181.5056338.ebuild      | 115 +++++++++++++++++++++
 2 files changed, 116 insertions(+)
Comment 12 Jason Zaman gentoo-dev 2018-12-09 16:05:40 UTC
I figured out why, the globbing for fperms was referring to things in /opt on the live system not in /var/tmp/portage. this meant if you were installing android-studio for the first time it'd fail. Should be fixed now. please re-open or file a new bug if there are more issues.

(In reply to Michal Plichta from comment #9)
> not for me:
> 
> >>> Installing (5 of 5) dev-util/android-studio-3.1.4.0.173.4907809::gentoo
>  * Package 'dev-util/android-studio-3.1.4.0.173.4907809' has one or more
>  * collisions between symlinks and directories, which is explicitly
>  * forbidden by PMS section 13.4 (see bug #326685):
>  *
>  *      /opt/android-studio/jre

Did you change things around with your ebuild? /jre hasn't been a dir in years im pretty sure. Try uninstalling completely and make sure nothing is left in /opt/android-studio then install it.
Comment 13 Michal Plichta 2018-12-10 13:57:43 UTC
(In reply to Jason Zaman from comment #12)
> I figured out why, the globbing for fperms was referring to things in /opt
> on the live system not in /var/tmp/portage. this meant if you were
> installing android-studio for the first time it'd fail. Should be fixed now.
> please re-open or file a new bug if there are more issues.
> 
> (In reply to Michal Plichta from comment #9)
> > not for me:
> > 
> > >>> Installing (5 of 5) dev-util/android-studio-3.1.4.0.173.4907809::gentoo
> >  * Package 'dev-util/android-studio-3.1.4.0.173.4907809' has one or more
> >  * collisions between symlinks and directories, which is explicitly
> >  * forbidden by PMS section 13.4 (see bug #326685):
> >  *
> >  *      /opt/android-studio/jre
> 
> Did you change things around with your ebuild? /jre hasn't been a dir in
> years im pretty sure. Try uninstalling completely and make sure nothing is
> left in /opt/android-studio then install it.

It was my fault I had installed from bin package in /opt and then portage complain. No more issue.