New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove extra baggage from the ECL spkg #9493
Comments
comment:1
Minimal patch to --- src/src/configure 2010-02-13 20:04:32.000000000 +0100
+++ patches/src.src.configure 2010-07-14 01:29:39.000000000 +0200
@@ -1987,7 +1987,7 @@
ac_aux_dir=
-for ac_dir in ${srcdir}/gmp "$srcdir"/${srcdir}/gmp; do
+for ac_dir in ${srcdir}/gmp "$srcdir"/${srcdir}/gmp ${srcdir}/gc; do
if test -f "$ac_dir/install-sh"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install-sh -c" (Tested with 4.5.rc0 on a 32-bit Linux, with Though we should in mid-term remove (Boehm) gc as well, because Sage ships with its own copy of it. (ECL's boehm_gc is only used on MacOS X, and just because ECL unconditionally thinks an already installed version there can only be Fink's broken one.) But this is worth another ticket. Another simple solution is just leaving |
comment:2
Modified --- ecl-stripped-v1/ecl-10.2.1.p2/spkg-install 2010-07-12 05:22:11.000000000 +0200
+++ ecl-stripped-v2/ecl-10.2.1.p2/spkg-install 2010-07-14 02:21:22.000000000 +0200
@@ -154,6 +154,15 @@
# We clear MAKEFLAGS to fix building multiple spkgs in parallel on OS X.
export MAKEFLAGS=
+if [ -d patches ] && [ `ls patches` != "" ]; then
+ echo "Applying patches..."
+
+ test -f patches/src.src.configure && cp -pv patches/src.src.configure src/src/configure
+
+ echo "Finished applying patches."
+ echo " "
+fi
+
set +e
cd src
@@ -165,9 +174,9 @@
# 1) OpenSolaris (SunOS 5.11)
# 2) Intel or AMD CPU
# 3) 64-bit build
- ./configure --prefix=$SAGE_LOCAL --with-dffi=no
+ ./configure --prefix=$SAGE_LOCAL --with-dffi=no --with-gmp-prefix=$SAGE_LOCAL
else
- ./configure --prefix=$SAGE_LOCAL
+ ./configure --prefix=$SAGE_LOCAL --with-gmp-prefix=$SAGE_LOCAL
fi
if [ $? -ne 0 ]; then (v1's |
comment:3
Get rid of the '-v' option to 'cp'. It's not a POSIX option http://www.opengroup.org/onlinepubs/009695399/utilities/cp.html and will certainly fail on Solaris or OpenSolaris Dave |
comment:4
What about copy-patch()
{
if [ -f patches/$1 ] ; then
echo " Patching "$2
cp -p patches/$1 $2
fi
} and (e.g.) if [ -d patches ] && [ `ls patches` != "" ]; then
echo "Applying patches..."
copy-patch "src.src.configure" "src/src/configure"
echo "Finished applying patches."
echo " "
fi ? |
comment:5
I don't think
is safe. I don't think the order is guaranteed, so the second part could be evaluated before the first. Testing on "" is bad practice. Dave |
comment:6
Replying to @sagetrac-drkirkby:
(Even if it was, it doesn't make a difference, but...) Like in C, the second expression is only evaluated if needed (same for foo && bar || baz is equivalent to if foo; then
bar
else
baz
fi However, the if ls patches/* >/dev/null 2>/dev/null; then (One could substitute |
comment:7
Replying to @sagetrac-drkirkby:
The order of evaluation and the shortcutting is guaranteed by POSIX: http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_03 |
comment:9
Replying to @sagetrac-drkirkby:
Nothing of the TODOs mentioned in the description have been done on #10187; removing the other parts was just the correction of a regression. So IMHO this ticket should be kept open. |
comment:12
Replying to @nexttime:
No idea whether that's at all still necessary (when removing the unused GMP source tree) -- we're meanwhile at ECL 12.12.1...
|
comment:13
Ooops, just noticed: $ tar tvjf spkg/standard/ecl-* | grep gmp
tar: Record size = 8 blocks
drwxr-xr-x jdemeyer/jdemeyer 0 2013-04-08 13:05 ecl-12.12.1.p4/src/src/gmp/
-rwxr-xr-x jdemeyer/jdemeyer 4105 2012-12-07 22:01 ecl-12.12.1.p4/src/src/gmp/config.sub
-rwxr-xr-x jdemeyer/jdemeyer 31164 2012-12-07 22:01 ecl-12.12.1.p4/src/src/gmp/configfsf.sub
-rwxr-xr-x jdemeyer/jdemeyer 23041 2012-12-07 22:01 ecl-12.12.1.p4/src/src/gmp/config.guess
-rwxr-xr-x jdemeyer/jdemeyer 9505 2012-12-07 22:01 ecl-12.12.1.p4/src/src/gmp/install-sh
-rwxr-xr-x jdemeyer/jdemeyer 43636 2012-12-07 22:01 ecl-12.12.1.p4/src/src/gmp/configfsf.guess
-rw-r--r-- jdemeyer/jdemeyer 15353 2012-12-07 22:01 ecl-12.12.1.p4/src/src/gmp/config.in So there's meanwhile not much of GMP left (in our spkg), but its Hence the |
Branch: u/jpflori/ticket/9493 |
Changed author from Leif Leonhardy to Leif Leonhardy, Jean-Pierre Flori |
comment:16
Let's get rid of the gmp subdirectory. New commits:
|
Changed keywords from none to ecl gmp cygwin spkg |
Commit: |
comment:17
I think the previously rmoved encoding stuff is actually planned to be used, so I did not change its inclusion. |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:19
IMHO if we already make our own tarball then we should just regenerate auto-files. |
comment:20
I'm not sure that will much cleaner as we patch the auto-files as well, so I don't have strong feeling though. |
comment:21
Ugh, once again somebody went the extra mile to show that you can't reasonably build shared libraries without libtool. Since ECL seems to have a maintainer again, did you try to push the |
comment:22
|
Upstream: Reported upstream. No feedback yet. |
comment:24
Note that the implib patch is not part of this ticket. |
Reviewer: Peter Bruin |
comment:26
The changes look good to me, and the new version of the package built without problems. After reinstalling Maxima (I did not use |
Changed branch from u/jpflori/ticket/9493 to |
Remove GMP subdir.
Use tarball at:
Upstream: Reported upstream. No feedback yet.
CC: @sagetrac-drkirkby @kcrisman
Component: packages: standard
Keywords: ecl gmp cygwin spkg
Author: Leif Leonhardy, Jean-Pierre Flori
Branch/Commit:
bec6426
Reviewer: Peter Bruin
Issue created by migration from https://trac.sagemath.org/ticket/9493
The text was updated successfully, but these errors were encountered: