Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Conversation

@rojkov
Copy link
Contributor

@rojkov rojkov commented Apr 11, 2017

No description provided.

@rojkov
Copy link
Contributor Author

rojkov commented Apr 11, 2017

Ok, the test build failed at running the tests that check for python presence which is actually what we want. I'll update the PR not to use bbappends for tweaking PACKAGECONFIG.

@rojkov rojkov force-pushed the python2-less branch 2 times, most recently from 3c641bf to b044c5d Compare April 11, 2017 14:15
@rojkov
Copy link
Contributor Author

rojkov commented Apr 12, 2017

For some reason bitbake creates empty package libxml2-python which the QA check reports about if PACKAGECONFIG is tweaked in a distro config. If bbappend is used this doesn't happen.

@rojkov
Copy link
Contributor Author

rojkov commented Apr 12, 2017

Added INSANE_SKIP_libxml2-python =+ "build-deps" to refkit.conf for now. Also python3 needs some update-alternatives magic to pass the failing tests.

# drop python2 support
PACKAGECONFIG_remove_pn-opkg-utils = "python"
PACKAGECONFIG_remove_pn-libxml2 = "python"
# there's a bug in bitbake that causes the build-deps QA check to check an empty package
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you filed a bug about this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yocto is such a nice thing I'm still struggling with how to formulate the bug properly. So far I've come up with this:


Given localdata is a local copy of d after calling localdata.setVar('OVERRIDES', 'libxml2-python') its method getVar() starts to return a whitespace (" ") for localdata.getVar('RDEPENDS') if libxml2-python is made an empty package with PACKAGECONFIG_remove = "python" in a bbappend

But if libxml2-python is made an empty package with PACKAGECONFIG_remove_pn-libxml2 = "python" in a distro config then localdata.getVar('RDEPENDS') returns " python-core"
and that breaks the 'build-deps' QA check because it thinks that libxml2-python actually exists even if it's empty.


Can you get it?

@rojkov
Copy link
Contributor Author

rojkov commented Apr 18, 2017 via email

@rojkov
Copy link
Contributor Author

rojkov commented Apr 18, 2017

rebased and force pushed.

@mythi
Copy link
Contributor

mythi commented Apr 19, 2017

@rojkov I have oe-core and bitbake updated in master

@rojkov
Copy link
Contributor Author

rojkov commented Apr 19, 2017

Rebased and force pushed.

@mythi It seems the oe-core devs oppose the idea that python3 become python at some point in spite of what the python devs themselves believe in [1]. Should we stay with the current workaround or start adding locally maintained patches to ROS scripts to replace shebang lines?

[1] https://patchwork.openembedded.org/patch/139143/

# NodeJS needs Python for node-gyp which is a NPM module bundled with
# GYP together. GYP is a build system generator written in Python that
# stands for "Generate Your Projects" and is used for building Node
# modules written in C. Since Refkit doesn't support on-target
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't exactly true so let's be careful with the wording. Furthermore, even if refkit did not support this today, a refkit user might.

AFAICS this cripples node-gyp by keeping it installed (via node-npm) but simply drops dependencies to python. How about doing packaging such that npm and node-gyp are in their own packages.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Submitted ostroproject/meta-iot-web#37 introducing nodejs-gyp, but then the supported recipes check fails even though nodejs-gyp is not installed. It needs to be amended to ignore RDEPENDS for not installed packages.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually nodejs-npm is not installed on any image. So, it's just the check's greediness issue.

# to check an empty package:
# https://bugzilla.yoctoproject.org/show_bug.cgi?id=11374
INSANE_SKIP_libxml2-python =+ "build-deps"
PACKAGECONFIG_remove_pn-libxml2-native = "python"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this -native part related to that bug?

PACKAGECONFIG_pn-python3 = ""

# drop python2 support
PACKAGECONFIG_remove_pn-opkg-utils = "python"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does opkg-utils get installed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no such package in the image manifests. But the supported recipes check fails if it's missing from refkit-supported-recipes.txt
@pohly could you please help with this? Perhaps it gets pulled because of update-alternatives in coreutils.

@mythi
Copy link
Contributor

mythi commented Apr 20, 2017

@rojkov What's the current workaround and why local ROS patches would be needed? My thinking is #120 would be the way to start.

@rojkov
Copy link
Contributor Author

rojkov commented Apr 20, 2017 via email

@mythi
Copy link
Contributor

mythi commented Apr 20, 2017 via email

@rojkov
Copy link
Contributor Author

rojkov commented Apr 20, 2017 via email

@mythi
Copy link
Contributor

mythi commented Apr 21, 2017

@rojkov hmm the lack of python2 boost bindings in oe-core sounds like an argument to accept 0bb82bd

@ipuustin
Copy link
Contributor

@mythi: Boost is difficult to compile so that it works for both Pythons at the same time. See https://bugzilla.yoctoproject.org/show_bug.cgi?id=11104

@pohly
Copy link
Contributor

pohly commented Apr 24, 2017 via email

@rojkov
Copy link
Contributor Author

rojkov commented Apr 24, 2017

Ok, I see now. opkg's dep resolver can have different opinion on what to install indeed.
I'll put python@core back to the list of supported recipes.

@rojkov
Copy link
Contributor Author

rojkov commented Apr 24, 2017

  • rebased;
  • put python@core back to refkit-supported-recipes.txt;
  • dropped unneeded overrides;
  • force pushed.

@rojkov
Copy link
Contributor Author

rojkov commented May 8, 2017

  • rebased and force pushed.

@rojkov rojkov mentioned this pull request May 8, 2017
@rojkov
Copy link
Contributor Author

rojkov commented May 18, 2017

  • rebased and force pushed.

@refkit-ci
Copy link

Can one of the admins verify this patch?

@rojkov
Copy link
Contributor Author

rojkov commented May 31, 2017

  • rebased and force pushed.

@rojkov rojkov force-pushed the python2-less branch 2 times, most recently from 6554438 to 556c8b8 Compare June 2, 2017 13:41
@Arthil
Copy link

Arthil commented Jun 15, 2017

There was a problem in CI, where one of the boards froze at test phase. Should be fixed now.
Test this please.

@mythi
Copy link
Contributor

mythi commented Jun 16, 2017

@rojkov please rebase

@rojkov
Copy link
Contributor Author

rojkov commented Jun 16, 2017

  • rebased and force pushed.

Dmitry Rozhkov added 6 commits June 16, 2017 16:01
Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
lowpan-tools provides lowpan-tools-python package which
is not compatible with python3.

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
This is a temporary bbappend until the patch

https://patchwork.openembedded.org/patch/139143/

gets accepted upstream.

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
@rojkov
Copy link
Contributor Author

rojkov commented Jun 16, 2017

  • rebased and force pushed.

mythi added a commit to mythi/intel-iot-refkit that referenced this pull request Jun 16, 2017
This combined merge takes PRs intel#109, intel#113, and intel#188.
mythi added a commit to mythi/intel-iot-refkit that referenced this pull request Jun 17, 2017
This combined merge takes PRs intel#109, intel#113, and intel#188.
@mythi mythi merged commit 9e23630 into intel:master Jun 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants