1 [[!meta title="Releasing persistence-setup"]]
5 If running Wheezy or older, you will have to do the upstream part of
6 the work in a Jessie chroot (e.g. with pbuilder).
8 Install build and test dependencies
9 ===================================
11 Install build-dependencies listed in `debian/control`:
15 Install build-dependencies from Debian:
17 libdist-zilla-perl libdist-zilla-plugins-cjm-perl
18 libdist-zilla-plugin-installguide-perl
19 libdist-zilla-plugin-test-perl-critic-perl
20 libdist-zilla-plugin-test-notabs-perl
21 libdist-zilla-plugin-git-perl
22 liblocale-msgfmt-perl libmoosex-has-sugar-perl
25 Install build-dependencies that are not in Debian yet:
27 DEB_BUILD_OPTIONS=nocheck dh-make-perl --build --install --cpan Dist::Zilla::Plugin::LocaleMsgfmt
29 Make an upstream release
30 ========================
32 Enable new translations in `po/PACKAGE` and commit.
34 Export new upstream version number:
38 Update version number in `bin/tails-persistence-setup`:
40 perl -pi -E 's,^Version [0-9.]+,Version $ENV{VERSION},' bin/tails-persistence-setup
41 perl -pi -E "s,^our \\\$VERSION = '[0-9.]+';\$,our \\\$VERSION = '$VERSION';," bin/tails-persistence-setup
43 Commit all files that need to be:
45 git commit bin/tails-persistence-setup -m "tails-persistent-setup $VERSION"
47 Run the upstream test suite (point `PERL5LIB` to a checkout of the
48 relevant tag of Tails' perl5lib):
50 RELEASE_TESTING=1 PERL5LIB=/home/user/tails/perl5lib/lib fakeroot dzil test
52 Build an upstream tarball, tag the release, move the tarball out of
53 the build repository and cleanup:
56 git tag -s $VERSION -m "tails-persistent-setup $VERSION" && \
57 mv Tails-Persistence-*.tar.gz .. && \
58 rm -rf Tails-Persistence-* .build po/*.mo
60 Update the Debian package
61 =========================
63 Checkout the Debian packaging branch and import the new upstream tarball:
65 git checkout debian && \
66 git-import-orig --upstream-vcs-tag=$VERSION ../Tails-Persistence-$VERSION.tar.gz
68 Update `debian/changelog`:
72 (Do not forget to set the appropriate release.)
74 Commit `debian/changelog`:
76 git commit debian/changelog -m "$(head -n 1 debian/changelog | sed -e 's,).*,),')"
78 Build a Debian package (use a Wheezy/i386 chroot, that
79 has either tails-perl5lib installed, or the Tails APT repository
84 If everything is fine, add a signed tag to the repository and push the
87 git-buildpackage --git-tag-only --git-sign-tags && \
88 git push && git push --tags
90 (Make sure `master`, `upstream`, `debian` and `pristine-tar` were all pushed.)
92 Add the Debian package to Tails
93 ===============================
101 dupload --to tails $CHANGES_FILE