Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646436 - dev-lang/rust-1.30.1-r1 installs docs outside /usr/share/doc/${PF}
Summary: dev-lang/rust-1.30.1-r1 installs docs outside /usr/share/doc/${PF}
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: PATCH
Depends on:
Blocks:
 
Reported: 2018-02-02 19:29 UTC by Chris Mayo
Modified: 2020-03-05 09:31 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2018-02-02 19:29:29 UTC
with USE="-doc"

$ ls /usr/share/doc/rust-1.23.0*
/usr/share/doc/rust-1.23.0:
COPYRIGHT.bz2  LICENSE-APACHE.bz2  LICENSE-MIT.bz2  README.md.bz2

/usr/share/doc/rust-1.23.0-r1:
COPYRIGHT.bz2


Fixed for me by:

@@ -101,7 +101,7 @@
 		[install]
 		prefix = "${EPREFIX}/usr"
 		libdir = "$(get_libdir)"
-		docdir = "share/doc/${P}"
+		docdir = "share/doc/${PF}"
 		mandir = "share/${P}/man"
 		[rust]
 		optimize = $(toml_usex !debug)
Comment 1 Tomáš Mózes 2018-11-29 07:04:59 UTC
Still happening with dev-lang/rust-1.30.1-r1.
Comment 2 Vincent de Phily 2018-12-04 10:09:15 UTC
Interestingly, COPYRIGHT.bz2 gets installed in two locations. I don't care much about $P vs $PF, but having both is quite confusing.

# ls -lh /usr/share/doc/rust-1.30.1*
/usr/share/doc/rust-1.30.1:
total 44K
-rw-r--r-- 1 root root 2.8K Dec  3 21:47 COPYRIGHT.bz2
-rw-r--r-- 1 root root 3.6K Dec  3 21:47 LICENSE-APACHE.bz2
-rw-r--r-- 1 root root 3.6K Dec  3 21:46 LICENSE-APACHE.old.bz2
-rw-r--r-- 1 root root  637 Dec  3 21:47 LICENSE-MIT.bz2
-rw-r--r-- 1 root root  637 Dec  3 21:46 LICENSE-MIT.old.bz2
-rw-r--r-- 1 root root  16K Dec  3 21:46 LICENSE-THIRD-PARTY.bz2
-rw-r--r-- 1 root root 3.7K Dec  3 21:47 README.md.bz2
-rw-r--r-- 1 root root 1.3K Dec  3 21:46 README.md.old.bz2

/usr/share/doc/rust-1.30.1-r1:
total 4.0K
-rw-r--r-- 1 root root 2.8K Dec  3 21:47 COPYRIGHT.bz2
Comment 3 Georgy Yakovlev archtester gentoo-dev 2020-03-05 09:31:06 UTC
I think current ebuilds fixed that. please reopen if you still see it.