setuptools-rust is a plugin for setuptools to build Rust Python extensions
implemented with PyO3 or rust-cpython.
Compile and distribute Python extensions written in Rust as easily as if
they were written in C.
This class inherits pyo3.bbclass (and therefore cargo.bbclass) and
setuptools3.bbclass to make it easier to build Python modules with Rust
extensions.
Need to call pyo3_do_configure to properly setup the PyO3 environment
for cross-compiling.
Need to call cargo_common_do_configure to setup cargo_home/config so
that the linker properly finds e.g. crti.o and crtbeginS.o
It is strongly recommended to provide crates needed for your recipe
using the crate:// fetcher. This can be helped with the cargo-bitbake
command [1].
If you choose not to use the crate fetcher, bitbake vendoring will not
work with setuptools-rust, as it errors out immediately because it cannot
find pyo3 or some other crate. The (strongly discouraged) workaround for
this is to set:
CARGO_DISABLE_BITBAKE_VENDORING = "1"
[1] https://crates.io/crates/cargo-bitbake
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
PyO3 provides Rust bindings for Python, including tools for creating native
Python extension modules. Running and interacting with Python code from a
Rust binary is also supported.
This class sets up the cross-compilation environment.
Export PYO3_CROSS, PYO3_CROSS_LIB_DIR, PYO3_CROSS_INCLUDE_DIR and CARGO_BUILD_TARGET
to inform tools like setuptools-rust we are cross-compiling.
Export RUSTFLAGS so cargo can find 'std' and 'core' for target
Dynamically generate PyO3 config file and export PYO3_CONFIG_FILE
absolute path. This is the trick that finally made pyo3 work.
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
See https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst#3601---2021-12-14
for changes
* Add PSF-2.0 license and explicitly add checksums for the LICENSE files that
are packaged.
* RDEPENDS on python3-hypothesis (in oe-core) for ptest so we can drop the
patch for skipping.
* Drop backported patch for openssl3 support.
* inherit new setuptools_rust class (which inherits new pyo3 class, which
inherits cargo and python3-dir).
* RDEPENDS on python3-pytest-subtests for ptest
* Copy pyproject.toml for ptest as it defines the pytest.marker(s) needed
* Cleanup and alphabetize the RDEPENDS
* Use 'cargo bitbake' to generate the crate:// SRC_URIs
- Needed some hacks to the Cargo.toml in src/rust/ to make this work (probably
only package.repository was strictly required):
[package]
description = "cryptography includes both high level recipes and low level interfaces to common cryptographic algorithms such as symmetric ciphers, message digests, and key derivation functions."
homepage = "https://github.com/pyca/cryptography"
repository = "https://github.com/pyca/cryptography"
* Add patches to src/rust/Cargo.toml to fix cargo errors including pem version
* Add check-memfree.py to ptest to check for sufficient free memory
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Add note to remind contributors to keep this recipe in lock-step with
python3-cryptography. They must be at the same version.
5bd0c10d allow parsing of nonstandard country name and jurisdiction country name (#6641)
78c2dd8a add AES SIV vectors (#6608)
c451c1df add AES OCB3 test vectors (#6606)
4da2a681 Allow parsing CSR extensions with the critical bit having an explicitly encoded default (#6600)
bb05d4b5 allow multiple identical pem blocks (#6551)
f4871a21 add accvraiz1 bmpstring test vector (#6503)
667e7a5f Add new PKCS12 test vectors (#6383)
703de3af Accept combined PEM files with multiple sections (#6365)
51221b2c support legacy PEM headers for certificate and CSR (#6356)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Pyruvate is a reasonably fast, multithreaded, non-blocking WSGI server
implemented in Rust.
This recipe uses the new setuptools3_rust and pyo3 classes.
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Dependency for python3-cryptography 3.4.x+
Only native rustc is supported at this time in oe-core,
therefore it makes no sense to try to build for target.
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
The Python bindings for gammu have been moved into a separate package
python-gammu.
Send patch upstream to replace distutils.version.StrictVersion with
packaging.version.parse and .Version
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
GNOME Screenshot is a small utility that takes a screenshot of the whole
desktop; the currently focused window; or an area of the screen.
Also add to packagegroup-gnome-apps
Signed-off-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Fetch license.html rather than keep possibly stale
version in files/.
License-Update: Update copyright years; update lines used
Signed-off-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This was replaced by bootchart2 long ago in oe-core.
gitorious.org no longer exists, so this is unfetchable.
Also, this has seen no development since bootchart2 was
created.
Signed-off-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
logcheck (1.3.23) unstable; urgency=medium
* v.i.d/logcheck-sudo: adjust 'session opened' rule to match uid, thanks to
Marco d'Itri for the patch (closes: #985166)
* v.i.d/logcheck-su: allow 'none' as pseudo terminal, thanks to Marco d'Itri
for the patch
-- Hannes von Haugwitz <hannes@vonhaugwitz.com> Thu, 01 Apr 2021 21:19:39 +0200
logcheck (1.3.22) unstable; urgency=medium
* d/t/01-logcheck: use temporary log file
-- Hannes von Haugwitz <hannes@vonhaugwitz.com> Mon, 01 Feb 2021 22:28:20 +0100
logcheck (1.3.21) unstable; urgency=medium
[ Debian Janitor ]
* Set debhelper-compat version in Build-Depends.
* Fix day-of-week for changelog entries 1.2.23, 1.2.17, 1.1.1-7.3, 1.1.1-7.
* Update standards version to 4.4.1, no changes needed.
[ Simó Albert i Beltran ]
* ignore.d.server/ssh:
- match port
- match more variants of 'Disconnected from' message
- match 'Connection reset' message
[ Ville Salomäki ]
* v.i.d/logcheck-su, v.i.d/logcheck-sudo: allow '.' and '_' in usernames
[Lee Maguire]
* src/logcheck: support systemd journal as log source (closes: #876420)
[ Hannes von Haugwitz ]
* Switch to debhelper 13
* Update standards version to 4.5.1, no changes needed.
* Update debian/copyright
* Set Rules-Requires-Root to no
* Add autopkgtest
* Adjust rules for PAM open session messages to match new format
* Update 'su' rules to match changed format (closes: #931770)
* i.d.s/dnsmasq: allow '.' in interface names, thanks to Craig Small for the
patch (closes: #732655)
* i.d.s/openvpn: match 'VERIFY X509NAME OK' message (closes: #751292)
* i.d.s/spamd:
- match autolearn_force field
- properly match IPv6 addresses
thanks to Craig Small for the patch (closes: #755374)
* i.d.s/postfix: match sasl_sender field (closes: #700851)
* i.d.s/su, v.i.d/logcheck-su:
- match 'su-l:session'
- match '(to <substitute-user>) <user>' message
* i.d.s/systemd-logind: new
- match logind session messages
* i.d.s/systemd: match some Succeeded/Finished messages
* i.d.s/dhclient: adjust 'DHCPREQUEST' rule
-- Hannes von Haugwitz <hannes@vonhaugwitz.com> Sun, 31 Jan 2021 23:01:29 +0100
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
0.030 2020-03-21 16:56:30Z
- fix tests that can fail when there is already an installed module
named Foo::Bar::Baz (RT#132140)
0.029 2020-03-14 05:27:59Z
- new :report_warnings feature, for printing all of the (unexpected)
warning content when had_no_warnings() is called (Tina Mueller, PR#10)
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
**** 1.31 May 2, 2021
Improve implementation of SVCB record.
**** 1.30 Mar 30, 2021
Simplify parsing of multi-line RRs in zone file.
Improve robustness of "dry" resolver tests.
Avoid deep recursion in non-fatal test report.
**** 1.29 Nov 18, 2020
Include test number in summary of failed non-fatal tests.
Remove Net::DNS::SEC specific tests.
Fix faulty test plan in t/08-recurse.t.
**** 1.28 Oct 23, 2020
Eliminate indirect object syntax.
Eliminate grep/map <expression>.
**** 1.27 Sep 11, 2020
Fix rt.cpan.org #133203
Net::DNS::RR::LOC erroneously strips non default values from
string representation
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2.005004 - 2021-03-29
- fix file set in %INC in create_class_with_roles (RT#134845)
2.005003 - 2021-03-21
- silence 'once' warnings from Moo::_Utils
2.005_002 - 2021-01-22
- fix C3 test skipping properly when MRO::Compat not available on perl < 5.10
2.005_001 - 2021-01-20
- fix perl version check in global destruction code
2.005_000 - 2021-01-20
- remove MooseX::Types from developer prereqs
- recommend Sub::Util rather than Sub::Name, since Sub::Util is in core
- fix line numbers when using oo module (perl -Moo)
- adjust some author tests to rely less on external modules
- lower Exporter prereq to any version
- bump Role::Tiny prereq to 2.003004
- refactor and simplify role application code, as allowed by new Role::Tiny
version
- switch to using normal strict+warnings rather than strictures for authors
- remove strictures from recommends, as Moo does not use it anywhere
- remove Task::Weaken prereq, as it served no purpose
- remove MRO::Compat prereq, using it only when user code does
- remove use of Devel::GlobalDestruction in code, only using
Devel::GlobalDestruction::XS when it is available. Devel::GlobalDestruction
is still a dependency on perl < 5.14 to facilitate the installation of the
::XS module.
- Moo now has no mandatory perl version specific dependencies. The version
specific modules are now optional or not used. This means code using Moo can
be fatpacked on a new perl version without special cases, and it will work
on older perl versions.
2.004004 - 2020-11-25
- fix error location test when using core Carp on perl 5.8.9 - 5.10.1
2.004003 - 2020-11-21
- fix extraneous MANIFEST entry
2.004002 - 2020-11-20
- no changes
- releasing as stable
2.004_001 - 2020-07-30
- remove Module::Runtime prerequisite
- internal code cleanups
- added test for conflicts in extensions wrapping 'has' and similar subs
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
The main recipes for python3-jinja2 and python3-markupsafe
have moved to oe-core. No need to duplicate them here.
Instead, we add them to meta-python3-ptest sub-package, since
we do enable ptest with bbappends.
Signed-off-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
The main recipe has moved to oe-core, but with ptest
disabled. Here we simply conditionally inherit ptest
to enable it in meta-python.
Remove the original recipe and the python3-jinja2/
directory.
Signed-off-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
The main recipe has moved to oe-core, but with ptest
disabled. Here we simply conditionally inherit ptest
to enable it in meta-python.
Remove the original recipe and the python3-markupsafe/
directory.
Signed-off-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
* add patch to fix float cast error when version is x.y.z form
* add minimal parted version (>= 2.3) to RDEPENDS
NOTE:
If your tree defaults to an earlier parted version (e.g. 1.8.6),
you will need to add PREFERRED_VERSION_parted = "3.%" to local.conf
or you will see a do_compile error (complaining about required
libparted version).
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* add several pkg configs and libsamplerate0 dependency to vlc.inc
* update patches 0003 and 0004
* add patch to use tremor's libvorbisidec rather than libvorbisdec
* add patch to fix luaL_checkint and luaL_optint (deprecated in lua 5.3)
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
* Convert from Module::Build to ExtUtils::MakeMaker
* Temporarily use github repository until upstream merges change
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Convert from Module::Build to ExtUtils::MakeMaker
* Temporarily use github repository until change is merged upstream
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Builds with ExtUtils::MakeMaker rather than Module::Build
* Author change
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
python-cryptography is required by python-pyopenssl >= 0.14
Includes python-cryptography-vectors package for ptest
Over 75k unit tests (100% coverage):
* tested on nuc (x86) and beaglebone (arm) hardware.
** will overload ram on default qemux86/qemuarm
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
python-py is required by python-pytest
python-pytest is required for ptest of python-cryptography
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
python-matplotlib is currently providing its own dateutil and pytz
Add dateutil and pytz as DEPENDS/RDEPENDS.
Patch setupext.py to no longer provide its own dateutil and pytz.
Remove python-matplotlib from blacklist.
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
python-matplotlib is providing its own pytz and dateutil.
Provide our own pytz (and then fix matplotlib).
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
libva is a floating dependency
libva requires libavcodec, so enable or disable both in tandem
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
World builds are failing due to change in opencv in API.
Since vlc is only using opencv as an example and a filter, disable by default.
Revisit when upstream adapts to new opencv API.
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Module::Pluggable - automatically give your module the ability to have plugins
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Generate dependencies from Python code, filter, cluster and generate
graphs from the dependency list
* Tools included:
- sfood:
Given a set of input files or root directories, generate a list of
dependencies between the files;
- sfood-graph:
Read a list of dependencies and produce a Graphviz dot file. (This
file can be run through the Graphviz dot tool to produce a
viewable/printable PDF file);
- sfood-cluster:
Read a list of dependencies, a list of file clusters, and output a
list of simplified (clustered) dependencies.
- sfood-checker:
Analyze the source code with the AST and list unused or redundant
imports.
- sfood-imports:
Find and list import statements in Python files, regardless of
whether they can be imported or not.
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* CPAN::Meta is provided by perl-module-cpan, NOT perl-module-cpan-meta
* Module::Load is provided by perl-module-load, NOT perl-module-module-load
* Fixes QA build-deps warning
* libtap-harness-env-perl is bogus, already have perl-tap-harness-env
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Module::Load is provided by perl-module-load, NOT perl-module-module-load
* Fixes QA build-deps warning.
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Built with libav 9.13 and stand-alone libpostproc
* Although postproc is enable=auto, let's leave it disabled by default
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Upstream is now much more pkg-config friendly
* Clean up configure baggage, no longer needed
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Move recipes from meta-openembedded/meta-oe that are not
depended upon by recipes already in meta-oe (e.g. gateone,
anki)
* Recipes NOT moved:
python-futures
python-pyopenssl
python-simplejson
python-tornado
python-pyqt
python-sip
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Implement khem's suggestion, ${S}/configure $(EXTRA_OECONF).
NOTE: with or without autotools-brokensep, the following:
| WARNING: QA Issue: ELF binary 'libpostproc.so.52.0.100'
| has relocations in .text
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Point tools to the right paths:
* ${S}/configure.ac in do_configure_prepare()
* ${B}/Makefile in do_configure_append()
* cd ${B} in do_compile()
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This package does not like being built out-of-tree.
Fixes:
| configure: error: cannot find install-sh, install.sh, or shtool in
[...]
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This package does not like being built out-of-tree.
Fixes:
[...]/lockdev/1.0.3+gitAUTOINC+16b899645d-r0/git/scripts/git-version: line 3:
NEWS: No such file or directory
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* URI for 3.3.3 broken
* COPYING.LESSER License regressed address for FSF:
5c5
< 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Fixes:
fatal error: dc1394/camera.h: No such file or directory
| #include <dc1394/camera.h>
| ^
| compilation terminated.
Signed-off-by: Tim Orling <TicoTimo@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>