Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #9168 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

ghc-bootstrap needs readline-5.0

Reported by: stephen@… Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc:
Port:

Description

The bootstrap ghc in the ghc-6.4.2_* ports is dynamically linked to libreadline-5.0.dylib. This means that anyone who has already upgraded to the readline 5.1 port cannot build the ghc port. (Anyway, I can't.)

Attachments

build.log (2.6 KB) - added by stephen@… 3 years ago.
log of port -dvf build ghc
build.2.log (59.2 KB) - added by stephen@… 2 years ago.
log of port -dvf build ghc after port -f uninstall readline-5

Change History

Changed 3 years ago by gwright@…

  • owner changed from darwinports-bugs@… to gwright@…

Hi Stephen,

I'll check on this. I may just have to make a "readline50" port for ghc to build against. Hmm.

-Greg

Changed 3 years ago by gwright@…

  • status changed from new to assigned

Stephen,

I have just checked in a fix for this. There is a new port, readline-5, which builds only the libreadline-5.0.dylib and libhistory-5.0.dylib libraries. It is now a dependency of the ghc port when building on Panther. Both updates should be available in a few hours.

I don't have the ability to build on Panther anymore, so this is the best fix I can provide. (The Tiger boostrap compiler doesn't depend on readline.)

Let me know if it works.

Best Wishes, Greg

Changed 3 years ago by gwright@…

Stephen,

Did this fix work? I woul dlike to close the bug if I can.

Best Wishes, Greg

Changed 3 years ago by stephen@…

(In reply to comment #3)

Did this fix work? I woul dlike to close the bug if I can.

Not really. The dependency didn't pull in readline-5; I had to install it myself.

Once I did that, the build proceeded as expected.

Changed 3 years ago by gwright@…

Hi Stephen,

That's strange. Could you run

sudo port -dvf build > build.log 2>&1

and attach build.log to the bug report? You can abort the build after a few minutes; I just want to verify that ghc is not checking for the readline-5 dependency.

Did you install readline 5.0 by hand or use the readline-5 port file?

Thanks.

Greg

Changed 3 years ago by stephen@…

(In reply to comment #5)

and attach build.log to the bug report?

Done.

Did you install readline 5.0 by hand or use the readline-5 port file?

I used "port install readline-5".

Changed 3 years ago by stephen@…

log of port -dvf build ghc

Changed 3 years ago by gwright@…

Hi Stephen,

The ghc portfile correctly finds the readline-5 dependency, according to the log you sent. I'm puzzled by your report that the dependency wasn't built properly. There is a easy way to check on what is going on. Do

sudo port -f uninstall readline-5 sudo port -dvf build ghc > build.log 2>&1

The first force the uninstallation of readline-5. The second forces a build of ghc. It isn't necessary to fully rebuild ghc; just wait and see if it rebuilds the readline-5 dependency.

I think the portfile is correct as it is. If there is still a problem when you try the above, it may be in the DP infrastructure. There have been issues in the past with portfile names containing "-".

If you would, please attach the log to the bug report.

Thanks!

Greg

Changed 2 years ago by stephen@…

log of port -dvf build ghc after port -f uninstall readline-5

Changed 2 years ago by gwright@…

  • status changed from assigned to closed
  • resolution set to fixed

Hi Stephen,

Thanks for the report. In the cvs + portindex system there remain, alas, some situations in which things can get out of sync for a while.

Good to know I can check one bug off my list!

Best Wishes, Greg

Note: See TracTickets for help on using tickets.