Opened 12 years ago

Closed 11 years ago

#38546 closed defect (fixed)

hs-http complains about hs-network version

Reported by: bgschaid@… Owned by: kitchen.andy@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: cooljeanius (Eric Gallager)
Port: hs-http

Description

When upgrading the recent hs-http it fails (log is attached) at this command

cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_hs-HTTP/hs-http/work/HTTP-4000.2.8" && runhaskell Setup configure --prefix=/opt/local --with-compiler=/opt/local/bin/ghc -v --enable-library-profiling --with-gcc=/usr/bin/clang
Configuring HTTP-4000.2.8...
Setup: At least the following dependencies are missing:
network <2.5

I'm not quite sure, but I guess this means that hs-network is too old. I have (and there is no newer version that I see):

port list hs-network
hs-network                     @2.4.1.2        devel/hs-network

Attachments (3)

hs-http.main.log (6.9 KB) - added by bgschaid@… 12 years ago.
Build log
hs-http.dependency.log (864 bytes) - added by bgschaid@… 12 years ago.
First output while updating
hs-http.activate.log (14.6 KB) - added by bgschaid@… 12 years ago.
2nd output during upgrade

Download all attachments as: .zip

Change History (12)

Changed 12 years ago by bgschaid@…

Attachment: hs-http.main.log added

Build log

comment:1 Changed 12 years ago by cooljeanius (Eric Gallager)

Pandoc is also experiencing a similar issue now: comment:2:ticket:38541

comment:2 Changed 12 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 in reply to:  description Changed 12 years ago by larryv (Lawrence Velázquez)

Replying to bgschaid@…:

I'm not quite sure, but I guess this means that hs-network is too old. I have (and there is no newer version that I see):

port list hs-network
hs-network                     @2.4.1.2        devel/hs-network

port list does not do what you think it does. That’s the latest version in the ports tree; that is not necessarily the version you have installed. Use port installed hs-network to see what you actually have installed.

In any case, the buildbots just built hs-HTTP successfully. Try the following.

sudo port clean hs-network hs-HTTP
sudo port selfupdate
sudo port upgrade hs-network
sudo port install hs-HTTP

comment:4 Changed 12 years ago by bgschaid@…

I was only using "port list" because "port outdated" had not reported hs-network (but I'll be more exact the next time)

Tried the above commands. Checked "port outdated" and version number had not changed. No effect for hs-network (seems the version hasn't changed too). "sudo port upgrade hs-http" gave this output (no building this time):

--->  Computing dependencies for hs-http
--->  Fetching archive for hs-http
--->  Attempting to fetch hs-http-4000.2.8_2.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/hs-http
--->  Attempting to fetch hs-http-4000.2.8_2.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/hs-http
--->  Attempting to fetch hs-http-4000.2.8_2.darwin_12.x86_64.tbz2 from http://packages.macports.org/hs-http
--->  Attempting to fetch hs-http-4000.2.8_2.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/hs-http
--->  Installing hs-http @4000.2.8_2
--->  Cleaning hs-http
--->  Computing dependencies for hs-http
Error: org.macports.deactivate for port hs-http returned: command execution failed
Please see the log file for port hs-http for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_hs-http_4000.2.3_0/hs-http/main.log
Warning: Failed to execute portfile from registry for hs-http @4000.2.3_0
--->  Deactivating hs-http @4000.2.3_0
--->  Activating hs-http @4000.2.8_2
Error: org.macports.activate for port hs-http returned: command execution failed
Please see the log file for port hs-http for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_hs-HTTP/hs-http/main.log
--->  Updating database of binaries: 100.0%

I'll attach the two logs

Changed 12 years ago by bgschaid@…

Attachment: hs-http.dependency.log added

First output while updating

Changed 12 years ago by bgschaid@…

Attachment: hs-http.activate.log added

2nd output during upgrade

comment:5 Changed 12 years ago by larryv (Lawrence Velázquez)

I can’t explain what you’re seeing. The log shows that hs-HTTP is actually installed and activated, but then it’s deactivated for some reason. Maybe try reinstalling it and its dependencies from scratch?

sudo port upgrade --force hs-HTTP

comment:6 Changed 12 years ago by jmroot (Joshua Root)

Actually, the phase info at the start of each line in the log is a little messed up. What it shows is an older version being deactivated, then the current version being activated, and the post-activate code failing thus:

:debug:deactivate Executing proc-post-org.macports.activate-activate-0
:info:deactivate Reading package info from stdin ... done.
:info:deactivate HTTP-4000.2.8: Warning: haddock-interfaces: /opt/local/share/doc/HTTP-4000.2.8/html/HTTP.haddock doesn't exist or isn't a file
:info:deactivate HTTP-4000.2.8: Warning: haddock-html: /opt/local/share/doc/HTTP-4000.2.8/html doesn't exist or isn't a directory
:info:deactivate HTTP-4000.2.8: dependency "network-2.4.1.2-1852580bfb8065521a726b4121ddf215" doesn't exist (use --force to override)
:info:deactivate Command failed: /opt/local/libexec/hs-http/register.sh

comment:7 Changed 12 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to kitchen.andy@…

Also, please remember to Cc the maintainer.

comment:8 in reply to:  6 Changed 12 years ago by larryv (Lawrence Velázquez)

Replying to jmr@…:

Actually, the phase info at the start of each line in the log is a little messed up. What it shows is an older version being deactivated, then the current version being activated, and the post-activate code failing thus:

:debug:deactivate Executing proc-post-org.macports.activate-activate-0
:info:deactivate Reading package info from stdin ... done.
:info:deactivate HTTP-4000.2.8: Warning: haddock-interfaces: /opt/local/share/doc/HTTP-4000.2.8/html/HTTP.haddock doesn't exist or isn't a file
:info:deactivate HTTP-4000.2.8: Warning: haddock-html: /opt/local/share/doc/HTTP-4000.2.8/html doesn't exist or isn't a directory
:info:deactivate HTTP-4000.2.8: dependency "network-2.4.1.2-1852580bfb8065521a726b4121ddf215" doesn't exist (use --force to override)
:info:deactivate Command failed: /opt/local/libexec/hs-http/register.sh

In my recent Haskell commit adventures, I’ve come across this when installing the archive of a port that improperly declares a library dependency as a build dependency. So that dependency wouldn't necessarily get installed (since no build was happening), and register.sh would flip out. Can’t really say whether that’s the issue here, though.

comment:9 Changed 11 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: newclosed

Should be fixed since the hs-http has been replaced with the one packages in haskell platform.

Note: See TracTickets for help on using tickets.