From 6f03c00d6fbffefd5ef6dedeaa7d8d785bb9008a Mon Sep 17 00:00:00 2001 From: Noah Meyerhans Date: Wed, 22 Sep 2021 10:41:45 -0700 Subject: [PATCH] strip the shortbread javascript component from the source tarball shortbreadv1.js is distributed as minimized javascript with no copyright or license information and no links to the original source. So we remove it from the orig tarball and remove references --- debian/copyright | 2 ++ debian/patches/series | 1 + debian/patches/strip-shortbread-js | 33 ++++++++++++++++++++++++++++++ debian/watch | 1 + 4 files changed, 37 insertions(+) create mode 100644 debian/patches/strip-shortbread-js diff --git a/debian/copyright b/debian/copyright index 12027c6..15728f1 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,6 +1,8 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: python-boto3 Source: https://github.com/boto/boto3 +Files-Excluded: + docs/source/_static/shortbreadv1.js Files: * Copyright: 2013-2015 Amazon.com, Inc. diff --git a/debian/patches/series b/debian/patches/series index bb15853..162968b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ do-not-use-vendored-code.patch +strip-shortbread-js diff --git a/debian/patches/strip-shortbread-js b/debian/patches/strip-shortbread-js new file mode 100644 index 0000000..db44c97 --- /dev/null +++ b/debian/patches/strip-shortbread-js @@ -0,0 +1,33 @@ +Description: strip shortbreadv1.js from source tarball + shortbreadv1.js is distributed as minimized javascript with no + copyright or license information and no links to the original + source. So we remove it from the orig tarball and remove references + to it from the rest of the package contents. + . + The javascript in quesetion is related to interactive questions about + affermative cookie consent as required by GDPR and other + regulations. Since we are not building HTML docs at all as part of + this package, removing this file has no material impact on the + packages we build. +Author: Noah Meyerhans +Forwarded: not-needed +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: python-boto3/docs/source/_templates/layout.html +=================================================================== +--- python-boto3.orig/docs/source/_templates/layout.html ++++ python-boto3/docs/source/_templates/layout.html +@@ -7,13 +7,6 @@ + + {%- block footer %} +