Switch branches/tags
Commits on Dec 24, 2010
  1. Correct typos.

    Rémy Oudompheng
    Rémy Oudompheng committed Dec 24, 2010
Commits on Nov 24, 2010
  1. The install script should not have leading slashes.

    Rémy Oudompheng
    Rémy Oudompheng committed Nov 24, 2010
Commits on Nov 5, 2010
  1. CabalTranslation.hs: configure library builds with --enable-shared

    peti committed Nov 5, 2010
    Building libraries with --enable-shared is simple enough, but unfortunately
    Cabal doesn't take advantage of shared libraries when linking executables (even
    when --enable-shared is specified). Having shared libraries available is
    beneficial anyway, though, because ArchLinux users may choose to build their
    binaries with '--dynamic'.
Commits on Nov 4, 2010
Commits on Nov 2, 2010
  1. Revert change introduced accidentally in commit 4c9a0e3.

    Rémy Oudompheng
    Rémy Oudompheng committed Nov 2, 2010
    (dependencies on base packages are explicitly listed again)
Commits on Nov 1, 2010
  1. Changed getRepoFromDir to ignore all directory names that begin with …

    peti committed Nov 1, 2010
    …a dot.
    This change means that '.git' will be ignored as well as '.' and '..'.
  2. Drop inappropriate cabal2arch attribution.

    peti committed Nov 1, 2010
    The archlinux library should not make claims about who was responsible
    for the generation of a PKGBUILD. It might have been cabal2arch, but it
    might have been something else. This code is generic: we want it to be
    re-used by other tools. Consequently, a "generated by" line should be
    inserted by the tool that uses the library.
  3. Modified getPkgFromDir so that it doesn't lose information from parse…

    peti committed Nov 1, 2010
    …r errors.
    Previously, the function return 'Nothing' in case of a parser error even
    though a more accurate error description was available. Instead, it now
    uses 'fail' to report that error.
  4. library-providers.txt: gtk+ refers to 'gtk2'

    peti committed Nov 1, 2010
    This change fixes the build of haskell-gtk.
Commits on Oct 31, 2010
  1. drop obsolete comment about 'provides' field

    peti committed Oct 31, 2010
    Our PKGBUILD files feature a comment saying that we provide all package
    dependencies and that the user's front-end to pacman must understand
    'provides'. In fact, this is not true: we no longer specify dependencies
    on packages that are provided by GHC. Instead of that comment, I feel we
    should provide a Maintainer: field, which -- according to namcap -- is
    currently missing.
Commits on Oct 30, 2010
  1. Fix usage of deprecated VersionRange constructors.

    Rémy Oudompheng
    Rémy Oudompheng committed Oct 30, 2010
  2. CabalTranslation.hs: dropped useless literal PKGBUILD file in comment…

    peti committed Oct 30, 2010
    …s, probably a left-over from a debugging session
  3. Split the more generic version cabal2pkg' out of cabal2pkg.

    peti committed Oct 30, 2010
    cabal2pkg includes a hard-coded decision about the $pkgname of the generated
    PKGBUILD file. The user, however, may want to override that name, so the
    desired package name should to be passed as a parameter. The same applies to
    the value of $pkgrel, which is currently hard-coded to "1".
    The more generic function cabal2pkg' accomplishes this.
Commits on Oct 29, 2010
  1. PkgBuild: drop warning about arbitrary version intervals

    peti committed Oct 29, 2010
    The archlinux library issues warnings while converting Cabal files that
    specify lower and upper bounds for dependencies, like "foo > 1 && < 2",
    because those restrictions cannot be expressed in a PKGBUILD file.
    Now, what are those warnings good for?
    That kind of version restriction is exceedingly common in Cabal files. An
    attempt to convert all of Hackage results in hundreds of warnings, yet
    it's not clear what anyone is supposed to do about them. There is just no
    way to convert those specifications so that Pacman can process them.
    Basically, we ensure that those restrictions are fulfilled long before a
    PKGBUILD is ever created: i.e. by means of the PKGLIST, which specifies
    the exact set of package versions that ought to be converted to ArchLinux.
  2. fixed GHC warnings

    peti committed Oct 29, 2010
  3. reverse_deps.hs: expect path to ABS repository as first command-line …

    peti committed Oct 29, 2010
    The script no longer has to run in the ABS tree. Also, if the tree cannot be
    read, the binary throws an error (instead of returning "0" silently).
  4. SrcRepo.hs: getRepoFromDir shouldn't fail silently

    peti committed Oct 29, 2010
    All PKGBUILD files in the habs tree must to be valid, and if they are
    not, then we want to know!
  5. CabalTranslation.hs: patch "--force" flag into the generated unregist…

    peti committed Oct 29, 2010
    … script
    If package A depends on B, and B is updated (say because of pkgrel bump) then
    Pacman un-registers the current version of B before registering the new
    version. At this point, ghc-pkg detects that un-registering B would break A,
    and aborts the procedure. The update works anyway, because our generated shell
    script script loses the error code, but we can avoid that error altogether by
    giving ghc-pkg the flag '--force'. Unfortunately, there is no way to tell Cabal
    that --force should be set in the generated "" script, so we have
    to patch that flag into the command line using mad sed(1) magic.
    With that change, an update of a package that's a prerequisite for another one
    will look like this:
     | [...]
     | (1/1) checking for file conflicts
     | unregistering tar- would break the following packages: archlinux-0.3.4 (ignoring)
     | (1/1) upgrading haskell-tar
     | [...]
    Basically, we tell ghc-pkg to shut up and trust that Pacman does the right
  6. CabalTranslation.hs: updated generated shell code to take advantage o…

    peti committed Oct 29, 2010
    …f the ${_hkgname} variable
Commits on Oct 28, 2010
  1. Remove obsolete syntax from install file.

    Rémy Oudompheng
    Rémy Oudompheng committed Oct 28, 2010
Commits on Oct 27, 2010
Commits on Oct 26, 2010
  1. CabalTranslation: relax constraints on pkglist syntax to allow blank

    Rémy Oudompheng
    Rémy Oudompheng committed Oct 26, 2010
    lines and comments (with "# ")
  2. Distribution/ArchLinux/CabalTranslation.hs: removed configure flag --…

    peti committed Oct 25, 2010
    …enable-shared again
    Shared library builds work, alright, but the compiled executables don't
    seem to take advantage of the dynamic objects. Until that's been figured
    out, there's little point in building libraries with 'dyn' enabled. It
    just takes twice as long.
Commits on Oct 24, 2010