Opened 18 years ago

Closed 18 years ago

#9168 closed defect (fixed)

ghc-bootstrap needs readline-5.0

Reported by: yaseppochi (Stephen J. Turnbull) 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 (2)

build.log (2.6 KB) - added by yaseppochi (Stephen J. Turnbull) 18 years ago.
log of port -dvf build ghc
build.2.log (59.2 KB) - added by yaseppochi (Stephen J. Turnbull) 18 years ago.
log of port -dvf build ghc after port -f uninstall readline-5

Download all attachments as: .zip

Change History (10)

comment:1 Changed 18 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

comment:2 Changed 18 years ago by gwright@…

Status: newassigned

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

comment:3 Changed 18 years ago by gwright@…

Stephen,

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

Best Wishes, Greg

comment:4 Changed 18 years ago by yaseppochi (Stephen J. Turnbull)

(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.

comment:5 Changed 18 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

comment:6 Changed 18 years ago by yaseppochi (Stephen J. Turnbull)

(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 18 years ago by yaseppochi (Stephen J. Turnbull)

Attachment: build.log added

log of port -dvf build ghc

comment:7 Changed 18 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 18 years ago by yaseppochi (Stephen J. Turnbull)

Attachment: build.2.log added

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

comment:8 Changed 18 years ago by gwright@…

Resolution: fixed
Status: assignedclosed

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.