Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549220 - dev-lang/rust - doc use flag has no effect
Summary: dev-lang/rust - doc use flag has no effect
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jauhien Piatlicki (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-11 22:51 UTC by Erik Mackdanz
Modified: 2015-06-04 10:47 UTC (History)
3 users (show)

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


Attachments
beta2 (beta2.patch,473 bytes, patch)
2015-05-11 22:51 UTC, Erik Mackdanz
Details | Diff
beta3 (beta3.patch,473 bytes, patch)
2015-05-11 22:52 UTC, Erik Mackdanz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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).