summaryrefslogtreecommitdiff
path: root/Makefile-otutil.am
Commit message (Collapse)AuthorAgeFilesLines
* Update FSF license notices to use URL instead of addressJoseph Marrero2021-12-071-3/+1
|
* libotutil: Import implementation of zbase32 encodingDan Nicholson2021-07-151-0/+2
| | | | | | | | | | | | | | | This will be used to implement the PGP Web Key Directory (WKD) URL generation. This is a slightly cleaned up implementation[1] taken from the zbase32 author's original implementation[2]. It provides a single zbase32_encode API to convert a set of bytes to the zbase32 encoding. I believe this should be acceptable for inclusion in ostree. The license in the source files is BSD style while the original repo LICENSE file claims the Creative Commons CC0 1.0 Universal license, which is public domain. 1. https://github.com/dbnicholson/libbase32/tree/for-ostree 2. https://github.com/zooko/libbase32
* build: Conditionally build GPGME-related sourcesDenis Pynkin2019-08-011-2/+8
| | | | | | | | | Do not build GPGME-related sources if flag USE_GPGME is not defined. Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com> Closes: #1889 Approved by: cgwalters
* Add SPDX-License-Identifier to source filesMarcus Folkesson2018-01-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | SPDX License List is a list of (common) open source licenses that can be referred to by a “short identifier”. It has several advantages compared to the common "license header texts" usually found in source files. Some of the advantages: * It is precise; there is no ambiguity due to variations in license header text * It is language neutral * It is easy to machine process * It is concise * It is simple and can be used without much cost in interpreted environments like java Script, etc. * An SPDX license identifier is immutable. * It provides simple guidance for developers who want to make sure the license for their code is respected See http://spdx.org for further reading. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Closes: #1439 Approved by: cgwalters
* Add OtVariantBuilderAlexander Larsson2017-10-271-0/+2
| | | | | | | | | | This is similar to GVariantBuilder in that it constructs variant containers, but it writes it directly to a file descriptor rather than keep the entier thing in memory. This is useful to create large variants without using a lot of memory. Closes: #1309 Approved by: cgwalters
* lib/util: Delete some unused functionsColin Walters2017-10-051-1/+0
| | | | | | | Hooray, dead code. Closes: #1254 Approved by: jlebon
* lib/sysroot: Add journal-msg signalColin Walters2017-08-101-2/+0
| | | | | | | | | | | | | | | This will allow us to drop the awful hack in rpm-ostree where we watch our own stdout. In general, libraries shouldn't write to stdout. Also we can kill the systemd journal wrapper code. There's some duplication at each call site now...but it's easier than trying to write a `sd_journal_send()` wrapper. I was originally going to have this emit all of the structured data too as a `GVariant` but decided it wasn't worth it right now. Closes: #1052 Approved by: jlebon
* libutil: Delete unused threadpool wrapperColin Walters2017-03-301-2/+0
| | | | | | | | This is dead code since 9cc98041953090160dde48afa69b97c936541cdb where pull-local became just a wrapper for pull, which has its own threading. Closes: #767 Approved by: jlebon
* lib: Add a private copy of checksum-instreamColin Walters2017-03-201-0/+2
| | | | | | | | | | | | The current `OstreeChecksumInputStream` is public due to a historical mistake. I'd like to add an OpenSSL checksum backend, but that's harder without breaking this API. Let's ignore it and create a new private version, so it's easier to do the GLib/OpenSSL abstraction in one place. Closes: #738 Approved by: jlebon
* lib: Use sd_journal directly (optionally)Colin Walters2016-06-211-2/+4
| | | | | | | | | | | | | | This was the last caller of libgsystem that isn't `gs_file_get_path_cached()`. I think the use case ostree has where the same code can be called via command line and via a shared library *and* via a daemon is rather unusual, so let's just copy the code for logging from libgsystem into here. For example rpm-ostree hard depends on a daemon mode, so it'll just use `sd_journal` directly. Closes: #341 Approved by: jlebon
* libotutil: Establish a place for GPG utilitiesMatthew Barnes2015-05-011-2/+4
| | | | Add ot-gpg-utils.[ch] and move _ostree_gpg_error_to_gio_error() here.
* src: Move ot-tool-util from ostree/ to libotutil/Giuseppe Scrivano2015-03-061-0/+2
| | | | | | These utilities are not actually specific to the ostree commandline. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* libotutil: remove ot-waitable-queue.Giuseppe Scrivano2015-03-061-2/+0
| | | | | | | The module is not not used anymore. It can be restored from git if needed again. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Use libglnxColin Walters2015-02-221-1/+1
| | | | | | Starting down the path of not using libgsystem. The main win here will be code sharing between ostree/rpm-ostree as well as going down the path of not using GFile * for local files.
* Extract opendirat() helper function into libotutilColin Walters2014-09-161-0/+2
| | | | We were duplicating the code to do an opendirat() in a few places.
* Use external libgsystem 2014.2Colin Walters2014-04-041-2/+2
| | | | | | | It's been split off for a while, let's kill the code duplication. Among other things, this fixes the systemd detection for the journal logging.
* Remove built in "triggers"Colin Walters2013-07-071-2/+0
| | | | | | | | | | | | | | | Originally, the idea was that clients would replicate "OS/tree"s from a build server, but we'd run things like "ldconfig" on the client. This was to allow adding e.g. the nVidia binary driver. However, the triggers were the only thing in the system at the moment that really had expected knowledge of the *contents* of the OS, like the location of binaries. For now, it's architecturally cleaner if we move the burden of triggers to the tree builder (e.g. gnome-ostree or RPM). Eventually we may want OSTree to assist with this type of thing (perhaps something like RPM %ghost), but this is the right thing to do now.
* Switch to libgsystem local allocation macrosColin Walters2013-07-071-1/+0
| | | | And drop our compatibility wrapper.
* pull: Rework threading communication modelColin Walters2013-04-011-2/+2
| | | | | | | | Previously, I've observed bugs where we either: 1) Exit too early, leaving undownloaded objects 2) Hang while downloading This rewrite hopefully fixes both.
* pull: Asynchronous metadata fetchColin Walters2012-10-031-0/+2
| | | | | | | | | | Create a worker thread for processing metadata, reserving the main thread for HTTP requests. This can create a very significant efficiency win for large pull requests since we are much more likely to keep a full pipeline open. The status display is also nicer now.
* Extract keyfile helpers into libotutilColin Walters2012-09-151-0/+2
| | | | Will be used by ostree-pull too soon.
* build: Add --enable-triggers-onlyColin Walters2012-08-261-0/+2
| | | | | For bootstrapping gnome-ostree, we need to install the triggers early on, before we actually build the real ostree binary.
* Hard require GLib 2.34Colin Walters2012-07-151-2/+0
| | | | | Anyone wanting to build against an earlier version can use the embedded-dependencies system.
* Add libgsystem as git externalColin Walters2012-07-151-3/+2
| | | | Don't replace ot_lfree and stuff yet though...to much code churn.
* Support building with embedded glibColin Walters2012-06-141-2/+2
|
* ostadmin: Initial codeColin Walters2012-05-071-0/+3
|
* core: Clean up checksummingColin Walters2012-04-111-0/+2
| | | | | | | | Don't expose GChecksum in APIs. Add a new stream class which allows us to pass an input stream somewhere, but gather a checksum as it's read. Move some bits of the internals towards binary csums.
* core: Add macros for local allocationColin Walters2012-04-091-0/+2
| | | | | This is GCC-specific, but it makes the code significantly cleaner.
* core: Split pull functionality into separate ostree-pull binaryColin Walters2011-11-301-2/+2
| | | | This is to avoid everything depending on libsoup.
* build: Move sources into src/ againColin Walters2011-11-141-12/+12
| | | | | | This is necessary if we want to build when srcdir == builddir, otherwise we blow up because "ostree" is a source directory and a binary.
* Switch to using explicit WARN_CFLAGSColin Walters2011-11-111-1/+1
| | | | The rationale is documented well in the automake manual.
* Switch to LGPLv2+ for most codeColin Walters2011-11-101-12/+11
| | | | | | | | | | | Since we're making a shared library, it should be usable by non-GPL apps. To allow more code sharing between the core and the tests, move them to the LGPLv2+ too. A few bits of test and other code are still GPL. See the new COPYING file for more information.
* core: Make compose commits contain metadata about their compositionColin Walters2011-11-041-0/+2
| | | | This allows tracking of their history better.
* Some work on ostree-buildColin Walters2011-11-031-0/+2
|
* De-recursify source treeColin Walters2011-11-021-0/+33