Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213932 - dev-haskell/regex-base-0.72 doesn't pull in cabal first
Summary: dev-haskell/regex-base-0.72 doesn't pull in cabal first
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-19 14:44 UTC by Greg Hasseler
Modified: 2010-07-12 11:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info,7.41 KB, text/plain)
2010-03-11 14:05 UTC, K. Posern
Details
"proof" of what happened during emerge (.screen_exchange,25.23 KB, text/plain)
2010-03-11 14:05 UTC, K. Posern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Hasseler 2008-03-19 14:44:19 UTC
When trying to install dev-haskell/ghc-6.6.1, dev-haskell/regex-base-0.72 is pulled in. ghc builds successfully, but regex-base fails complaining that cabal isn't installed. I see that cabal is in the list of packages to be emerged, but it seems to need to be emerged before regex-base.

Reproducible: Always




bingo regex-base # emerge -pk ghc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[binary  N    ] dev-haskell/regex-base-0.72  USE="-doc -profile"
[binary  N    ] dev-haskell/regex-posix-0.71  USE="-doc -profile"
[binary  N    ] dev-haskell/regex-compat-0.71  USE="-doc -profile"
[binary  N    ] dev-haskell/cabal-1.1.6.2  USE="-doc -profile"
[binary  N    ] dev-haskell/filepath-1.0  USE="-doc -profile"
[binary   R   ] dev-lang/ghc-6.6.1

bingo regex-base # emerge -k ghc
Calculating dependencies... done!
>>> starting parallel fetching

>>> Emerging (1 of 6) dev-haskell/regex-base-0.72 to /
>>> Extracting info
 * The package dev-haskell/cabal is not correctly installed for
 * the currently active version of ghc (6.6.1). Please
 * run ghc-updater or re-emerge dev-haskell/cabal.
 *
 * ERROR: dev-haskell/regex-base-0.72 failed.
 * Call stack:
 *              ebuild.sh, line 1717:  Called dyn_setup
 *              ebuild.sh, line  768:  Called qa_call 'pkg_setup'
 *              ebuild.sh, line   44:  Called pkg_setup
 *              ebuild.sh, line 1383:  Called haskell-cabal_pkg_setup
 *   haskell-cabal.eclass, line  280:  Called die
 * The specific snippet of code:
 *              die "cabal is not correctly installed"
 *  The die message:
 *   cabal is not correctly installed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-haskell/regex-base-0.72/temp/build.log'.
 *
!!! Setup failed: 1

bingo regex-base # emerge --info
Portage 2.1.3.19 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r8 i686)
=================================================================
System uname: 2.6.23-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz
Timestamp of tree: Wed, 19 Mar 2008 05:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distcc distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j20"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://toby.cs.sunyit.edu/gentoo-portage"
USE="X X509 a52 aac accessibility acpi alsa arts bash-completion berkdb branding bzip2 cairo cdda cddb cdr cli cracklib crypt cups cvs cvsgraph cxx d dbus dia divx dri dvd dvdnav dvdr dvdread dvi eds emacs encode enscript epiphany epydoc evo evolution exif fam ffmpeg firefox flac fltk foomaticdb fortran ftp gaim gd gdbm gdm geoip gif gimp glitz gmail gnome gnome-print gphoto2 gpm gstreamer gtk gtkhtml gzip hal icons iconv imagemagick ipod isdnlog java javascript jpeg junit justify kde keyring lame latex lcms ldap libcaca libnotify libsexy live mad mdb midi mime mjpeg mp3 mpe mpe-sdk mpeg mplayer msn mudflap multiuser musepack musicbrainz mysqli nautilus ncurses netbeans nfs njb nls nntp no-old-linux nodrm nptl nptlonly nsplugin odbc offensive ofx ogg opengl openmp opera oracle oscar ots pam pascal pcre pdf pdfkit perforce perl plugin png pop postscript povray ppds prediction python qt3 qt3support qt4 query-browser quicktime rdesktop readline real realmedia reflection replytolist romio rtc rtsp ruby rubytests samba scanner seamonkey session skins smp soap sockets sound sourceview spell spl sql sqlite ssl subversion svg svga svgz tagwriting tcpd test-framework tetex thesaurus threads thunderbird tidy tiff tk tokenizer toolbar truetype unicode usb valgrind vcd vim-syntax vim-with-x visualization vorbis wav webdav widescreen win32codecs wma wmp wordperfect workbench wxwindows x86 xcomposite xine xinerama xml xorg xosd xscreensaver xulrunner xvid yahoo zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lennart Kolmodin (RETIRED) gentoo-dev 2008-05-05 18:56:48 UTC
Right, so to summarize: GHC 6.6.1 post depends on cabal and the regex-* packages.
The regex-* packages *should* depend on cabal, using the haskell-cabal ebuild.
Still, portage gets the ordering wrong.

Unfortunately it seems the eclass is broken, or something else is going on.

I'll have a look at it, thanks for reporting.
Comment 2 Lennart Kolmodin (RETIRED) gentoo-dev 2008-05-05 20:07:00 UTC
To me the deps look fine, and I cannot reproduce the bug.
I install ghc-6.6.1, no problem. Uninstall the post deps, and tries to re-emerge, everything went fine.

Could you please update your portage version, sync your tree and try again?

Does the problem remain?
Comment 3 K. Posern 2010-03-11 13:16:21 UTC
Yes.

Same here: I did not have any haskel paket installed.

I installed darc which pulled in ghc, cabal and regex-base (and other haskell pakets).

I then started an emerge with all 3 packages and emerge emerged first ghc (WORKED), then regex-base (FAILED).
Manually merging cabal, THEN regex-base: WORKED.

So to me this means that there is clearly a problem of dependencies either in the paket(s) or in the way emerge interprets them.
Comment 4 K. Posern 2010-03-11 14:05:04 UTC
Created attachment 223149 [details]
emerge --info
Comment 5 K. Posern 2010-03-11 14:05:49 UTC
Created attachment 223151 [details]
"proof" of what happened during emerge
Comment 6 Lennart Kolmodin (RETIRED) gentoo-dev 2010-05-28 11:22:34 UTC
(In reply to comment #3)
> Yes.
> 
> Same here: I did not have any haskel paket installed.
> 
> I installed darc which pulled in ghc, cabal and regex-base (and other haskell
> pakets).
> 
> I then started an emerge with all 3 packages and emerge emerged first ghc
> (WORKED), then regex-base (FAILED).
> Manually merging cabal, THEN regex-base: WORKED.
> 
> So to me this means that there is clearly a problem of dependencies either in
> the paket(s) or in the way emerge interprets them.

Right, iirc emerge can be sensitive to which order you give the packages if you already have them installed.

Also, the logs you posted tells you to run ghc-updater, did you?
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2010-07-12 11:21:22 UTC
> >>> Emerging (1 of 6) dev-haskell/regex-base-0.72 to /
> >>> Extracting info
>  * The package dev-haskell/cabal is not correctly installed for
>  * the currently active version of ghc (6.6.1). Please
>  * run ghc-updater or re-emerge dev-haskell/cabal.

If similar things will happen even after ghc-updater/haskell-updater run - don't hesitate to open another bug.

Closing as INVALID.