Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91970 - dev-scheme/mzscheme removal request
Summary: dev-scheme/mzscheme removal request
Status: RESOLVED DUPLICATE of bug 59507
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Scheme Project
URL:
Whiteboard:
Keywords:
: 128300 129840 152058 (view as bug list)
Depends on:
Blocks: 59507 117482
  Show dependency tree
 
Reported: 2005-05-08 22:13 UTC by Dmitriy Zavin
Modified: 2007-05-15 13:34 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The ebuild (mzscheme-299.100.ebuild,1.69 KB, text/plain)
2005-05-08 22:15 UTC, Dmitriy Zavin
Details
Updated ebuild file (mzscheme-299.100.ebuild,1.97 KB, text/plain)
2005-05-09 01:21 UTC, Dmitriy Zavin
Details
Update the internal #define to inlcude the new .inc (mzscheme-299.100-collects_post.patch,541 bytes, patch)
2005-05-09 01:24 UTC, Dmitriy Zavin
Details | Diff
Prepare the build for the right collects path (mzscheme-299.100-collects_pre.patch,1.55 KB, patch)
2005-05-09 01:27 UTC, Dmitriy Zavin
Details | Diff
Ebuild for 301 (mzscheme-301.ebuild,1.77 KB, text/plain)
2006-03-31 14:43 UTC, Kevin Jordan
Details
mzscheme-352.ebuild (mzscheme-352.ebuild,925 bytes, text/plain)
2006-11-12 11:10 UTC, Johannes Weiner
Details
diff between drscheme and mzscheme sources (824245,30.63 KB, text/plain)
2006-11-14 10:29 UTC, Marijn Schouten (RETIRED)
Details
diff between drscheme and mzscheme sources (scheme.diff,7.36 KB, text/plain)
2006-11-14 10:32 UTC, Marijn Schouten (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitriy Zavin 2005-05-08 22:13:48 UTC
Hi.

I noticed that the latest version of mzsheme in gentoo is really old.

I have just updated the ebuild to inlcude the new 299.100 version of mzscheme (it's the dev version, but a lot of people have success.. marked it for ~x86)
It also resolves the trashing of CFLAGS (bug 59507)

It is known to build and run on my Pentium-M 1.3GHZ (thinkpad T40).

Copy and pasted from 205.

Let me know if I did something stupid, as this is my first submit.

Thanks.

--Dima
Comment 1 Dmitriy Zavin 2005-05-08 22:15:12 UTC
Created attachment 58426 [details]
The ebuild

Oops, forgot to include the ebuild :)
Comment 2 Dmitriy Zavin 2005-05-09 01:21:54 UTC
Created attachment 58453 [details]
Updated ebuild file
Comment 3 Dmitriy Zavin 2005-05-09 01:22:29 UTC
Ok, So I went a little trigger happy on the submit button.

The libs didnt work properly, since the mzscheme collects stuff wants to be in /usr/collects. The original ebuild just moves the files to /usr/share/mzscheme/collects, but the problem is that the runtime boostrapping code doesnt know to look in the new place. So you have to make it regen the cstartup.inc file.

So here are the "pre" and "post" patches to enable this to happen properly and also here is the new ebuild.

Sorry, hopefully this will be the last of it :)

--Dima
Comment 4 Dmitriy Zavin 2005-05-09 01:24:04 UTC
Created attachment 58454 [details, diff]
Update the internal #define to inlcude the new .inc
Comment 5 Dmitriy Zavin 2005-05-09 01:27:51 UTC
Created attachment 58455 [details, diff]
Prepare the build for the right collects path
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-03-31 14:38:59 UTC
*** Bug 128300 has been marked as a duplicate of this bug. ***
Comment 7 Kevin Jordan 2006-03-31 14:43:24 UTC
Created attachment 83562 [details]
Ebuild for 301

mzscheme is still far behind the released version.  Attached is a new ebuild for the most recent version.  It is required for vim 7.0, since vim requires a shared library with Boehm-GC.  Only change that might need to be made is /usr/collects to /usr/share/mzscheme/collects somehow.  Note: econf doesn't seem to work, when it gets to the gc subdirectory it complains about some --tag.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-04-13 10:54:51 UTC
*** Bug 129840 has been marked as a duplicate of this bug. ***
Comment 9 reisio 2006-09-11 03:28:20 UTC
Any particular reason why Kevin's over-five-month-old ebuild isn't in the tree yet?  The 205 ebuild in right now does not emerge with GCC 4.1.1.
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-09-25 20:03:28 UTC
treecleaners, some food for you, noone gives a damn about this apparently. It doesn't compile w/ gcc-4 and uses really funky stuff like unset CFLAGS.
Comment 11 Rafał Mużyło 2006-09-27 09:00:38 UTC
dev-scheme/drscheme also provides mzscheme but vim.eclass fails to accept it.
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-10-20 01:53:23 UTC
*** Bug 152058 has been marked as a duplicate of this bug. ***
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-10-20 01:56:37 UTC
@vim folks - can vim use dev-scheme/drscheme? If not, dropping the flags sounds like a workaround, because mzscheme is plain broken.
Comment 14 Johannes Weiner 2006-11-12 11:09:51 UTC
Hi,

here is an update to the most current version.
It built and also worked properly on x86 and amd64.
Comment 15 Johannes Weiner 2006-11-12 11:10:47 UTC
Created attachment 101760 [details]
mzscheme-352.ebuild
Comment 16 Matthew Kennedy (RETIRED) gentoo-dev 2006-11-12 15:52:01 UTC
Let's wait on removing this for at least a couple of months.  We have a few scheme users becoming gentoo developers in the pipeline.
Comment 17 Marijn Schouten (RETIRED) gentoo-dev 2006-11-14 10:26:18 UTC
I've checked and the sources for mzscheme and drscheme are identical, except that drscheme has a few extras. For those interested I'll include the diff below. But first the patch to the drscheme-352-r2.ebuild which allows it to be used for both. I've not worried myself about the extra docs yet.

Vim has a use flag for mzscheme which it inherits from vim.eclass. Currently it depends on mzscheme, so if you have drscheme installed you cannot use the mzscheme use flag for vim (because drscheme blocks mzscheme, because it contains mzscheme), which should be a perfectly fine thing to do.
Comment 18 Marijn Schouten (RETIRED) gentoo-dev 2006-11-14 10:27:29 UTC
--- /usr/portage/dev-scheme/drscheme/drscheme-352-r2.ebuild     2006-10-23 20:35:53.000000000 +0200
+++ PLTscheme-352-r2.ebuild     2006-11-14 19:11:40.000000000 +0100
@@ -11,7 +11,7 @@
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="backtrace cairo jpeg opengl perl png sgc"
+IUSE="backtrace cairo drscheme jpeg opengl perl png sgc"

 RDEPEND="x11-libs/libICE
        x11-libs/libSM
@@ -30,10 +30,18 @@
 S="${WORKDIR}/plt/src"
 GL_COLLECTS="sgl games/gobblet games/checkers games/jewel games/gl-board-game"

+DRSCHEME_DIRS="mred wxcommon wxxt"
+
 src_unpack() {
        unpack ${A}
        cd "${WORKDIR}/plt"

+       if ! use drscheme ; then
+               for dir in ${DRSCHEME_DIRS}; do
+                       rm -r src/${dir}
+               done
+       fi
+
        epatch "${FILESDIR}/${PN}-350-fPIC.patch"
        epatch "${FILESDIR}/${P}-destdir.patch"
Comment 19 Marijn Schouten (RETIRED) gentoo-dev 2006-11-14 10:29:00 UTC
Created attachment 101926 [details]
diff between drscheme and mzscheme sources
Comment 20 Marijn Schouten (RETIRED) gentoo-dev 2006-11-14 10:32:59 UTC
Created attachment 101928 [details]
diff between drscheme and mzscheme sources

the right way this time
Comment 21 Marijn Schouten (RETIRED) gentoo-dev 2006-12-19 08:45:48 UTC
Perhaps a better way is to do

DEPEND="!drscheme? (<mzscheme-source>)
         drscheme? (<drscheme-source>)"
Comment 22 Patrick McLean gentoo-dev 2006-12-19 08:57:30 UTC
If the ebuilds are separate tarballs, its probably better to keep them separate. I don't like editing the sources any more than necessary, part of the Gentoo philosophy is to keep packages as close to upstream as possible.
Comment 23 Marijn Schouten (RETIRED) gentoo-dev 2006-12-19 09:13:36 UTC
In all cases the packages are identical to upstream, although the first method is prone to breakage if they add directories and the second if they don't release sources at the same time.

If all variations of PLTScheme are not merged, then we need a virtual for it so for example vim can depend on that virtual and someone will need to copy all relevant maintenance done on drscheme-ebuild to mzscheme-ebuild (or vice versa).

Comment 24 Patrick McLean gentoo-dev 2006-12-19 11:11:25 UTC
Uh, vim can depend on either drscheme or mzscheme, I don't think this really merits a virtual. Something like this should do the trick:

|| ( dev-scheme/mzscheme dev-scheme/drscheme )
Comment 25 Ryan Hill (RETIRED) gentoo-dev 2006-12-27 23:06:42 UTC
removing treecleaner.  feel free to CC us if you do decide to dump it.
Comment 26 Mike Kelly (RETIRED) gentoo-dev 2007-01-11 05:24:06 UTC
I'm testing vim with drscheme tonight. Sorry I took so long to get back on this. If it works as expected, I'll commit an updated vim.eclass with an || dep on drscheme or mzscheme if the mzscheme use flag is set. Since it's still controlling mzscheme-specific features, I'm keeping the flag name the same for now. Also, I'm listing drscheme first in the dep, so that when mzscheme dies, fewer people will have to re-merge packages.
Comment 27 Mike Kelly (RETIRED) gentoo-dev 2007-01-11 05:44:05 UTC
Nope, it doesn't seem to work as a drop-in replacement for mzscheme in vim.
From ./configure:

checking MzScheme install prefix... /usr/
checking if scheme.h can be found in /usr/include... "no"

drscheme installs it in /usr/include/plt/scheme.h.

So, more work will have to be done before drscheme works with vim.
Comment 28 Mike Kelly (RETIRED) gentoo-dev 2007-02-22 03:24:21 UTC
For now, I've commented out all the mzscheme-related code in vim.eclass. Once I get more time, I'll look at getting drscheme to work properly with vim.
Comment 29 Marijn Schouten (RETIRED) gentoo-dev 2007-04-09 18:21:21 UTC
Patrick, what about the following patch against drscheme-360-r1.ebuild:

-IUSE="3m backtrace cairo jpeg opengl perl png"
+IUSE="3m backtrace cairo drscheme jpeg opengl perl png"

 RDEPEND="x11-libs/libICE
        x11-libs/libSM
@@ -48,7 +48,7 @@
        # -O3 seems to cause some miscompiles, this should fix #141925 and #133888
        replace-flags -O? -O2

-       econf --enable-mred \
+       econf $(use_enable drscheme mred) \

it will cause mzscheme to be built and drscheme too if that use flag is on.
Comment 30 Marijn Schouten (RETIRED) gentoo-dev 2007-05-13 16:11:07 UTC
Patrick, if you don't object I will feel free to implement this.
Comment 31 Patrick McLean gentoo-dev 2007-05-13 20:13:54 UTC
Only if the USE flag is on by default, when someone emerges drscheme, they should get a fully working drscheme install.
Comment 32 Marijn Schouten (RETIRED) gentoo-dev 2007-05-14 08:20:56 UTC
Allright. How about naming the flag X? I think that flag name is pretty accurate and it will be on by default on desktop profiles.
Comment 33 Patrick McLean gentoo-dev 2007-05-15 11:56:53 UTC
That sounds fine to me.
Comment 34 Marijn Schouten (RETIRED) gentoo-dev 2007-05-15 13:34:05 UTC
I have made the required changes in drscheme-360-r2 and added scheme as a backup herd to be able to fix any issues with it.

*** This bug has been marked as a duplicate of bug 59507 ***