Commit Graph

2533 Commits

Author SHA1 Message Date
Simon McVittie a8ba90063f Document the limited situations in which ostree-grub2 will work in practice 2016-02-16 09:45:36 +00:00
Simon McVittie 36f302040d Close ITP bug 2016-02-16 08:19:22 +00:00
Simon McVittie c8665054dd debian/control: set Maintainer to the pkg-utopia team, with packaging in collab-maint git, and myself and Matthias Klumpp as uploaders 2016-02-16 08:19:21 +00:00
Simon McVittie dd30d52774 Redirect libexecdir to /usr/lib (not /usr/lib/${multiarch}) since we don't need multiarch for anything that's installed there, fixing a broken symlink in ostree-grub2 2016-02-16 08:19:18 +00:00
Colin Walters c18193bd19 man/ostree-export.xml: Add to git
Forgot to `git add`.
2016-02-15 06:39:49 -05:00
Colin Walters f0b6b358cd manual-tests: New static-delta-generate-crosscheck.sh
I wanted to test static deltas vs a repo with "real" content
in it from Fedora Atomic.
2016-02-14 10:28:17 -05:00
Colin Walters 42c60effbe pull: Support specifying exact commit to pull via branch@commit
I don't know why we didn't do this a long time ago.  This extends the
pull API to allow grabbing a specific commit, and will set the branch
to it.  There's some support for this in the deploy engine, but there
are a lot of reasons to support it for raw pulls (such as subset
mirroring cases).

In fact I'm thinking we should also have the override-version logic
here too.

NOTE: One thing I debated here is inventing a new syntax on the
command line.  Git doesn't seem to have this functionality (probably
because it'd be rarely used). The '@' character at least doesn't
conflict with anything.

Anyways, I wanted this for some other test cases.  Without this,
writing tests that go between different commits is more awkward as one
must generate the content in one repo, then pull downstream, then
generate more content, then pull again.  But now I can just keep track
of commit IDs and do exactly what I want without synchronizing the
tests.
2016-02-14 10:12:26 -05:00
Colin Walters 355f8438ef Add an `export` builtin, and API to write to libarchive
At the moment I'm looking at using rpm-ostree to manage RPM inputs
which can then be converted into Docker images.  It's most convenient
if we can stream directly out of libostree rather than doing a
checkout + tar combination.

There are also backup/debugging etc. reasons to implement `export` as
well.
2016-02-14 09:53:01 -05:00
Colin Walters e9ccdd2d00 Import rofiles-fuse
While it's not strictly tied to OSTree, let's move
https://github.com/cgwalters/rofiles-fuse in here because:

 - It's *very* useful in concert with OSTree
 - It's tiny
 - We can reuse OSTree's test, documentation, etc. infrastructure

One thing to consider also is that at some point we could experiment
with writing a FUSE filesystem for OSTree.  This could internalize a
better equivalent of `--link-checkout-speedup`, but on the other hand,
the cost of walking filesystem trees for these types of operations is
really quite small.

But if we did decide to do more FUSE things in OSTree, this is a step
towards that too.
2016-02-10 13:11:25 +01:00
Matthew Barnes 5adafd7674 fetcher: Fix hung GTlsInteraction
The GTlsInteraction instance must be created in the session thread
so it uses the correct GMainContext.
2016-02-09 00:58:17 +00:00
Colin Walters 0481389afd lib: Expand `ostree static-delta show` to show part stats
Now we display stats on the individual parts, such as the blob size
and the number of each type of opcode.  Most interesting to me is
things like how many bsdiff opcodes there are vs new objects, etc.
2016-02-08 14:46:13 +01:00
Colin Walters 56fc249d08 lib: Create an internal static delta parsing/opening function
We had code to deal with opening/checksumming/decompressing static
deltas in a few places.  I'd like to teach `ostree static-delta show`
how to display more information, and this will allow it to just use
`_ostree_static_delta_part_open()` too.
2016-02-08 14:46:13 +01:00
Colin Walters 8702ec7b3e build: Remove --disable-static-deltas option
I'm confident now we can declare them stable.
2016-02-08 14:46:13 +01:00
Colin Walters 0c15c9d6dd README.md: Update to link to Read The Docs, describe a bit better 2016-02-08 14:35:24 +01:00
Colin Walters 371856b6e4 docs-md: Delete (obsoleted by docs/)
This was just a prototype start at markdown docs that I never picked
back up.  Now that we have the Markdown/mkdocs done, delete this.
2016-02-08 14:24:24 +01:00
Giuseppe Scrivano b0163d6182 build: 'make clean' removes parse-datetime.c
and fix make dist while at it.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2016-02-07 14:56:21 +01:00
Colin Walters ba272008a7 packaging: Sync spec file with Fedora 2016-02-03 10:22:01 -05:00
Simon McVittie 2c94045b9d ostree-grub2: recommend concrete GRUB packages instead of hard-depending on a transitional package
This is only a Recommends because you could be using some other
architecture's grub packages.
2016-01-29 18:31:07 +01:00
Simon McVittie a10508d966 Adjust upstream version number to work around mis-versioned PPA packages
2016.1-1 is less than 2016.1-alexlarsson, but 2016.1+deb-1 is greater.
2016-01-29 11:45:38 +01:00
Simon McVittie 5222f5a7c9 Don't override dh_auto_clean to nothing 2016-01-29 11:42:05 +01:00
Simon McVittie 4470927dc1 Enable systemd helpers, but do not start the early-boot systemd services on installation 2016-01-29 11:42:05 +01:00
Simon McVittie 7eee7ce2fe Add an ostree-tests package, and use it for autopkgtest 2016-01-29 11:42:05 +01:00
Simon McVittie b63ecc385a Add missing dependency on libglib2.0-dev 2016-01-29 11:42:05 +01:00
Simon McVittie 1f44841f22 Add a symbols file 2016-01-29 11:42:05 +01:00
Simon McVittie 4cd71f8f9d Use dh_install --fail-missing to catch mistakes 2016-01-29 11:42:05 +01:00
Simon McVittie 91bb116275 debian/patches: remove all patches, no longer needed or applied 2016-01-29 11:42:05 +01:00
Simon McVittie a0354c249d Remove unnecessary uses of dh-exec 2016-01-29 11:42:05 +01:00
Simon McVittie ff701fbafe debian/control: change Section to admin 2016-01-29 11:42:05 +01:00
Simon McVittie 805c34d1fb debian/control: remove redundant Section 2016-01-29 11:42:05 +01:00
Simon McVittie d2a1bfa7fc debian/control: move shared library to Section: libs 2016-01-29 11:42:05 +01:00
Simon McVittie 9e42d6c8e2 Normalize packaging via `wrap-and-sort -abst` 2016-01-29 11:42:05 +01:00
Simon McVittie 87eccfbda7 debian/control: set Maintainer to the pkg-utopia team 2016-01-29 11:42:05 +01:00
Simon McVittie e47d0e0a83 debian/copyright: fill in all copyright holders and licenses 2016-01-29 11:42:04 +01:00
Colin Walters 98d5f6e3db static-delta: Add `show` subcommand
Right now though, almost all of the details of deltas are private, so
we can't do the "honest thing" and have the command line just use the
shared library.

Eventually some of this should appear in the API, but for now add
command line which is useful for debugging.
2016-01-28 15:38:09 -05:00
Colin Walters 944b3abab1 build: Hoist man conditional higher
So we actually build with `--disable-man`.
2016-01-28 15:34:38 -05:00
Colin Walters fa9e547e09 lib: Add a #define OSTREE_SHA256_DIGEST_LEN 32
And use it internally.  This way it's a bit less magical.
2016-01-28 15:24:16 -05:00
Colin Walters c74ea8b075 build: Add --disable-man
Gnome Continuous doesn't have docbook, so copy what we do for glib.
2016-01-28 15:22:10 -05:00
Colin Walters ca57ec4aa5 repo: Port -refs.c to openat()
I'd like to incrementally convert all of `ostree-repo*.c` to
fd-relative usage, so that we can sanely introduce
`ostree_repo_new_at()` which doesn't involve GFile.

This one is medium risk, but passes the test suite.
2016-01-28 14:57:13 -05:00
Colin Walters 5bab946b80 apidoc: Remove unnecessary srcdir != builddir workaround
It seems to be fine with `gtk-doc-1.19-3.el7.noarch`, so let's drop
this workaround, as it causes `make` warnings.
2016-01-28 09:31:37 -05:00
Colin Walters 64ebe2b82a Rewrite manual in mkdocs
I don't much like Docbook (and am considering converting the man pages
too), but let's start with the manual.

I looked at various documentation generators (there are a lot), and
I had a few requirements:

 - Markdown
 - Packaged in Fedora
 - Suitable for upload to a static webserver

`mkdocs` seems to fit the bill.
2016-01-28 09:31:37 -05:00
Colin Walters 32c360b5a0 build: Rename doc/ -> apidoc/
This is preparation for introducing a `mkdocs` manual under `doc/`
which should be significantly more useful for the world at large than
the minimal manual that exists there now.
2016-01-28 09:31:34 -05:00
Colin Walters 313b4720e8 build: Move man pages into man/
This is preparation for having 3 separate doc build systems (whee):

 - xsltproc for the man pages
 - gtk-doc for the API docs
 - mkdocs for a real manual
2016-01-28 09:31:34 -05:00
Colin Walters 5ebe43859d tests: Use "bash strict mode"
I noticed in the static deltas tests, there were some tests that
should have been under `-o pipefail` to ensure we properly propagate
errors.

There were a few places where we were referencing undefined variables.

Overall, this is clearly a good idea IMO.
2016-01-27 11:44:10 -05:00
Colin Walters 3d2322db7a grub2: Don't delete grub2.cfg.old file we just copied
The original intention here was that we'd keey around a copy of the
file so that grub2 could eventually learn how to do atomic updates by
checking for a "fully written" marker in the *new* file, and if it
didn't exist, falling back to grub2.cfg.old.

I haven't yet proposed that upstream, but we might as well stop
deleting the file since it's useful as a backup at least.

Reported-by: Gatis Paeglis
2016-01-27 10:46:12 -05:00
Simon McVittie af2671ab1d debian/.gitignore: add 2016-01-27 13:09:01 +01:00
Simon McVittie 46a386cd0a Extend package descriptions a bit 2016-01-27 13:05:28 +01:00
Simon McVittie d32931e44e Remove -dbg package, rely on automatic dbgsym packages instead 2016-01-27 13:04:58 +01:00
Alexander Larsson f084b65aa1 Imported Debian patch 2016.1-alexlarsson1~wily1 2016-01-27 12:33:26 +01:00
Simon McVittie 62a4fef292 Imported Upstream version 2016.1 2016-01-27 12:31:07 +01:00
Colin Walters 91a1f91440 refs: Add a missing `goto out` for error handling
If the `refs/remotes` directory doesn't exist, we'd trip an assertion.
2016-01-26 16:48:37 -05:00