NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.95k stars 13.97k forks source link

haskellPackages.systemFilepath test failure on OSX 10.9.4 #3354

Closed alrunner4 closed 10 years ago

alrunner4 commented 10 years ago

haskell-system-filepath-ghc7.8.3-0.4.12-shared tests fail like so:

Preprocessing test suite 'filesystem_path_tests' for system-filepath-0.4.12...
running tests
Running 1 test suites...
Test suite filesystem_path_tests: RUNNING...
[ FAIL  ] tests.validity.windows
  note: seed=-4272105996741191571

    *** Failed! Falsifiable (after 70 tests):
FilePath "XG/}\STX^y\247*\236\192\DC1/\SOH\143\&4\195\224-/\186\182\NAKG/\SI\192f\233\204/o,\151/t/\200T\221\ETX\172\RS/\DLE\ENQSY/;\207/e$kZ\238i][/q\129\&2ckW/G\"\SIZa\b4%j\150/f \RSd/\ETB\DC3\GSASy\177O\DC4/*\133\SYN\132/\149\vz\ETX/\ETX\DC37u(d\150\a\ESCJ/m\140\DEL\CAN[G\165\&2/3Y\SUB\186\230\ENQw\250;/\DELlA\DEL/vfA!-*2\DELL\n/\184\186\142h*/\236\190\NAK/TLD/T8{/~\242\US~\DEL/o\ENQuy\150/2h\186/\218\168\US\201\&9tV+/2\176X1O\SUBl/\EM\"0}M3AU\249:/\163/\184/(/\168\STX\US\189E$\aW\186/\254z\170\b/\193;\158\ACK\129ulQ\FS/\169ih\CANq\147\248\217n\207/1\FS\DC3\SYN\223\166/G/\185\DC4T](\ETX\US\201\DC3/%54d\fD\154/\223\DC1\t\DC3$+\ETX/e\170\180\SUB\237\166^Z\235A/\r\213/\EOT/M\DC4\EOT/\169\&5C\216\NAK\234\"/\203\173TB/.\151W2C\134\v\fu/{/U\EM\ESC1\159\&5T\171>/Xb{?\USVd5/=\190\130C/\STXz\136/\243S\159z/F)\b\186\185\a\CAN \DC4K/Q.\191.d\198h\ETX5/m`_\a\206y=^R /_O\NAK\244\185hV/\199\f8\FS\ESC./JE\223\t\EOT/N\243\ACK}/~/\ESCA0\SO\SI\ESC9\195/B/b\DEL$\130/v\DC4 \238\&1/\204-\213"

FAIL: 47 tests run, 46 tests passed, 1 test failed
Test suite filesystem_path_tests: FAIL
Test suite logged to:
dist/test/system-filepath-0.4.12-filesystem_path_tests.log
0 of 1 test suites (0 of 1 test cases) passed.

Tests run on a standalone copy of system-filepath-0.4.12 (also using ghc-7.8.3):

readlink: illegal option -- f
usage: readlink [-n] [file ...]
readlink: illegal option -- f
usage: readlink [-n] [file ...]
readlink: illegal option -- f
usage: readlink [-n] [file ...]
readlink: illegal option -- f
usage: readlink [-n] [file ...]
readlink: illegal option -- f
usage: readlink [-n] [file ...]
readlink: illegal option -- f
usage: readlink [-n] [file ...]
readlink: illegal option -- f
usage: readlink [-n] [file ...]
readlink: illegal option -- f
usage: readlink [-n] [file ...]
readlink: illegal option -- f
usage: readlink [-n] [file ...]
readlink: illegal option -- f
usage: readlink [-n] [file ...]
readlink: illegal option -- f
usage: readlink [-n] [file ...]
readlink: illegal option -- f
usage: readlink [-n] [file ...]
Running 1 test suites...
Test suite filesystem_path_tests: RUNNING...
Test suite filesystem_path_tests: PASS
Test suite logged to:
dist/test/system-filepath-0.4.12-filesystem_path_tests.log
1 of 1 test suites (1 of 1 test cases) passed.
peti commented 10 years ago

I suppose it would be best to report that issue upstream, i.e. to the author of the package?

alrunner4 commented 10 years ago

I reported the issue here because the tests pass (though somewhat noisily) when installed with cabal standalone, but fail when installed with nix, which suggests to me some kind of issue with the packaging, if only test-specific. In any case, the test failure prevents the derivation from being installed.

peti commented 10 years ago

IMHO, the error message

usage: readlink [-n] [file ...]
readlink: illegal option -- f

signifies that the test suite makes incorrect assumptions about the flags supported by the readlink utility. I would report that upstream.

Debilski commented 10 years ago

Getting the same readlink error messages (and additional linker warnings) when using the nixpkgs cabal on a minimal project. (Also using OS X 10.9.4) Not sure where I should start debugging, though.