Control: reassign -1 haskell-devscripts
Control: retitle -1 haskell-devscripts: Shell expansion breaks nested
quotes in GHC arguments
Control: affects -1 haskell-hashable

Hi,

> unrecognized 'configure' option `-D_FILE_OFFSET_BITS=64'

I believe the quotes in haskell-hashable here: [1]

    DEB_SETUP_GHC_CONFIGURE_ARGS = --hsc2hs-options="$(LFS_CFLAGS)"
--gcc-options="$(LFS_CFLAGS)" --ghc-options="$(GHC_LFSFLAGS)"

are lost when the environment variable is shell-expanded in
haskell-devscripts here: [2]

    # DEB_SETUP_GHC_CONFIGURE_ARGS can contain multiple arguments
    # with their own quoting so run through a shell expansion
    my $ghc_configure_args = run_quiet(
        qw{sh -c},
        'echo -n '
          . $DOUBLE_QUOTE
          . ($ENV{DEB_SETUP_GHC_CONFIGURE_ARGS} // $EMPTY)
          . $DOUBLE_QUOTE
    );

Kind regards,
Felix Lechner

[1] 
https://salsa.debian.org/haskell-team/DHG_packages/-/blob/master/p/haskell-hashable/debian/rules#L6
[2] 
https://salsa.debian.org/haskell-team/haskell-devscripts/-/blob/master/lib/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm#L597-605

Reply via email to