Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686656 - dev-lang/rust-1.35.0 file collisions on installation if built with -system-llvm
Summary: dev-lang/rust-1.35.0 file collisions on installation if built with -system-llvm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
: 686772 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-05-24 10:19 UTC by Georgy Yakovlev
Modified: 2019-05-26 16:44 UTC (History)
3 users (show)

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


Attachments
emerge --info (emergeinfo.txt,5.97 KB, text/plain)
2019-05-24 22:45 UTC, Gregory Beauregard
Details
post-install message (postinst.txt,200.25 KB, text/plain)
2019-05-24 22:46 UTC, Gregory Beauregard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Georgy Yakovlev archtester gentoo-dev 2019-05-24 10:19:14 UTC
funny, it copies llvm files to  destdir with absolute path

llvm build dir ends up in /tmp/portage/dev-lang/rust-1.35.0/image/tmp/portage/dev-lang/rust-1.35.0/work/rustc-1.35.0-src/build/x86_64-unknown-linux-gnu/llvm/

don't panic, you don't have to rebuild all over. just remove 

rm -r /tmp/portage/dev-lang/rust-1.35.0/image/tmp

and ebuild rust-1.35.0.ebuild merge

or build with system-llvm
Comment 1 Gregory Beauregard 2019-05-24 22:45:46 UTC
Created attachment 577720 [details]
emerge --info
Comment 2 Gregory Beauregard 2019-05-24 22:46:57 UTC
Created attachment 577722 [details]
post-install message

Attached emerge --info and post-install message. I don't have anything in the /tmp/portage directory mentioned by Georgy.
Comment 3 Gregory Beauregard 2019-05-24 22:49:30 UTC
(In reply to Georgy Yakovlev from comment #0)
> funny, it copies llvm files to  destdir with absolute path
> 
> llvm build dir ends up in
> /tmp/portage/dev-lang/rust-1.35.0/image/tmp/portage/dev-lang/rust-1.35.0/
> work/rustc-1.35.0-src/build/x86_64-unknown-linux-gnu/llvm/
> 
> don't panic, you don't have to rebuild all over. just remove 
> 
> rm -r /tmp/portage/dev-lang/rust-1.35.0/image/tmp
> 
> and ebuild rust-1.35.0.ebuild merge
> 
> or build with system-llvm

I don't have the /tmp/portage dir nor do the directories mentioned in the post-install /var/tmp/portage appear to be there. Is there something else I need to remove, and should I still run the ebuild command?
Comment 4 Georgy Yakovlev archtester gentoo-dev 2019-05-25 00:31:44 UTC
Probably it’s /var/tmp/portage for you, I set my portage tmpdir differently.
Comment 5 Georgy Yakovlev archtester gentoo-dev 2019-05-25 00:33:47 UTC
rm -r /var/tmp/portage/dev-lang/rust-1.35.0/image/tmp


And ebuild /usr/portage/dev-lang/rust/rust-1.35.0.ebuild merge

Assuming you still have build files there.
Comment 6 Georgy Yakovlev archtester gentoo-dev 2019-05-25 06:20:10 UTC
looks like issue is caused by internal llvm cmakefiles

.../cmake_install.cmake
4:if(NOT DEFINED CMAKE_INSTALL_PREFIX)
5:  set(CMAKE_INSTALL_PREFIX "/tmp/portage/dev-lang/rust-1.35.0/work/rustc-1.35.0-src/build/x86_64-unknown-linux-gnu/llvm")


so CMAKE_INSTALL_PREFIX for whatever reason is set to $DESTDIR/$S/$SOMETHING

but should be

trying to find what actually sets it.
Comment 7 Larry the Git Cow gentoo-dev 2019-05-26 06:27:00 UTC
The bug has been closed via the following commit(s):

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

commit c39dfea3a0cea8f515ddede3d171879ad0df9cf9
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2019-05-26 06:25:06 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2019-05-26 06:25:32 +0000

    dev-lang/rust: fix building 1.35.0 with internal llvm
    
    Closes: https://bugs.gentoo.org/686656
    X-Upstream-Issue: https://github.com/rust-lang/rust/issues/61206
    Package-Manager: Portage-2.3.66, Repoman-2.3.12
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 ...commits-triggering-multiple-llvm-rebuilds.patch | 117 +++++++++++++++++++++
 dev-lang/rust/rust-1.35.0.ebuild                   |   1 +
 2 files changed, 118 insertions(+)
Comment 8 Martin Gysel (bearsh) 2019-05-26 16:44:35 UTC
*** Bug 686772 has been marked as a duplicate of this bug. ***