Giter VIP home page Giter VIP logo

exherbo-cabal's People

Contributors

eternaleye avatar hasufell avatar ony avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

hasufell

exherbo-cabal's Issues

Library-only packages might be slotted

Currently when generating package which contains library and executable we miss SLOT="0" metadata. Since all executables will go in a same place with a same name they will collide in multi-slot installation.

Support versions enumeration

Since range of versions can be represented as an enumeration of intermediate version it is possible to represent them within current Paludis dependencies format.
Moreover some packages declare their dependencies like "==1.1.* || ==1.0.* || ==0.11.* but asVersionIntervals re-organize them in ranges like >=0.11 && <0.12, >=1.0 && <1.2 effectively causing exception about unsupported version.

dependencies on native packages

Some packages provides Haskell interface to native libraries. For example opengles-0.7.0 contains:

extra-libraries: EGL, GLESv2

Another example is glib-0.13.1.1

pkgconfig-depends: glib-2.0, gobject-2.0

wrong evaluation of conditions

language-c-quote-0.4.1 have:

  if impl(ghc >= 7.0) && impl(ghc < 7.2)
    build-depends:
      template-haskell >=2.5 && <2.6

  if impl(ghc >= 7.4) && impl(ghc < 7.6)
    build-depends:
      template-haskell >=2.7 && <2.8

That results in error:

Unsupported version range: >=2.5 && <2.6 && >=2.7 && <2.8

Looks like these condition both evaluated in true for GHC 7.10

Use ghc_dep for base deps

base package dependency should be mapped on something like:

require hackage [ ghc_dep='>=7.10&<7.10.3' ]

Generate TODOs in exheres

There is definitely no way fully map all meta-info correctly. Thus it makes sense to generate TODO markers instead of fully aborting generation of particular package.
Something like

# TODO: LICENSE="OtherLicense"
# TODO: DEPENDENCIES+="unknown/EGL"

Wrong render for Gems-like version

Instead of dev-haskell/ansi-wl-pprint[~0.6.6] (for optparse-applicative-0.12.0.0) we should produce dev-haskell/ansi-wl-pprint[~>0.6.6].

Make flags configurable

Some packages provide pretty well configurable flags set which can be mapped to options and thus end up in different set of dependencies.

Invalid interpretation of `else` branch in conditions

For rss-3000.2.0.4

Unsupported version range: >=1.1.2 && <1.5 && >=1.5 && <1.6

While

  if flag(old-locale)
    build-depends: time       >= 1.1.2 && < 1.5
                 , old-locale >= 1.0   && < 1.1
  else
    build-depends: time >= 1.5 && < 1.6

Add option to optimize test deps

Sometimes test dependencies are covered by build dependencies. In that case, it is enough to mention them only in build phase and exclude from test phase.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.