Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534434 - app-admin/haskell-updater-1.2.7 is unable to update my Haskell packages
Summary: app-admin/haskell-updater-1.2.7 is unable to update my Haskell packages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-03 14:16 UTC by Helmut Jarausch
Modified: 2015-01-03 17:56 UTC (History)
0 users

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


Attachments
build log of dev-haskell/yaml (yaml-0.8.10.1.build,7.39 KB, application/octet-stream)
2015-01-03 14:16 UTC, Helmut Jarausch
Details
output of ghc-pkg list -v (ghc.list,10.02 KB, text/plain)
2015-01-03 16:09 UTC, Helmut Jarausch
Details
ghc-pkg check output (ghc.check,28.78 KB, text/plain)
2015-01-03 16:10 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2015-01-03 14:16:15 UTC
Created attachment 393068 [details]
build log of dev-haskell/yaml

It's a real pain to update my Haskell packages.
I have run haskell-updater several times without any command line options, as well as with --all.
I have even unmerged all packages given by qlist -IC dev-haskell/, re-emerged
dev-lang/ghc and let emerge @preserved-rebuild try to build the needed packages again. But all fails!

haskell-updater re-emerges packages which have just been emerged.

Then, e.g., it fails to emerge dev-haskell/yaml-0.8.10.1 telling me to
run haskell-updater.

So, I'm lost.
I'll attach the build log of yaml.

emerge --info dev-haskell/yaml
Portage 2.2.15 (python 3.4.2-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.2, glibc-2.20-r1, 3.18.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.1-gentoo-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-2.2
KiB Mem:     7906392 total,    530452 free
KiB Swap:    2097148 total,   2047636 free
Timestamp of repository gentoo: Sat, 03 Jan 2015 09:45:01 +0000
sh bash 4.3_p33
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.2.1 [disabled]
app-shells/bash:          4.3_p33::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.1-r4::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.4.2::gentoo
dev-util/ccache:          3.2.1-r1::gentoo
dev-util/cmake:           3.0.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.6::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.14.1::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.2::gentoo, 4.10.0_pre9999::local
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.4::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.informatik.RWTH-Aachen.de/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

sunrise
    location: /usr/local/portage/layman/sunrise
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/lib/neatx/home"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mtune=native -O2 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LANG="en_US.iso88591"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext 3dnowprefetch X a52 aac acl acpi alsa amd64 avahi berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fortran fuse gdbm gfortran gif gimp glamor gpm gtk gtk3 iconv ipv6 jpeg lapack lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds python qt qt3support qt4 readline sdl session smp spell sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg systemd tcl tcpd threads tiff tk truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xulrunner xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc multiboot" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="ati radeon fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Michael Orlitzky gentoo-dev 2015-01-03 15:49:57 UTC
I hit something like this during the 7.8.4 upgrade. Somehow I wound up with two copies of dev-haskell/nats registered under /usr/lib/ghc-7.8.4, and rebuilding its reverse dependencies would always check the old busted copy and die.

The way I got around it was crude: ultimately I uninstalled every haskell package, and then did rm -rf /usr/lib/ghc-* to kill the leftover package databases (I had stuff going back to the 6.x days).

Can you post the output of,

  $ ghc-pkg list -v

and

  $ ghc-pkg check

please? If any of the entries in the list are red, can you put an asterisk or something next to them?
Comment 2 Helmut Jarausch 2015-01-03 16:09:47 UTC
Created attachment 393080 [details]
output of ghc-pkg list -v

In this output of ghc-pkg list -v
red lines are marked by
>>>
in the first 3 columns
Comment 3 Helmut Jarausch 2015-01-03 16:10:27 UTC
Created attachment 393082 [details]
ghc-pkg check output
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2015-01-03 16:29:55 UTC
(In reply to Helmut Jarausch from comment #3)
> Created attachment 393082 [details]
> ghc-pkg check output

Please, show your output of 'haskell-updater -l'.
Comment 5 Michael Orlitzky gentoo-dev 2015-01-03 16:32:33 UTC
From your build log,

  setup: The following installed packages are broken because other packages
  they depend on are missing. These broken packages must be rebuilt before
  they can be used.

  package aeson-0.8.0.2 is broken due to missing package
  unordered-containers-0.2.5.1-cf128ab54a2db02026e21a9f368429d2

And from the `ghc-pkg list` output, you've got two "versions" of unordered-containers registered with GHC:

  unordered-containers-0.2.5.1-afc67b0011b3d92eaca88156b1376034
  unordered-containers-0.2.5.1-f27abfd87dc652f726481246efccd251

Interestingly, neither of them has the hash "cf128ab54a2db02026e21a9f368429d2" that aeson wants.

You can try to re-emerge just aeson and unordered containers -- maybe you will get lucky. But probably not, if `haskell-updater --all` isn't working.

I'm far from an expert on this, but I don't think you should have so many duplicated packages (of the same version) registered with GHC. Maybe there is/was a bug that could leave orphan entries in the registry. I will ask if anyone knows of a more elegant solution, but the nuke-it-from-outer-space approach is what worked for me.

The GHC package database (everything you see in `ghc-pkg list`) is stored under /usr/lib/ghc-${PV}, so if you uninstall your haskell packages and GHC and remove that directory, you'll be starting with a fresh package database.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2015-01-03 16:36:49 UTC
(In reply to Michael Orlitzky from comment #1)
> I hit something like this during the 7.8.4 upgrade. Somehow I wound up with
> two copies of dev-haskell/nats registered under /usr/lib/ghc-7.8.4, and
> rebuilding its reverse dependencies would always check the old busted copy
> and die.

Yeah, our current upgrade path is a bit bumpy.

You would only need to manually remove non-managed .conf files reported by:

    qfile -o $(ghc --print-libdir)/package.conf.d/*.conf

The rest haskell-updater can clean up by itself.

h-u-1.2.7 alredy shows orphan files, but I was hesitant of removing them
automatically as user might have installed something manually (messy affair,
but legitimate). Current eclasses won't create orphan .conf files anymore.
Comment 7 Michael Orlitzky gentoo-dev 2015-01-03 16:39:13 UTC
(In reply to Sergei Trofimovich from comment #6)
> 
> You would only need to manually remove non-managed .conf files reported by:
> 
>     qfile -o $(ghc --print-libdir)/package.conf.d/*.conf
> 
> The rest haskell-updater can clean up by itself.
> 


Ah, OK, listen to this guy, he actually knows what he's doing =)
Comment 8 Helmut Jarausch 2015-01-03 17:56:48 UTC
(In reply to Michael Orlitzky from comment #7)
> (In reply to Sergei Trofimovich from comment #6)
> > 
> > You would only need to manually remove non-managed .conf files reported by:
> > 
> >     qfile -o $(ghc --print-libdir)/package.conf.d/*.conf
> > 
> > The rest haskell-updater can clean up by itself.
> > 
> 
> 
> Ah, OK, listen to this guy, he actually knows what he's doing =)

Many thanks, Michael, that solved me.
Helmut