Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#15503 closed defect (wontfix)

scala 2.7.1 in macports includes bug(s) not in main 2.7.1 dist

Reported by: paulp (Paul Phillips) Owned by: blair (Blair Zajac)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: scala xml Cc:
Port:

Description

See output below. I can't yet see what the difference between them is, but here is the closed bug report from the scala database, which it says was fixed in march. https://lampsvn.epfl.ch/trac/scala/ticket/632

jon:servlet paulp$ export SCALA_HOME=/tmp/scala-2.7.1.final
jon:servlet paulp$ $SCALA_HOME/bin/scala
Welcome to Scala version 2.7.1.final (Java HotSpot(TM) Client VM, Java 1.5.0_13).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import scala.xml._
import scala.xml._

scala> XML.loadFile("fail.xml")
res1: scala.xml.Elem =
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"></meta><meta content="HTML Tidy for Mac OS X (vers 31 October 2006 - Apple Inc. build 13), see www.w3.org" name="generator"></meta><title>classifieds - craigslist</title><meta content="craigslist classifieds for" name="description"></meta><meta co...
scala>

jon:servlet paulp$ port installed |grep "scala @"

scala @2.7.1_0 (active)

jon:servlet paulp$ export SCALA_HOME=/opt/local/share/scala
jon:servlet paulp$ $SCALA_HOME/bin/scala
Welcome to Scala version 2.7.1.final (Java HotSpot(TM) Client VM, Java 1.5.0_13).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import scala.xml._
import scala.xml._

scala> XML.loadFile("fail.xml")
java.util.NoSuchElementException

at scala.RandomAccessSeq$$anon$12.next(RandomAccessSeq.scala:144)[[BR]] at scala.xml.Utility$.parseAttributeValue(Utility.scala:420)[[BR]] at scala.xml.UnprefixedAttribute.<init>(UnprefixedAttribute.scala:24)[[BR]] at scala.xml.parsing.FactoryAdapter$$anonfun$startElement$1.apply(FactoryAdapter.scala:155)[[BR]] at scala.xml.parsing.FactoryAdapter$$anonfun$startElement$1....

scala>

Change History (9)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to blair@…

Assigning to maintainer.

comment:2 Changed 16 years ago by blair (Blair Zajac)

Resolution: wontfix
Status: newclosed

Reading the referred ticket, this looks like an issue with the multiple releases of 2.7.1 and the later tarball has this issue.

Given that the Scala port uses the latest official release, I'm going to close this as won't fix.

You may want to try re-downloading 2.7.1 and see that that version has the same issue.

comment:3 Changed 16 years ago by paulp (Paul Phillips)

I downloaded and tested 2.7.1 today before submitting the bug report. Are you saying this isn't the right distribution?

http://www.scala-lang.org/downloads/distrib/files/scala-2.7.1.final.tar.gz

That distribution does not exhibit the bug. The one in macports does. I don't understand why this would be wontfix.

comment:4 Changed 16 years ago by paulp (Paul Phillips)

Resolution: wontfix
Status: closedreopened

Oh, and the comments in the referred ticket are all about 2.7.0, not 2.7.1 - that's how old the bug is. (Only two months, but that's a long time in scala years.)

comment:5 Changed 16 years ago by blair (Blair Zajac)

Resolution: wontfix
Status: reopenedclosed

I'm closing this because the 2.7.1.final is being downloaded:

port -d -v fetch scala
DEBUG: Found port in file:///opt/local-development/var/macports/sources/rsync.macports.org/release/ports/lang/scala
DEBUG: Changing to port directory: /opt/local-development/var/macports/sources/rsync.macports.org/release/ports/lang/scala
DEBUG: Requested variant darwin is not provided by port scala.
DEBUG: Requested variant i386 is not provided by port scala.
DEBUG: Requested variant macosx is not provided by port scala.
DEBUG: Executing org.macports.main (scala)
--->  Fetching scala
DEBUG: Executing org.macports.fetch (scala)
--->  scala-2.7.1.final.tar.gz doesn't seem to exist in /opt/local-development/var/macports/distfiles/scala
--->  Attempting to fetch scala-2.7.1.final.tar.gz from http://www.scala-lang.org/downloads/distrib/files/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13.0M  100 13.0M    0     0   112k      0  0:01:58  0:01:58 --:--:-- 70180

You may have downloaded an older version of the tarball if you did an upgrade of Scala in MacPorts immediately when the port was updated to 2.7.1.

Try completely uninstalling scala, removing any packages for scala from ${prefix}/var/macports/packages and installing it again.

comment:6 Changed 16 years ago by blair (Blair Zajac)

I bumped the revision number in r37341 to ensure that people get the latest Scala tarball. I should have done this in r36605.

comment:7 Changed 16 years ago by paulp (Paul Phillips)

You're right of course. I had a frack of a time getting it up to date, but after going on an rm-rf binge it finally came together. Thanks. FWIW I did do what I thought was a full uninstall-and-reinstall of the macports scala to confirm the bug before I submitted the report.

comment:8 Changed 16 years ago by blair (Blair Zajac)

What I've seen is if you have the package in /opt/local/var/macports/packages/darwin/XXX/ and still do an uninstall and a install, somewhere in the install step it'll just unpack the package and use that, which is a waste of a build. So I always manually rm the package.

The most recent update to the revision on the port should force everyone to have the same tarball.

comment:9 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.