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

Re: Looking for a sponsor for haskell-augeas package



Hi,

Am Mittwoch, den 24.11.2010, 00:30 -0500 schrieb Jude:
> Please let me know if there are any non-packaging-related changes that
> would help with the packaging.

you might want to apply the attached patch with the next release. It
allows the use of Setup test with a non-standard build directory.

I’ll upload the package in a moment, it will then appear in the NEW
queue (http://ftp-master.debian.org/new.html).

Greetings,
Joachim
-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata
--- haskell-augeas-0.3.4.orig/Setup.hs
+++ haskell-augeas-0.3.4/Setup.hs
@@ -24,6 +24,7 @@
 import Data.List (isInfixOf)
 import Distribution.PackageDescription
 import Distribution.Simple
+import Distribution.Simple.LocalBuildInfo (buildDir)
 import System.Process 
 
 -- main = defaultMain
@@ -32,8 +33,8 @@ import System.Process
 main = defaultMainWithHooks autoconfUserHooks { runTests = _runTests, instHook = _instHook }
     where
         -- Run all executables with names that end in -tests
-        _runTests _ _ pd _ = do
-            let exeNames = ["dist/build/" ++ fp ++ "/" ++ fp | fp <- map exeName (executables pd)]
+        _runTests _ _ pd lbi = do
+            let exeNames = [buildDir lbi ++ "/" ++ fp ++ "/" ++ fp | fp <- map exeName (executables pd)]
             sequence [_runTest e | e <- exeNames, isInfixOf "test-" e]
             return ()
         _runTest fp = do

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: