Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640156 - app-emulation/ganeti-2.16.0_rc1 & deps broken with dev-lang/ghc-8.0.2
Summary: app-emulation/ganeti-2.16.0_rc1 & deps broken with dev-lang/ghc-8.0.2
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Deadline: 2020-09-21
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2017-12-07 09:34 UTC by Hector Martin
Modified: 2020-09-21 07:33 UTC (History)
4 users (show)

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


Attachments
quick and dirty fix ebuild (ganeti-2.16.0_rc1-r1.ebuild,10.28 KB, text/plain)
2017-12-07 09:34 UTC, Hector Martin
Details
ganeti-2.16.0_rc1-r1.ebuild (v2) (ganeti-2.16.0_rc1-r1.ebuild,10.37 KB, text/plain)
2017-12-07 14:55 UTC, Hector Martin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hector Martin 2017-12-07 09:34:31 UTC
Created attachment 508638 [details]
quick and dirty fix ebuild

app-emulation/ganeti-2.16.0_rc1 (and probably the other available versions) depends on:

        >=dev-haskell/snap-core-0.8.1:0=
        <dev-haskell/snap-core-0.10:0=
        >=dev-haskell/snap-server-0.8.1:0=
        <dev-haskell/snap-server-0.10:0=

But those versions do not build with dev-lang/ghc-8.0.2, which is now amd64 stable. This is extra annoying because it breaks world upgrades after those packages fail to build.

=dev-haskell/snap-core-1.0.1.0 and =dev-haskell/snap-server-1.0.1.1 (also keyworded amd64) do build with ghc-8, but Ganeti is incompatible with them.

Debian has patches for both ghc-8 compat in Ganeti itself and for snap-{server,core}-1.0 compat:

https://anonscm.debian.org/git/pkg-ganeti/ganeti.git/tree/debian/patches

Quick and dirty ebuild attached (needs ghc8-fixes, 0001-GHC-8-support.patch, snap-server-1.0-compat from the above repo in $FILESDIR). AIUI these patches do not handle backwards compatibility so the deps should probably be adjusted to hard depend on >=GHC-8, >=snap-server-1.0, and >=snap-core-1.0 (which are all stable so that should be safe). I tested that it builds and am testing if it works properly now.
Comment 1 Hector Martin 2017-12-07 14:55:52 UTC
Created attachment 508646 [details]
ganeti-2.16.0_rc1-r1.ebuild (v2)

Ebuild was also missing this dep:

   >=dev-haskell/monadcatchio-transformers-0.3:0=
   <dev-haskell/monadcatchio-transformers-0.4:0=
Comment 2 Hector Martin 2017-12-07 16:52:27 UTC
The Ganeti cluster seems to be working fine; I did some master failovers, restarted nodes and migrated VMs around. Looks like the patches work as intended.
Comment 3 Patrick McLean gentoo-dev 2017-12-08 22:07:07 UTC
The 2.16 ebuilds were added by robbat2, so I will reassign this to him.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-09-21 07:33:58 UTC
removed.