Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 549220

Summary: dev-lang/rust - doc use flag has no effect
Product: Gentoo Linux Reporter: Erik Mackdanz <stasibear>
Component: [OLD] DevelopmentAssignee: Jauhien Piatlicki (RETIRED) <jauhien>
Status: RESOLVED FIXED    
Severity: normal CC: cynede, stasibear, williamh
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: beta2
beta3

Description Erik Mackdanz gentoo-dev 2015-05-11 22:51:01 UTC
src_install deletes the installed doc directory, so docs are missing regardless of the flag.

Subsequently src_install tries to move the docs into a versioned folder, which fails (but doesn't die) because the source directory is missing.

Patches are attached with the fix.

Reproducible: Always

Steps to Reproduce:
1. Enable doc use flag for dev-lang/rust
2. build rust
Actual Results:  
No docs are installed.

The error is in the console from src_install:
install: creating uninstall script at /var/tmp/portage/dev-lang/rust-1.0.0_beta/image/usr/lib/rust-1.0.0_beta/rustlib/uninstall.sh
install: installing component 'rust-docs'

    Rust documentation is installed.

install: creating uninstall script at /var/tmp/portage/dev-lang/rust-1.0.0_beta/image/usr/lib/rust-1.0.0_beta/rustlib/uninstall.sh
install: installing component 'rustc'

    Rust is ready to roll.

mv: cannot stat ‘/var/tmp/portage/dev-lang/rust-1.0.0_beta/image//usr/share/doc/rust/*’: No such file or directory
rmdir: failed to remove ‘/var/tmp/portage/dev-lang/rust-1.0.0_beta/image//usr/share/doc/rust/’: No such file or directory


Expected Results:  
docs are installed to /usr/share/doc/rust-${PV}
No install errors.
Comment 1 Erik Mackdanz gentoo-dev 2015-05-11 22:51:58 UTC
Created attachment 403080 [details, diff]
beta2
Comment 2 Erik Mackdanz gentoo-dev 2015-05-11 22:52:27 UTC
Created attachment 403082 [details, diff]
beta3
Comment 3 Jauhien Piatlicki (RETIRED) gentoo-dev 2015-05-19 21:01:58 UTC
Thanks for reporting. I'll handle it with 1.0 release (should be moved to tree this week).