Commit Graph

3187 Commits

Author SHA1 Message Date
Colin Walters
9f19ed2ac8 ci: Introduce install-extra-builddeps.sh
We need to cleanly split off "test dependencies" that we
install inside the cosa pod from builds (where we won't
have `cargo`) from the build time where we use the cosa
buildroot image.

Prep for using https://cxx.rs
2020-12-23 17:45:29 +01:00
Colin Walters
9b13ce3906 buildsys: Make one big rpmostreeinternals.la, enable unit tests again
In the previous buildsytem rework we disabled the unit tests because
of linking problems.  Now I realized that a simple solution is
to continue to build one big object, just make it an internal
static library and have a tiny "stub main" that delegates to an entrypoint.

That's basically what the C unit tests are - an alternative `main()`
with some extra code.
2020-12-23 17:45:29 +01:00
Colin Walters
485dbe8472 apply-live: Print a package diff
The cool thing about this is it emphasizes how "integrated" apply-live
is versus the uncontrolled `rpm-ostree usroverlay`.  We're still
tracking the state of things reliably and can print it.
2020-12-23 16:23:43 +01:00
Colin Walters
4c3d3fcb45 build-sys: Drop autoconf bits to find dbus service directory
We set it to the same value in both cases.  There's no reason
to require it at build time anyways.

Part of thinning out the Autotools side in prep for using Cargo.
2020-12-22 17:14:19 -05:00
Colin Walters
352d9f816f build-sys: Remove RHEL7 autotools backport
We aren't going to be shipping major new versions to RHEL7
ever again, so drop this compat definition.

Drop this as part of thinning out our Autotools build system
in preparation for moving to `build.rs`.
2020-12-22 17:14:19 -05:00
Colin Walters
70e7cd9bbb build-sys: Remove --with-bubblewrap
This was only needed for RHEL7; RHEL8 and above ships bwrap with
the OS.

Drop this as part of thinning out our Autotools build system
in preparation for moving to `build.rs`.
2020-12-22 17:14:19 -05:00
Colin Walters
de749fb2a5 build-sys: Remove --enable-installed-tests
This has never been used here; it was added
in f93cb5bcc5
and then we went in a different direction for testing.
2020-12-22 17:14:19 -05:00
Colin Walters
509ea0dbe1 Port rpmostreed-os-experimental to C++
Prep for using https://cxx.rs/
2020-12-22 16:36:13 -05:00
Colin Walters
1d610604a2 Port rpmostree-package-variants to C++
Prep for using https://cxx.rs/
2020-12-22 16:36:13 -05:00
Colin Walters
a3aa9c29d2 Port rpmostreed-errors to C++
Prep for using https://cxx.rs/
2020-12-22 16:36:13 -05:00
Colin Walters
f0df041b95 Port rpmostreed-sysroot to C++
Prep for using https://cxx.rs/
2020-12-22 16:36:13 -05:00
Colin Walters
57a08735d5 Port rpmostreed-utils to C++
Prep for using https://cxx.rs/
2020-12-22 16:36:13 -05:00
Colin Walters
b00e87facc Port rpmostreed-daemon to C++
Prep for using https://cxx.rs/
2020-12-22 16:36:13 -05:00
Colin Walters
d8263d2c38 Port rpmostree-builtin-compose to C++
Prep for using https://cxx.rs/
2020-12-22 16:36:13 -05:00
Colin Walters
642c8b1453 Port rpmostree-builtin-kargs to C++
Prep for using https://cxx.rs/
2020-12-22 16:36:13 -05:00
Colin Walters
9a91eecbb0 Port rpmostree-polkit-agent to C++
Prep for using https://cxx.rs/
2020-12-22 16:36:13 -05:00
Colin Walters
665bb07994 Port rpmostree-override-builtins to C++
Prep for using https://cxx.rs/
2020-12-22 16:36:13 -05:00
Colin Walters
2ada9808ec Port rpmostree-db-builtin-version to C++
Prep for using https://cxx.rs/
2020-12-22 16:36:13 -05:00
Colin Walters
604145e1f9 Port rpmostree-db-builtin-list to C++
Prep for using https://cxx.rs/
2020-12-22 16:36:13 -05:00
Colin Walters
63b5ccb1b1 Port rpmostree-db-builtin-dif to C++
Prep for using https://cxx.rs/
2020-12-22 16:36:13 -05:00
Colin Walters
e58316ec94 Port rpmostree-builtin-finalize-deployment to C++
Prep for using https://cxx.rs/
2020-12-22 16:36:13 -05:00
Colin Walters
c4cb926419 Finish removing ex container code
This should have been deleted in commit: bee9c0f605
Notice it wasn't listed in the Makefiles anymore, so it's dead.
2020-12-22 13:00:04 -05:00
Jonathan Lebon
12c3b134c3 spec: Minor tweaks
Rename URLs with `projectatomic` to `coreos`, expand the `Source0`, and
move it down to be lower than `License` and `URL`.
2020-12-22 12:18:22 -05:00
Colin Walters
8ca0eddabf Port rpmostree-builtin-start-daemon to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
79488a76de Port rpmostree-builtin-db to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
761e92ab93 Port rpmostree-builtin-shlib-backend to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
4462f16fa4 Port rpmostree-builtin-testutils to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
5259323161 Port rpmostree-builtin-ex to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
c3cff4f8f4 Port rpmostree-builtin-status to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
ff5cc68879 Port rpmostree-builtin-initramfs-etc to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
6052c92f75 Port rpmostree-builtin-initramfs to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
b9cfbfae0f Port rpmostree-builtin-cleanup to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
e9fc5a95e8 Port rpmostree-builtin-cliwrap to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
b7050d61c2 Port rpmostree-builtin-cancel to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
ccf2a1ea97 Port rpmostree-builtin-rebase to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
e8bc9dbd00 Port rpmostree-builtin-reload to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
7f65818d53 Port rpmostree-builtin-deploy to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
5820fd2136 Port rpmostree-builtin-rollback to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
7c1b6df951 Port rpmostree-builtin-upgrade to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
8f3c50aacf Port rpmostree-builtin-livefs to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
86efc2035a Port rpmostree-builtin-refresh-md to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
8560e0ba3e Port rpmostree-builtin-usroverlay to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
626e82fb3a Port rpmostree-builtin-override to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
6c47792bd0 Port rpmostree-builtin-reset to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
89b9020e31 Port rpmostree-pkg-builtins to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
e90eb462b4 Port rpmostree-editor to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Colin Walters
d5f518c785 Port rpmostree-json-parsing to C++
Prep for using https://cxx.rs/
2020-12-22 09:24:34 -05:00
Jonathan Lebon
df9c60ea62 Makefile-rpm-ostree: fix path to cbindgen.toml
Minor regression from #2365.
2020-12-21 20:31:30 -05:00
Colin Walters
a2c5d1e659 Run rustfmt, and fix CI check for it
Moving the crate to the toplevel broke the CI check for `rustfmt`.
Fix it and run `cargo fmt`.
2020-12-21 19:59:31 -05:00
Jonathan Lebon
db775f43ec Default to sqlite rpmdb backend on f34
There won't be any support for writing to the bdb backend in f34, so
e.g. pkglayering won't work (and obviously even composes wouldn't work
once the buildroot moves to f34).

Instead of requiring the whole world to add an `rpmdb` key in their
manifests, let's just add a compile flag for it, and tweak the spec file
to use this flag on f34.
2020-12-21 19:01:48 -05:00