Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 737234 - media-gfx/asymptote-2.67 fails in the install phase with USE="vim-syntax"
Summary: media-gfx/asymptote-2.67 fails in the install phase with USE="vim-syntax"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-15 09:12 UTC by Stefano Crocco
Modified: 2020-08-16 12:06 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info,6.49 KB, text/plain)
2020-08-15 11:28 UTC, Stefano Crocco
Details
Build log (build.log,125.44 KB, text/x-log)
2020-08-15 11:32 UTC, Stefano Crocco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano Crocco 2020-08-15 09:12:26 UTC
When building media-gfx/asymptote-2.67 USE="vim-syntax", the install phase fails with the following error message:
>>> Install media-gfx/asymptote-2.67 into /var/tmp/portage/media-gfx/asymptote-2.67/image
Traceback (most recent call last):
  File "/usr/lib/portage/python3.7/doins.py", line 594, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/lib/portage/python3.7/doins.py", line 585, in main
    os.path.dirname(source)):
  File "/usr/lib/portage/python3.7/doins.py", line 434, in _doins
    return install_runner.install_file(source, os.path.dirname(dest))
  File "/usr/lib/portage/python3.7/doins.py", line 370, in install_file
    return self._ins_runner.run(source, dest_dir)
  File "/usr/lib/portage/python3.7/doins.py", line 179, in run
    sstat = os.stat(source)
FileNotFoundError: [Errno 2] No such file or directory: b'/var/tmp/portage/media-gfx/asymptote-2.67/files/asy-filetype.vim'
 * ERROR: media-gfx/asymptote-2.67::gentoo failed (install phase):
 *   doins failed

The error seems to come from line 190 in the ebuild:

doins "${FILESDIR}"/asy-filetype.vim

because asy-filetype.vim doesn't exist in $PORTAGEDIR/media-gfx/asymptote/files. I believe that the file which should be installed is base/asy_filetype.vim in the source package. Replacing line 190 of the ebuild with 

doins "${WORKDIR}"/${PF}/base/asy_filetype.vim

solves the problem.
Comment 1 Jonas Stein gentoo-dev 2020-08-15 10:30:02 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. That is why I ask you to 
* attach the logs and 
* paste the emerge info 
as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Comment 2 Stefano Crocco 2020-08-15 11:28:23 UTC
Created attachment 654768 [details]
emerge --info
Comment 3 Stefano Crocco 2020-08-15 11:32:25 UTC
Created attachment 654782 [details]
Build log
Comment 4 Andrey Grozin gentoo-dev 2020-08-16 11:32:23 UTC
(In reply to Stefano Crocco from comment #0)
> I believe that the file which should
> be installed is base/asy_filetype.vim in the source package.
You are right, this was a typo. Fixed.

Is /usr/share/vim/vimfiles/ftdetect the correct place to install asy_filetype.vim? I don't use vim and cannot check.
Comment 5 Larry the Git Cow gentoo-dev 2020-08-16 11:38:30 UTC
The bug has been closed via the following commit(s):

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

commit 4259517049cab11f21a9d34859f4b9e7ceadc51e
Author:     Andrey Grozin <grozin@gentoo.org>
AuthorDate: 2020-08-16 11:37:55 +0000
Commit:     Andrey Grozin <grozin@gentoo.org>
CommitDate: 2020-08-16 11:37:55 +0000

    media-gfx/asymptote: fix typos
    
    Closes: https://bugs.gentoo.org/737234
    Closes: https://bugs.gentoo.org/737278
    Package-Manager: Portage-3.0.2, Repoman-2.3.23
    Signed-off-by: Andrey Grozin <grozin@gentoo.org>

 media-gfx/asymptote/asymptote-2.67.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 6 Stefano Crocco 2020-08-16 12:06:45 UTC
(In reply to Andrey Grozin from comment #4)
> (In reply to Stefano Crocco from comment #0)
> > I believe that the file which should
> > be installed is base/asy_filetype.vim in the source package.
> You are right, this was a typo. Fixed.
> 
> Is /usr/share/vim/vimfiles/ftdetect the correct place to install
> asy_filetype.vim? I don't use vim and cannot check.

Yes, it is