[arch-haskell] cabal2arch and clutter

Adam Vogt vogt.adam at gmail.com
Sat Oct 12 07:35:51 UTC 2013


* On Tuesday, January 19 2010, Xyne wrote:

...
>I have tried to install haskell-parsec from [extra] but this in turn
>complained about missing (haskell-)mtl, which I then also installed.
>After this I tried to build haskell-csv again but that failed with the
>same error as above. At that point I gave up as I didn't have the time
>to fiddle with a series of broken PKGBUILDs or try to figure out what
>the exact problem is. I realize that it may be something painfully
>obvious and simple, but I am not familiar with building haskell
>packages yet and simply did not have the time to investigate further.

You could fall back to using cabal-install to get cabal2arch, which will
chase all those dependencies. However there are a couple changes needed
to build cabal2arch with ghc-6.12 (to use cabal-1.8).

Attached is a darcs patch which fixes the compile errors with ghc-6.12,
but maybe it will be applied sometime soon.

$ darcs get http://code.haskell.org/~dons/code/cabal2arch
$ cd cabal2arch
$ darcs apply path/to/patch.dpatch
$ cabal install

Then hopefully you can use cabal2arch as planned?

--
Adam
-------------- next part --------------
Tue Jan 19 13:54:56 EST 2010  Adam Vogt <vogt.adam at gmail.com>
  * Compatibility with cabal 1.8 (ghc-6.12)

New patches:

[Compatibility with cabal 1.8 (ghc-6.12)
Adam Vogt <vogt.adam at gmail.com>**20100119185456
 Ignore-this: 670af1dd5068c97dcbec2e1be754f47a
] {
hunk ./Main.hs 106
    -- Create a package description with all configurations resolved.
    let e_finalcabalsrc = finalizePackageDescription
         []
-        (Nothing :: Maybe (PackageIndex PackageIdentifier))
-        buildOS -- linux/x86_64
-        X86_64
+        (const True)  -- could check against prefered pkgs....
+        (Platform X86_64 buildOS) -- linux/x86_64
         (CompilerId GHC (Version [6,10,3] []))
 
         -- now constrain it to solve in the context of a modern ghc only
hunk ./Main.hs 541
     , arch_license =
         ArchList . return $
             case license cabal of
-                GPL  -> GPL
-                LGPL -> LGPL
+                x at GPL {} -> x
+                x at LGPL {} -> x
                 l    -> UnknownLicense ("custom:"++ show l)
 
     -- All Hackage packages depend on GHC at build time
hunk ./Main.hs 593
          ++
          ["runhaskell Setup copy --destdir=${pkgdir} || return 1"]
          ++
-         (if not (null (licenseFile cabal)) && license cabal `notElem` [GPL,LGPL]
+         (if not (null (licenseFile cabal)) && (case license cabal of GPL {} -> False; LGPL {} -> False; _ -> True)
           then
               [ "install -D -m644 " ++ licenseFile cabal ++ " ${pkgdir}/usr/share/licenses/$pkgname/LICENSE || return 1"
               , "rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
hunk ./cabal2arch.cabal 25
         directory,
         containers,
         bytestring,
-        Cabal   > 1.6,
+        Cabal   > 1.8,
         pureMD5 >= 0.2.1,
         filepath,
         archlinux > 0.1
}

Context:

[Typo in help
Don Stewart <dons at galois.com>**20100119041124] 
[Handle change in doc location in GHC 6.12
magnus at therning.org**20100116073539
 Ignore-this: 8e4a3c6071d7d84c32672284b93a68b0
] 
[Implement new "provides" policy
Don Stewart <dons at galois.com>**20100119011159] 
[Support logging builds to a local file, instead of hacking it
Don Stewart <dons at galois.com>**20100118214725] 
[Add hsc2hs to default build tools
Don Stewart <dons at galois.com>**20100118213719] 
[Handle versioning of core pacckages
Don Stewart <dons at galois.com>**20090823012112
 Ignore-this: de6fc82f7efa8807e731ff55dd824d9d
] 
[Handles build-tools now
Don Stewart <dons at galois.com>**20090821233602
 Ignore-this: c92320a6ff2940479fd07862d9d7ec63
] 
[Use the archlinux package's support for PKGBUILD
Don Stewart <dons at galois.com>**20090815013310
 Ignore-this: 5be6377ca3c4e7fe144577bde49561d7
] 
[Use new shorter path.
Don Stewart <dons at galois.com>**20090814225619
 Ignore-this: 2a2ca4d820f353cd2e3b0d91f046bfb1
] 
[More accurate dependencies
Don Stewart <dons at galois.com>**20090813222140
 Ignore-this: faf7fa00a49617686effcda48de0d2ba
] 
[Bump
Don Stewart <dons at galois.com>**20090813205916
 Ignore-this: f9b43f61b00e979e13dd6563a1b2a5fa
] 
[Building haddock sources
magnus at therning.org**20090807055321
 Ignore-this: a13e8cce33fd8fd0d3cb26827a660d80
 Emit code in PKGBUILD and .install to build documentation with haddock
 and regenerate the documentation index.
] 
[Support building with new base
Don Stewart <dons at galois.com>**20090731202831
 Ignore-this: a95a3444a88bb2eaca59b0685b0008cf
] 
[Add more libs
Don Stewart <dons at galois.com>**20090731202822
 Ignore-this: 30cfbfc63d55f773ebf7e2d6218973ce
] 
[Use Control.OldException explicitly
magnus at therning.org**20090530093351
 Ignore-this: 89ac5a923e7bb3d072adc8f39bfad4c9
] 
[Replacing all occurances of $startdir/{pkg,src}
magnus at therning.org**20090530091323
 Ignore-this: aa69185376663346b3710c7a80a8d388
 $startdir should never be used in PKGBUILD, instead $pkgdir and
 $srcdir should be used instead.  Apparently there is no guarantee that
 $startdir/{pkg,src}==${pkg,src}dir.
] 
[Handle empty synopsis
Don Stewart <dons at galois.com>**20090722204954
 Ignore-this: f8d559bd4a242b3c19aac1925be4574e
] 
[Add more apps
Don Stewart <dons at galois.com>**20090722204949
 Ignore-this: a7fb099fcfe371596dce469caa04cc83
] 
[More libs. Bump version
Don Stewart <dons at galois.com>**20090716232512
 Ignore-this: e221b428fb338e7848a954fbad4d4105
] 
[Makedepends should not duplicate depends array in PKGBUILD
Adam Vogt <vogt.adam at gmail.com>**20090715000131
 Ignore-this: 4bdeae96c131df5252c8e347f0866992
 
 This stops yaourt from trying to build dependencies twice when building from
 AUR.
] 
[Bump ghc version (probably harmless)
Adam Vogt <vogt.adam at gmail.com>**20090715000058
 Ignore-this: 86f29532fff673cf0aa6c61c6fb7f7b9
] 
[Remove trailing whitespace
Adam Vogt <vogt.adam at gmail.com>**20090715000040
 Ignore-this: 30cc7fd89b7e99e317b096694315c5a
] 
[Update versions for 6.10.2
Don Stewart <dons at galois.com>**20090503220339
 Ignore-this: 9c7065402eb4b0fa40cb98d78257b1e8
] 
[Don't die on meta packages
Don Stewart <dons at galois.com>**20090503220326
 Ignore-this: 865718094cb482a99e6d218eaffe8bca
] 
[bump
Don Stewart <dons at galois.com>**20090120060802] 
[more stuff
Don Stewart <dons at galois.com>**20090118204158] 
[tweaks
Don Stewart <dons at galois.com>**20090115012123] 
[Update list to match ghc 6.10
Don Stewart <dons at galois.com>**20090115012027] 
[Fix type errors
Don Stewart <dons at galois.com>**20081211003027
 Ignore-this: b04864e1a4ef3f82d14d84a36f8159d9
] 
[Bump
Don Stewart <dons at galois.com>**20081211002459
 Ignore-this: 68ee33c3a389cd2b4be843078c2a2363
] 
[Changes for compatability with Cabal>=1.6
Asgaroth <asgaroth_ at gmx.de>**20081210181517] 
[Bump
Don Stewart <dons at galois.com>**20080912223231] 
[Typo correction in String Constant
Matthew William Cox <matt at mattcox.ca>**20080824050628] 
[more notes
Don Stewart <dons at galois.com>**20080819003802] 
[require cabal > 1.4.0.0
Don Stewart <dons at galois.com>**20080816214330] 
[typo
Don Stewart <dons at galois.com>**20080809221828] 
[typo
Don Stewart <dons at galois.com>**20080809221819] 
[Add Cabal as always required
Don Stewart <dons at galois.com>**20080809221600] 
[libraries have a "runtime" dep on other libraires
Don Stewart <dons at galois.com>**20080731043213] 
[more tewaks
Don Stewart <dons at galois.com>**20080710232737] 
[bump
Don Stewart <dons at galois.com>**20080704172433] 
[more apps
Don Stewart <dons at galois.com>**20080704172421] 
[Add mozembed
Don Stewart <dons at galois.com>**20080624224843] 
[more stuf
Don Stewart <dons at galois.com>**20080622182333] 
[Add C dependencies support
Don Stewart <dons at galois.com>**20080621231902] 
[more stuff
Don Stewart <dons at galois.com>**20080621192207] 
[more stuff
Don Stewart <dons at galois.com>**20080619214200] 
[bump
Don Stewart <dons at galois.com>**20080619154829] 
[bump version
Don Stewart <dons at galois.com>**20080619005235] 
[more libs
Don Stewart <dons at galois.com>**20080619005042] 
[titles, fftw
Don Stewart <dons at galois.com>**20080619001858] 
[nub
Don Stewart <dons at galois.com>**20080618055140] 
[more stuff
Don Stewart <dons at galois.com>**20080618014217] 
[incorrect bump
Don Stewart <dons at galois.com>**20080618002208] 
[more libraries
Don Stewart <dons at galois.com>**20080618001954] 
[Handle missing LICENSE files
Don Stewart <dons at galois.com>**20080617214806] 
[fix bug with quoting in pkgdesc.
Don Stewart <dons at galois.com>**20080617210705] 
[more libs
Don Stewart <dons at galois.com>**20080617001133] 
[more libs, new env var
Don Stewart <dons at galois.com>**20080616215343] 
[bump version
Don Stewart <dons at galois.com>**20080616180921] 
[add gtk2hs support
Don Stewart <dons at galois.com>**20080616180845] 
[Enough to build 250 libraries
Don Stewart <dons at galois.com>**20080616075512] 
[Add more rules for C libraries
Don Stewart <dons at galois.com>**20080616013917] 
[some more libraries
Don Stewart <dons at galois.com>**20080616001949] 
[depend on new puremd5
Don Stewart <dons at galois.com>**20080613235859] 
[Determine canonical name for C libraries
Don Stewart <dons at galois.com>**20080613211325] 
[always use hackage url
Don Stewart <dons at galois.com>**20080613053013] 
[0.3.1
Don Stewart <dons at galois.com>**20080613045331] 
[depend on stable pureMD5
Don Stewart <dons at galois.com>**20080613045238] 
[add missing libraries and bump version
Don Stewart <dons at galois.com>**20080613041415] 
[bump version
Don Stewart <dons at galois.com>**20080613010106] 
[lowercase
Don Stewart <dons at galois.com>**20080613000828] 
[typo
Don Stewart <dons at galois.com>**20080613000354] 
[tweaks
Don Stewart <dons at galois.com>**20080613000100] 
[Bump version, now produces valid libraries
Don Stewart <dons at galois.com>**20080612232452] 
[Finish off beta version
Don Stewart <dons at galois.com>**20080612224944] 
[more notes
Don Stewart <dons at galois.com>**20080612063850] 
[add build() generation and correct version dep printing
Don Stewart <dons at galois.com>**20080612043420] 
[Initial stab at cabal2arch
Don Stewart <dons at galois.com>**20080612012022] 
Patch bundle hash:
51dfc833c16523801ce77c3a907c8941b5d0604f


More information about the arch-haskell mailing list