Re: is hedgewars broken?

2016-02-13 Thread David Coppa
On Sat, 13 Feb 2016, Antoine Jacoutot wrote:

> > Maybe the haskell package db is fucked (wouldn't be the first time
> > this happens)?
> > 
> > Does
> > 
> > ghc-pkg check
> > 
> > compain? Does
> > 
> > ghc-pkg list | grep dataenc
> > 
> > show anything?
> 
> Looks sane.
> 
> $ ghc-pkg check
> $ echo $?
> 0
> $ ghc-pkg list | grep dataenc
> dataenc-0.14.0.7

What CMake does is:

/usr/local/bin/ghc -DMODULE=Codec.Binary.Base64 -DFUNCTION=encode 
-DPARAMETERS="" -cpp -c 
/usr/pobj/hedgewars-src-0.9.22/hedgewars-src-0.9.22/cmake_modules/checkModule.hs

And then:

if(${COMMAND_RESULT} EQUAL 0)
  message(STATUS "Looking for ${FUNCTION} in ${MODULE} - found")
... etc ...

Where checkModule.hs is:

---8<---

module Main where

import qualified MODULE as M

main = undefined $ M.FUNCTION PARAMETERS

---8<---

Ciao!
David



Re: is hedgewars broken?

2016-02-13 Thread Matthias Kilian
On Sat, Feb 13, 2016 at 10:52:07AM +0100, David Coppa wrote:
> > > Maybe the haskell package db is fucked (wouldn't be the first time
> > > this happens)?
> > > 
> > > Does
> > > 
> > >   ghc-pkg check
> > > 
> > > compain? Does
> > > 
> > >   ghc-pkg list | grep dataenc
> > > 
> > > show anything?
> > 
> > Looks sane.
> > 
> > $ ghc-pkg check
> > $ echo $?
> > 0
> > $ ghc-pkg list | grep dataenc
> > dataenc-0.14.0.7
> 
> What CMake does is:
> 
> /usr/local/bin/ghc -DMODULE=Codec.Binary.Base64 -DFUNCTION=encode 
> -DPARAMETERS="" -cpp -c 
> /usr/pobj/hedgewars-src-0.9.22/hedgewars-src-0.9.22/cmake_modules/checkModule.hs
> 
> And then:
> 
> if(${COMMAND_RESULT} EQUAL 0)
>   message(STATUS "Looking for ${FUNCTION} in ${MODULE} - found")
> ... etc ...
> 
> Where checkModule.hs is:
> 
> ---8<---
> 
> module Main where
> 
> import qualified MODULE as M
> 
> main = undefined $ M.FUNCTION PARAMETERS
> 
> ---8<---

I don't see any way how and why this can fail for antoine, given
that he has dataenc installed and ghc-pkg seems to be happy about
it. Except that it may be the same mysterious bug antoine sees from
time to time with haskell ports (ghc exiting with an exit code !=
0 but without any useful error message).

Ciao,
Kili



Re: is hedgewars broken?

2016-02-13 Thread Antoine Jacoutot
> Maybe the haskell package db is fucked (wouldn't be the first time
> this happens)?
> 
> Does
> 
>   ghc-pkg check
> 
> compain? Does
> 
>   ghc-pkg list | grep dataenc
> 
> show anything?

Looks sane.

$ ghc-pkg check
$ echo $?
0
$ ghc-pkg list | grep dataenc
dataenc-0.14.0.7


-- 
Antoine



Re: is hedgewars broken?

2016-02-13 Thread Antoine Jacoutot
> I don't see any way how and why this can fail for antoine, given
> that he has dataenc installed and ghc-pkg seems to be happy about
> it. Except that it may be the same mysterious bug antoine sees from
> time to time with haskell ports (ghc exiting with an exit code !=
> 0 but without any useful error message).

Let's just get over it and blame NFS ;-)

-- 
Antoine



Re: is hedgewars broken?

2016-02-12 Thread Antoine Jacoutot
On Fri, Feb 12, 2016 at 03:22:44PM +0100, Pascal Stumpf wrote:
> Works for me, and there's a snapshot package from Feb 11.  Is hs-dataenc
> installed?  It needed to be revived from the Attic iirc, so I might have

Yeah it's installed.


> fucked the process up ...
> 
> On Fri, 12 Feb 2016 08:43:49 +0100, Antoine Jacoutot wrote:
> > >>> Running patch in games/hedgewars,-main at 1455212037
> > ===> games/hedgewars,-main
> > ===>  Checking files for hedgewars-src-0.9.22
> > `/exopi-cvs/ports/distfiles/hedgewars-src-0.9.22.tar.bz2' is up to date.
> > ===>  Extracting for hedgewars-src-0.9.22
> > ===>  Patching for hedgewars-src-0.9.22
> > >>> Running configure in games/hedgewars,-main at 1455212086
> > ===> games/hedgewars,-main
> > ===>  Configuring for hedgewars-src-0.9.22
> > -- The C compiler identification is GNU 4.2.1
> > -- The CXX compiler identification is GNU 4.2.1
> > -- Check for working C compiler: /usr/bin/cc
> > -- Check for working C compiler: /usr/bin/cc -- works
> > -- Detecting C compiler ABI info
> > -- Detecting C compiler ABI info - done
> > -- Detecting C compile features
> > -- Detecting C compile features - done
> > -- Check for working CXX compiler: /usr/bin/c++
> > -- Check for working CXX compiler: /usr/bin/c++ -- works
> > -- Detecting CXX compiler ABI info
> > -- Detecting CXX compiler ABI info - done
> > -- Detecting CXX compile features
> > -- Detecting CXX compile features - done
> > -- Building 0.9.22-r11265 (4c4f22cc3fa4)
> > -- Performing Test HAVE_STACKPROTECTOR
> > -- Performing Test HAVE_STACKPROTECTOR - Success
> > -- Performing Test HAVE_VISIBILITY
> > -- Performing Test HAVE_VISIBILITY - Success
> > -- Performing Test HAVE_NOEXECSTACK
> > -- Performing Test HAVE_NOEXECSTACK - Success
> > -- Performing Test HAVE_ORIGIN
> > -- Performing Test HAVE_ORIGIN - Success
> > -- Performing Test HAVE_RELROFULL
> > -- Performing Test HAVE_RELROFULL - Success
> > -- Performing Test HAVE_ASNEEDED
> > -- Performing Test HAVE_ASNEEDED - Success
> > -- Using RELEASE configuration
> > -- Found GHC: /usr/local/bin/ghc  
> > -- Looking for mask in Control.Exception
> > -- Looking for mask in Control.Exception - found
> > -- Looking for size in Data.Map
> > -- Looking for size in Data.Map - found
> > -- Looking for length in Data.Vector
> > -- Looking for length in Data.Vector - found
> > -- Looking for pack in Data.ByteString
> > -- Looking for pack in Data.ByteString - found
> > -- Looking for putDigit in Text.Show.ByteString
> > -- Looking for putDigit in Text.Show.ByteString - found
> > -- Looking for getHostName in Network.BSD
> > -- Looking for getHostName in Network.BSD - found
> > -- Looking for getCurrentTime in Data.Time
> > -- Looking for getCurrentTime in Data.Time - found
> > -- Looking for fix in Control.Monad.State
> > -- Looking for fix in Control.Monad.State - found
> > -- Looking for encode in Codec.Binary.Base64
> > -- Looking for encode in Codec.Binary.Base64 - not found
> > CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
> >   Haskell library 'dataenc' required
> > Call Stack (most recent call first):
> >   gameServer/CMakeLists.txt:16 (check_haskell_module_exists)
> > 
> > 
> > -- Configuring incomplete, errors occurred!
> > See also 
> > "/exopi-obj/pobj/hedgewars-src-0.9.22/build-amd64/CMakeFiles/CMakeOutput.log".
> > See also 
> > "/exopi-obj/pobj/hedgewars-src-0.9.22/build-amd64/CMakeFiles/CMakeError.log".
> > *** Error 1 in games/hedgewars 
> > (/exopi-cvs/ports/infrastructure/mk/bsd.port.mk:2750 
> > '/exopi-obj/pobj/hedgewars-src-0.9.22/build-amd64/.configure_done')
> > *** Error 1 in games/hedgewars 
> > (/exopi-cvs/ports/infrastructure/mk/bsd.port.mk:2495 'configure')
> > ===> Exiting games/hedgewars,-main with an error
> > *** Error 1 in /exopi-cvs/ports (infrastructure/mk/bsd.port.subdir.mk:147 
> > 'configure')
> > Error: job failed 256
> > 
> > 
> > 
> > 
> > -- 
> > Antoine
> > 
> > 
> 

-- 
Antoine



Re: is hedgewars broken?

2016-02-12 Thread Pascal Stumpf
Works for me, and there's a snapshot package from Feb 11.  Is hs-dataenc
installed?  It needed to be revived from the Attic iirc, so I might have
fucked the process up ...

On Fri, 12 Feb 2016 08:43:49 +0100, Antoine Jacoutot wrote:
> >>> Running patch in games/hedgewars,-main at 1455212037
> ===> games/hedgewars,-main
> ===>  Checking files for hedgewars-src-0.9.22
> `/exopi-cvs/ports/distfiles/hedgewars-src-0.9.22.tar.bz2' is up to date.
> ===>  Extracting for hedgewars-src-0.9.22
> ===>  Patching for hedgewars-src-0.9.22
> >>> Running configure in games/hedgewars,-main at 1455212086
> ===> games/hedgewars,-main
> ===>  Configuring for hedgewars-src-0.9.22
> -- The C compiler identification is GNU 4.2.1
> -- The CXX compiler identification is GNU 4.2.1
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Building 0.9.22-r11265 (4c4f22cc3fa4)
> -- Performing Test HAVE_STACKPROTECTOR
> -- Performing Test HAVE_STACKPROTECTOR - Success
> -- Performing Test HAVE_VISIBILITY
> -- Performing Test HAVE_VISIBILITY - Success
> -- Performing Test HAVE_NOEXECSTACK
> -- Performing Test HAVE_NOEXECSTACK - Success
> -- Performing Test HAVE_ORIGIN
> -- Performing Test HAVE_ORIGIN - Success
> -- Performing Test HAVE_RELROFULL
> -- Performing Test HAVE_RELROFULL - Success
> -- Performing Test HAVE_ASNEEDED
> -- Performing Test HAVE_ASNEEDED - Success
> -- Using RELEASE configuration
> -- Found GHC: /usr/local/bin/ghc  
> -- Looking for mask in Control.Exception
> -- Looking for mask in Control.Exception - found
> -- Looking for size in Data.Map
> -- Looking for size in Data.Map - found
> -- Looking for length in Data.Vector
> -- Looking for length in Data.Vector - found
> -- Looking for pack in Data.ByteString
> -- Looking for pack in Data.ByteString - found
> -- Looking for putDigit in Text.Show.ByteString
> -- Looking for putDigit in Text.Show.ByteString - found
> -- Looking for getHostName in Network.BSD
> -- Looking for getHostName in Network.BSD - found
> -- Looking for getCurrentTime in Data.Time
> -- Looking for getCurrentTime in Data.Time - found
> -- Looking for fix in Control.Monad.State
> -- Looking for fix in Control.Monad.State - found
> -- Looking for encode in Codec.Binary.Base64
> -- Looking for encode in Codec.Binary.Base64 - not found
> CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
>   Haskell library 'dataenc' required
> Call Stack (most recent call first):
>   gameServer/CMakeLists.txt:16 (check_haskell_module_exists)
> 
> 
> -- Configuring incomplete, errors occurred!
> See also 
> "/exopi-obj/pobj/hedgewars-src-0.9.22/build-amd64/CMakeFiles/CMakeOutput.log".
> See also 
> "/exopi-obj/pobj/hedgewars-src-0.9.22/build-amd64/CMakeFiles/CMakeError.log".
> *** Error 1 in games/hedgewars 
> (/exopi-cvs/ports/infrastructure/mk/bsd.port.mk:2750 
> '/exopi-obj/pobj/hedgewars-src-0.9.22/build-amd64/.configure_done')
> *** Error 1 in games/hedgewars 
> (/exopi-cvs/ports/infrastructure/mk/bsd.port.mk:2495 'configure')
> ===> Exiting games/hedgewars,-main with an error
> *** Error 1 in /exopi-cvs/ports (infrastructure/mk/bsd.port.subdir.mk:147 
> 'configure')
> Error: job failed 256
> 
> 
> 
> 
> -- 
> Antoine
> 
> 



Re: is hedgewars broken?

2016-02-12 Thread Matthias Kilian
Hi,

On Fri, Feb 12, 2016 at 03:48:43PM +0100, Antoine Jacoutot wrote:
> On Fri, Feb 12, 2016 at 03:22:44PM +0100, Pascal Stumpf wrote:
> > Works for me, and there's a snapshot package from Feb 11.  Is hs-dataenc
> > installed?  It needed to be revived from the Attic iirc, so I might have
> 
> Yeah it's installed.

[...]

> > > -- Looking for encode in Codec.Binary.Base64
> > > -- Looking for encode in Codec.Binary.Base64 - not found

Maybe the haskell package db is fucked (wouldn't be the first time
this happens)?

Does

ghc-pkg check

compain? Does

ghc-pkg list | grep dataenc

show anything?

Ciao,
Kili



is hedgewars broken?

2016-02-11 Thread Antoine Jacoutot
>>> Running patch in games/hedgewars,-main at 1455212037
===> games/hedgewars,-main
===>  Checking files for hedgewars-src-0.9.22
`/exopi-cvs/ports/distfiles/hedgewars-src-0.9.22.tar.bz2' is up to date.
===>  Extracting for hedgewars-src-0.9.22
===>  Patching for hedgewars-src-0.9.22
>>> Running configure in games/hedgewars,-main at 1455212086
===> games/hedgewars,-main
===>  Configuring for hedgewars-src-0.9.22
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is GNU 4.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Performing Test HAVE_STACKPROTECTOR
-- Performing Test HAVE_STACKPROTECTOR - Success
-- Performing Test HAVE_VISIBILITY
-- Performing Test HAVE_VISIBILITY - Success
-- Performing Test HAVE_NOEXECSTACK
-- Performing Test HAVE_NOEXECSTACK - Success
-- Performing Test HAVE_ORIGIN
-- Performing Test HAVE_ORIGIN - Success
-- Performing Test HAVE_RELROFULL
-- Performing Test HAVE_RELROFULL - Success
-- Performing Test HAVE_ASNEEDED
-- Performing Test HAVE_ASNEEDED - Success
-- Using RELEASE configuration
-- Found GHC: /usr/local/bin/ghc  
-- Looking for mask in Control.Exception
-- Looking for mask in Control.Exception - found
-- Looking for size in Data.Map
-- Looking for size in Data.Map - found
-- Looking for length in Data.Vector
-- Looking for length in Data.Vector - found
-- Looking for pack in Data.ByteString
-- Looking for pack in Data.ByteString - found
-- Looking for putDigit in Text.Show.ByteString
-- Looking for putDigit in Text.Show.ByteString - found
-- Looking for getHostName in Network.BSD
-- Looking for getHostName in Network.BSD - found
-- Looking for getCurrentTime in Data.Time
-- Looking for getCurrentTime in Data.Time - found
-- Looking for fix in Control.Monad.State
-- Looking for fix in Control.Monad.State - found
-- Looking for encode in Codec.Binary.Base64
-- Looking for encode in Codec.Binary.Base64 - not found
CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
  Haskell library 'dataenc' required
Call Stack (most recent call first):
  gameServer/CMakeLists.txt:16 (check_haskell_module_exists)


-- Configuring incomplete, errors occurred!
See also 
"/exopi-obj/pobj/hedgewars-src-0.9.22/build-amd64/CMakeFiles/CMakeOutput.log".
See also 
"/exopi-obj/pobj/hedgewars-src-0.9.22/build-amd64/CMakeFiles/CMakeError.log".
*** Error 1 in games/hedgewars 
(/exopi-cvs/ports/infrastructure/mk/bsd.port.mk:2750 
'/exopi-obj/pobj/hedgewars-src-0.9.22/build-amd64/.configure_done')
*** Error 1 in games/hedgewars 
(/exopi-cvs/ports/infrastructure/mk/bsd.port.mk:2495 'configure')
===> Exiting games/hedgewars,-main with an error
*** Error 1 in /exopi-cvs/ports (infrastructure/mk/bsd.port.subdir.mk:147 
'configure')
Error: job failed 256




-- 
Antoine