<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta/classes/distutils.bbclass, branch uninative-1.9</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=uninative-1.9</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=uninative-1.9'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2017-03-31T09:10:29+00:00</updated>
<entry>
<title>distutils.bbclass: Fix path to python for scripts</title>
<updated>2017-03-31T09:10:29+00:00</updated>
<author>
<name>Serhii Popovych</name>
<email>spopovyc@cisco.com</email>
</author>
<published>2017-03-28T19:31:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=253ce5d6c00d9b9806d6ac4f8e41f7dad33ede02'/>
<id>urn:sha1:253ce5d6c00d9b9806d6ac4f8e41f7dad33ede02</id>
<content type='text'>
Commit 11229de (distutils: Replacing path to native python by path
to python in the image to support python packages with
console-script setup) replaces path to python-native with path
to the python interpreter in the target image.

However on nativesdk builds ${bindir} expanded to the
${SDKPATHNATIVE}${prefix_nativesdk} making shebang line
pointing to the absolute path to env(1) in SDKPATHNATIVE
which may not be present if coreutils isn't part of nativesdk.

On the other hand commit cf63d90 (bitbake.conf: Define USRBINPATH
globally instead of individually) introduces USRBINPATH variable
which has correct value regarding build class and intended for
this use case.

v2: Rebased on top of new head.

Cc: XE-Linux &lt;xe-linux-external@cisco.com&gt;
(From OE-Core rev: 2a83c22a510e10b169015ce936eb51a6fc959ec1)

Signed-off-by: Serhii Popovych &lt;spopovyc@cisco.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>classes: Replace "if test" file tests with POSIX file tests</title>
<updated>2017-03-27T10:08:34+00:00</updated>
<author>
<name>Robert P. J. Day</name>
<email>rpjday@crashcourse.ca</email>
</author>
<published>2017-03-25T18:03:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=f5187871ce03fc24cb0017cff1089a288f50a24f'/>
<id>urn:sha1:f5187871ce03fc24cb0017cff1089a288f50a24f</id>
<content type='text'>
In entire meta/classes/ directory, replace shell tests of the form
"if test -? ..." with POSIX tests of the form "if [ -? ...

(From OE-Core rev: 78928016f4cf38cf6751cb089200bf950d07ae93)

Signed-off-by: Robert P. J. Day &lt;rpjday@crashcourse.ca&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>python-native, python3-native: remove the use of exported HOST_SYS and BUILD_SYS variables</title>
<updated>2016-06-01T11:38:41+00:00</updated>
<author>
<name>Alexander Kanavin</name>
<email>alexander.kanavin@linux.intel.com</email>
</author>
<published>2016-04-06T14:58:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=4977a0743ba439a46716c6ef10c5958d5a561115'/>
<id>urn:sha1:4977a0743ba439a46716c6ef10c5958d5a561115</id>
<content type='text'>
The code that utilized them was superseded by the code (in the same patch!)
that is utilizing STAGING_LIBDIR/STAGING_INCDIR, and wasn't correct in the
first place as HOST_SYS is not necessarily the same as the sysroot directory
name.

(From OE-Core rev: 8834e81a38c24a066bb4fefa93da61011d0db244)

Signed-off-by: Alexander Kanavin &lt;alexander.kanavin@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>classes/distutils*: don't hide logs when setup script fails</title>
<updated>2016-03-25T10:29:13+00:00</updated>
<author>
<name>Paul Eggleton</name>
<email>paul.eggleton@linux.intel.com</email>
</author>
<published>2016-03-21T05:10:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=50addfb97bb901dce5551c124e7ba27f920b02ef'/>
<id>urn:sha1:50addfb97bb901dce5551c124e7ba27f920b02ef</id>
<content type='text'>
We need to see the output of the setup script in the error message
because what we are having bbfatal print here doesn't completely
describe what went wrong, thus we should use bbfatal_log here and not
bbfatal.

(From OE-Core rev: 970a02061b474a238f57cd0cc4db7b62e36dfa3d)

Signed-off-by: Paul Eggleton &lt;paul.eggleton@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>distutils.bbclass: Handle python-backport modules</title>
<updated>2015-09-14T19:46:38+00:00</updated>
<author>
<name>Alejandro Hernandez</name>
<email>alejandro.hernandez@linux.intel.com</email>
</author>
<published>2015-09-10T15:51:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=7eabed3039b28119bb6642205bf26460695cb22e'/>
<id>urn:sha1:7eabed3039b28119bb6642205bf26460695cb22e</id>
<content type='text'>
When installing backport modules they stumble upon each other, complaining with
the following error:

ERROR: The recipe python-backports-ssl is trying to install files into a shared
area when those files already exist.

This is the correct behavior since thats just the way they were designed, all backport
modules provide an __init__.py file (the same among all packages), and without it they
simply wouldnt work.

distutils handles FILES_${PN}* variables for python packages, but it uses wildcards
to include the required files, hence removing the __init__.py files from each backport
package during build time is impossible since it doenst actually contain that value,
this patch simply removes the __init__.py* files from the staging area if they already
exist on sysroot, this way, these are not included in FILES_${PN} anymore, fixing the
issue mentioned above.

[YOCTO #8207]

(From OE-Core rev: e607a89267949b3d5e199b139f752db6000eac25)

Signed-off-by: Alejandro Hernandez &lt;alejandro.hernandez@linux.intel.com&gt;
Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>distutils: regenerate pyc files after being modified by sed</title>
<updated>2015-06-23T10:46:56+00:00</updated>
<author>
<name>Alejandro Hernandez</name>
<email>alejandro.hernandez@linux.intel.com</email>
</author>
<published>2015-06-11T15:38:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=4caed87a38e8c5afef679a90fb7f74f26ece2043'/>
<id>urn:sha1:4caed87a38e8c5afef679a90fb7f74f26ece2043</id>
<content type='text'>
py files are edited by sed and therefore *.pyc files are recreated on first boot, but if you have a read-only filesystem this is not possible. This patch creates pyc files directly after the py files are modified.

[YOCTO #7722]

(From OE-Core rev: a0460ac8a2595d4b064b483ca1f282a255ae6411)

Signed-off-by: Alejandro Hernandez &lt;alejandro.hernandez@linux.intel.com&gt;
Signed-off-by: Thomas Roos &lt;roosesweb@gmail.com&gt;
Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>distutils.bbclass: consistency between error message and setup.py's command</title>
<updated>2015-06-03T15:38:48+00:00</updated>
<author>
<name>Mario Domenech Goulart</name>
<email>mario@ossystems.com.br</email>
</author>
<published>2015-05-25T18:44:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=0420f7f47818d96964d48fd1309cea5f341432ed'/>
<id>urn:sha1:0420f7f47818d96964d48fd1309cea5f341432ed</id>
<content type='text'>
setup.py was called with build as argument, but the error message
would report build_ext.

(From OE-Core rev: 898b286b92b031db64c2143e81a79fbb20da481a)

Signed-off-by: Mario Domenech Goulart &lt;mario@ossystems.com.br&gt;
Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>distutils/distutils3: Fix bashism</title>
<updated>2014-06-29T08:04:21+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2014-06-27T09:23:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=946fb184bf986b8bde2fe0502d48f69bc7cd4a18'/>
<id>urn:sha1:946fb184bf986b8bde2fe0502d48f69bc7cd4a18</id>
<content type='text'>
read -d is a bashism. Replace with a direct exec to avoid the problem
in this case. This fixes silent build failures in do_install of
tasks on systems with dash as /bin/sh.

Also merge the fix to distutils for only changing necessary files
to disutils3 as well.

(From OE-Core rev: 7d61661348cf48cbe379ae600565840ea08664b1)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>distutils.bbclass: only modify *.py file if it contains path to be removed</title>
<updated>2014-05-08T12:00:31+00:00</updated>
<author>
<name>Radek Dostal</name>
<email>radek.dostal@streamunlimited.com</email>
</author>
<published>2014-05-05T07:38:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=f88e6e36782ab757099b701a55a56a7197ca02cd'/>
<id>urn:sha1:f88e6e36782ab757099b701a55a56a7197ca02cd</id>
<content type='text'>
Currently sed command touches every single *.py file. This modifies the
timestamp of the file. All *.pyo files will be recompiled during the first
boot, because timestamp will not match. This should be only necessary if
sed command changes the file.

(From OE-Core rev: 2d01c5a4989dcf03a202c27730a2a8f334e0c37a)

Signed-off-by: Radek Dostal &lt;radek.dostal@streamunlimited.com&gt;
Signed-off-by: Saul Wold &lt;sgw@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>classes/distutils: Introduce PYTHON_PN</title>
<updated>2014-02-02T22:37:38+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2013-03-10T06:03:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=8314590f099ec3e0592355b192ef80a2e71daac0'/>
<id>urn:sha1:8314590f099ec3e0592355b192ef80a2e71daac0</id>
<content type='text'>
This is needed to accomodate python3 alongside
python2

(From OE-Core rev: ae931c2cf9e48e1fb74b4b727dbf668ea880023f)

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
