# Patches already applied upstream or committed in a side branch
# Or nearly-finished patches that they'll very probably merge.
u0-version-matplotlib-2.1.0.patch          #23696
u0-version-mpfr-4.0.patch                  #24353

# Patches that have open upstream tickets
u1-version-pbori-boost1.62-hashes.patch    #22243
u1-fix-dont-require-DISPLAY.patch          #22441
u1-fix-atrocious-symlink-logic.patch       #22444
u1-looser-doctest-basename.patch           #22445
u1-scripts-dir.patch                       #22731
u1-version-ipython-5.4.patch               #23125
u1-ipywidgets-repr.patch                   #https://github.com/jupyter-widgets/ipywidgets/pull/1031
u1-version-giac-1.2.3.57.patch             #TODO

# Patches that should be upstreamed (may need some work first)
u2-pari-stackwarn.patch                    #23263
u2-version-cddlib-094h.patch
u2-reproducible-docs.patch
u2-fix-trivial-test-cases.patch
u2-fix-sympow-cachedir.patch
u2-allow-override-sage-local.patch
u2-workaround-sympow-malloc-perturb.patch
u2-better-sphinx-failure-modes.patch

# Patch Sage to work with dependency Debian packages
# These won't change even if Debian and Sage use the same version
# Not suitable for upstreaming
d0-pari-2.9-revert-23544.patch
d0-arb.patch
d0-gsl-cblas.patch
d0-libgap-sage.patch
d0-maxima.patch
d0-nauty.patch
d0-pari.patch
d0-rubiks.patch
d0-singular.patch
d0-disable-jsmol.patch
d0-paths-sharedata.patch
d0-paths.patch
d0-threejs-offline-paths.patch

# Patch Sage to behave as a Debian package
# Not suitable for upstreaming
d1-install-paths.patch # many things in here could be split into an upstreamable patch
d1-sage-cli.patch
d1-sage-env.patch
d1-fakeroot.patch
d1-test-optional.patch
d1-multiarch-python-paths.patch
d1-doc-docs.patch
d1-disable-post-install-tests.patch

# Potentially controversial fixes
# We had to do these to make things work, at some time in the past
# It may be possible to drop these now or in the future; test that first.
df-revert-lazy-imports-22755.patch
df-revert-lazy-import-dependent-on-python-patch.patch
df-revert-minor-feature-dependent-on-python-patch.patch
df-python_security.patch
df-sage-gap-reset-doctest.patch
df-silence_ecl_opt_signals.patch
df-subprocess-sphinx.patch

# Temporary patches for whatever reason
# They will eventually be gotten rid of
dt-version-glpk-4.60-extra-hacky-fixes.patch
dt-r-no-readline.patch
dt-more-fix-test-cases.patch
dt-work-around-doc-common-conf.patch
