Commit Graph

466 Commits

Author SHA1 Message Date
Colin Walters 8a5ac02822 Update to glib 0.14
An intimidating spam of compiler errors at the start, but the
biggest was handling the new convention of `ostree_sys::` => `ffi::`.

This will require a semver bump of course.
2022-05-06 12:53:56 -04:00
Colin Walters f276c040bd ci: Fix buildroot to use new official image
Which is maintained and has updated rust.
2022-05-06 12:53:56 -04:00
Colin Walters ae189bec80 Mark src/auto/* as generated 2022-05-06 12:53:56 -04:00
Luca BRUNO 78ca01c4e3 repo_transaction_stats: move to a manual implementation
This moves `RepoTransactionStats` into a manually implemented
source file in order to provide getters to expose relevant
fields.
2022-05-06 12:53:56 -04:00
Colin Walters bd843b2eae Bump sys version requirement 2022-05-06 12:53:56 -04:00
Colin Walters 42110ce01b Bump versions 2022-05-06 12:53:56 -04:00
Colin Walters 7d15179670 Update to 2021.2
Sync to https://github.com/ostreedev/ostree/releases/tag/v2021.2
2022-05-06 12:53:56 -04:00
Colin Walters 9bb0dd3c4d ci: Add GH action to build 2022-05-06 12:53:56 -04:00
Colin Walters b5496f70f6 repo: Add concurrency=send
Ultimately a repo is just a file descriptor wrapper with some
cached data, etc.  We can send it between threads, much like how
`gio::File` is `Send`.

Motivated by trying to write to a repo from a separate thread
in https://github.com/cgwalters/ostree-container
2022-05-06 12:53:56 -04:00
Felix Krull 0718f433a2 Update rustdoc-stripper 2022-05-06 12:53:56 -04:00
Felix Krull 6043e5ffc1 Bump all versions 2022-05-06 12:53:56 -04:00
Felix Krull 674ad14cce Regenerate 2022-05-06 12:53:56 -04:00
Felix Krull a96be52f1d Switch to patched ostree gir 2022-05-06 12:53:56 -04:00
Felix Krull 0e9a16f4c1 Regenerate 2022-05-06 12:53:56 -04:00
Felix Krull c55459463f Update OSTree-1.0.gir to 2021.1 2022-05-06 12:53:56 -04:00
Felix Krull be8dbd701b Fix ostree gir file update 2022-05-06 12:53:56 -04:00
Felix Krull 0c33d6331d Update common gir files 2022-05-06 12:53:56 -04:00
Felix Krull b526f51165 Bump versions 2022-05-06 12:53:56 -04:00
Felix Krull 900973b61f Remove outdated sentence in readme 2022-05-06 12:53:56 -04:00
Felix Krull 2caf0264c7 src: fix tests 2022-05-06 12:53:56 -04:00
Felix Krull e18919e0ef src: manually implement SysrootDeployTreeOpts 2022-05-06 12:53:56 -04:00
Felix Krull 7576363329 ci: fix rawhide stages? 2022-05-06 12:53:56 -04:00
Felix Krull d345ea0110 Switch to patched ostree gir 2022-05-06 12:53:56 -04:00
Felix Krull 75848b26ef Regenerate based on new gir 2022-05-06 12:53:56 -04:00
Felix Krull 4cbbbf2daa gir: update OSTree gir 2022-05-06 12:53:56 -04:00
Felix Krull e686a0bed6 gir: update misc gir files 2022-05-06 12:53:56 -04:00
Felix Krull fe03ad1fee Update gir file to 2020.6 2022-05-06 12:53:56 -04:00
Felix Krull 1ab87e6b97 conf: anchor function name patterns to avoid unexpected exclusions 2022-05-06 12:53:56 -04:00
Felix Krull 8ef294b627 Bump versions 2022-05-06 12:53:56 -04:00
Felix Krull 5ae1a4005c conf: ignore some more special-cased functions 2022-05-06 12:53:56 -04:00
Felix Krull 86897a520c src: add Checksum::from_bytes 2022-05-06 12:53:56 -04:00
Felix Krull 6f05869713 conf: annotate ignores better 2022-05-06 12:53:56 -04:00
Felix Krull 19076fe6d8 src: reimplement checksum hex and base64 en/decoding
This allows us to provide actually useful error handling
2022-05-06 12:53:56 -04:00
Felix Krull f3b0bbe64c src: add support for write_deployments_with_options 2022-05-06 12:53:56 -04:00
Felix Krull f45bfa2c5a Makefile: only depend on gir bin in gir-report 2022-05-06 12:53:56 -04:00
Felix Krull 4e7abb3101 conf: remove some unfixable TODOs 2022-05-06 12:53:56 -04:00
Felix Krull 5b1bc50418 src: add CommitSizesEntry 2022-05-06 12:53:56 -04:00
Felix Krull 3d8d5ce53e Disable some irrelevant functions 2022-05-06 12:53:56 -04:00
Felix Krull e49ee07373 Update to OSTree 2020.5 2022-05-06 12:53:56 -04:00
Felix Krull 26f4170b01 conf: disable internal Sign subtypes 2022-05-06 12:53:56 -04:00
Felix Krull a39328a4eb sign: add sanity check for sign API 2022-05-06 12:53:56 -04:00
Felix Krull cefbccaee7 gir: fix another out parameter 2022-05-06 12:53:56 -04:00
Felix Krull 24b5148374 gir: fix out parameters not being marked correctly 2022-05-06 12:53:56 -04:00
Felix Krull d900c58148 gir: add missing version tag 2022-05-06 12:53:56 -04:00
Felix Krull be67b37336 gir: start fixing OSTree.Sign
I don't think the SignDummy and SignEd25519 types even need to be
visible. The explicit dummy_* and ed25519_* don't need to be visible
either, I suspect.
2022-05-06 12:53:56 -04:00
Felix Krull 977b51ed39 gir: switch to gir based on patched upstream source 2022-05-06 12:53:56 -04:00
Felix Krull d8838109f5 Switch ostree source to git 2022-05-06 12:53:56 -04:00
Felix Krull e76a6b48ff PATCH: versions on ostree_sign_* functions 2022-05-06 12:53:56 -04:00
Felix Krull 65122a5a97 PATCH: version on OSTREE_SIGN_NAME_ED25519 2022-05-06 12:53:56 -04:00
Felix Krull 7c72d297ef PATCH: version on ostree_repo_commit_modifier_set_sepolicy_from_commit 2022-05-06 12:53:56 -04:00
Felix Krull 2504c97a8d ci: try different Fedora image? 2022-05-06 12:53:56 -04:00
Felix Krull 1010581c48 Update docs 2022-05-06 12:53:56 -04:00
Felix Krull cd36d8b7e4 Add feature levels to Cargo.toml 2022-05-06 12:53:56 -04:00
Felix Krull aee92d14a8 Update to OSTree 2020.4 2022-05-06 12:53:56 -04:00
Felix Krull d7156df1da Add script to get OSTree-1.0.gir from libostree source build 2022-05-06 12:53:56 -04:00
Felix Krull d7848fe8bf Fix indentation in readme 2022-05-06 12:53:56 -04:00
Felix Krull cc1b862ae5 Bump versions 2022-05-06 12:53:56 -04:00
Felix Krull 0b267b2dc0 Add Vagrantfile 2022-05-06 12:53:56 -04:00
Felix Krull b082362df4 Also remove OSTree-1.0.gir when cleaning gir files 2022-05-06 12:53:56 -04:00
Felix Krull 7ef8668f0a Add command to grab latest OSTree-1.0.gir from Fedora Rawhide 2022-05-06 12:53:56 -04:00
Felix Krull 409527e232 ci: update readme (and pipeline) 2022-05-06 12:53:56 -04:00
Felix Krull 28c8a3e77a ci: refactor pipeline 2022-05-06 12:53:56 -04:00
Felix Krull 253f46e846 Update rustdoc-stripper 2022-05-06 12:53:56 -04:00
Felix Krull dc69966a9f ci: change docs build command 2022-05-06 12:53:56 -04:00
Felix Krull 2c3c976828 Switch back to upstream gir 2022-05-06 12:53:56 -04:00
Felix Krull be60eb7e66 ci: test building for non-x86 target 2022-05-06 12:53:56 -04:00
Felix Krull 66a16b13b9 ci: use --workspace instead of --all 2022-05-06 12:53:56 -04:00
Felix Krull 296768c2b0 ci: update sccache 2022-05-06 12:53:56 -04:00
Felix Krull 66f928df83 src: use libc::c_char to improve non-x86 compatibility 2022-05-06 12:53:56 -04:00
Felix Krull de0cee4ecd tests: use RepoMode::Archive (seems to be less finicky) 2022-05-06 12:53:56 -04:00
Felix Krull 990bbe290a Use forked gir with updated shell-words and cleaned-up build.rs 2022-05-06 12:53:56 -04:00
Felix Krull d7b785c4d3 sys: remove pkg-config dependency 2022-05-06 12:53:56 -04:00
Felix Krull c36ee94f9b conf: disable RepoFinder methods that don't autogenerate correctly 2022-05-06 12:53:56 -04:00
Felix Krull 05e86a6b42 gir: patch ostree_repo_finder_avahi_new
Should be fixed in the next upstream release

Ref: https://github.com/ostreedev/ostree/pull/2051
2022-05-06 12:53:55 -04:00
Felix Krull c38d832dfc Bump dependency versions 2022-05-06 12:53:55 -04:00
Felix Krull 37f9e3599a Switch from lazy_static to once_cell 2022-05-06 12:53:55 -04:00
Felix Krull 130f0c2839 Update gir version and regenerate 2022-05-06 12:53:55 -04:00
Felix Krull c040aa4736 Regenerate with new gir files 2022-05-06 12:53:55 -04:00
Felix Krull ec2476b518 Start adding more update instructions to README 2022-05-06 12:53:55 -04:00
Felix Krull 3be9cb518f gir: update bundled gir files 2022-05-06 12:53:55 -04:00
Felix Krull fddff04204 Change branch name references 2022-05-06 12:53:55 -04:00
Felix Krull 9af7577b0f Add LICENSE to ostree-sys 2022-05-06 12:53:55 -04:00
Felix Krull 7c2410382c Ignore ci-cached directories so they don't interfere with the publish 2022-05-06 12:53:55 -04:00
Felix Krull a9d7623a4c Bump version 2022-05-06 12:53:55 -04:00
Felix Krull ddb781f399 repo_checkout_at_options: fix version flags 2022-05-06 12:53:55 -04:00
Felix Krull 935cbf4162 ci: simplify pipeline a bit maybe 2022-05-06 12:53:55 -04:00
Felix Krull 175649141e ci: install fewer things 2022-05-06 12:53:55 -04:00
Felix Krull 6a077fff85 ci: build every feature level separately 2022-05-06 12:53:55 -04:00
Felix Krull 6ab1e997ee ci: ignore gir differences in version files 2022-05-06 12:53:55 -04:00
Felix Krull 24379017c6 gir-files: update to 2020.3 2022-05-06 12:53:55 -04:00
Felix Krull 8530365ccf Bump ostree version 2022-05-06 12:53:55 -04:00
Felix Krull 5a852bd048 Bump versions 2022-05-06 12:53:55 -04:00
Felix Krull 7c56e3c49e Regenerate for OSTree 2020.2 2022-05-06 12:53:55 -04:00
Felix Krull 8636b7173d gir: update to OSTree 2020.2 gir 2022-05-06 12:53:55 -04:00
Felix Krull f0d617228f ci: disable clippy warnings for the moment
I can't get it not to check sys/build.rs.
2022-05-06 12:53:55 -04:00
Felix Krull 1d262ca279 Remove repo hash from versions.txt 2022-05-06 12:53:55 -04:00
Felix Krull a4cee3c94d Revert "ci: ignore changes in versions.txt lines"
This reverts commit 5fb6d791
2022-05-06 12:53:55 -04:00
Felix Krull 8576adff1d ci: ignore changes in versions.txt lines
Apparently these now change with each commit.
2022-05-06 12:53:55 -04:00
Felix Krull 31c80cb22b Bump versions 2022-05-06 12:53:55 -04:00
Felix Krull 3290d5c2d1 Rewrite handwritten futures functions 2022-05-06 12:53:55 -04:00
Felix Krull 3e70feb75f Start taking out futures feature 2022-05-06 12:53:55 -04:00
Felix Krull 241806b757 Update glib + gir and regenerate 2022-05-06 12:53:55 -04:00
Felix Krull 28407036b1 Bump versions 2022-05-06 12:53:55 -04:00
Felix Krull 3f438a9c3f Add 2019.6 feature 2022-05-06 12:53:55 -04:00
Felix Krull 5bfc5d12d0 Regenerate files 2022-05-06 12:53:55 -04:00
Felix Krull 5ecc8a0e4f gir: update OSTree-1.0.gir 2022-05-06 12:53:55 -04:00
Felix Krull 59f9b69989 Bump versions 2022-05-06 12:53:55 -04:00
Felix Krull f0ef98a71a Add some ignored types 2022-05-06 12:53:55 -04:00
Felix Krull bf27ba5dc0 Fix lint in tests 2022-05-06 12:53:55 -04:00
Felix Krull d2e384a39f Update gir file 2022-05-06 12:53:55 -04:00
Felix Krull f5c255b4b4 Update bundled glib gir files 2022-05-06 12:53:55 -04:00
Felix Krull 366e9b729f Add feature alias for the latest OSTree version 2022-05-06 12:53:55 -04:00
Felix Krull 14b511d32b ci: fix setup, again 2022-05-06 12:53:55 -04:00
Felix Krull 53f9c1a3aa ci: install sccache during docs build 2022-05-06 12:53:55 -04:00
Felix Krull 2014336b03 ci: install make 2022-05-06 12:53:55 -04:00
Felix Krull ad6e0569be ci: don't reformat -sys 2022-05-06 12:53:55 -04:00
Felix Krull 486c60489a Set up cargo workspace 2022-05-06 12:53:54 -04:00
Felix Krull 75ab3f50cd Fix clippy issue 2022-05-06 12:53:54 -04:00
Felix Krull 4bdb7b8760 ci: switch to Fedora Rawhide 2022-05-06 12:53:54 -04:00
Felix Krull bdf749b0e6 ci: update sccache 2022-05-06 12:53:54 -04:00
Felix Krull febbd00c27 ci: run crates.io publish on release tags 2022-05-06 12:53:54 -04:00
Felix Krull 376dc2896c ci: fix build
I guess the failing checksumming tests were due to user IDs or file system
permission problems in CI.

Squashed commit of the following:

commit 6680075f3fc1ce483712b1e2b7124f5b04654393
Author: Felix Krull <f_krull@gmx.de>
Date:   Tue Sep 3 00:46:02 2019 +0200

    Remove troublesome tests

    They seemed to be failing due to different user IDs or file system
    permissions. I don't know how to get them stable, so out they go.

commit 6bb28dbf2ed2af093df6120d6095d1aba48fed56
Author: Felix Krull <f_krull@gmx.de>
Date:   Tue Sep 3 00:37:15 2019 +0200

    Ignore troublesome tests

commit a31a347a18ef4a32cae8ec22532ce938c6000d97
Author: Felix Krull <f_krull@gmx.de>
Date:   Tue Sep 3 00:30:17 2019 +0200

    Potentially fix checksum tests

commit 8e8bace9ce39d4ef709eb8806502140734eade4c
Author: Felix Krull <f_krull@gmx.de>
Date:   Mon Sep 2 23:33:31 2019 +0200

    Fix actual/expected (maybe)

commit ab2a1f6f13f8e607dc3824e4ccf51cebc9a17111
Author: Felix Krull <f_krull@gmx.de>
Date:   Mon Sep 2 23:23:42 2019 +0200

    Fix Checksum::from_{base64,hex}

commit dd462c271ffb54190399dfe50f5797e1956f7bab
Author: Felix Krull <f_krull@gmx.de>
Date:   Mon Sep 2 23:08:29 2019 +0200

    Fix Checksum::to_base64
2022-05-06 12:53:54 -04:00
Felix Krull d801cacb5d Bump crate versions 2022-05-06 12:53:54 -04:00
Felix Krull f640444986 checksum: implement more traits and functions 2022-05-06 12:53:54 -04:00
Felix Krull 2fdf020645 checksum: implement conversion from string and to base64 2022-05-06 12:53:54 -04:00
Felix Krull ad26abaa7e Implement ostree::checksum_file_at 2022-05-06 12:53:54 -04:00
Felix Krull 815b8563d5 Implement ostree::checksum_file_async
These might not work, I didn't test them...
2022-05-06 12:53:54 -04:00
Felix Krull 14f2ff43df Implement ostree::checksum_file_from_input 2022-05-06 12:53:54 -04:00
Felix Krull 7f3bd56d0d Implement ostree::checksum_file 2022-05-06 12:53:54 -04:00
Felix Krull 4cd981d01b Use pointer coercion instead of messing with -sys 2022-05-06 12:53:54 -04:00
Felix Krull d55d1b1d43 Fix file mode 2022-05-06 12:53:54 -04:00
Felix Krull 6bc1a1d995 Add SePolicy::fscreatecon_cleanup 2022-05-06 12:53:54 -04:00
Felix Krull e424800f05 Implement Repo::write_metadata_async 2022-05-06 12:53:54 -04:00
Felix Krull 8002e06e25 Implement Repo::write_content_async 2022-05-06 12:53:54 -04:00
Felix Krull bb4e0c5978 Implement Repo::write_metadata 2022-05-06 12:53:54 -04:00
Felix Krull 78a14d15a3 Implement Repo::write_content 2022-05-06 12:53:54 -04:00
Felix Krull 17a9d7c855 Implement Checksum type for binary checksums 2022-05-06 12:53:54 -04:00
Felix Krull 6ef9ab2558 kernel_args: fix feature flags 2022-05-06 12:53:54 -04:00
Felix Krull 3bfb805288 kernel_args: enable and fix argv methods 2022-05-06 12:53:54 -04:00
Felix Krull 12d976d45d Make kernel_args compile 2022-05-06 12:53:54 -04:00
Felix Krull 32173d5b81 Add generated KernelArgs (not working yet) 2022-05-06 12:53:54 -04:00
Felix Krull 8f223aca1a ci: bump used version 2022-05-06 12:53:54 -04:00
Felix Krull e6a1fddc8c Regenerate main crate 2022-05-06 12:53:54 -04:00
Felix Krull 377b7ae202 Clean up docs.rs sections in Cargo.tomls 2022-05-06 12:53:54 -04:00
Felix Krull 5980af7b42 Ignore BUILT_FEATURES from main crate 2022-05-06 12:53:54 -04:00
Felix Krull d2525da221 Regenerate -sys 2022-05-06 12:53:54 -04:00
Felix Krull 0e3b567b19 Disable build features constant 2022-05-06 12:53:54 -04:00
Felix Krull d51861e80c Update OSTree-1.0.gir 2022-05-06 12:53:54 -04:00
Felix Krull 3951ac14b8 Update gir files 2022-05-06 12:53:54 -04:00
Felix Krull f7d769c0c4 ci: fix feature flags 2022-05-06 12:53:54 -04:00