Opened 10 years ago

Closed 10 years ago

#46485 closed defect (fixed)

hs-temporary: fails to build on current Macports

Reported by: J.Gilbey@… Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: hs-temporary

Description

I just tried installing pandoc on a fresh macports installation. One of the dependencies which failed to build was hs-temporary; the build log says:

:info:configure Configuring temporary-1.1.2.4...
:info:configure Setup: At least the following dependencies are missing:
:info:configure unix >=2.3 && <2.7
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_hs-temporary/hs-temporary/work/temporary-1.1.2.4" && runhaskell Setup configure --prefix=/opt/local --with-compiler=/opt/local/bin/ghc -v --enable-library-profiling --with-gcc=/usr/bin/clang 
:info:configure Exit code: 1

I tried upgrading to http://hackage.haskell.org/package/temporary-1.2.0.3/temporary-1.2.0.3.tar.gz but that also fails:

:info:configure Configuring temporary-1.2.0.3...
:info:configure Setup: At least the following dependencies are missing:
:info:configure exceptions >=0.6
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_hs-temporary/hs-temporary/work/temporary-1.2.0.3" && runhaskell Setup configure --prefix=/opt/local --with-compiler=/opt/local/bin/ghc -v --enable-library-profiling --with-gcc=/usr/bin/clang 
:info:configure Exit code: 1

The exceptions package http://hackage.haskell.org/package/exceptions-0.6.1/exceptions-0.6.1.tar.gz has not yet been packaged as a port.

I've just packaged it for my local machine, which seems to have done the trick, but I don't know how to (a) specify in the hs-temporary Portfile that hs-exceptions is needed, or (b) upload the port somewhere useful where others can make use of it. I can attach it to this ticket if that is of use to someone.

The hs-temporary Portfile diff is as follows:

--- Portfile~	2015-01-06 20:01:32.000000000 +0000
+++ Portfile	2015-01-08 12:12:31.000000000 +0000
@@ -4,10 +4,9 @@
 PortSystem          1.0
 PortGroup           haskell 1.0
 
-haskell.setup       temporary 1.1.2.4
-revision            4
-checksums           rmd160  98810d844f38356388a09118f39ef86e9540e72a \
-                    sha256  5f9ebb2aac8767c8f73c071073bea56363ea0d589df162417a988b9f856013c9
+haskell.setup       temporary 1.2.0.3
+checksums           rmd160  be576becdb377708ccd69973fcffc7332d755680 \
+                    sha256  8a889c7e62a2bb144eb9e394fab51e5dbd843d473ac2eab9e16b55a9eb3a4647
 
 maintainers         nomaintainer
 platforms           darwin

and the hs-exceptions Portfile is attached.

Attachments (1)

Portfile (702 bytes) - added by J.Gilbey@… 10 years ago.
hs-exceptions Portfile

Download all attachments as: .zip

Change History (8)

Changed 10 years ago by J.Gilbey@…

Attachment: Portfile added

hs-exceptions Portfile

comment:1 Changed 10 years ago by neverpanic (Clemens Lang)

Owner: changed from macports-tickets@… to cal@…
Port: hs-temporary added
Status: newassigned

Thanks, I'll take a look once I'm back at my Mac.

comment:2 Changed 10 years ago by J.Gilbey@…

I guess that query (a) is answered by appending the following to the end of the hs-temporary Portfile:

depends_lib-append port:hs-exceptions

and then rebuilding the index.

comment:3 Changed 10 years ago by J.Gilbey@…

Thanks Cal!

I think there may well be a few more of these to come - there are lots of hs-* packages which aren't correctly building since I updated MacPorts for OS X Yosemite. :-(

comment:4 Changed 10 years ago by neverpanic (Clemens Lang)

Yes, I'm aware of that. This is mostly related to the recent GHC and Haskell Platform update.

I could have delayed that update until I finished a test build of all Haskell ports, but that would have kept others waiting that are not relying on any Haskell packages other than GHC from MacPorts, so I decided to commit the GHC update and fix the fallout on the fly. As you've noticed, it isn't very hard to fix most of them, but it needs a little time and testing.

Patches such as yours are very helpful in getting the problems fixed quickly, so keep 'em coming -- I'll commit them ASAP.

comment:5 Changed 10 years ago by joelfrederico@…

Cal- could you not do that again? Has it really caused a problem keeping others waiting? Because this indirectly broke h5py, which reads/writes HDF files in Python, which is a pretty popular data type AFAIK. Personally, I'm losing a day of work to this.

Last edited 10 years ago by joelfrederico@… (previous) (diff)

comment:6 Changed 10 years ago by neverpanic (Clemens Lang)

This is a best effort project. I've received multiple requests and inquiries on newer versions of GHC, but as a one man show, I just don't have enough time to test each and every possible haskell package in MacPorts before I upgrade anything. I do welcome helping hands, though, so if you'd like to maintain some of the haskell ports or can provide patches to get stuff fixed that would be awesome.

As a word of warning: If you depend on software in MacPorts for your day-to-day work, please check port outdated for any packages that might break before actually upgrading. Note that you can always go back to older versions by reactivating them, unless you explicitly uninstalled them or ran upgrade with the -u flag.

Bottom line is: We're not Debian, we lack the manpower to pull a large update like this one off in a single step.

comment:7 Changed 10 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed

Turns out I already had the hs-exceptions port locally, but not yet committed, so I did that in r131298.

hs-temporary is updated in r131299, which should fix the build issues.

Please file bugs for any further packages that are broken and you need fixed.

Note: See TracTickets for help on using tickets.