From: Russ Allbery Date: Thu, 3 Jan 2013 05:39:44 +0000 (-0800) Subject: Use git-import-orig instead of debian/import-upstream X-Git-Tag: debian/1.6.2_pre2-1~11 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d2b3948d55d56b8e2d853e3e242325f7c4f6a2a4;p=packages%2Fo%2Fopenafs.git Use git-import-orig instead of debian/import-upstream * Remove debian/import-upstream and change README.source to document using git-import-orig with --upstream-vcs-tag instead. --- diff --git a/debian/README.source b/debian/README.source index 6e88e1534..84c523c8e 100644 --- a/debian/README.source +++ b/debian/README.source @@ -44,7 +44,7 @@ Importing a New Upstream Release 3. Run debian/rules get-orig-source. This will generate a tarball from the upstream Git tag using git archive, remove the WINNT - directory, and create a file named openafs_.orig.tar.gz in + directory, and create a file named openafs_.orig.tar.xz in the current directory. 4. Ensure that you have the OpenAFS upstream Git repository available @@ -69,30 +69,12 @@ Importing a New Upstream Release 6. Import the upstream source from the tarball with: - debian/import-upstream + git-import-orig --upstream-vcs-tag - where is the tarball created by get-orig-source above, - is the corresponding tag from the upstream Git - repository, and is of the form upstream/ where - is the non-Debian portion of the package version number. - (In other words, including any tildes, but not the dash and the - Debian revision.) Replace any tildes in the version with periods - when forming the local tag (due to Git limitations). + where is the tarball created by get-orig-source above and + is the corresponding tag from the upstream Git repository. - 7. Commit the tarball to the repository with pristine-tar, using the - new local tag as the reference: - - pristine-tar commit - - 8. Merge the new upstream source into the master branch: - - git checkout master - git merge - - where is the tag you used above. You can also just - merge with the upstream branch; either is equivalent. - - 9. Flesh out the changelog entry for the new version with a summary of + 7. Flesh out the changelog entry for the new version with a summary of what changed in that release, and continue as normal with Debian packaging. @@ -133,4 +115,4 @@ Pulling Upstream Changes edited as necessary to keep the length of the changelog lines down. - -- Russ Allbery , Mon, 18 Jul 2011 16:52:14 -0700 + -- Russ Allbery , Wed, 2 Jan 2013 21:38:50 -0800 diff --git a/debian/changelog b/debian/changelog index c3e18dc61..a889147c7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -16,6 +16,8 @@ openafs (1.6.2~pre2-1) UNRELEASED; urgency=low bytes of a file as nulls. - Support Linux kernels up to 3.7. - Support newer glibc versions. + * Remove debian/import-upstream and change README.source to document + using git-import-orig with --upstream-vcs-tag instead. -- Russ Allbery Wed, 02 Jan 2013 21:25:52 -0800 diff --git a/debian/import-upstream b/debian/import-upstream deleted file mode 100755 index 4d05c1891..000000000 --- a/debian/import-upstream +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh -# -# This script is used rather than git-import-orig to import a new upstream -# tarball. It does essentially the same work as git-import-orig -- take the -# contents of the tarball and commit it to the upstream branch and then tag it -# with a new upstream/* tag -- but it records that commit as a merge commit -# between the upstream branch and another tag. -# -# The purpose of this procedure is to have the imported tarball look to Git -# like a merge between upstream's tagged Git tree corresponding to that -# tarball and our upstream branch. This lets things like git cherry-pick work -# properly against upstream's release branch. -# -# This script assumes that the upstream tarball has already had non-DFSG -# material removed. -# -# Written by Sam Hartman for krb5 -# Adopted for openafs by Russ Allbery - -set -e - -if [ $# -ne 3 ] ; then - echo "Usage: import-upstream " >&2 - exit 2 -fi -tarball="$1" -upstream="$2" -tag="$3" - -# Unpack the tarball. -dir=$(basename $(tar tzf "$tarball" | head -1)) -tar xzf "$tarball" - -# Add the tarball to the current index and then use that to create a tree -# object corresponding to the contents of that directory. Then, use -# commit-tree to commit that to the repository. -git add -f "$dir" -tree=$(git write-tree --prefix="$dir"/) -commit=$(echo "Imported upstream tag $upstream via tarball" | \ - git commit-tree "$tree" -p upstream -p $(git rev-list -n1 "$upstream")) - -# Now that we have a commit, repoint upstream at that commit, tag it, and then -# remove the unpacked upstream tarball from our index. -git branch -f upstream "$commit" -git tag "$tag" "$commit" -git rm -q -r -f "$dir" -rm -rf "$dir"