Commit Graph
100 Commits
Author SHA1 Message Date
Simon McVittie c7636038dd Use the right version number 2017-04-10 10:48:55 +01:00
Simon McVittie 6f08940401 d/ostree.maintscript: Clean up obsolete conffiles
These existed before we started removing what will eventually become
ostree-boot (see #824650).
2017-04-10 09:39:58 +01:00
Simon McVittie f537739bb0 2017.3-1 2017-03-16 06:58:55 +00:00
Simon McVittie b5ec28689a Cope with more files having moved to /usr/lib/libostree 2017-03-11 19:21:22 +00:00
Simon McVittie 92dbc7fbee build-depend on python, python-yaml for tests 2017-03-11 00:07:01 +00:00
Simon McVittie 7cfba14407 New upstream release
- d/copyright: update
  - symbols file: update
  - tests, ostree-tests.install: update for new location of tests
  - d/control: ostree-tests now needs python-yaml
2017-03-10 23:51:01 +00:00
Simon McVittie eb5b1dc90f Use upstream spelling of the name 2017-03-10 23:20:43 +00:00
Simon McVittie df8af664bd Merge tag 'upstream/2017.3' into debian/master
Upstream version 2017.3
2017-03-10 23:16:42 +00:00
Simon McVittie 057de00126 New upstream version 2017.3 2017-03-10 23:16:34 +00:00
Simon McVittie bb063fb178 d/watch, d/copyright: upstream project is now named libostree 2017-03-10 23:15:56 +00:00
Simon McVittie ce10fd9261 libostree: Don't distribute generated enumtypes in tarballs
They are built at "make" time and cleaned up by "make clean", so there
is no need to distribute them.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #665
Approved by: cgwalters
2017-01-31 22:30:37 +00:00
Simon McVittie 37e5dce435 2017.1-1 2017-01-27 10:24:01 +00:00
Simon McVittie 1ab54d1de7 Explicitly depend on autoconf, automake, libtool
This avoids builds for experimental non-deterministically pulling in an
older version of automake, in my case automake1.11 which is far too old.
2017-01-27 10:23:40 +00:00
Simon McVittie 6350e9ba20 New upstream release 2017-01-27 10:10:18 +00:00
Simon McVittie 1b4cf71201 Merge tag 'upstream/2017.1' into debian/master
Upstream version 2017.1
2017-01-27 08:58:18 +00:00
Simon McVittie 6ee013cea0 New upstream version 2017.1 2017-01-27 08:58:11 +00:00
Simon McVittie 24daa50790 Remove an unintended line in the previous changelog 2017-01-19 16:46:09 +00:00
Simon McVittie 9d94fc40c8 Make corrupt-repo-ref.js executable
Debian's Lintian packaging consistency check complains that it isn't
executable but has a #! line. In fact it's reasonable to run this
script directly, so make it executable, and put it in a _scripts
variable so it will be installed executable.

Closes: #652
Approved by: cgwalters
2017-01-19 13:54:59 +00:00
Simon McVittie 9a3f82caae Sourced test snippets: remove shebang and make non-executable
They are installed non-executable, which makes Debian's Lintian
packaging consistency check complain that #! is only useful
in executable scripts. But in fact they are not useful to execute
directly (they rely on setup being done in the script that sources
them), so just chmod them -x.

Closes: #652
Approved by: cgwalters
2017-01-19 13:54:59 +00:00
Simon McVittie 01fb30b839 Fix TAP syntax in test-basic-user.sh, and run it
In its initial commit, Alexander Larsson wrote

    This works standalone, but unfortunately it breaks in
    gnome-desktop-testing-runner as /tmp doesn't support
    xattrs, so it is not installed atm.

but we now (a) use /var/tmp, and (b) explicitly skip the test if
xattr support is unavailable. So it should be OK to run now.

Closes: #652
Approved by: cgwalters
2017-01-19 13:54:59 +00:00
Simon McVittie 5148760e6b 2016.15-3 2017-01-19 13:33:31 +00:00
Simon McVittie 7a075b9f5a d/p/Fix-TAP-syntax-in-test-basic-user.sh-and-run-it.patch: Run an additional test, which was previously installed but not run 2017-01-19 12:07:39 +00:00
Simon McVittie 7855081a11 Fix permissions and #! lines for some tests in the upstream build system
d/rules: remove workarounds for script permissions.
The upstream build system now uses the intended permissions throughout.

Retain explicit chmod for *.js, which dh_fixperms assumes should not be executable.
2017-01-19 12:07:39 +00:00
Simon McVittie f0785125c2 debian/tests/test-local-pull: Run the unreliable test separately, repeated 3 times to assess how often it fails 2017-01-19 12:07:39 +00:00
Simon McVittie 33f37eb6d6 Skip test-local-pull.sh.test which suffers from a known bug (#842606) 2017-01-19 12:07:39 +00:00
Simon McVittie d855d786c6 Don't run gjs tests on sparc64
gjs doesn't seem to work there at all (#827815).

Silence missing-dep-for-interpreter error on sparc64, where we install
the script but do not attempt to run it.
2017-01-19 11:59:15 +00:00
Simon McVittie 9112512367 2016.15-2 2016-12-20 11:28:52 +00:00
Simon McVittie 3fcd09ca33 Make all test failures non-fatal at build time, so that intermittent test failures do not interfere with possible security updates during Debian stretch-as-stable. 2016-12-20 11:28:22 +00:00
Simon McVittie f7eaa67d1f 2016.15-1 2016-12-13 13:13:55 +00:00
Simon McVittie 2dd68bb7bf New upstream release
- d/patches: drop all patches, applied upstream
2016-12-13 13:02:07 +00:00
Simon McVittie b76f46c53a Merge tag 'upstream/2016.15' into debian/master
Upstream version 2016.15
2016-12-13 13:00:33 +00:00
Simon McVittie 0ee312bf3e New upstream version 2016.15 2016-12-13 13:00:20 +00:00
Simon McVittie c733e21a84 Terminate individual tests after (10 * $TEST_TIMEOUT_FACTOR) minutes
While using the Automake parallel test harness, if a test hangs for
long enough for an external watchdog to kill the entire build process
(as happens in Debian sbuild after 150 minutes with no activity on
stdout/stderr), the logs will not be shown. If we make an individual
test time out sooner, logs are more likely to be shown.

We use SIGABRT so that the process(es) under test will dump core,
allowing the point at which ostree is blocking to be analyzed.
After 1 minute, if any have not died, we kill them again with SIGKILL.

To support slow platforms and slow debugging tools, if
TEST_TIMEOUT_FACTOR is set, multiply the 10 minute timeout by that.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #607
Approved by: cgwalters
2016-12-01 18:22:51 +00:00
Simon McVittie 8162463956 tests: prepend to an existing LD_LIBRARY_PATH, GI_TYPELIB_PATH
If we're using LD_LIBRARY_PATH for some locally-built library, we want
to search those after OSTree's own libraries.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #606
Approved by: cgwalters
2016-12-01 14:23:40 +00:00
Simon McVittie 2a66110162 2016.14-2 2016-12-01 12:39:15 +00:00
Simon McVittie 0e2a6b4779 d/p/*.patch: import more memory leak fixes from upstream 2016-12-01 12:38:52 +00:00
Simon McVittie 9dd341b8b4 d/p/Terminate-individual-tests-after-10-minutes.patch: replace d/p/debian/Terminate-individual-tests-after-half-an-hour.patch with the version that I sent upstream, which uses SIGABRT and terminates the tests sooner 2016-12-01 12:38:14 +00:00
Simon McVittie 384b7abbd9 Make build-time test failures non-fatal if 3 out of 5 attempts succeed
There are several upstream bugs that cause intermittent test failures,
and can intermittently be reproduced in real use. However, these are not
regressions, so we should not FTBFS just because we happen to have been
unlucky during build.
2016-12-01 12:33:59 +00:00
Simon McVittie 86345424f3 2016.14-1 2016-11-29 11:05:59 +00:00
Simon McVittie dd53e8d750 Import various post-release fixes from upstream 2016-11-29 01:22:24 +00:00
Simon McVittie 7a1f6f353d update symbols file for new ABI 2016-11-29 01:17:41 +00:00
Simon McVittie 4d7826f2c8 New upstream release 2016-11-29 01:16:40 +00:00
Simon McVittie 741ac33356 Merge tag 'upstream/2016.14' into debian/master
Upstream version 2016.14
2016-11-29 01:10:36 +00:00
Simon McVittie 90f43fba94 New upstream version 2016.14 2016-11-29 01:10:29 +00:00
Simon McVittie e7b52cea11 Drop the version from versioned build-dependencies where the required version was already present in oldstable 2016-11-24 10:51:30 +00:00
Simon McVittie 95e1ec7d87 Switch the build-dependency on libgpgme11-dev (which no longer exists as a real package) to libgpgme-dev 2016-11-24 10:49:17 +00:00
Simon McVittie b6db024324 2016.13-1 2016-11-20 21:58:17 +00:00
Simon McVittie 9283418205 d/copyright: drop copyright and license stanzas for files that are in upstream git but not in tarballs 2016-11-20 15:51:50 +00:00
Simon McVittie 8b98e195b4 New upstream release
- d/p/dist/Retrieve-some-missing-test-files-from-upstream-git.patch:
    remove, 2016.13 was released with a fixed "make dist"
  - d/p/Filter-bootloader-supplied-kernel-cmdline-options.patch:
    remove, merged upstream
2016-11-20 15:49:12 +00:00
Simon McVittie e1d62b681e Merge tag 'upstream/2016.13' into debian/master
Upstream version 2016.13
2016-11-20 15:41:41 +00:00
Simon McVittie d02ef65cdc New upstream version 2016.13 2016-11-20 15:41:33 +00:00
Simon McVittie 8ae03d6497 load_metadata_internal: don't leak GBytes
Found by valgrind memcheck. g_variant_new_from_bytes takes a ref to the
bytes, so we need to release the original ref.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #556
Approved by: cgwalters
2016-10-30 22:11:15 +00:00
Simon McVittie 24af123c53 Fix some leaks of floating GVariants
ostree_repo_pull_with_options() and ostree_repo_remote_change() don't
sink floating GVariant arguments, and doing so now would be an
ABI change; so don't rely on them to do so.

Leak found with valgrind memcheck.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #556
Approved by: cgwalters
2016-10-30 22:11:15 +00:00
Simon McVittie 53f1fabfbe ot_remote_builtin_show_url: autofree context
Leak found with valgrind memcheck.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #556
Approved by: cgwalters
2016-10-30 22:11:15 +00:00
Simon McVittie 1fc2a1202e ostree_repo_pull_with_options: clear dirs array
Leak found with valgrind memcheck.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #556
Approved by: cgwalters
2016-10-30 22:11:15 +00:00
Simon McVittie 4739709742 keyfile_set_from_vardict: free the string array
g_variant_get_strv is (transfer container): the caller is expected to
free the array, but not the individual strings.

Leak found with valgrind memcheck.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #556
Approved by: cgwalters
2016-10-30 22:11:15 +00:00
Simon McVittie c8a6b037ef _ostree_sysroot_write_deployments_internal: stop leaking hash table
It appears the result of assign_bootserials() is never actually used,
but I haven't changed it to return void right now.

Leak found with valgrind memcheck.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #556
Approved by: cgwalters
2016-10-30 22:11:15 +00:00
Simon McVittie ff28ac4a30 ostree_sysroot_upgrader_finalize: free new_revision
Leak found with valgrind memcheck.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #556
Approved by: cgwalters
2016-10-30 22:11:15 +00:00
Simon McVittie 4c32344b8e ostree_admin_option_context_parse: explicitly clean up when exiting early
The cleanup attribute doesn't clean up before calling a noreturn
function like exit(). Explicitly clean up the pointer variables
(but don't assume that a simple g_object_unref() would be OK either,
in case the behaviour of the cleanup attribute changes).

This isn't a real leak since we're about to exit anyway, but if we
don't fix it then valgrind memcheck will make the tests fail.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #559
Approved by: cgwalters
2016-10-30 21:37:38 +00:00
Simon McVittie 213d5013ce ostree_builtin_pull: consistently set free-function on refs_to_fetch
We are relying on the GPtrArray to free its contents, but we only
give it a free-function on one code path.

Found by valgrind memcheck.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #559
Approved by: cgwalters
2016-10-30 21:37:38 +00:00
Simon McVittie 22ed96d23c ot_admin_builtin_set_origin: don't leak options GVariant
Found by valgrind memcheck.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #559
Approved by: cgwalters
2016-10-30 21:37:38 +00:00
Simon McVittie e757f736e7 _ostree_kernel_args_replace_take: don't leak when replacing
If !existed, then we add arg to kargs->order, where it will be freed
by that array's free-function. However, if the kernel argument did
already exist, we have to either free arg ourselves (and make sure
the old key is what appears in the hash table), or do a linear search
on kargs->order to replace the old key with the new.

Leak found by valgrind memcheck.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #559
Approved by: cgwalters
2016-10-30 21:37:37 +00:00
Simon McVittie a0e7d411c1 Distribute valgrind suppressions in tarballs
Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #557
Approved by: cgwalters
2016-10-29 18:41:56 +00:00
Simon McVittie 4eb55a687d Distribute test scripts even if we wouldn't run them
This fixes a "make dist" tarball produced on a minimal system and run on a
non-minimal system. Automake knows that files that are only conditionally
included in dist_whatever_WHATEVER are to be distributed, but it does not
do the same for files that are only conditionally included in EXTRA_DIST,
which is how glib-tap.mk's various variables like dist_test_scripts work.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #557
Approved by: cgwalters
2016-10-29 18:41:56 +00:00
Simon McVittie 7091d288f7 Force C.UTF-8 or C locale for tests
Otherwise several tests fail, for example in this build done in a French
locale by Debian's reproducible builds initiative, to check whether
the resulting binaries are identical to what was produced in an
English locale:

<https://tests.reproducible-builds.org/debian/logs/unstable/amd64/ostree_2016.11-1.build2.log.gz>

(test-basic)
# error: Cannot write to repository: Permission non accordée
...
File 'error-message' doesn't match regexp 'Permission denied'

(test-help)
# Utilisation :
#   ostree [OPTION...] COMMAND
...
File 'out' doesn't match regexp '[Uu]sage'

(test-pull-metalink)
# error: Erreur à la ligne 1, caractère 1 : Le document doit commencer avec un élément (par ex. <book>)
...
File 'err.txt' doesn't match regexp 'Document must begin with an element'

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #558
Approved by: cgwalters
2016-10-29 18:12:42 +00:00
Simon McVittie b9dd03b680 2016.12-1 2016-10-26 19:11:27 +01:00
Simon McVittie 17e240ebb8 Build-depend on ca-certificates. glib-networking now generates warnings if those are missing, causing the build-time tests to fail. 2016-10-26 00:31:10 +01:00
Simon McVittie 52186325bc New upstream release 2016-10-26 00:07:14 +01:00
Simon McVittie bc870baa58 Merge tag 'upstream/2016.12' into debian/master
Upstream version 2016.12
2016-10-25 22:29:03 +01:00
Simon McVittie e011f1a1a1 New upstream version 2016.12 2016-10-25 22:28:55 +01:00
Simon McVittie 15be1f569a Force LC_ALL=C.UTF-8 during build
So that builds in non-English locales can pass their build-time tests.
2016-10-08 15:38:11 +01:00
Simon McVittie 3a097b18fc 2016.11-1 2016-10-07 23:39:12 +01:00
Simon McVittie e80d02f1f5 Fetch missing test files from upstream git
- debian/rules: make the missing scripts executable
2016-10-07 23:39:03 +01:00
Simon McVittie c8048cce30 Move to debhelper compat level 10
- stop using dh --parallel, it's the default now
  - don't use autoreconf and systemd addons explicitly, they are
    the default now
2016-10-07 22:16:17 +01:00
Simon McVittie e2cd2759a0 New upstream release 2016-10-07 22:12:18 +01:00
Simon McVittie a72b28bd32 Merge tag 'upstream/2016.11' into debian/master
Upstream version 2016.11
2016-10-07 21:52:26 +01:00
Simon McVittie f04805f646 New upstream version 2016.11 2016-10-07 21:52:21 +01:00
Simon McVittie 2eae12220e Fix spelling of "repository"
Detected by Debian's Lintian tool.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #519
Approved by: cgwalters
2016-10-01 18:50:41 +00:00
Simon McVittie b4aa279db3 debian/copyright: remove now-unused GPL-2+ license 2016-10-01 16:06:18 +01:00
Simon McVittie c800f12250 libostree-dev: stop depending on ostree
It isn't necessary to use the library, and would break multiarch
installability.
2016-09-30 22:42:02 +01:00
Simon McVittie a413cd0c28 Install GObject-Introspection typelibs to multiarch path, and mark gir1.2-ostree-1.0 as Multi-Arch: same 2016-09-30 22:38:41 +01:00
Simon McVittie 0229850943 Relicense debian/ from GPL-2+ to LGPL-2+, with permission from David King 2016-09-21 21:58:57 +01:00
Simon McVittie d7132eda03 2016.10-1 2016-09-15 08:27:07 +01:00
Simon McVittie 9b8038c28c Make libostree-doc Multi-Arch: foreign 2016-09-14 23:32:59 +01:00
Simon McVittie 3cbb901ce4 Make libostree-dev Multi-Arch: same 2016-09-14 23:32:27 +01:00
Simon McVittie c3e29fcf3b New upstream release 2016-09-09 16:57:59 +01:00
Simon McVittie b9c0804186 Merge tag 'upstream/2016.10' into debian/master
Upstream version 2016.10
2016-09-09 16:56:47 +01:00
Simon McVittie 9732c6c712 New upstream version 2016.10 2016-09-09 16:56:45 +01:00
Simon McVittie b83b3d05ee Terminate individual tests after 30 minutes
This is an attempt to debug what happened on the ppc64el buildd.
2016-09-09 08:25:07 +01:00
Simon McVittie 05a9a7e9d4 2016.9-1 2016-09-06 09:59:08 +01:00
Simon McVittie 54cca3dbd3 Add some more new ABI 2016-09-06 09:52:19 +01:00
Simon McVittie a840448250 d/p/Makefile-tests.am-make-check-uses-the-built-binaries.patch: drop, applied upstream 2016-09-06 09:34:37 +01:00
Simon McVittie 746f509b53 drop libgsystem build-dependency 2016-09-06 09:33:26 +01:00
Simon McVittie a5d90759a7 New upstream version
- update symbols file for new ABI
  - update copyright file
  - update ostree-boot packaging: the utilities in /usr/sbin moved to
    /usr/lib/ostree
2016-09-06 09:32:41 +01:00
Simon McVittie 0922be3ba5 Merge tag 'upstream/2016.9' into debian/master
Upstream version 2016.9
2016-09-06 09:14:31 +01:00
Simon McVittie 9caebfc847 New upstream version 2016.9 2016-09-06 09:14:29 +01:00
Simon McVittie 37c36fe4f7 Merge tag 'upstream/2016.8' into debian/master
Upstream version 2016.8
2016-09-06 09:02:00 +01:00
Simon McVittie ba02f3eb2f New upstream version 2016.8 2016-09-06 09:01:54 +01:00
Simon McVittie b76381eed1 Explicitly build-depend on xsltproc, which is directly used 2016-08-12 10:30:20 +01:00
Simon McVittie 46e118ee84 travis: run the test suite on various distributions
.travis.yml is obviously still Travis-specific, but tests/ci-* are
designed to be shareable with other CI environments if there is interest
in doing so.

At the moment I'm only testing on Debian and Ubuntu. In principle we
could try a non-Debian-derived Docker container such as Fedora or CentOS
inside travis-ci's Ubuntu environment, similar to what I'm doing
for Debian, but I don't know the correct setup commands to use there.

Closes: #438
Approved by: cgwalters
2016-08-05 23:58:19 +00:00