{"action":"opened","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11582","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11582/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11582/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11582/events","html_url":"https://github.com/NixOS/nixpkgs/issues/11582","id":121318382,"number":11582,"title":"timerecurrence not building","user":{"login":"charles-cooper","id":3867501,"avatar_url":"https://avatars.githubusercontent.com/u/3867501?v=3","gravatar_id":"","url":"https://api.github.com/users/charles-cooper","html_url":"https://github.com/charles-cooper","followers_url":"https://api.github.com/users/charles-cooper/followers","following_url":"https://api.github.com/users/charles-cooper/following{/other_user}","gists_url":"https://api.github.com/users/charles-cooper/gists{/gist_id}","starred_url":"https://api.github.com/users/charles-cooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charles-cooper/subscriptions","organizations_url":"https://api.github.com/users/charles-cooper/orgs","repos_url":"https://api.github.com/users/charles-cooper/repos","events_url":"https://api.github.com/users/charles-cooper/events{/privacy}","received_events_url":"https://api.github.com/users/charles-cooper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-09T19:17:09Z","updated_at":"2015-12-09T19:17:09Z","closed_at":null,"body":"```\r\n$ nixos-version\r\n16.03pre73106.b1dca6c (Emu)\r\n$ nix-shell --version\r\nnix-shell (Nix) 1.10\r\n```\r\nGetting `time-recurrence` and building fails during the testing stage. I believe that tests are not expected to compile for `timerecurrence` because its test-suite flag is disabled by default. However, it is clearly getting enabled for the build.\r\n\r\nBelow is the full output:\r\n```\r\n$ nix-shell -p haskellPackages.time-recurrence\r\nthese derivations will be built:\r\n  /nix/store/qr6n1g9x5819l56mq9cnxz46nzs517ny-time-recurrence-0.9.2.drv\r\nbuilding path(s) ‘/nix/store/g51wani86yafwydqadfapnayy7wzm6ax-time-recurrence-0.9.2’\r\nsetupCompilerEnvironmentPhase\r\nBuild with /nix/store/h0i71d1bi6a75rndb59yk3nas83yajd4-ghc-7.10.2.\r\nunpacking sources\r\nunpacking source archive /nix/store/ch14yd9f2q340bjdcynpw6q7s89s82zx-time-recurrence-0.9.2.tar.gz\r\nsource root is time-recurrence-0.9.2\r\npatching sources\r\nReplace Cabal file with edited version from http://hackage.haskell.org/package/time-recurrence-0.9.2/revision/1.cabal.\r\ncompileBuildDriverPhase\r\nsetupCompileFlags: -package-db=/tmp/nix-build-time-recurrence-0.9.2.drv-0/package.conf.d -j1 -threaded\r\n[1 of 1] Compiling Main             ( Setup.hs, /tmp/nix-build-time-recurrence-0.9.2.drv-0/Main.o )\r\nLinking Setup ...\r\nconfiguring\r\nconfigureFlags: --verbose --prefix=/nix/store/g51wani86yafwydqadfapnayy7wzm6ax-time-recurrence-0.9.2 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --with-gcc=gcc --package-db=/tmp/nix-build-time-recurrence-0.9.2.drv-0/package.conf.d --ghc-option=-optl=-Wl,-rpath=/nix/store/g51wani86yafwydqadfapnayy7wzm6ax-time-recurrence-0.9.2/lib/ghc-7.10.2/time-recurrence-0.9.2 --enable-split-objs --disable-library-profiling --disable-executable-profiling --enable-shared --enable-library-vanilla --enable-executable-dynamic --enable-tests\r\nConfiguring time-recurrence-0.9.2...\r\nFlags chosen: test-suite=False\r\nDependency HUnit ==1.2.*: using HUnit-1.2.5.2\r\nDependency base ==4.*: using base-4.8.1.0\r\nDependency data-ordlist >=0.4.5: using data-ordlist-0.4.7.0\r\nDependency mtl >=2.0 && <2.3: using mtl-2.2.1\r\nDependency old-locale ==1.0.*: using old-locale-1.0.0.7\r\nDependency test-framework >=0.8: using test-framework-0.8.1.1\r\nDependency test-framework-hunit >=0.3.0: using test-framework-hunit-0.3.0.2\r\nDependency time >=1.4 && <2: using time-1.5.0.1\r\nUsing Cabal-1.22.4.0 compiled by ghc-7.10\r\nUsing compiler: ghc-7.10.2\r\nUsing install prefix:\r\n/nix/store/g51wani86yafwydqadfapnayy7wzm6ax-time-recurrence-0.9.2\r\nBinaries installed in:\r\n/nix/store/g51wani86yafwydqadfapnayy7wzm6ax-time-recurrence-0.9.2/bin\r\nLibraries installed in:\r\n/nix/store/g51wani86yafwydqadfapnayy7wzm6ax-time-recurrence-0.9.2/lib/ghc-7.10.2/time-recurrence-0.9.2\r\nPrivate binaries installed in:\r\n/nix/store/g51wani86yafwydqadfapnayy7wzm6ax-time-recurrence-0.9.2/libexec\r\nData files installed in:\r\n/nix/store/g51wani86yafwydqadfapnayy7wzm6ax-time-recurrence-0.9.2/share/x86_64-linux-ghc-7.10.2/time-recurrence-0.9.2\r\nDocumentation installed in:\r\n/nix/store/g51wani86yafwydqadfapnayy7wzm6ax-time-recurrence-0.9.2/share/doc/x86_64-linux-ghc-7.10.2/time-recurrence-0.9.2\r\nConfiguration files installed in:\r\n/nix/store/g51wani86yafwydqadfapnayy7wzm6ax-time-recurrence-0.9.2/etc\r\nNo alex found\r\nUsing ar found on system at:\r\n/nix/store/390z7i593kfnysfyx4sawlgxi8fvw074-binutils-2.23.1/bin/ar\r\nNo c2hs found\r\nNo cpphs found\r\nUsing gcc version 4.9.3 given by user at:\r\n/nix/store/k495n2di6l9lq5blrxyi1m4a5pb6n7pa-gcc-wrapper-4.9.3/bin/gcc\r\nUsing ghc version 7.10.2 found on system at:\r\n/nix/store/h0i71d1bi6a75rndb59yk3nas83yajd4-ghc-7.10.2/bin/ghc\r\nUsing ghc-pkg version 7.10.2 found on system at:\r\n/nix/store/h0i71d1bi6a75rndb59yk3nas83yajd4-ghc-7.10.2/bin/ghc-pkg\r\nNo ghcjs found\r\nNo ghcjs-pkg found\r\nNo greencard found\r\nUsing haddock version 2.16.1 found on system at:\r\n/nix/store/h0i71d1bi6a75rndb59yk3nas83yajd4-ghc-7.10.2/bin/haddock\r\nNo happy found\r\nUsing haskell-suite found on system at: haskell-suite-dummy-location\r\nUsing haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location\r\nNo hmake found\r\nUsing hpc version 0.67 found on system at:\r\n/nix/store/h0i71d1bi6a75rndb59yk3nas83yajd4-ghc-7.10.2/bin/hpc\r\nUsing hsc2hs version 0.67 found on system at:\r\n/nix/store/h0i71d1bi6a75rndb59yk3nas83yajd4-ghc-7.10.2/bin/hsc2hs\r\nUsing hscolour version 1.22 found on system at:\r\n/nix/store/sha1ywqd9q07yq5zrbxai2wy3sps6pm2-hscolour-1.23/bin/HsColour\r\nNo jhc found\r\nUsing ld found on system at:\r\n/nix/store/k495n2di6l9lq5blrxyi1m4a5pb6n7pa-gcc-wrapper-4.9.3/bin/ld\r\nNo lhc found\r\nNo lhc-pkg found\r\nNo pkg-config found\r\nUsing strip version 2.23 found on system at:\r\n/nix/store/390z7i593kfnysfyx4sawlgxi8fvw074-binutils-2.23.1/bin/strip\r\nUsing tar found on system at:\r\n/nix/store/622ych28qrgjsn2mwiwhf7rf06hllp8b-gnutar-1.28/bin/tar\r\nNo uhc found\r\nbuilding\r\nBuilding time-recurrence-0.9.2...\r\nPreprocessing library time-recurrence-0.9.2...\r\n[ 1 of 15] Compiling Data.Time.Recurrence.AndThen ( src/Data/Time/Recurrence/AndThen.hs, dist/build/Data/Time/Recurrence/AndThen.o )\r\n[ 2 of 15] Compiling Data.Time.Calendar.WeekDay ( src/Data/Time/Calendar/WeekDay.hs, dist/build/Data/Time/Calendar/WeekDay.o )\r\n[ 3 of 15] Compiling Data.Time.Moment.Private ( src/Data/Time/Moment/Private.hs, dist/build/Data/Time/Moment/Private.o )\r\n[ 4 of 15] Compiling Data.Time.Moment.Interval ( src/Data/Time/Moment/Interval.hs, dist/build/Data/Time/Moment/Interval.o )\r\n[ 5 of 15] Compiling Data.Time.Moment.StartOfWeek ( src/Data/Time/Moment/StartOfWeek.hs, dist/build/Data/Time/Moment/StartOfWeek.o )\r\n[ 6 of 15] Compiling Data.Time.Calendar.Month ( src/Data/Time/Calendar/Month.hs, dist/build/Data/Time/Calendar/Month.o )\r\n\r\nsrc/Data/Time/Calendar/Month.hs:29:16: Warning: Tab character\r\n\r\nsrc/Data/Time/Calendar/Month.hs:30:16: Warning: Tab character\r\n[ 7 of 15] Compiling Data.Time.CalendarTime.CalendarTime ( src/Data/Time/CalendarTime/CalendarTime.hs, dist/build/Data/Time/CalendarTime/CalendarTime.o )\r\n[ 8 of 15] Compiling Data.Time.CalendarTime ( src/Data/Time/CalendarTime.hs, dist/build/Data/Time/CalendarTime.o )\r\n[ 9 of 15] Compiling Data.Time.Moment.Moment ( src/Data/Time/Moment/Moment.hs, dist/build/Data/Time/Moment/Moment.o )\r\n[10 of 15] Compiling Data.Time.Moment.FutureMoments ( src/Data/Time/Moment/FutureMoments.hs, dist/build/Data/Time/Moment/FutureMoments.o )\r\n[11 of 15] Compiling Data.Time.Moment ( src/Data/Time/Moment.hs, dist/build/Data/Time/Moment.o )\r\n[12 of 15] Compiling Data.Time.Moment.UTC ( src/Data/Time/Moment/UTC.hs, dist/build/Data/Time/Moment/UTC.o )\r\n[13 of 15] Compiling Data.Time.Recurrence.ScheduleDetails ( src/Data/Time/Recurrence/ScheduleDetails.hs, dist/build/Data/Time/Recurrence/ScheduleDetails.o )\r\n[14 of 15] Compiling Data.Time.Recurrence.Schedule ( src/Data/Time/Recurrence/Schedule.hs, dist/build/Data/Time/Recurrence/Schedule.o )\r\n[15 of 15] Compiling Data.Time.Recurrence ( src/Data/Time/Recurrence.hs, dist/build/Data/Time/Recurrence.o )\r\nIn-place registering time-recurrence-0.9.2...\r\nPreprocessing test suite 'test-time-recurrence' for time-recurrence-0.9.2...\r\n[ 1 of 16] Compiling Data.Time.Recurrence.AndThen ( src/Data/Time/Recurrence/AndThen.hs, dist/build/test-time-recurrence/test-time-recurrence-tmp/Data/Time/Recurrence/AndThen.dyn_o )\r\n[ 2 of 16] Compiling Data.Time.Calendar.WeekDay ( src/Data/Time/Calendar/WeekDay.hs, dist/build/test-time-recurrence/test-time-recurrence-tmp/Data/Time/Calendar/WeekDay.dyn_o )\r\n[ 3 of 16] Compiling Data.Time.Moment.Private ( src/Data/Time/Moment/Private.hs, dist/build/test-time-recurrence/test-time-recurrence-tmp/Data/Time/Moment/Private.dyn_o )\r\n[ 4 of 16] Compiling Data.Time.Moment.Interval ( src/Data/Time/Moment/Interval.hs, dist/build/test-time-recurrence/test-time-recurrence-tmp/Data/Time/Moment/Interval.dyn_o )\r\n[ 5 of 16] Compiling Data.Time.Moment.StartOfWeek ( src/Data/Time/Moment/StartOfWeek.hs, dist/build/test-time-recurrence/test-time-recurrence-tmp/Data/Time/Moment/StartOfWeek.dyn_o )\r\n[ 6 of 16] Compiling Data.Time.Calendar.Month ( src/Data/Time/Calendar/Month.hs, dist/build/test-time-recurrence/test-time-recurrence-tmp/Data/Time/Calendar/Month.dyn_o )\r\n\r\nsrc/Data/Time/Calendar/Month.hs:29:16: Warning: Tab character\r\n\r\nsrc/Data/Time/Calendar/Month.hs:30:16: Warning: Tab character\r\n[ 7 of 16] Compiling Data.Time.CalendarTime.CalendarTime ( src/Data/Time/CalendarTime/CalendarTime.hs, dist/build/test-time-recurrence/test-time-recurrence-tmp/Data/Time/CalendarTime/CalendarTime.dyn_o )\r\n[ 8 of 16] Compiling Data.Time.CalendarTime ( src/Data/Time/CalendarTime.hs, dist/build/test-time-recurrence/test-time-recurrence-tmp/Data/Time/CalendarTime.dyn_o )\r\n[ 9 of 16] Compiling Data.Time.Moment.Moment ( src/Data/Time/Moment/Moment.hs, dist/build/test-time-recurrence/test-time-recurrence-tmp/Data/Time/Moment/Moment.dyn_o )\r\n[10 of 16] Compiling Data.Time.Moment.UTC ( src/Data/Time/Moment/UTC.hs, dist/build/test-time-recurrence/test-time-recurrence-tmp/Data/Time/Moment/UTC.dyn_o )\r\n[11 of 16] Compiling Data.Time.Moment.FutureMoments ( src/Data/Time/Moment/FutureMoments.hs, dist/build/test-time-recurrence/test-time-recurrence-tmp/Data/Time/Moment/FutureMoments.dyn_o )\r\n[12 of 16] Compiling Data.Time.Moment ( src/Data/Time/Moment.hs, dist/build/test-time-recurrence/test-time-recurrence-tmp/Data/Time/Moment.dyn_o )\r\n[13 of 16] Compiling Data.Time.Recurrence.ScheduleDetails ( src/Data/Time/Recurrence/ScheduleDetails.hs, dist/build/test-time-recurrence/test-time-recurrence-tmp/Data/Time/Recurrence/ScheduleDetails.dyn_o )\r\n[14 of 16] Compiling Data.Time.Recurrence.Schedule ( src/Data/Time/Recurrence/Schedule.hs, dist/build/test-time-recurrence/test-time-recurrence-tmp/Data/Time/Recurrence/Schedule.dyn_o )\r\n[15 of 16] Compiling Data.Time.Recurrence ( src/Data/Time/Recurrence.hs, dist/build/test-time-recurrence/test-time-recurrence-tmp/Data/Time/Recurrence.dyn_o )\r\n[16 of 16] Compiling Main             ( tests/Tests.lhs, dist/build/test-time-recurrence/test-time-recurrence-tmp/Main.dyn_o )\r\n\r\ntests/Tests.lhs:30:28:\r\n    Ambiguous occurrence ‘defaultTimeLocale’\r\n    It could refer to either ‘System.Locale.defaultTimeLocale’,\r\n                             imported from ‘System.Locale’ at tests/Tests.lhs:16:25-41\r\n                          or ‘Data.Time.defaultTimeLocale’,\r\n                             imported from ‘Data.Time’ at tests/Tests.lhs:17:3-18\r\n                             (and originally defined in ‘time-1.5.0.1:Data.Time.Format.Locale’)\r\n\r\ntests/Tests.lhs:30:46:\r\n    Ambiguous occurrence ‘rfc822DateFormat’\r\n    It could refer to either ‘System.Locale.rfc822DateFormat’,\r\n                             imported from ‘System.Locale’ at tests/Tests.lhs:16:44-59\r\n                          or ‘Data.Time.rfc822DateFormat’,\r\n                             imported from ‘Data.Time’ at tests/Tests.lhs:17:3-18\r\n                             (and originally defined in ‘time-1.5.0.1:Data.Time.Format.Locale’)\r\nbuilder for ‘/nix/store/qr6n1g9x5819l56mq9cnxz46nzs517ny-time-recurrence-0.9.2.drv’ failed with exit code 1\r\nerror: build of ‘/nix/store/qr6n1g9x5819l56mq9cnxz46nzs517ny-time-recurrence-0.9.2.drv’ failed\r\n/run/current-system/sw/bin/nix-shell: failed to build all dependencies\r\n```\r\n\r\nSince the tests are clearly not passing, is this considered a problem with the configure stage of nixpkgs not respecting the cabal flag, or with the upstream package?\r\n\r\nCharles"}}