Opened 15 years ago
Closed 15 years ago
#19738 closed update (fixed)
lang/mzscheme - update to 4.1.5
Reported by: | thomas@… | Owned by: | raimue (Rainer Müller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.1 |
Keywords: | update 4.1.5 | Cc: | sfiera@…, raimue (Rainer Müller) |
Port: | mzscheme |
Description
Here is a patch to update mzscheme to version 4.1.5.
I patched the configure script to allow the "unixstyle" option on Mac OS X -- it's usually disabled for OS X because they want to build a directory with the frameworks & their GUI apps, not just install the Unix parts of the software to Unix places.
I mailed the plt-dev list and they OK'd the change (http://list.cs.brown.edu/pipermail/plt-dev/2009-May/000877.html).
As a result the Portfile is a bit simpler and installs files in the correct places (the mzscheme port @375 installed header files in /opt/local/include directly instead of /opt/local/include/plt for example).
I did not do any heavy testing ; however launching the mzscheme binary and running some simple Scheme programs does work.
Attachments (1)
Change History (8)
comment:1 Changed 15 years ago by thomas@…
Cc: | thomas@… added |
---|
comment:2 Changed 15 years ago by mf2k (Frank Schima)
Cc: | thomas@… removed |
---|---|
Keywords: | mzscheme removed |
Port: | mzscheme added; lang/mzscheme removed |
This patch doesn't work for me. It appears you are trying to create patch files in your patch. It's best to simply patch the portfile only and attach the new patchfiles to this ticket.
comment:3 follow-up: 4 Changed 15 years ago by raimue (Rainer Müller)
Owner: | changed from macports-tickets@… to raimue@… |
---|---|
Status: | new → assigned |
Applying the patch works fine for me using patch -p0 < mzscheme.diff
in the port directory.
comment:4 follow-up: 5 Changed 15 years ago by mf2k (Frank Schima)
Replying to raimue@…:
Applying the patch works fine for me using
patch -p0 < mzscheme.diff
in the port directory.
Thanks raimue, that worked. But when I tried to install the port, I see the following error:
$ sudo port install mzscheme ---> Computing dependencies for mzscheme ---> Fetching mzscheme ---> Attempting to fetch mz-4.1.5-src-unix.tgz from http://distfiles.macports.org/mzscheme ---> Attempting to fetch mz-4.1.5-src-unix.tgz from http://www.eecs.northwestern.edu/plt-scheme/4.1.5/mz/ ---> Verifying checksum(s) for mzscheme ---> Extracting mzscheme ---> Applying patches to mzscheme ---> Configuring mzscheme ---> Building mzscheme ---> Staging mzscheme into destroot Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/mz-4.1.5/src" && make install DESTDIR=/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot " returned error 2 Command output: cd ..; rm -f "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/bin/mzschemecgc" cd ..; rm -f "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/bin/mzscheme" cd ..; cp mzscheme/starter "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/lib/plt/starter" cd ..; strip -S "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/lib/plt/starter" cd ..; echo 'CC=/usr/bin/gcc-4.0' > "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/lib/plt/buildinfo" cd ..; echo 'CFLAGS=-O2 -I/opt/local/include -DOS_X -D_DARWIN_UNLIMITED_SELECT ' >> "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/lib/plt/buildinfo" cd ..; echo 'OPTIONS= -fno-common' >> "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/lib/plt/buildinfo" cd ..; echo 'MZOPTIONS=' >> "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/lib/plt/buildinfo" cd ..; echo "LDFLAGS=-L/opt/local/lib" >> "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/lib/plt/buildinfo" cd ..; echo 'LIBS=-ldl -lm -liconv ' >> "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/lib/plt/buildinfo" rm -f /opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/Library/Frameworks/PLT_MzScheme.framework/PLT_MzScheme rm -rf /opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/Library/Frameworks/PLT_MzScheme.framework/Versions/4.1.5 rm -rf /opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/Library/Frameworks/PLT_MzScheme.framework/Versions/4.1.5_3m if [ no = yes ] ; then rm -rf /opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/Library/Frameworks/PLT_MzScheme.framework ; fi mkdir -p /opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/Library/Frameworks make osx-install-3m make unix-install-3m cd ..; cp mzscheme/mzscheme3m "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/bin/mzscheme" cd ..; cp mzscheme/libmzscheme3m.a "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/lib/libmzscheme3m.a" cd ..; cp mzscheme/mzdyn3m.o "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/lib/plt/mzdyn3m.o" ./mzscheme3m -cu "./collects-path.ss" "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/bin/mzscheme" /opt/local/lib/plt/collects mkdir -p "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/Library/Frameworks/PLT_MzScheme.framework/Versions/4.1.5_3m" cp PLT_MzScheme.framework/Versions/4.1.5_3m/PLT_MzScheme /opt/local/var/macports/build/_opt_mports_trunk_dports_lang_mzscheme/work/destroot/opt/local/Library/Frameworks/PLT_MzScheme.framework/Versions/4.1.5_3m/ /usr/bin/install_name_tool -change "@executable_path/PLT_MzScheme.framework/Versions/4.1.5_3m/PLT_MzScheme" "PLT_MzScheme.framework/Versions/4.1.5_3m/PLT_MzScheme" "/opt/local/bin/mzscheme" /usr/bin/install_name_tool: can't open file: /opt/local/bin/mzscheme (No such file or directory) make[4]: *** [osx-install-3m] Error 1 make[3]: *** [install-3m] Error 2 make[2]: *** [install-3m-common] Error 2 make[1]: *** [install-3m] Error 2 make: *** [install] Error 2 Error: Status 1 encountered during processing.
comment:5 Changed 15 years ago by raimue (Rainer Müller)
Replying to macsforever2000@…:
Replying to raimue@…:
Applying the patch works fine for me using
patch -p0 < mzscheme.diff
in the port directory.Thanks raimue, that worked. But when I tried to install the port, I see the following error:
I got the same using either trunk or 1.7.1. I think the Makefiles do not support the $(DESTDIR) variable yet everywhere and need another patch.
comment:6 follow-up: 7 Changed 15 years ago by thomas@…
Doh, I do not know where I messed up. I swear this port did install correctly once...
Anyway, I have attached a patch which should fix this problem.
Sorry !
comment:7 Changed 15 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Replying to thomas@…:
Doh, I do not know where I messed up. I swear this port did install correctly once...
Yeah, it would have installed correctly if you got an older version of mzscheme installed before.
Anyway, I have attached a patch which should fix this problem.
Works fine now. Thanks for the time you invested into updating this port. Committed in r51451.
Cc Me!