[sagemath] 01/02: Document the other fucking sbuild work-arounds
Ximin Luo
infinity0 at debian.org
Wed Dec 14 07:58:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository sagemath.
commit 770532cb1cc1df53c6a1a02493ec911cbebf2251
Author: Ximin Luo <infinity0 at debian.org>
Date: Wed Dec 14 08:56:51 2016 +0100
Document the other fucking sbuild work-arounds
---
debian/deb-sci-sage.asc | 31 +++++++++++++++++++++++++++++++
debian/rules | 6 ++++++
2 files changed, 37 insertions(+)
diff --git a/debian/deb-sci-sage.asc b/debian/deb-sci-sage.asc
new file mode 100644
index 0000000..f22eb7c
--- /dev/null
+++ b/debian/deb-sci-sage.asc
@@ -0,0 +1,31 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQENBFbgloABCADjGd0ZcoSc0LWQ8us8RX9lykApIT5FGsUvOAln5nDR87P38pwk
+KvKGzr6m9NOvgiXIS+3duZOb5kd6/zG0Yq+j/iynqqeGoAm7gtecTdUEfkx2f0g/
+FMEOuEwPyXhVcKBvJuZMrcy2EaWrpATNMfFGj2R5uA/RexLtU0r8F1Izo+zr5ZjR
+RtTRge/w+XSe8nD0hhEWC7ttQc6sEPvcK/VnsiIMN0EQ97WSzh1yPhtvjx3uIlMm
+vEbVfjVnUzqliYDwYjnMJmJCi1M5RJyg6dhlmMua2K09iofYp9g5de5lHWPrjQma
+sdXNDp3mgzX2M/JJrV+clw6o6EO2w5kYt1jFABEBAAG0bURlYmlhbiBTY2llbmNl
+IE1haW50YWluZXJzIChBbGlvdGggQVBUIHJlcG8gc2lnbmluZyBrZXkpIDxkZWJp
+YW4tc2NpZW5jZS1tYWludGFpbmVyc0BsaXN0cy5hbGlvdGguZGViaWFuLm9yZz6J
+AT4EEwECACgFAlbgloACGwMFCQlmAYAGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheA
+AAoJEFSz+WcJdnagNiQH/13sgJzkNQ/Q6ymcflc/aOKbhMXagnQrw+K/PsuA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uJ
+AAAbqbJGFSz+h770NYoKE1OrzP8koeqL
+=r+98
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/debian/rules b/debian/rules
index 61fed50..62c2ed1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -241,11 +241,17 @@ get-orig-source:
dpkg-buildpackage -d -uc -us -S
# The extra python-related stuff is a temporary work-around for #847791
+# You may also have to apply some local work-arounds for sbuild/debootstrap bugs etc
+# - echo "/var/cache/apt/archives /var/cache/apt/archives none rw,bind 0 0" >> /etc/schroot/sbuild/fstab
+# This helps to avoid http errors due to the mirror network being shitty and apt not doing retries
+# - The first part of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=817236#5
+# Sage needs it due to its pexpect etc stuff
release: ../sagemath_$(DEB_VERSION).dsc
sbuild \
--extra-repository='deb http://httpredir.debian.org/debian experimental main' \
--chroot-setup-commands='apt-get install -y apt-transport-https' \
--extra-repository='deb https://debian-science.alioth.debian.org/apt sid-sage/' \
+ --extra-repository-key=debian/deb-sci-sage.asc \
--chroot-setup-commands='echo deb https://debian-science.alioth.debian.org/apt sid-sage/ >> /etc/apt/sources.list' \
--chroot-setup-commands='apt-get update && apt-get -t sid-sage install -y python2.7=2.7.13~rc1-1.1 libpython2.7=2.7.13~rc1-1.1 python2.7-dev=2.7.13~rc1-1.1' \
--chroot-setup-commands='{ for i in python2.7 python2.7-minimal libpython2.7-stdlib libpython2.7 python2.7-dev; do echo $$i hold; done; } | dpkg --set-selections' \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git
More information about the debian-science-commits
mailing list