[ 
https://issues.apache.org/jira/browse/TS-2382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13829600#comment-13829600
 ] 

Zhao Yongming commented on TS-2382:
-----------------------------------

I am sure we can make install in a user prefix without root privileges, unless 
someone broken it, that is the rpm building requirement which I fixed already.

{code}
install-data-local:
        if [ `id -un` != "root" ]; then \
                $(INSTALL) -d $(DESTDIR)$(pkglocalstatedir) 
$(DESTDIR)$(pkglogdir) $(DESTDIR)$(pkgruntimedir) \
                                $(DESTDIR)$(pkgsysconfdir) 
$(DESTDIR)$(pkgdatadir) $(DESTDIR)$(pkgcachedir); \
        else \
                 $(INSTALL) -d $(DESTDIR)$(pkglocalstatedir); \
                 $(INSTALL) -d -o $(pkgsysuser) -g $(pkgsysgroup) 
$(DESTDIR)$(pkglogdir) \
                                $(DESTDIR)$(pkgruntimedir) 
$(DESTDIR)$(pkgsysconfdir) \
                                $(DESTDIR)$(pkgdatadir) 
$(DESTDIR)$(pkgcachedir); \
        fi
{code}



> sudo make install creates man files as root in build tree
> ---------------------------------------------------------
>
>                 Key: TS-2382
>                 URL: https://issues.apache.org/jira/browse/TS-2382
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Build
>            Reporter: Leif Hedstrom
>            Assignee: James Peach
>             Fix For: 4.2.0
>
>
> if I do e.g.
> make
> sudo make install
> it'll create the man pages as user root. I'd think we ought to make the man 
> page building as part of the "make" process, such that we don't pollute the 
> built tree with root owned files ?



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to