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

Bug 481980

Summary: [Future EAPI] Consider that DOCS variable can contain directories
Product: Gentoo Hosted Projects Reporter: Sergey Popov (RETIRED) <pinkbyte>
Component: PMS/EAPIAssignee: Package Manager Specification <pms>
Status: RESOLVED FIXED    
Severity: enhancement CC: dev-zero, esigra
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: in-eapi-6
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 174380    

Description Sergey Popov (RETIRED) gentoo-dev 2013-08-21 15:20:32 UTC
See $summary. It would be nice to do such assumption, e.g. do dodoc -r instead of just dodoc in default src_install phase
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2014-06-05 07:30:11 UTC
Would it make sense to introduce "rsync-syntax" here as in:

  DOCS="directory/" does the same as "dodoc -r directory/*"
  DOCS="directory" does the same as "dodoc -r directory"
Comment 3 Ulrich Müller gentoo-dev 2014-06-05 08:20:29 UTC
(In reply to Tiziano Müller from comment #2)
> Would it make sense to introduce "rsync-syntax" here as in:
> 
>   DOCS="directory/" does the same as "dodoc -r directory/*"
>   DOCS="directory" does the same as "dodoc -r directory"

I'd rather not, especially since the interpretation of trailing slashes has changed in POSIX.1-2008, insofar as "directory/" is no longer defined as being equivalent to "directory/." (as it still was in POSIX.1-2004).

AFAICS, an explicit DOCS="directory/." should work for the first case above.
Comment 4 Tiziano Müller (RETIRED) gentoo-dev 2014-06-05 08:35:14 UTC
(In reply to Ulrich Müller from comment #3)
> I'd rather not, especially since the interpretation of trailing slashes has
> changed in POSIX.1-2008, insofar as "directory/" is no longer defined as
> being equivalent to "directory/." (as it still was in POSIX.1-2004).
> 
> AFAICS, an explicit DOCS="directory/." should work for the first case above.

well, DOCS="directory/." is ok as well, as long as we have a way to express "dodoc directory/*" somehow.