Stop! Tickets are now managed at GitHub.

Please enter new tickets, and find and edit existing tickets there:

Ticket #8 (closed task: fixed)

Opened 9 years ago

Last modified 8 years ago

Generic Unix source tarball

Reported by: duncan Owned by: dons
Priority: major Milestone: 2009.2.0
Component: Platform Keywords:


We need someone to take charge of building a generic Unix source tarball.

This is for early testers and users of distros that to not yet support the platform. It does not need to bundle a source version of ghc. It should check that a minimal ghc is available. It should use a tarball with the traditional interface of ./configure; make; make install.

It does not need to be implemented using autotools. ./configure; make; make install is an interface. One possible implementation would be to build cabal-install and then use that to install all the remaining packages in the platform.

Since this form is likely to be used for early testing on many platforms it would be great to support cabal-install's mechanism for generating build logs and reports that could be uploaded to a new hackage server. This is not essential for a first release however but may make coordinating testing easier.


target_os.dpatch (8.0 kB) - added by visq 8 years ago.
Patch to enable target_os detection using autoconf

Change History

Changed 9 years ago by dons

  • owner set to dons
  • component set to Platform

Working on Build.hs

  • Use cabal-install to construct (offline) install plan
  • Convert to Makefile
  • Build.hs downloads and unpacks (via cabal unpack)
  • Bundle Makefile, ./configure script to set --PREFIX;

Changed 9 years ago by dons

Needs to check for C libraries:

  • OpenGL
  • OpenAL


Changed 8 years ago by visq

Patch to enable target_os detection using autoconf

Changed 8 years ago by visq

  • type changed from task to defect

I tried the generic unix tarball on Mac OS X and noted that there is an error in the autoconf script.

The autoconf script checks whether $target_os is darwin* or win32, without requesting AC_CANONICAL_TARGET. As a result, $target_os is empty and OSX=yes resp. WIN32=yes is never set. Because of this, the OpenGL test fails on my system.

I'm not an autoconf expert, but it works if you insert the following lines at line 2 of


and copy config.sub and config.guess into the scripts/ directory. If attached a patch to fix this problem, but it should be reviewed by someone comfortable with autotools.

-- benedikt

Changed 8 years ago by anonymous

  • type changed from defect to task

Changed 8 years ago by dons

  • status changed from new to closed
  • resolution set to fixed


Note: See TracTickets for help on using tickets.