Bug 142429

Summary: USERS directive doesn't work as documented in Porter's Handbook
Product: Documentation Reporter: Jason <jhelfman>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Jason 2010-01-07 17:30:03 UTC
It seems when using the USERS or GROUPS directives in a Makefile, that the user will be installed, but the INSTALL macros will fail. I've only been able to verify this when the "configure" script is not used.

Fix: 

Not known, as of yet. The only thing it seems this could be is either a bug in bsd.port.mk or a bug in the Documentation as for the correct process. In looking at other ports, it seems that it is broken, as scripts that add users use the PRE-INSTALL script method.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/users-and-groups.html
How-To-Repeat: Add to some test port:

USERS=  <some user, or new user in UIDs>

do-install:
        ${INSTALL_SCRIPT} ${WRKSRC}/script.sh ${PREFIX}/bin


.include <bsd.port.mk>
Comment 1 Jason 2010-01-18 20:22:00 UTC
Correction. It does work.

Format of the UID is a little different, and after correcting my local
version, it worked as noted in the Porter's Handbook.

As a suggestion, it may be a good idea to add an example of a new UID
example that would work.

This can be closed.

-jgh
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2010-01-18 22:01:47 UTC
State Changed
From-To: open->closed

Closed at submitter's request.