[MacPorts] #28262: hs-digest fails to configure (blocks pandoc install)
#28262: hs-digest fails to configure (blocks pandoc install) -----------------------------------+---------------------------------------- Reporter: easieste@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: hs-digest pandoc | Port: hs-digest -----------------------------------+---------------------------------------- Attempting to install pandoc is blocked by a failing configure phase for the hs-digest dependency. The relevant lines in the log seem to be: {{{ :info:configure Configuring digest-0.0.0.8... :info:configure Setup: Missing dependency on a foreign library: :info:configure * Missing header file: zlib.h :info:configure * Missing C library: z :info:configure This problem can usually be solved by installing the system package that :info:configure provides this library (you may need the "-dev" version). If the library is :info:configure already installed but in a non-standard location then you can use the flags :info:configure --extra-include-dirs= and --extra-lib-dirs= to specify where it is. }}} I have both 'zlib' and 'hs-zlib' installed. I forcibly uninstalled and reinstalled these ports, but unfortunately duplicated this failure. Unfortunately, hs-digest is marked nomaintainer, so I am adding `singingwolfboy' who is a (partial) maintainer to the CC, so he knows that pandoc is failing to install. -- Ticket URL: <https://trac.macports.org/ticket/28262> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28262: hs-digest fails to configure (blocks pandoc install) -----------------------------------+---------------------------------------- Reporter: easieste@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: hs-digest pandoc | Port: hs-digest -----------------------------------+---------------------------------------- Description changed by easieste@…: Old description:
Attempting to install pandoc is blocked by a failing configure phase for the hs-digest dependency.
The relevant lines in the log seem to be:
{{{ :info:configure Configuring digest-0.0.0.8... :info:configure Setup: Missing dependency on a foreign library: :info:configure * Missing header file: zlib.h :info:configure * Missing C library: z :info:configure This problem can usually be solved by installing the system package that :info:configure provides this library (you may need the "-dev" version). If the library is :info:configure already installed but in a non-standard location then you can use the flags :info:configure --extra-include-dirs= and --extra-lib-dirs= to specify where it is. }}}
I have both 'zlib' and 'hs-zlib' installed. I forcibly uninstalled and reinstalled these ports, but unfortunately duplicated this failure.
Unfortunately, hs-digest is marked nomaintainer, so I am adding `singingwolfboy' who is a (partial) maintainer to the CC, so he knows that pandoc is failing to install.
New description: Attempting to install pandoc is blocked by a failing configure phase for the hs-digest dependency. The relevant lines in the log seem to be: {{{ :info:configure Configuring digest-0.0.0.8... :info:configure Setup: Missing dependency on a foreign library: :info:configure * Missing header file: zlib.h :info:configure * Missing C library: z :info:configure This problem can usually be solved by installing the system package that :info:configure provides this library (you may need the "-dev" version). If the library is :info:configure already installed but in a non-standard location then you can use the flags :info:configure --extra-include-dirs= and --extra-lib-dirs= to specify where it is. }}} I have both 'zlib' and 'hs-zlib' installed. I forcibly uninstalled and reinstalled these ports, but unfortunately duplicated this failure. Unfortunately, hs-digest is marked nomaintainer, so I am adding `singingwolfboy' who is the maintainer of 'pandoc' so he knows that fresh installs of pandoc are failing. -- -- Ticket URL: <https://trac.macports.org/ticket/28262#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28262: hs-digest fails to configure (blocks pandoc install) -----------------------------------+---------------------------------------- Reporter: easieste@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: hs-digest pandoc | Port: hs-digest -----------------------------------+---------------------------------------- Comment(by singingwolfboy@…): Building hs-digest worked for me. It looks like the hs-digest port was slightly out of date: I've updated it to version 0.0.0.9 and noted the dependency on zlib. Can you do a selfupdate and try again? If it still doesn't work, I'm going to need more information about your computer's configuration to have any hope of tracking down what's going wrong. -- Ticket URL: <https://trac.macports.org/ticket/28262#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * keywords: hs-digest pandoc => Comment: It still doesn't work, for me either (same error as reported above). Snow Leopard x86_64. Note: your addition of the zlib dependency in r75793 should have been written "port:zlib" to ensure MacPorts zlib is installed; we would not want /usr/lib/libz.dylib to be able to satisfy the dependency. -- Ticket URL: <https://trac.macports.org/ticket/28262#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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@…): Replying to [comment:2 singingwolfboy@…]:
Building hs-digest worked for me. It looks like the hs-digest port was slightly out of date: I've updated it to version 0.0.0.9 and noted the dependency on zlib. Can you do a selfupdate and try again?
Still fails for me with the same error. Oddly enough, I have a second Snow Leopard x86_64 computer where hs-digest installed without a problem, so this seems to have some sort of weird, non-obvious cause. Please let me know what additional information I can get to you to help diagnose here. -- Ticket URL: <https://trac.macports.org/ticket/28262#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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
#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 ryandesign@…): Are you saying you've removed ${prefix}/bin from binpath in macports.conf? Because that's the only reason why modifying PATH in that way in the portfile should have any effect. And modifying binpath in macports.conf is not recommended. -- Ticket URL: <https://trac.macports.org/ticket/28262#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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@…): Replying to [comment:6 ryandesign@…]:
Are you saying you've removed ${prefix}/bin from binpath in macports.conf? Because that's the only reason why modifying PATH in that way in the portfile should have any effect. And modifying binpath in macports.conf is not recommended.
No, I did not modify 'macports.conf'. Yes, I understand that modifying 'binpath' is not recommended, but this is what worked in my case. As this is a bug that only seems to affect a minority of users, I'm more reporting an equally odd success that should be reproducible by modifying the Portfile than suggesting that we patch the hs-digest Portfile in this manner. -- Ticket URL: <https://trac.macports.org/ticket/28262#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 jmr@…): Does the configure script generate a config.log or similar that we could look at? -- Ticket URL: <https://trac.macports.org/ticket/28262#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28262: hs-digest: configure fails to find zlib -------------------------+-------------------------------- Reporter: easieste@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: worksforme | Keywords: Port: hs-digest | -------------------------+-------------------------------- Changes (by cal@…): * status: new => closed * cc: cal@… (added) * resolution: => worksforme Comment: I think this ticket is obsolete. I haven't had any issues installing `hs- digest` after r106868. -- Ticket URL: <https://trac.macports.org/ticket/28262#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts