Debian Codegraph @

debian/README.source

raw
1 Upstream's use of submodules complicates orig handling somewhat. The
2 need to strip out some nonfree content (primarily IETF RFCs) from the
3 upstream tarball adds additional complexity.
4
5 The general approach is to construct a temporary tarball from upstream
6 git that contains the complete unfiltered upstream source including
7 submodules and non-dfsg artifacts and then import this to the
8 upstream_dfsg branch using `gbp import-orig`.
9
10 Important branches:
11
12 upstream: upstream source is tracked on the 'upstream' branch. This
13 branch should track the 'main' branch of
14 https://github.com/awslabs/aws-crt-python.git exactly, with
15 all git commit IDs matching.
16
17 upstream_dfsg: this is the 'upstream' branch minus any non-DFSG
18 compliant content (e.g. IETF RFCs). When preparing to
19 import a new upstream version, the upstream tag
20 corresponding with the new release should be merged
21 into this branch.
22
23 # The workflow is approximately as follows:
24
25 # What is the upstream tag?
26 $ read upstream_tag
27 $ version=$(echo $upstream_tag| sed 's,^v,,')
28 $ archive_name="aws-crt-python-${version}.tar"
29 $ prefix="aws-crt-python-${version}/"
30 $ git checkout "${upstream_tag}"
31 $ git submodule update --init
32 $ git archive --format tar -o "$archive_name" --prefix="$prefix" "$upstream_tag"
33 # descend recursively and archive each submodule
34 $ PREFIX="$prefix" git submodule --quiet foreach --recursive 'git archive --format tar --prefix="${PREFIX}${displaypath}/" -o submodule.tar HEAD'
35 # concatenate with main archive
36 $ TOPDIR=$(pwd) ARCHIVE_NAME="$archive_name" git submodule --quiet foreach --recursive 'cd $TOPDIR; tar --concatenate --file="$ARCHIVE_NAME" $displaypath/submodule.tar; rm -fv $displaypath/submodule.tar'
37 $ gzip -9 "$archive_name"
38 $ git submodule deinit --all
39 $ git checkout debian/sid
40
41 -- Noah Meyerhans <[email protected]>, Sat, 14 Jan 2023 10:02:55 -0800
42
43