@@ -33,50 +33,6 @@ PKG=build/pkgs/configure
33
33
MAKE=" ${MAKE:- make} "
34
34
CONFVERSION=$( cat $PKG /package-version.txt)
35
35
36
- install_config_rpath () {
37
- # The file config.rpath which comes from gettext is supposed to be
38
- # installed by automake, but due to a bug in most distros it is not;
39
- # see https://trac.sagemath.org/ticket/27823#comment:17
40
- #
41
- # Here we need to determine where gettext stores its data files and
42
- # copy config.rpath from there to config/
43
- gettextize=" $( command -v gettextize) "
44
- if [ -z " $gettextize " ]; then
45
- echo >&2 " gettext and the gettextize program must be installed and be in"
46
- echo >&2 " your PATH. E.g. Homebrew installs them in /usr/local/opt/gettext/bin."
47
- return 179
48
- fi
49
- eval ` sed -n ' /^prefix=.*$/p' " $gettextize " `
50
- eval ` sed -n ' /^datarootdir=.*$/p' " $gettextize " `
51
- eval ` sed -n ' /^: \${gettext_datadir=.*$/p' " $gettextize " `
52
-
53
- if [ -z " $gettext_datadir " ]; then
54
- eval ` sed -n ' /^gettext_dir=.*$/p' " $gettextize " `
55
- # In older versions (before 2014) this is spelled gettext_dir
56
- # See https://github.com/autotools-mirror/gettext/commit/ff18897068486560e2bb421004cfbd42b7cdd0f8
57
- gettext_datadir=" $gettext_dir "
58
- fi
59
-
60
- if [ -z " $gettext_datadir " ]; then
61
- echo >&2 " Failed to read the gettext_datadir directory from $gettextize "
62
- echo >&2 " The config.rpath file must manually be copied into config/"
63
- echo >&2 " This file is installed with gettext typically in /usr/share/gettext"
64
- return 179
65
- fi
66
-
67
- config_rpath=" $gettext_datadir /config.rpath"
68
- if [ ! -f " $config_rpath " ]; then
69
- echo >&2 " Missing $config_rpath file; this indicates a broken gettext install."
70
- return 179
71
- fi
72
-
73
- if [ " ${BOOTSTRAP_QUIET} " = " no" ]; then
74
- echo " bootstrap:$LINENO : installing 'config/config.rpath'"
75
- fi
76
- cp " $config_rpath " config/
77
- }
78
-
79
-
80
36
81
37
bootstrap () {
82
38
if [ " ${BOOTSTRAP_QUIET} " = " no" ]; then
@@ -160,7 +116,6 @@ SAGE_SPKG_FINALIZE([$pkgname], [$pkgtype], [$SPKG_SOURCE], [$SPKG_TREE_VAR])"
160
116
# third, filter, and then swap them back.
161
117
./bootstrap-conda && \
162
118
src/doc/bootstrap && \
163
- install_config_rpath && \
164
119
aclocal -I m4 && \
165
120
automake --add-missing --copy build/make/Makefile-auto 3>&1 1>&2 2>&3 \
166
121
| sed " ${QUIET_SED_FILTER} " 3>&1 1>&2 2>&3 && \
@@ -170,7 +125,7 @@ SAGE_SPKG_FINALIZE([$pkgname], [$pkgtype], [$SPKG_SOURCE], [$SPKG_TREE_VAR])"
170
125
case $st in
171
126
0) true ;; # Success
172
127
173
- 179|16|63|127) # install_config_rpath failed| no m4 for pkg-config|autotools not installed|or version too old
128
+ 179|16|63|127) # no m4 for pkg-config|autotools not installed|or version too old
174
129
if [ $DOWNLOAD = yes ]; then
175
130
echo >&2 " Bootstrap failed, downloading required files instead."
176
131
bootstrap_download || exit $?
@@ -182,7 +137,7 @@ SAGE_SPKG_FINALIZE([$pkgname], [$pkgtype], [$SPKG_SOURCE], [$SPKG_TREE_VAR])"
182
137
else
183
138
verb=" upgrade"
184
139
fi
185
- echo >&2 " Bootstrap failed. Either $verb autotools and gettext ; or run bootstrap with"
140
+ echo >&2 " Bootstrap failed. Either $verb autotools; or run bootstrap with"
186
141
echo >&2 " the -d option to download the auto-generated files instead."
187
142
188
143
SYSTEM=$( build/bin/sage-guess-package-system)
@@ -243,7 +198,7 @@ save () {
243
198
mkdir -p upstream
244
199
tar zcf " $NEWCONFBALL " \
245
200
configure \
246
- config/* \
201
+ config/install-sh config/compile config/config.guess config/config.sub config/install-sh config/missing \
247
202
build/make/Makefile-auto.in \
248
203
src/doc/en/installation/* .txt \
249
204
src/doc/en/reference/spkg/* .rst \
0 commit comments