[MacPorts] #15503: scala 2.7.1 in macports includes bug(s) not in main 2.7.1 dist
#15503: scala 2.7.1 in macports includes bug(s) not in main 2.7.1 dist ---------------------------------+------------------------------------------ Reporter: paulp@improving.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: scala xml | ---------------------------------+------------------------------------------ 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[[BR]] jon:servlet paulp$ $SCALA_HOME/bin/scala[[BR]] Welcome to Scala version 2.7.1.final (Java HotSpot(TM) Client VM, Java 1.5.0_13).[[BR]] Type in expressions to have them evaluated.[[BR]] Type :help for more information.[[BR]] scala> import scala.xml._[[BR]] import scala.xml._[[BR]] scala> XML.loadFile("fail.xml") [[BR]] res1: scala.xml.Elem = [[BR]] <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...[[BR]] scala> jon:servlet paulp$ port installed |grep "scala @"[[BR]] scala @2.7.1_0 (active)[[BR]] jon:servlet paulp$ export SCALA_HOME=/opt/local/share/scala[[BR]] jon:servlet paulp$ $SCALA_HOME/bin/scala[[BR]] Welcome to Scala version 2.7.1.final (Java HotSpot(TM) Client VM, Java 1.5.0_13).[[BR]] Type in expressions to have them evaluated.[[BR]] Type :help for more information. scala> import scala.xml._[[BR]] import scala.xml._ scala> XML.loadFile("fail.xml") [[BR]] java.util.NoSuchElementException[[BR]] 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....[[BR]] scala> -- Ticket URL: <http://trac.macports.org/ticket/15503> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15503: scala 2.7.1 in macports includes bug(s) not in main 2.7.1 dist ----------------------------------+----------------------------------------- Reporter: paulp@improving.org | Owner: blair@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: scala xml ----------------------------------+----------------------------------------- Changes (by jmr@macports.org): * owner: macports-tickets@lists.macosforge.org => blair@macports.org Comment: Assigning to maintainer. -- Ticket URL: <http://trac.macports.org/ticket/15503#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15503: scala 2.7.1 in macports includes bug(s) not in main 2.7.1 dist ----------------------------------+----------------------------------------- Reporter: paulp@improving.org | Owner: blair@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: wontfix | Keywords: scala xml ----------------------------------+----------------------------------------- Changes (by blair@macports.org): * status: new => closed * resolution: => wontfix Comment: 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. -- Ticket URL: <http://trac.macports.org/ticket/15503#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15503: scala 2.7.1 in macports includes bug(s) not in main 2.7.1 dist ----------------------------------+----------------------------------------- Reporter: paulp@improving.org | Owner: blair@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: wontfix | Keywords: scala xml ----------------------------------+----------------------------------------- Comment (by paulp@improving.org): 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. -- Ticket URL: <http://trac.macports.org/ticket/15503#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15503: scala 2.7.1 in macports includes bug(s) not in main 2.7.1 dist ----------------------------------+----------------------------------------- Reporter: paulp@improving.org | Owner: blair@macports.org Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: scala xml ----------------------------------+----------------------------------------- Changes (by paulp@improving.org): * status: closed => reopened * resolution: wontfix => Comment: 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.) -- Ticket URL: <http://trac.macports.org/ticket/15503#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15503: scala 2.7.1 in macports includes bug(s) not in main 2.7.1 dist ----------------------------------+----------------------------------------- Reporter: paulp@improving.org | Owner: blair@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: wontfix | Keywords: scala xml ----------------------------------+----------------------------------------- Changes (by blair@macports.org): * status: reopened => closed * resolution: => wontfix Comment: 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. -- Ticket URL: <http://trac.macports.org/ticket/15503#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15503: scala 2.7.1 in macports includes bug(s) not in main 2.7.1 dist ----------------------------------+----------------------------------------- Reporter: paulp@improving.org | Owner: blair@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: wontfix | Keywords: scala xml ----------------------------------+----------------------------------------- Comment (by blair@macports.org): I bumped the revision number in r37341 to ensure that people get the latest Scala tarball. I should have done this in r36605. -- Ticket URL: <http://trac.macports.org/ticket/15503#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15503: scala 2.7.1 in macports includes bug(s) not in main 2.7.1 dist ----------------------------------+----------------------------------------- Reporter: paulp@improving.org | Owner: blair@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: wontfix | Keywords: scala xml ----------------------------------+----------------------------------------- Comment (by paulp@improving.org): 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. -- Ticket URL: <http://trac.macports.org/ticket/15503#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15503: scala 2.7.1 in macports includes bug(s) not in main 2.7.1 dist ----------------------------------+----------------------------------------- Reporter: paulp@improving.org | Owner: blair@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: wontfix | Keywords: scala xml ----------------------------------+----------------------------------------- Comment (by blair@macports.org): 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. -- Ticket URL: <http://trac.macports.org/ticket/15503#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts