<?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>3975</bug_id>
          
          <creation_ts>2013-03-04 12:07:03 +0000</creation_ts>
          <short_desc>When B != S, set S as read-only</short_desc>
          <delta_ts>2014-01-21 10:45:01 +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>OE-Core</product>
          <component>core</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>mcrapet</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30396</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-03-04 12:07:03 +0000</bug_when>
    <thetext>If we&apos;re doing a build where $B != $S, then after patching set $S to read-only.  The fun will be restoring read/write on errors so the directories can be erased.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39948</commentid>
    <comment_count>1</comment_count>
    <who name="Matthieu Crapet">mcrapet</who>
    <bug_when>2014-01-21 10:40:12 +0000</bug_when>
    <thetext>This is quite tricky.
Adding:

&lt;code&gt;
check_separate_build() {
	if [ &quot;${S}&quot; != &quot;${B}&quot; ]; then
		bbnote &apos;Separate build: chmod a-w ${S}&apos;
		chmod a-w ${S}
	fi
}

do_configure[prefuncs] = &quot;check_separate_build&quot;
&lt;/cpde&gt;

to base.bbclass is easy, but how to revertit ? do_clean will fail because of Permissions. How to detect that do_configure failed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39949</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-01-21 10:45:01 +0000</bug_when>
    <thetext>To be honest I&apos;m not sure if this is even possible, making the assumption that *nothing* in the build will touch $S is tough.  As the creater of this bug let&apos;s say I was over-enthusiastic and close it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>