<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>246</bug_id>
          
          <creation_ts>2010-08-30 19:15:15 +0000</creation_ts>
          <short_desc>non root install patch is not necessary</short_desc>
          <delta_ts>2010-12-21 06:07:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.0 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ke Yu">ke.yu</reporter>
          <assigned_to name="Mei Lei">lei.mei</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9468</commentid>
    <comment_count>0</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2010-08-30 19:15:15 +0000</bug_when>
    <thetext>non root install patch is the patch to not install package as root ownership. one example is meta/recipes-extended/at/files/nonrootinstall.patch:

&quot;
--- at-3.1.10.2.orig/Makefile.in    2005-08-29 01:08:28.000000000 -0700
+++ at-3.1.10.2/Makefile.in 2010-07-21 17:06:01.000000000 -0700

-   $(INSTALL) -g root -o root -m 755 -d $(IROOT)$(etcdir)
-   $(INSTALL) -g root -o root -m 755 -d $(IROOT)$(bindir)
-   $(INSTALL) -g root -o root -m 755 -d $(IROOT)$(sbindir)
-   $(INSTALL) -g root -o root -m 755 -d $(IROOT)$(docdir)
-   $(INSTALL) -g root -o root -m 755 -d $(IROOT)$(atdocdir)
-   $(INSTALL) -g $(DAEMON_GROUPNAME) -o $(DAEMON_USERNAME) -m 755 -d $(IROOT)$(ATSPOOL_DIR) $(IROOT)$(ATJOB_DIR)
+   $(INSTALL) $(INSTALLOWN) -m 755 -d $(IROOT)$(etcdir)
+   $(INSTALL) $(INSTALLOWN) -m 755 -d $(IROOT)$(bindir)
+   $(INSTALL) $(INSTALLOWN) -m 755 -d $(IROOT)$(sbindir)
+   $(INSTALL) $(INSTALLOWN) -m 755 -d $(IROOT)$(docdir)
+   $(INSTALL) $(INSTALLOWN) -m 755 -d $(IROOT)$(atdocdir)
+   $(INSTALL) $(INSTALLOWN) -m 755 -d $(IROOT)$(ATJOB_DIR)
+   $(INSTALL) $(DAEMONOWN) -m 755 -d $(IROOT)$(ATSPOOL_DIR)
&quot;

In the early time, the poky build system can not handle the root install, so non-root install patch is necessary. Later &quot;pseudo&quot; package allow build system to handle the root install, so such kind of non-root install patch is not necessary any more.

so we can search all such kind of non-root install patch, and remove them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9916</commentid>
    <comment_count>1</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2010-09-20 19:40:42 +0000</bug_when>
    <thetext>Assign to Lei</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9973</commentid>
    <comment_count>2</comment_count>
    <who name="Mei Lei">lei.mei</who>
    <bug_when>2010-09-27 17:57:47 +0000</bug_when>
    <thetext>I searched all such kind of non-root install patches, I will remove them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10798</commentid>
    <comment_count>3</comment_count>
    <who name="Mei Lei">lei.mei</who>
    <bug_when>2010-10-25 19:03:51 +0000</bug_when>
    <thetext>I removed nonrootinstall patch, and use a patch named nonstripbinaries.patch to modify the /at-3.1.10.2/Makefile.in, so it can also handles stripping of the binaries.

Fixed by 
http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=0e0d14ed1e88ebff876abb3d00b08627a3879e8d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11096</commentid>
    <comment_count>4</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2010-12-13 01:03:05 +0000</bug_when>
    <thetext>verified</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>