libghc6-hgl-dev won't install on hardy

Bug #202974 reported by the4dk
52
Affects Status Importance Assigned to Milestone
haskell-hgl (Ubuntu)
Fix Released
Medium
Unassigned
Hardy
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: libghc6-hgl-dev

I can't install libghc6-hgl-dev on hardy. apt-get returns:

Konfigurowanie libghc6-hgl-dev (3.2.0.0-1) ...
Reading package info from stdin ... done.
ghc-pkg: dependency X11-1.3.0 doesn't exist (use --force to override)
dpkg: błąd przetwarzania libghc6-hgl-dev (--configure):
 podproces post-installation script zwrócił kod błędu 1
Wystąpiły błędy podczas przetwarzania:
 libghc6-hgl-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)

Sorry for Polish translation of apt-get, hope you understand everything ;)
libghc6-x11-dev dependency has been installed correctly.

TEST CASE

PROCEDURE:
  Install libghc6-hgl-dev package

RESULT ON PASS:
  Package should install without errors

RESULT ON FAIL:
  Package fails with the message shown above.

END TEST CASE

Revision history for this message
Tomasz (t-leszczynski) wrote :

Do the following:

1. Open register.sh file in the /usr/lib/libghc6-hgl-dev directory, for example in terminal

"sudo nano /usr/lib/libghc6-hgl-dev/register.sh"

2. Look for the line

"depends: base-3.0.1.0 array-0.1.0.0 X11-1.3.0"

and simply change the X11-1.3.0 to your version of X11 bindings for haskell (you can get this by writing in terminal "ghc-pkg list X11")

3. Save the file and execute it in terminal: "sudo bash regsiter.sh"

This should fix the problem.

Sorry for not using my Polish :) Perhaps some english speaking users encountered same problem.

Revision history for this message
the4dk (the4dk) wrote :

Well, package does install now, but it is not working properly.
I think this is an X11 version mismatch issue.

Loading package array-0.1.0.0 ... linking ... done.
Loading package X11-1.4.1 ... linking ... done.
Loading package HGL-3.2.0.0 ... linking ... <interactive>: /usr/lib/HGL-3.2.0.0/ghc-6.8.2/HSH own symbol `__stginit_X11zm1zi3zi0_GraphicsziX11ziXlib_'
ghc-6.8.2: unable to load package `HGL-3.2.0.0'

Revision history for this message
Gary Bickford (garyb-fxt) wrote :

I had an automated 'crash report' that sent me here. I don't have details other than the auto install failed.

Revision history for this message
Brice Arnould (un-brice) wrote :

Same problem, Tomasz trick worked for me.

Revision history for this message
vikrant (vikrant-patil) wrote :

package installs but it is of no use! I get following error

bash$: runhaskell sierpinski.hs
/usr/lib/HGL-3.2.0.0/ghc-6.8.2/Graphics/HGL/X11/Types.hi
Declaration for Key
Constructor Graphics.HGL.X11.Types.MkKey:
  Failed to load interface for `Graphics.X11.Types':
    no package matching X11-1.3.0 was found
Cannot continue after interface file error

Revision history for this message
suhrawardi (jarra) wrote :

same problem here, tried Tomasz trick and get this:
(was possible to compile this before)

$:~/workspace/haskell$ ghc 0005.hs
compilation IS NOT required
0005.o: In function `sTE_info':
(.text+0x2c0): undefined reference to `HGLzm3zi2zi0zi0_GraphicsziHGLziDrawziPicture_polygon_closure'
0005.o: In function `sTG_info':
(.text+0x31b): undefined reference to `HGLzm3zi2zi0zi0_GraphicsziHGLziUtils_withColor_closure'
0005.o: In function `sTG_info':
(.text+0x328): undefined reference to `HGLzm3zi2zi0zi0_GraphicsziHGLziUtils_Blue_closure'
0005.o: In function `sTG_info':
(.text+0x371): undefined reference to `HGLzm3zi2zi0zi0_GraphicsziHGLziUtils_drawInWindow_closure'
0005.o: In function `sXN_info':
(.text+0x811): undefined reference to `HGLzm3zi2zi0zi0_GraphicsziHGLziWindow_closeWindow_closure'
0005.o: In function `sVf_info':
(.text+0x8b1): undefined reference to `HGLzm3zi2zi0zi0_GraphicsziSOE_getKey_closure'
0005.o: In function `sVH_info':
(.text+0xbb1): undefined reference to `HGLzm3zi2zi0zi0_GraphicsziHGLziUtils_openWindow_closure'
0005.o: In function `sWq_info':
(.text+0xcce): undefined reference to `HGLzm3zi2zi0zi0_GraphicsziHGLziRun_runGraphics_closure'
0005.o: In function `sWq_info':
(.text+0xd69): undefined reference to `__stginit_HGLzm3zi2zi0zi0_GraphicsziSOE_'
0005.o: In function `rSs_closure':
(.data+0x40): undefined reference to `HGLzm3zi2zi0zi0_GraphicsziHGLziDrawziPicture_polygon_closure'
0005.o: In function `rSs_closure':
(.data+0x44): undefined reference to `HGLzm3zi2zi0zi0_GraphicsziHGLziUtils_drawInWindow_closure'
0005.o: In function `rSs_closure':
(.data+0x48): undefined reference to `HGLzm3zi2zi0zi0_GraphicsziHGLziUtils_withColor_closure'
0005.o: In function `rSs_closure':
(.data+0x78): undefined reference to `HGLzm3zi2zi0zi0_GraphicsziSOE_getKey_closure'
0005.o: In function `rSs_closure':
(.data+0x7c): undefined reference to `HGLzm3zi2zi0zi0_GraphicsziHGLziWindow_closeWindow_closure'
0005.o: In function `sWq_srt':
(.data+0x98): undefined reference to `HGLzm3zi2zi0zi0_GraphicsziHGLziUtils_openWindow_closure'
0005.o: In function `sWq_closure':
(.data+0xbc): undefined reference to `HGLzm3zi2zi0zi0_GraphicsziHGLziRun_runGraphics_closure'
collect2: ld returned 1 exit status

Revision history for this message
Robert (robrwo) wrote :

I get the same problem.

Changed in haskell-hgl:
status: New → Confirmed
Revision history for this message
Scott Kitterman (kitterman) wrote :

Ack from motu-sru for Hardy.

Changed in haskell-hgl:
status: New → Confirmed
Revision history for this message
Scott Kitterman (kitterman) wrote :

Already fixed in Intrepid.

Changed in haskell-hgl:
status: Confirmed → Fix Released
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Version 3.2.0.0-1ubuntu0.1 uploaded to hardy-proposed.

Changed in haskell-hgl:
importance: Undecided → Medium
importance: Undecided → Medium
description: updated
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into -proposed, please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in haskell-hgl:
status: Confirmed → Fix Committed
Revision history for this message
Erich Pawlik (erichpawlik) wrote :

reopened as result of a retest since the issue has not gone away

Changed in haskell-hgl:
status: Fix Released → Incomplete
Revision history for this message
Erich Pawlik (erichpawlik) wrote :

The update has failed repeatedly with error message:

E: /var/cache/apt/archives/libghc6-hgl-dev_3.2.0.0-1ubuntu0.1_i386.deb: subprocess new pre-removal script returned error exit status 1

Please advice which information I shall collect and upload to help resolving the issue.

Regards

Erich

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Package installs fine in Intrepid, I'll have a look at Hardy version.

Changed in haskell-hgl:
status: Incomplete → Fix Released
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Erich, your issue shows up only when upgrading from 3.2.0.0-1 to 3.2.0.0-1ubuntu0.1, installing version in hardy-proposed ex-novo is fine. Here's a workaround to help you upgrading to 3.2.0.0-1ubuntu0.1:

1) Open /var/lib/dpkg/info/libghc6-hgl-dev.prerm with your favourite editor (with root privileges)
2) Comment (or delete) this line: "/usr/lib/libghc6-hgl-dev/unregister.sh"
3) Save the file and exit from your editor
4) (Re)install libghc6-hgl-dev 3.2.0.0-1ubuntu0.1

Do you still notice the problem?

Revision history for this message
Erich Pawlik (erichpawlik) wrote :

I could install the package using the workaround.

Thank you.

Regards

Erich

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Erich, thanks for your feedback!

I'm able to install packages too, eventually using the above workaround if packages from hardy-release were already installed. Marking as verification-done.

Revision history for this message
Robert (robrwo) wrote : Re: [Bug 202974] Re: libghc6-hgl-dev won't install on hardy

On 06/08/08 00:04 Luca Falavigna wrote:
> Erich, your issue shows up only when upgrading from 3.2.0.0-1 to
> 3.2.0.0-1ubuntu0.1, installing version in hardy-proposed ex-novo is
> fine. Here's a workaround to help you upgrading to 3.2.0.0-1ubuntu0.1:
>
> 1) Open /var/lib/dpkg/info/libghc6-hgl-dev.prerm with your favourite editor (with root privileges)
> 2) Comment (or delete) this line: "/usr/lib/libghc6-hgl-dev/unregister.sh"
> 3) Save the file and exit from your editor
> 4) (Re)install libghc6-hgl-dev 3.2.0.0-1ubuntu0.1
>
> Do you still notice the problem?
>

I still get the problem.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Robert, could you please try with "sudo apt-get --purge remove libghc6-hgl-dev" instead and re-install it?

Revision history for this message
Robert (robrwo) wrote :

On 06/08/08 16:19 Luca Falavigna wrote:
> Robert, could you please try with "sudo apt-get --purge remove libghc6
> -hgl-dev" instead and re-install it?
>

I still get errors:

Selecting previously deselected package libghc6-hgl-dev.
(Reading database ... 210062 files and directories currently installed.)
Unpacking libghc6-hgl-dev (from .../libghc6-hgl-dev_3.2.0.0-1_amd64.deb) ...
Setting up libghc6-hgl-dev (3.2.0.0-1) ...
Reading package info from stdin ... done.
ghc-pkg: dependency X11-1.3.0 doesn't exist (use --force to override)
dpkg: error processing libghc6-hgl-dev (--configure):
  subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
  libghc6-hgl-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in haskell-hgl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.