Bug 40866 - sml-nj port CM autoloading compilation problems
Summary: sml-nj port CM autoloading compilation problems
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Joseph Koshy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-22 02:30 UTC by Matthias Buelow
Modified: 2005-02-26 06:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Buelow 2002-07-22 02:30:01 UTC
I'm referring to the SML/NJ language port in <portsroot>/lang/sml-nj:
# $FreeBSD: ports/lang/sml-nj/Makefile,v 1.14 2002/07/01 08:53:03 jkoshy Exp $


I have encountered now the problem that when opening a module,
the sml/nj system desired to recompile certain files, which were
not available anymore, since the respective ports directory had
undergone a "make clean" in the meantime.

The responsible ports maintainer probably hasn't seen this before
either (although I don't want to preempt him/her on this) and I
don't think it's trivial to fix.

Fix: 

A workaround (not tested right now) might be to leave the "work" dir
in the ports directory around and open all such structures as the
user owning the ports tree, and reinstalling the port once more
afterwards.
How-To-Repeat: 
Start the sml/nj interactive system by running the "sml" command and
try to open the SplayTree structure (or use it by any other means):


Standard ML of New Jersey, Version 110.0.7, September 28, 2000 [CM; autoload enabled]
- open SplayTree;
[Autoloading...]
!% CM Warning: need to recompile /usr2/ports/lang/sml-nj/work/src/smlnj-lib/Util/splaytree-sig.sml (even though it is `stable')
[compiling /usr2/ports/lang/sml-nj/work/src/smlnj-lib/Util/splaytree-sig.sml (stable) -> /usr2/ports/lang/sml-nj/work/src/smlnj-lib/Util/CM/x86-unix/splaytree-sig.sml.bin]

uncaught exception Io: openIn failed on "/usr2/ports/lang/sml-nj/work/src/smlnj-lib/Util/splaytree-sig.sml", No such file or directory
  raised at: boot/IO/text-io-fn.sml:796.25-796.71
	     sched/recompile.sml:206.38-206.41
-
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2003-10-15 05:56:58 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jkoshy

Over to maintainer to find out if this stale PR is still valid 
or not.
Comment 2 Joseph Koshy freebsd_committer freebsd_triage 2003-10-17 08:04:00 UTC
State Changed
From-To: open->analyzed

This problem definitely exists: the installed sml-nj binary 
is referring to absolute path names recorded at build time. 

This may take a while to fix.  As a work-around, please try  
SML-NJ-DEVEL.
Comment 3 Joseph Koshy freebsd_committer freebsd_triage 2004-12-31 08:01:04 UTC
State Changed
From-To: analyzed->feedback

Could you please let us know if the following change fixes 
this PR? 

From the commitlog: 

revision 1.19 
date: 2004/12/31 07:51:02;  author: jkoshy;  state: Exp;  lines: +7 -2 
Use "install.sh" during build and also during install as done in 
lang/sml-nj-devel to resolve PR 40866. 

Submitted by:   Johannes 5 Joemann <joemann .at. beefree.free.de>
Comment 4 Joseph Koshy freebsd_committer freebsd_triage 2005-02-26 06:48:15 UTC
State Changed
From-To: feedback->closed

Submitter reports that this problem has been fixed.