You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Jan-Frode Myklebust (JIRA)" <ji...@apache.org> on 2012/06/10 21:08:42 UTC

[jira] [Created] (TS-1295) make install should work as non-root user

Jan-Frode Myklebust created TS-1295:
---------------------------------------

             Summary: make install should work as non-root user
                 Key: TS-1295
                 URL: https://issues.apache.org/jira/browse/TS-1295
             Project: Traffic Server
          Issue Type: Improvement
          Components: Build
            Reporter: Jan-Frode Myklebust
            Priority: Trivial


"make install" should work as non-root user. Requirng root is bad practice and causes problems for the fedora build system.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TS-1295) make install should work as non-root user

Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13293749#comment-13293749 ] 

Leif Hedstrom commented on TS-1295:
-----------------------------------

Ah yes, I just s/==/!=/ :). I'll commit this now (with the unchange above), if you agree to the other changes I made?
                
> make install should work as non-root user
> -----------------------------------------
>
>                 Key: TS-1295
>                 URL: https://issues.apache.org/jira/browse/TS-1295
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Jan-Frode Myklebust
>            Assignee: Leif Hedstrom
>            Priority: Trivial
>             Fix For: 3.3.0
>
>         Attachments: 0001-Enabling-installing-as-non-root.patch, TS-1295.diff
>
>
> "make install" should work as non-root user. Requirng root is bad practice and causes problems for the fedora build system.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TS-1295) make install should work as non-root user

Posted by "Jan-Frode Myklebust (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan-Frode Myklebust updated TS-1295:
------------------------------------

    Attachment: 0001-Enabling-installing-as-non-root.patch
    
> make install should work as non-root user
> -----------------------------------------
>
>                 Key: TS-1295
>                 URL: https://issues.apache.org/jira/browse/TS-1295
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Jan-Frode Myklebust
>            Priority: Trivial
>         Attachments: 0001-Enabling-installing-as-non-root.patch
>
>
> "make install" should work as non-root user. Requirng root is bad practice and causes problems for the fedora build system.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TS-1295) make install should work as non-root user

Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-1295:
------------------------------

    Attachment: TS-1295.diff
    
> make install should work as non-root user
> -----------------------------------------
>
>                 Key: TS-1295
>                 URL: https://issues.apache.org/jira/browse/TS-1295
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Jan-Frode Myklebust
>            Assignee: Leif Hedstrom
>            Priority: Trivial
>             Fix For: 3.3.0
>
>         Attachments: 0001-Enabling-installing-as-non-root.patch, TS-1295.diff
>
>
> "make install" should work as non-root user. Requirng root is bad practice and causes problems for the fedora build system.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TS-1295) make install should work as non-root user

Posted by "Igor Galić (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Galić updated TS-1295:
---------------------------

    Backport to Version:   (was: 3.2.1)
    
> make install should work as non-root user
> -----------------------------------------
>
>                 Key: TS-1295
>                 URL: https://issues.apache.org/jira/browse/TS-1295
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Jan-Frode Myklebust
>            Assignee: Leif Hedstrom
>            Priority: Trivial
>             Fix For: 3.3.0
>
>         Attachments: 0001-Enabling-installing-as-non-root.patch, TS-1295.diff
>
>
> "make install" should work as non-root user. Requirng root is bad practice and causes problems for the fedora build system.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (TS-1295) make install should work as non-root user

Posted by "Jan-Frode Myklebust (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13293391#comment-13293391 ] 

Jan-Frode Myklebust commented on TS-1295:
-----------------------------------------

Oh, sorry, I must have done a cut'n'paste error. You're mostly right. But got the install-data-hook backwards. It should be ==:

{noformat}
 install-data-hook:
-       -chown -R $(pkgsysuser):$(pkgsysgroup) $(DESTDIR)$(pkgsysconfdir) $(DESTDIR)$(pkgdatadir)
+       if [ `id -un` == "root" ]; then \
+               chown -R $(pkgsysuser):$(pkgsysgroup) $(DESTDIR)$(pkgsysconfdir) $(DESTDIR)$(pkgdatadir);\
+       fi
        -echo "<TS_VERSION> $(PACKAGE_VERSION)" > $(DESTDIR)$(pkgsysconfdir)/trafficserver-release
{noformat}
                
> make install should work as non-root user
> -----------------------------------------
>
>                 Key: TS-1295
>                 URL: https://issues.apache.org/jira/browse/TS-1295
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Jan-Frode Myklebust
>            Assignee: Leif Hedstrom
>            Priority: Trivial
>             Fix For: 3.3.0
>
>         Attachments: 0001-Enabling-installing-as-non-root.patch, TS-1295.diff
>
>
> "make install" should work as non-root user. Requirng root is bad practice and causes problems for the fedora build system.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TS-1295) make install should work as non-root user

Posted by "Igor Galić (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Galić updated TS-1295:
---------------------------

    Backport to Version: 3.2.1
    
> make install should work as non-root user
> -----------------------------------------
>
>                 Key: TS-1295
>                 URL: https://issues.apache.org/jira/browse/TS-1295
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Jan-Frode Myklebust
>            Assignee: Leif Hedstrom
>            Priority: Trivial
>             Fix For: 3.3.0
>
>         Attachments: 0001-Enabling-installing-as-non-root.patch, TS-1295.diff
>
>
> "make install" should work as non-root user. Requirng root is bad practice and causes problems for the fedora build system.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (TS-1295) make install should work as non-root user

Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13293305#comment-13293305 ] 

Leif Hedstrom commented on TS-1295:
-----------------------------------

Hmmm, I tested this, and I think the == should be !=, no? Attached is a proposed change, with slightly more readable formatting as well, please review (and let me know if I got the != wrong).
                
> make install should work as non-root user
> -----------------------------------------
>
>                 Key: TS-1295
>                 URL: https://issues.apache.org/jira/browse/TS-1295
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Jan-Frode Myklebust
>            Assignee: Leif Hedstrom
>            Priority: Trivial
>             Fix For: 3.3.0
>
>         Attachments: 0001-Enabling-installing-as-non-root.patch, TS-1295.diff
>
>
> "make install" should work as non-root user. Requirng root is bad practice and causes problems for the fedora build system.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TS-1295) make install should work as non-root user

Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-1295:
------------------------------

    Fix Version/s: 3.3.0
         Assignee: Leif Hedstrom
    
> make install should work as non-root user
> -----------------------------------------
>
>                 Key: TS-1295
>                 URL: https://issues.apache.org/jira/browse/TS-1295
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Jan-Frode Myklebust
>            Assignee: Leif Hedstrom
>            Priority: Trivial
>             Fix For: 3.3.0
>
>         Attachments: 0001-Enabling-installing-as-non-root.patch
>
>
> "make install" should work as non-root user. Requirng root is bad practice and causes problems for the fedora build system.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TS-1295) make install should work as non-root user

Posted by "Jan-Frode Myklebust (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13293870#comment-13293870 ] 

Jan-Frode Myklebust commented on TS-1295:
-----------------------------------------

Yes, I agree to your superior formatting :-) 
Didn't know how to do that myself inside Makefile.am's...
                
> make install should work as non-root user
> -----------------------------------------
>
>                 Key: TS-1295
>                 URL: https://issues.apache.org/jira/browse/TS-1295
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Jan-Frode Myklebust
>            Assignee: Leif Hedstrom
>            Priority: Trivial
>             Fix For: 3.3.0
>
>         Attachments: 0001-Enabling-installing-as-non-root.patch, TS-1295.diff
>
>
> "make install" should work as non-root user. Requirng root is bad practice and causes problems for the fedora build system.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira