[Hackage] #538: --constraint= is not respected for base
Hackage
trac at galois.com
Thu Apr 2 21:02:36 EDT 2009
#538: --constraint= is not respected for base
----------------------------+-----------------------------------------------
Reporter: Saizan | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Cabal library | Version: 1.6.0.2
Severity: normal | Keywords:
Difficulty: unknown | Ghcversion:
Platform: |
----------------------------+-----------------------------------------------
the --constraint= flag apparently does nothing when the constraint
involves base.
e.g. to install directory-1.0.0.3, that imports Control.Exception.Base and
only lists "base" in build-depends, you need to add "base >= 4", but cabal
install directory --constraint="base >= 4" picks base-3.0.3.0 anyway.
{{{
saizan at astarte:~/trash/directory-1.0.0.3$ cabal configure
--constraint="base >= 4"
Resolving dependencies...
Configuring directory-1.0.0.3...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/stat.h... (cached) yes
configure: creating ./config.status
config.status: creating include/HsDirectoryConfig.h
config.status: include/HsDirectoryConfig.h is unchanged
saizan at astarte:~/trash/directory-1.0.0.3$ cabal build -v
Creating dist/build (and its parents)
Creating dist/build/autogen (and its parents)
Preprocessing library directory-1.0.0.3...
Building directory-1.0.0.3...
Building library...
Creating dist/build (and its parents)
/usr/local/bin/ghc -package-name directory-1.0.0.3 --make -hide-all-
packages -i -idist/build -i. -idist/build/autogen -Idist/build/autogen
-Idist/build -Iinclude -optP-include
-optPdist/build/autogen/cabal_macros.h -#include "HsDirectory.h" -odir
dist/build -hidir dist/build -stubdir dist/build -package base-3.0.3.0
-package filepath-1.1.0.1 -package old-time-1.0.0.1 -package unix-2.3.1.0
-O -XCPP -XForeignFunctionInterface System.Directory
System/Directory.hs:81:7:
Could not find module `Control.Exception.Base':
it is a member of package base, which is hidden
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/538>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
More information about the cabal-devel
mailing list