[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem compiling haskell-regex-posix-0.93.2-4 (from sid) with haskell-devscripts-0.7.2 (from sid) and ghc 6.13-20091231



Hi David.

Excerpts from David Fox's message of Ter Fev 16 05:09:26 -0200 2010:
(...)
> dh_installdirs -plibghc6-regex-posix-dev
> install: target
> `../libghc6-regex-posix-dev/usr/lib/haskell-packages/ghc6/lib/' is not
> a directory: No such file or directory
> install: omitting directory
> `usr/lib/haskell-packages/ghc6/lib/regex-posix-0.93.2'
> install: omitting directory
> `usr/lib/haskell-packages/ghc6/lib/regex-posix-0.93.2/ghc-6.13'
> install: omitting directory
> `usr/lib/haskell-packages/ghc6/lib/regex-posix-0.93.2/ghc-6.13/Text'
> install: omitting directory
> `usr/lib/haskell-packages/ghc6/lib/regex-posix-0.93.2/ghc-6.13/Text/Regex'
> install: omitting directory
> `usr/lib/haskell-packages/ghc6/lib/regex-posix-0.93.2/ghc-6.13/Text/Regex/Posix'
> install: omitting directory
> `usr/lib/haskell-packages/ghc6/lib/regex-posix-0.93.2/ghc-6.13/Text/Regex/Posix/ByteString'

This also happens to me with zlib-0.5.2.0-2 with haskell-devscripts-0.7.2 and
ghc6-6.12.1-9, and I don't think it's a problem:

cd debian/tmp-inst-ghc6 ; find usr/lib/haskell-packages/ghc6/lib/ \
                \( ! -name "*_p.a" ! -name "*.p_hi" \) \
                -exec install -Dm 644 '{}' ../libghc6-zlib-dev/'{}' ';'
install: target `../libghc6-zlib-dev/usr/lib/haskell-packages/ghc6/lib/' is not a directory: No such file or directory
install: omitting directory `usr/lib/haskell-packages/ghc6/lib/zlib-0.5.2.0'
install: omitting directory `usr/lib/haskell-packages/ghc6/lib/zlib-0.5.2.0/ghc-6.12.1'
install: omitting directory `usr/lib/haskell-packages/ghc6/lib/zlib-0.5.2.0/ghc-6.12.1/Codec'
install: omitting directory `usr/lib/haskell-packages/ghc6/lib/zlib-0.5.2.0/ghc-6.12.1/Codec/Compression'
install: omitting directory `usr/lib/haskell-packages/ghc6/lib/zlib-0.5.2.0/ghc-6.12.1/Codec/Compression/Zlib'

Maybe one could patch this code to include '! -type d' in the find parameters
to avoid these warnings.  Any comments on this suggestion?

> cd debian/tmp-inst-ghc6 ; find usr/lib/haskell-packages/ghc6/lib/ \
>                 \( ! -name "*_p.a" ! -name "*.p_hi" \) \
>                 -exec install -Dm 644 '{}' ../libghc6-regex-posix-dev/'{}' ';'
> pkg_config=`debian/hlibrary.setup register --builddir=dist-ghc6
> --gen-pkg-config | sed -r 's,.*: ,,'`; \
>                 install -Dm 644 $pkg_config
> debian/libghc6-regex-posix-dev/var/lib/ghc-6.13/package.conf.d/$pkg_config;
> \
>                 rm -f $pkg_config
> install: target `regex-posix-0.93.2.conf' is not a directory

I don't have this error with zlib, and I don't know why it's happening, since
when there's only two parameters to install, the last one doesn't need to be a
directory.  I'd suggest you to remove the $pkg_config from the last parameter
as a workaround, but I think it's better to include a line with 'echo
$pkg_config' just before this command, to see what's happening.

Greetings.
-- 
marcot
http://marcot.iaaeee.org/


Reply to: