[MacPorts] #28262: hs-digest: configure fails to find zlib

MacPorts noreply at macports.org
Wed Aug 10 10:27:10 PDT 2011


#28262: hs-digest: configure fails to find zlib
-----------------------------------+----------------------------------------
 Reporter:  easieste@…             |       Owner:  macports-tickets@…                   
     Type:  defect                 |      Status:  new                                  
 Priority:  Normal                 |   Milestone:                                       
Component:  ports                  |     Version:  1.9.2                                
 Keywords:                         |        Port:  hs-digest                            
-----------------------------------+----------------------------------------

Comment(by easieste@…):

 I ran into this problem again when upgrading to Lion.

 By explicitly including ${prefix}/bin in the path as follows, the port

 {{{
 Index: Portfile
 ===================================================================
 --- Portfile    (revision 81314)
 +++ Portfile    (working copy)
 @@ -16,4 +16,6 @@
                      sha1    602813001559a7003ec9a1baa2c2e20f89a4badc \
                      rmd160  b7f3c380835d6ea6abac444075320c03c0bd3f72

 -depends_lib-append  lib:libz:zlib
 +depends_lib-append  port:zlib
 +
 +configure.env-append   PATH=${prefix}/bin:/usr/bin
 }}}

 For various historical reasons, the user I use for installing doesn't have
 ${prefix}/bin defined in the system path, but instead adds it in
 '~/.profile' which is sourced by '~/.bashrc'.  In debugging this, I found
 that if I entered the failing "runhaskell Setup configure …" command
 interactively it succeeds but under control of the "port" command it
 doesn't succeed.  Then I guessed that somehow the right PATH isn't getting
 set to come up with the patch.

-- 
Ticket URL: <https://trac.macports.org/ticket/28262#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list