Ticket #3121 (closed bug: wontfix)

Opened 4 years ago

Last modified 2 years ago

readline package does not respect Cabal --extra-{include,lib}-dirs flags

Reported by: duncan Owned by:
Priority: normal Milestone: Not GHC
Component: libraries (other) Version: 6.10.1
Keywords: Cc: gale@…
Operating System: MacOS X Architecture: x86
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

The readline package still uses a ./configure script. It has flags to set extra library and include dirs to search. These are needed by OSX users.

The ./configure script takes the flags:

--with-readline-includes=
--with-readline-libraries=

However when an end user installs the package via Cabal, (either runghc Setup or cabal) they use the Cabal flags:

--extra-include-dirs=
--extra-lib-dirs=

The problem is that the two sets of flags are not connected at all. If the configure script needs to know these directories then the Setup.hs for the package should pass them through. Users are not expected to know the per-package configure flags, especially when we already have suitable generic flags for the same purpose.

The end result is that OSX users cannot install readline. Eg, today someone complained:

hm, I have installed libreadline from mac ports and I have
told cabal to look for it in --extra-include-dirs
--extra-lib-dirs I also have installed the GNU.framework for
mac but it still fails...any suggestions?

This problem actually applies to most bindings packages that use configure scripts. See also  this Cabal ticket about similar mismatches with configure scripts.

Attachments

Setup.dpatch Download (7.8 KB) - added by ckeen 4 years ago.
patch agains the readline darcs repo also works with cabal

Change History

Changed 4 years ago by ckeen

  • os changed from Unknown/Multiple to MacOS X
  • architecture changed from Unknown/Multiple to x86

I was the one complaining. I wrote a small (and ugly) patch that seems to work when running Setup.hs in the directory. Running cabal does still not work. Please excuse the bad style I am still a beginner in haskell.

I appreciate any suggestions on how to solve this better.

Kind regards,

Christian

Changed 4 years ago by ckeen

patch agains the readline darcs repo also works with cabal

Changed 4 years ago by igloo

  • owner set to igloo
  • difficulty set to Unknown
  • milestone set to Not GHC

Changed 4 years ago by igloo

  • owner igloo deleted

If it doesn't work with cabal-install then we should probably look for a solution that does.

Changed 3 years ago by YitzGale

  • failure set to None/Unknown
  • patch set to 0

Changed 3 years ago by YitzGale

  • cc gale@… added

Changed 2 years ago by igloo

  • status changed from new to closed
  • resolution set to wontfix

readline no longer comes with GHC, so I'm closing this ticket.

Note: See TracTickets for help on using tickets.