Commit Graph

48 Commits

Author SHA1 Message Date
Alex Kiernan
a8e6e75282 ostree: Upgrade 2022.7 -> 2023.1
Drop upstreamed patches, switch to github-releases for upstream checks,
update comments regarding making ptest pass as C.UTF-8 is default in
glibc now.

Alex Kiernan (2):
      lib/repo-checkout: Add ALLPERMS for musl
      tests: Handle musl's ERANGE mapping

Benno Rice (1):
      Replace the radix64 crate with base64

Colin Walters (5):
      fetcher: Avoid too large queues for metadata processing
      configure: post-release version bump
      rust: Bump to 0.17
      bindings: Consistently check for `dox` feature
      Release 2023.1

Dan Nicholson (16):
      tests/inst: Update hyper-staticfile to 0.9.4
      Strip trailing whitespace on all C files
      repo: Add API to regenerate and sign repo metadata
      bin/summary: Use ostree_repo_regenerate_metadata
      commit: Allow skipping automatic summary generation
      repo: Create metadata commit in ostree_repo_regenerate_metadata
      lib: Provide internal summary signing with separate directory
      repo: Prevent publishing summary without matching signature
      bin: Cleanup documentation of --cache-dir option
      bin/refs: Sort listing
      bin/refs: Add option to print revisions
      bin/remote-refs: Add option to print revisions
      bin/show: Add options to list metadata keys
      ostree/dump: Add support for summary metadata keys
      bin/summary: Add options to show metadata
      bin/remote-summary: Add options to show metadata

Eric Curtin (1):
      bootloader: Add an aboot (Android) bootloader backend

Jonathan Lebon (1):
      ostree/prune: Calculate reachability under exclusive lock

Luca BRUNO (4):
      lib: assert more invariants
      configure: use pkg-config with newer gpgme and gpg-error
      lib/repo: fix an 'unused-function' warning
      lib/sysroot-upgrader: add some 'nullable' annotations

Tareque Md Hanif (1):
      docs: Fix link to ostree-rs

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-18 21:33:58 -08:00
Alex Kiernan
9188812103 ostree: Handle musl's ERANGE mapping
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-04 15:33:58 -08:00
Alex Kiernan
f3b1b4bbd6 ostree: Fix comments for configuration/ptest
The comments and recipe had diverged, bring them back into line. Update
the instructions on how to get ptest to pass.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-04 15:33:58 -08:00
Alex Kiernan
5548aaad17 ostree: Switch to fuse3 which is supported in ostree now
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-04 15:33:58 -08:00
Alex Kiernan
76700a30f7 ostree: Use systemd_system_unitdir for systemd units
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-04 15:33:58 -08:00
Alex Kiernan
e941f2f79d ostree: Upgrade 2022.5 -> 2022.7
Convert to tarballs which are now being published. Drop backported
fixes, drop s390 bash patch (done differently upstream), drop glibc 2.36
sys/mount fix (done differently upstream), add patch for musl and
ALLPERMS.

v2022.7
(Some of these commits are actually only for the Rust bindings;
will try to enhance the release flow to more clearly filter
those out)

On the feature front, there's new APIs for idempotent delete operations on
kernel arguments, and for handling unshare() to
manipulate (otherwise) read-only sysroot.

A few very small memory leak fixes.

Many people will be happy that we now retry HTTP requests after
receiving HTTP 500 errors.

There's a notable bugfix avoiding rebuilding SELinux policy
when creating a first deployment.

Thanks to all contributors!

Colin Walters (18):
      Remove readdir-rand
      deploy: Don't rebuild selinux policy on first deployment
      ci: Bump memory for ISO testing flow
      rust: Update to cap-std 1.0
      rust: Drop `openat` dependency
      ci: Fix case where cosa != buildroot
      rust: Update to gio 0.16
      repo: Avoid potential double unwind when writing panic value
      Allow missing docs on two `glib::wrapper` functions
      sysroot: Add an API to initialize with mountns
      rust: Regenerate with latest gir and C sources
      tests/inst: Update to latest ostree-ext
      tests/inst: Drop nix dependency
      tests/inst: Update cap-std-ext to 1.0
      tests/inst: Update sh-inline
      tests: Require OSTREE_TEST_SUDO to be set to use `sudo`
      ci: Add a flow that combines C build and Rust integration tests
      Release 2022.7

Jonathan Lebon (4):
      ci: Bump memory request, use fcosKolaTestIso
      ci: Drop unnecessary outer stage
      ci: Use new names for custom kola steps
      ci: bump cosaPod memory requirement to 5Gi

Luca BRUNO (20):
      configure: post-release version bump
      lib/repo-checkout: fix typo in error message
      lib/bootloader-zipl: check for errors when opening initrd
      lib/static-delta: document and check parameters format
      rust/tests: fix static delta generation testcase
      lib/sign-ed25519: convert invariant checks to assertions
      rust: regenerate bindings after latest release (2022.6)
      ostree: manually patch generated files
      rust: update manual helpers
      ci/rust: bump linting toolchain to latest stable (1.64)
      lib/repo-refs: properly return an error value
      rust: update pinned gir tool to 0.15
      rust/ostree-sys: regenerate for gtk-rs 0.15
      rust/ostree: regenerate for gtk-rs 0.15
      ci/rust: test from git using latest feature
      cargo: prepare ostree 0.16.0 and ostree-sys 0.11.0
      copr: only use libostree tags
      ci: adjust git tags filtering
      cargo: bump minimum Rust version to 1.63
      ostree: manually patch generated files

Manuel Stühn (1):
      Add test for generating static delta to file

Philip Withnall (4):
      ot-builtin-commit: Fix a typo in a command line help string
      ot-builtin-commit: Don’t mention a C function name in a help string
      lib/pull: Fix a small leak when a variable is reused
      ot-builtin-pull: Fix a minor leak with progress reporting

Rafael Garcia Ruiz (2):
      ostree_kernel_args_contains for OstreeKernelArgs
      Idempotent delete operation for  OstreeKernelArgs

Ricardo Noriega (2):
      Enabling retry for HTTP 500 internal server error
      Add tests for cases under random 500s

Simon McVittie (2):
      readdir-rand: Copy full size of struct dirent
      Replace calls to g_memdup() with g_memdup2()

dependabot[bot] (2):
      build(deps): bump libglnx from `26375b5` to `e701578`
      build(deps): bump libglnx from `e701578` to `4e44fd9`

2022.6
This release contains a collection of bugfixes and enhancements. Notable
fixes concern finalize-staged, which should now better support
automounted partitions and skip waiting for termination signal.

A file descriptor leak has been fixed in the commit logic. The codebase
has also been fixed to avoid conflicting declarations when building with
latest glibc (>= 2.36). Thanks @GeorgesStavracas for both fixes!

On the feature side, there is now basic support for handling overlayfs
whiteouts on checkout through a new --process-passthrough-whiteouts
flag. This is useful for users that need to carry container storage
embedded into ostree commits. Thanks @mangelajo for that!

The ostree rev-parse command gained a new --single flag to better
support repositories containing exactly one commit.  Overall, the s390x
Secure Execution (SE) logic has been reworked to stop relying on glue
scripts.

Thanks to all contributors!

Andrea Perotti (1):
      Fix recursive git archive reference

Colin Walters (12):
      configure: post-release version bump
      rust-bindings: Fix `cargo fmt`
      deny.toml: Add `Unicode-DFS-2016`
      Remove unused `linux/fs.h` includes
      Move FIFREEZE/FITHAW ioctl invocations into linuxfsutil.c
      cli/rev-parse: Port to new code style
      cli/rev-parse: Add `--single` option
      rust: Update to latest git
      ci: Also drop seccomp on debian testing
      rust: Bind `ostree_repo_list_commits_starting_with`
      finalize-staged: Don't listen to `SIGTERM`, just let kernel exit us
      README.md: Link otto

Dan Nicholson (3):
      main: Factor out sysroot loading
      finalize-staged: Ensure /boot automount doesn't expire
      lib/pull: Fix max-metadata-size documentation

Georges Basile Stavracas Neto (1):
      lib/commit: Unref repo on success

Huijing Hei (1):
      Fix `ostree admin kargs edit-in-place` assertion when deployments are pending

Jon Oster (1):
      docs: Add aktualizr and TorizonCore to related projects

Jonathan Lebon (3):
      lib/commit: Directly use FICLONE for payload link
      tests/kolainst/staged-deploy: parse `rpm-ostree status --json` instead
      docs: Add section about staged deployments

Luca BRUNO (7):
      libostree: fix a typo in annotation
      lib/bootloader: assert invariants
      lib/mtree: drop redundant name checks
      otutil: add error handling to variant builders
      lib/sign: convert invariant checks to assertions
      lib/repo: properly initialize boolean variable
      lib/sysroot-deploy: explicitly handle `g_variant_lookup` results

Lukas Kalbertodt (1):
      Update to `libtest-mimic` 0.5.0

Miguel Angel Ajo (1):
      Support overlayfs whiteouts on checkout

Nikita Dubrovskii (3):
      s390x: ensure both 'root' and 'boot' luks keys exist
      s390x: simplify 's390x-se-luks-gencpio' script
      s390x: use 'libarchive' to modify initrd in SE case

Sam James (1):
      buildutil/glibtests.m4: fix bashism

dependabot[bot] (1):
      build(deps): bump libglnx from `c59eb27` to `26375b5`

git-bruh (1):
      ostree-fetcher-curl: check for HTTP2 support before trying to use it

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-31 10:41:12 -08:00
Markus Volk
01faf33238 ostree: replace libsoup-2.4 by curl
like it is done in fedora

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-10 23:06:55 -08:00
Yi Zhao
290166c46b ostree: fix selinux policy rebuild error on first deployment
Backport a patch to fix selinux policy rebuild error on first
deployment.
See: https://github.com/ostreedev/ostree/issues/2758

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-11-25 18:11:10 -08:00
Yi Zhao
df4149181a ostree: add runtime dependency bubblewrap for PACKAGECONFIG[selinux]
Since 2022.3, ostree has a runtime dependency on bubblewrap when enable
selinux feature[1].

[1] edb4f38934

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-11-23 08:25:30 -08:00
Alex Kiernan
68d5d03be4 ostree: Cleanup PACKAGECONFIGs
Add ed25519-libsodium to PACKAGECONFIG, mark glib/gnutls/openssl as
mutual conflicts.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-12 01:24:27 -07:00
Khem Raj
32b42cd3e5 ostree: Upgrade to 2022.5 release
Backport a fix for building with glibc 2.36+ while here

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-06 22:53:24 -07:00
Martin Jansa
c06c5b71ee ostree: prevent ostree-native depending on target virtual/kernel to provide kernel-module-overlay
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-14 08:17:25 -07:00
wangmy
dafc1efa15 ostree: upgrade 2021.6 -> 2022.2
Changelog:
==========
2022.02:

  lib/util: add syslog.h for ot_journal_print()
  lib/bootloader: use ot_journal_print() instead of sd-journal
  main: Also support CLI extensions in '/usr/libexec/libostree/ext'
  sysroot: Add a public '#define OSTREE_PATH_BOOTED'
  deploy: Add a 5s max timeout on global filesystem 'sync()'
  deploy: Also log to journal if we time out global sync()
  core: Mark 'ostree_create_directory_metadata' as '(not nullable)'
  lib/tar: Add some error prefixing
  build-sys: Drop '-Werror=aggregate-return'
  mtree: Use declare-and-initialize style
  mtree: Load traversed subdirs when creating parents
  Release 2022.2
  configure: post-release version bump
  github: Workaround glib/seccomp issue on Ubuntu impish
  lib/repo: Add commit version metadata to summary metadata
  .lgtm.yml: Fix gpgme dependency
  lib/deploy: When deleting staged deployment, delete any lock
  ostree/deploy: Test finalization locking
  tests/kolainst: Avoid recursive symlinks
  ci/libbuild.sh: drop yum/CentOS support
  ci/make-git-snapshot.sh: fix archive name
  ci/make-git-snapshot.sh: auto-initialize submodules
  ci/make-git-snapshot.sh: xz the archive
  Add COPR integration Makefile
  lib/gpg-verify-result: Add missing floating annotation
  configure: post-release version bump
  libotutil: avoid leaking builder memory on error
  ostree: check g_setenv return value
  libostree/sepolicy: get rid of a g_setenv() call
  lib/commit: always validate metadata
  lib/commit: reject empty metadata keys
  builtin: use GCancellable and GError everywhere
  lib/repo: open file only if required
  lib/commit: clean up assertions
  lib/core: introduce two new object types for split xattrs
  lib/core: introduce 'bare-split-xattrs' mode
  lib/repo: read split xattrs content from file-xattrs-link objects
  lib/commit: disallow writing content in 'bare-split-xattrs' mode
  tests/basic-bare-split-xattrs: add fixture, check read logic
  man: Fix typo in ostree-admin-switch
  man: Fix typo in ostree-find-remotes
  s390x: add "IBM Secure Execution for Linux" support
  s390x: add LUKS keyfile to 'sd-boot'
  Fix marking static delta commits as partial
  lib/repo-refs: Remove misleading newline
  src/ostree: Add --commit-only option to ostree prune
  man/prune, bash: Add --commit-only flag for ostree prune
  tests/test-prune.sh: expand testing for --commit-only
  tests/test-prune.sh: Use TAP API
  libotutil: Avoid infinite recursion during error unwinding
  Update submodule: libglnx
  build(deps): bump libglnx from '803adaf' to '88da8dd'
  build(deps): bump libglnx from '88da8dd' to 'c71f7ae'

2022.01:

  repo: Change locking for summary regeneration to be shared
  soup-uri: Fix clang-analyzer warning by dropping dead code
  tests: Fix clang-analyzer not seeing through `g_error()`
  Update FSF license notices to use URL instead of address
  lib: misc static analysis fixes
  lib/repo: assert that writable state and error agree
  lib/repo: do no return an arbitrary mode on failure
  lib/repo: do no return a NULL on failure
  tests: assert mandatory values are present
  main: add support for CLI extensions via external binaries
  tests/cli-extensions: tweak test logic
  lib: use ostree-content-writer header
  bsdiff: bump submodule, pick up fix for CVE-2014-9862
  lib/static-delta: throw a proper error on bspatch failure
  github: add dependabot config
  rofiles-fuse: Build using FUSE 3 if possible, falling back to FUSE 2

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-25 11:00:43 -07:00
Khem Raj
14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Hongxu Jia
bde2553860 ostree: workaround compile error with option gcc option -Og
While DEBUG_BUILD = "1" in local.conf, `-Og' is added to cfalgs by Yocto,
it broke ostree build with `-Werror=aggregate-return' (the
-Werror=aggregate-return is added by ostree configure.ac)

So remove -Og and use -O2 as workaround

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-02 22:40:22 -08:00
Hongxu Jia
b692321c30 ostree: use Yocto mirror
Clean up PREMIRRORS setting, the Yocto mirror is updated

$ mkdir ./ostree && cd ./ostree
$ wget http://downloads.yoctoproject.org/mirror/sources/git2_github.com.ostreedev.ostree.tar.gz
$ tar -xvf git2_github.com.ostreedev.ostree.tar.gz
$ git show f1155c8d283c3c85d74d5e1050b0dcf8198f750a --oneline
f1155c8d (tag: v2021.6) Release 2021.6

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-01 22:37:01 -08:00
Hongxu Jia
1bacbe783a ostree: add nativesdk support
# Changed in V2: s/$OECORE_NATIVE_SYSROOT/\$OECORE_NATIVE_SYSROOT/ for
# ostree wrapper of nativesdk
Refer the impment of native, use the same PACKAGECONFIG, EXTRA_OECONF
and similar create_wrapper for ostree

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-01 20:36:31 -08:00
wangmy
8797894b69 ostree: upgrade 2021.5 -> 2021.6
Changelog:
This is a bugfix release.
Most of the fixes are related to warnings highlighted by gcc -fanalyzer static
source analysis.
Performance of pruning logic has been improved, avoiding unnecessary trips
through redundant serialization (#2484).
A regression has been fixed so that ostree is properly behaving again when
used from the initramfs, at a point where /sysroot may not be mounted yet (#2486).
A race condition related to sysroot.readonly has been addressed by directly
setting up sysroot readonly in initramfs (#2187).

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-29 09:09:03 -08:00
Richard Purdie
b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Oleksandr Kravchuk
7166ec4f76 ostree: update to 2021.5
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-10-16 09:50:38 -07:00
Khem Raj
a133111e69 recipes: Fix override syntax
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-06 20:38:40 -07:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
zhengruoqin
d950da93f1 ostree: upgrade 2021.2 -> 2021.3
Changelog:
This release adds new repository-locking methods to the API,
in order to make lock handling more granular and better suited
for multi-threaded consumers of the library.

Several bugs have been fixed related to service unit ordering
and enablement.
Pulling from remotes with unknown schemes now produces more
friendly error messages.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-16 09:23:04 -07:00
Martin Jansa
9975c11e4a ostree: switch from default master branch to main to fix do_fetch failure
* branch was renamed in upstream repo

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-12 07:11:41 -07:00
Khem Raj
b9ede0cb18 python3-pyyaml: Do not check for meta-python
Its in OE-core now

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2021-04-26 13:15:14 -07:00
zangrc
428db530e6 ostree: upgrade 2021.1 -> 2021.2
Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-04-23 08:56:25 -07:00
zangrc
7d2604942c ostree: upgrade 2020.8 -> 2021.1
Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-04-01 08:32:48 -07:00
zangrc
79b1d34e95 ostree: upgrade 2020.7 -> 2020.8
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-27 11:54:04 -08:00
Zang Ruochen
bd5ae6e125 ostree: upgrade 2020.6 -> 2020.7
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-02 09:00:52 -08:00
Zang Ruochen
cb3e8df821 ostree: upgrade 2020.5 -> 2020.6
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-10 21:20:23 -07:00
Alex Kiernan
d58a9a8923 ostree: upgrade 2020.4 -> 2020.5
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-08-19 08:20:02 -07:00
Oleksandr Kravchuk
04c4103f92 ostree: update to 2020.4
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-07-28 12:52:14 -07:00
Alex Kiernan
7f673e2133 ostree: upgrade 2020.2 -> 2020.3
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-15 16:36:28 -07:00
Alex Kiernan
4e8fb9dfce ostree: upgrade 2019.6 -> 2020.2
Also expose glib and gpgme in PACKAGECONFIG (which were always on).

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-21 14:21:52 -08:00
Alex Kiernan
1ec35f4dcc ostree: Tidy FILES_${PN} using PACKAGE_BEFORE_PN
Use PACKAGE_BEFORE_PN to pick files out of the install tree before
FILES_${PN} gets there, so we can just list necessary additions rather
than everything.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-29 23:04:31 -08:00
Khem Raj
0535ee84c3 ostree: Fix packaging errors when using lib64 libdir
Fixes
ERROR: ostree-2019.6-r0 do_package: QA Issue: ostree: Files/directories were installed but not shipped in any package:
  /usr/lib/ostree/ostree-prepare-root
  /usr/lib/ostree/ostree-remount

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-20 16:07:50 -08:00
Alex Kiernan
96d881d545 ostree: Add support for gjs tests
Now gjs is packaged in meta-gnome, add support for gjs tests through
PACKAGECONFIG; note gjs has a large dependency footprint, requiring (at
least) gobject-instrospection-data, gtk-3 and x11. Move python3-pyyaml
to RDEPENDS directly based on the layer, so that building ptest without
meta-python is possible (though more tests will have to be skipped).

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-16 08:38:35 -08:00
Alex Kiernan
f0a641554d ostree: Upgrade 2019.5 -> 2019.6
Drop all patches as they now exist upstream. Add tar to the dependencies
for ptest as this is required when running with libarchive enabled (and
the busybox version doesn't suffice).

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-11 16:22:40 -08:00
Alex Kiernan
000448b06d ostree: Backport build/test fixes from upstream
Pick upstream fixes:

77b27c07df2b Avoid race condition when building outside of source tree
16bb294384bb tests/repo-finder: Run realpath() on /tmp
de8e0765a4a5 Makefile: declare ostree_boot_SCRIPTS and append values

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-03 09:31:53 -08:00
Alex Kiernan
4d09da5457 ostree: Add PACKAGECONFIG for builtin-grub2-mkconfig
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-03 09:31:53 -08:00
Alex Kiernan
d936b51fef ostree: Change PACKAGECONFIG to use manpages
Change PACKAGECONFIG to use manpages and inherit same so we build mandb
correctly when api-documentation is enabled.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-03 09:31:53 -08:00
Alex Kiernan
a977b60045 ostree: Drop tests for soup/xattr with ptest
When ptest is enabled, both soup (for trivial-httpd) and xattr must be
enabled for all tests to pass. Rather than forcing everyone to enable
these, just document this and remove the tests since a subset of the
tests are still useful.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-03 09:31:53 -08:00
Alex Kiernan
f6df0263f7 ostree: Fix DISTRO_FEATURES with ptest but w/o xattr
Fix the test for PTEST_ENABLED so it only fires when it's actually enabled, as
opposed to everytime. This allows the tautological test for native to be
removed as PTEST_ENABLED isn't set there.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-03 09:31:53 -08:00
Ming Liu
412a93a1c1 ostree: fix some invalid condition checking
- PTEST_ENABLED is a target specific variable, avoid to check that for
  ostree-native recipe.
- one of soup, curl PACKAGECONFIG would satisfy not running into the
  problem https://github.com/ostreedev/ostree/issues/1897, it should
  not stick to soup. For instance, the curl is being chosen in
  meta-updater rather than soup.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-07 17:43:44 -08:00
Alex Kiernan
7d89759410 ostree: Upgrade 2019.4 -> 2019.5
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-06 19:58:01 -08:00
Alex Kiernan
d764f9e304 ostree: Add support for ptest
Move ostree-trivial-httpd to its own package so we can RDEPEND on it in both
the main ostree and ptest packages. Drop the patches to remove
ostree-trivial-httpd based on --enable-trivial-httpd-cmdline as they break
installed tests (and were reverted upstream).

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-06 19:58:01 -08:00
Alex Kiernan
a705a7f197 ostree: Upgrade 2019.3 -> 2019.4
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-09 00:35:31 -07:00
Alex Kiernan
59180f9f91 ostree: Add recipe
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-22 08:13:17 -07:00