From 7bcd5f8774051ed112d9f9461661dd162f95cd82 Mon Sep 17 00:00:00 2001 From: Noah Meyerhans Date: Tue, 2 Feb 2021 14:28:54 -0800 Subject: [PATCH] strip shortbreadv1.js from upstream source 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 | 1 + debian/patches/series | 1 + debian/patches/strip-shortbread-js | 39 ++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 debian/patches/strip-shortbread-js diff --git a/debian/copyright b/debian/copyright index 867185e0..52dfdd5f 100644 --- a/debian/copyright +++ b/debian/copyright @@ -4,6 +4,7 @@ Source: https://pypi.python.org/pypi/botocore Files-Excluded: botocore/vendored botocore.egg-info + docs/source/_static/shortbreadv1.js Files: * Copyright: Mitch Garnaat diff --git a/debian/patches/series b/debian/patches/series index 9c581f6b..054e5dfd 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 0001-Don-t-use-duplicated-modules.patch +strip-shortbread-js diff --git a/debian/patches/strip-shortbread-js b/debian/patches/strip-shortbread-js new file mode 100644 index 00000000..e3d8dfc5 --- /dev/null +++ b/debian/patches/strip-shortbread-js @@ -0,0 +1,39 @@ +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-botocore/docs/source/_templates/layout.html +=================================================================== +--- python-botocore.orig/docs/source/_templates/layout.html ++++ python-botocore/docs/source/_templates/layout.html +@@ -10,16 +10,9 @@ + + + + + {%- endblock %}