Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit dc3fc00

Browse files
author
Release Manager
committed
Trac #30687: "make python3-clean" should always remove local/bin/python3*
`make python3-clean` does not remove `$SAGE_LOCAL/bin/python3*` - certainly not if an external `python3` is used. We do the uninstallation in an `spkg-legacy-uninstall` script. (We also repair the `spkg-legacy-uninstall` mechanism - it was broken in #29096.) Critical for Sage 9.2 because it will help avoid puzzling incremental build behavior, which could include corruption of the installed system python if that is writable for the user. URL: https://trac.sagemath.org/30687 Reported by: dimpase Ticket author(s): Matthias Koeppe Reviewer(s): John Palmieri
2 parents 2b5c0ba + ad7d2c9 commit dc3fc00

File tree

18 files changed

+21
-2
lines changed

18 files changed

+21
-2
lines changed

build/bin/sage-spkg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ __EOF__
525525
}
526526

527527

528-
WRAPPED_SCRIPTS="build install check preinst postinst legacy-uninstall prerm postrm"
528+
WRAPPED_SCRIPTS="build install check preinst postinst prerm postrm"
529529
INSTALLED_SCRIPTS="prerm postrm"
530530

531531

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#! /usr/bin/env bash
12
rm -rf "${SAGE_LOCAL}"/include/boost
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /usr/bin/env bash
12
echo "Cleaning out old PolyBoRi and BRiAl installations"
23
rm -f "$SAGE_LOCAL"/lib/lib{polybori,brial}*
34
rm -rf "$SAGE_LOCAL"/include/polybori*
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#! /usr/bin/env bash
12
rm -rf $SAGE_SHARE/cunningham_tables
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /usr/bin/env bash
12
rm -f "$SAGE_LOCAL"/bin/ecl
23
rm -rf "$SAGE_LOCAL"/include/ecl
34
rm -rf "$SAGE_LOCAL"/lib/ecl
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /usr/bin/env bash
12
# Remove existing GAP 4.x install(s)
23
rm -rf "$SAGE_LOCAL/gap/gap-4."*
34
rm -rf "$SAGE_SHARE/gap"
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
#! /usr/bin/env bash
12
echo "Removing old version of gfan (if any)..."
23
rm -f "$SAGE_LOCAL"/bin/gfan*
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
#! /usr/bin/env bash
12
rm -rf "$SAGE_LOCAL"/include/gsl
23
rm -rf "$SAGE_LOCAL"/lib/libgsl*
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /usr/bin/env bash
12
# Cleanup of previous installation
23
rm -rf "${SAGE_SHARE}/jsmol/"
34
rm -rf "${SAGE_SHARE}/jmol/"
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#! /usr/bin/env bash
12
rm -fr "$SAGE_LOCAL"/include/libLfunction

0 commit comments

Comments
 (0)