Skip to content

Commit 99796ad

Browse files
embraydimpase
authored andcommitted
Fix spkg-installs of packages with legacy uninstall commands; moving those commands into spkg-legacy-uninstall scripts
1 parent ab24b1c commit 99796ad

File tree

18 files changed

+1
-170
lines changed

18 files changed

+1
-170
lines changed

build/pkgs/eclib/spkg-install.in

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,6 @@ CXXFLAGS="$CXXFLAGS_O3_NON_NATIVE"
33

44
export CFLAGS CXXFLAGS
55

6-
7-
echo "Deleting old versions of eclib libraries, which"
8-
echo "would interfere with new builds..."
9-
# Delete any pre-autotools libraries:
10-
rm -f "$SAGE_LOCAL"/lib/lib{curvesntl,g0nntl,jcntl,rankntl,mwrank}.*
11-
# Delete autotools libraries:
12-
rm -f "$SAGE_LOCAL"/lib/lib{e,j}c.*
13-
if [ "$UNAME" = "CYGWIN" ]; then
14-
rm -f "$SAGE_LOCAL"/lib/cyg{e,j}c-*.dll
15-
fi
16-
echo "Deleting old include directory..."
17-
rm -rf "$SAGE_LOCAL"/include/eclib/
18-
19-
206
cd src/
217

228
#############################################################

build/pkgs/ecm/spkg-install.in

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -238,17 +238,6 @@ sdh_configure $SAGE_CONFIGURE_GMP $ECM_CONFIGURE
238238

239239
sdh_make
240240

241-
###############################################################################
242-
# Remove old executable/header/libraries/manpage:
243-
###############################################################################
244-
245-
echo
246-
echo "Build succeeded. Now removing old binary, header file, manual page and libraries..."
247-
rm -f "$SAGE_LOCAL"/bin/ecm
248-
rm -f "$SAGE_LOCAL"/lib/libecm.*
249-
rm -f "$SAGE_LOCAL"/include/ecm.h
250-
rm -f "$SAGE_LOCAL"/share/man/man1/ecm.1
251-
252241
###############################################################################
253242
# Now install ECM:
254243
###############################################################################

build/pkgs/fplll/spkg-install.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,3 @@ export CXX="$CXX"
3232
sdh_configure $CONFIGUREFLAGS
3333
sdh_make
3434
sdh_make_install
35-
36-
# Pretend that the "libfplll" package is not installed. This is needed to
37-
# support renaming libfplll -> fplll done on Trac #24042
38-
rm -f "$SAGE_SPKG_INST/"libfplll-*

build/pkgs/freetype/spkg-install.in

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,3 @@ cd src
44
GNUMAKE=${MAKE} sdh_configure --enable-freetype-config $FREETYPE_CONFIGURE
55
sdh_make
66
sdh_make_install
7-
8-
# The following file may be present from old builds of freetype, and
9-
# its presence can break the matplotlib build. So remove it. (The
10-
# current version is $SAGE_LOCAL/include/freetype2/ftbuild.h.)
11-
12-
rm -f "$SAGE_LOCAL/include/ft2build.h"

build/pkgs/gf2x/spkg-install.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
echo "Deleting old gf2x files."
2-
rm -f "$SAGE_LOCAL"/lib/libgf2x*
3-
rm -rf "$SAGE_LOCAL"/include/gf2x*
4-
51
cd src
62

73
# Use newer version of config.guess and config.sub (see Trac #19727)

build/pkgs/giac/spkg-install.in

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -64,24 +64,6 @@ sdh_configure --disable-gui --disable-ao "$DISABLENLS" --enable-png=no --disable
6464

6565
sdh_make
6666

67-
#############################################################
68-
# Clean old install
69-
#############################################################
70-
echo "Cleaning giac..."
71-
rm -f ${SAGE_LOCAL}/lib/libgiac*
72-
rm -f ${SAGE_LOCAL}/bin/icas
73-
rm -f ${SAGE_LOCAL}/bin/xcas
74-
rm -f ${SAGE_LOCAL}/bin/cas_help
75-
rm -f ${SAGE_LOCAL}/bin/pgiac
76-
rm -f ${SAGE_LOCAL}/bin/en_cas_help
77-
rm -f ${SAGE_LOCAL}/bin/es_cas_help
78-
rm -f ${SAGE_LOCAL}/bin/fr_cas_help
79-
rm -f ${SAGE_LOCAL}/bin/giac
80-
rm -f ${SAGE_LOCAL}/bin/xcasnew
81-
rm -rf ${SAGE_LOCAL}/share/giac
82-
rm -rf ${SAGE_LOCAL}/share/doc/giac
83-
rm -rf ${SAGE_LOCAL}/include/giac
84-
8567
#############################################################
8668
# Install
8769
#############################################################

build/pkgs/glpk/spkg-install.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,4 @@ export CFLAGS LDFLAGS CPPFLAGS
2525
sdh_configure --with-gmp --disable-static
2626
sdh_make
2727

28-
# Remove old libraries to make sure we can downgrade it if needed.
29-
# See https://github.com/sagemath/sage/issues/23596#comment:4 and later.
30-
rm -f "$SAGE_LOCAL"/lib/libglpk.*
31-
3228
sdh_make_install

build/pkgs/m4ri/spkg-install.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ else
2424
DISABLE_SSE2=""
2525
fi
2626

27-
# otherwise we might run into problems with old headers
28-
rm -rf "$SAGE_LOCAL/include/m4ri"
29-
3027
cd src
3128

3229
# Configure and build M4RI

build/pkgs/m4rie/spkg-install.in

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ export CFLAGS
2727
export CPPFLAGS
2828
export LDFLAGS
2929

30-
# otherwise we might run into problems with old headers
31-
32-
if [ -d "$SAGE_LOCAL/include/m4rie" ]; then
33-
rm -rf "$SAGE_LOCAL/include/m4rie"
34-
fi
35-
3630
# build M4RIE
3731

3832
cd $ROOT_DIR/src/

build/pkgs/mathjax/spkg-install.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
TARGET="${SAGE_SHARE}/mathjax"
2-
# Cleanup installed version
3-
rm -rf "${TARGET}"
42
sdh_install src/* "${TARGET}"

0 commit comments

Comments
 (0)