Ticket #1289 (new defect)

Opened 15 months ago

Last modified 14 months ago

gtksourceview2-0.12.3.1 broken with cabal because of duplicate code

Reported by: guest Owned by: somebody
Priority: normal Milestone: 0.13.0
Component: general (Gtk+, Glib) Version: 0.12.4
Keywords: gtkglext, SetupWrapper Cc: misc@…

Description

It seems that you moved a function named 'moreRecentFile' from SetupWrapper?.hs to Distribution.Simple.Utils, but forgot to remove it from SetupWrapper?.hs.

Now when I 'cabal install gtksourceview2', I get an "Ambiguous occurrance" error, and the package does not install, as you can see below:

[1 of 2] Compiling SetupWrapper? ( /tmp/gtksourceview2-0.12.3.1-8453/gtksourceview2-0.12.3.1/SetupWrapper.hs, /tmp/gtksourceview2-0.12.3.1-8453/gtksourceview2-0.12.3.1/dist/setup/SetupWrapper.o )

/tmp/gtksourceview2-0.12.3.1-8453/gtksourceview2-0.12.3.1/SetupWrapper.hs:94:45:

Ambiguous occurrence `moreRecentFile' It could refer to either `SetupWrapper?.moreRecentFile',

defined at /tmp/gtksourceview2-0.12.3.1-8453/gtksourceview2-0.12.3.1/SetupWrapper.hs:149:1

or `Distribution.Simple.Utils.moreRecentFile',

imported from `Distribution.Simple.Utils' at /tmp/gtksourceview2-0.12.3.1-8453/gtksourceview2-0.12.3.1/SetupWrapper.hs:8:1-32

/tmp/gtksourceview2-0.12.3.1-8453/gtksourceview2-0.12.3.1/SetupWrapper.hs:95:45:

Ambiguous occurrence `moreRecentFile' It could refer to either `SetupWrapper?.moreRecentFile',

defined at /tmp/gtksourceview2-0.12.3.1-8453/gtksourceview2-0.12.3.1/SetupWrapper.hs:149:1

or `Distribution.Simple.Utils.moreRecentFile',

imported from `Distribution.Simple.Utils' at /tmp/gtksourceview2-0.12.3.1-8453/gtksourceview2-0.12.3.1/SetupWrapper.hs:8:1-32

Failed to install gtksourceview2-0.12.3.1 cabal: Error: some packages failed to install: gtksourceview2-0.12.3.1 failed during the configure step. The exception was: ExitFailure? 1

Change History

Changed 14 months ago by guest

  • keywords gtkglext, SetupWrapper added

When running "cabal install gtkglext" get same error on different version. Resolving dependencies... [1 of 2] Compiling SetupWrapper? ( /tmp/gtkglext-0.12.1-15700/gtkglext-0.12.1/SetupWrapper.hs, /tmp/gtkglext-0.12.1-15700/gtkglext-0.12.1/dist/setup/SetupWrapper.o )

/tmp/gtkglext-0.12.1-15700/gtkglext-0.12.1/SetupWrapper.hs:94:45:

Ambiguous occurrence `moreRecentFile' It could refer to either `SetupWrapper?.moreRecentFile',

defined at /tmp/gtkglext-0.12.1-15700/gtkglext-0.12.1/SetupWrapper.hs:149:1

or `Distribution.Simple.Utils.moreRecentFile',

imported from `Distribution.Simple.Utils' at /tmp/gtkglext-0.12.1-15700/gtkglext-0.12.1/SetupWrapper.hs:8:1-32

/tmp/gtkglext-0.12.1-15700/gtkglext-0.12.1/SetupWrapper.hs:95:45:

Ambiguous occurrence `moreRecentFile' It could refer to either `SetupWrapper?.moreRecentFile',

defined at /tmp/gtkglext-0.12.1-15700/gtkglext-0.12.1/SetupWrapper.hs:149:1

or `Distribution.Simple.Utils.moreRecentFile',

imported from `Distribution.Simple.Utils' at /tmp/gtkglext-0.12.1-15700/gtkglext-0.12.1/SetupWrapper.hs:8:1-32

Failed to install gtkglext-0.12.1 cabal: Error: some packages failed to install: gtkglext-0.12.1 failed during the configure step. The exception was: ExitFailure? 1

Note: See TracTickets for help on using tickets.