--- ghc6-6.10.4.orig/debian/ghc6.links +++ ghc6-6.10.4/debian/ghc6.links @@ -0,0 +1,2 @@ +/var/lib/ghc-6.10.4/package.conf /usr/lib/ghc-6.10.4/package.conf +/var/lib/ghc-6.10.4/package.conf.d /usr/lib/ghc-6.10.4/package.conf.d --- ghc6-6.10.4.orig/debian/ghc6.prerm.in +++ ghc6-6.10.4/debian/ghc6.prerm.in @@ -0,0 +1,40 @@ +#! /bin/sh +# prerm script for ghc6 +# +# SOURCE: ghc6.prerm.in + +set -e + +execdir=/usr/bin +libdir=/usr/lib/ghc-@VERSION@ +bindir=$libdir/bin + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ + +case "$1" in + remove|upgrade|deconfigure|failed-upgrade) + update-alternatives --remove runhaskell $execdir/runghc + update-alternatives --remove haskell-compiler $execdir/ghc + update-alternatives --remove ghc $bindir/ghc + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- ghc6-6.10.4.orig/debian/compat +++ ghc6-6.10.4/debian/compat @@ -0,0 +1 @@ +7 --- ghc6-6.10.4.orig/debian/ghc6-doc.doc-base.users-guide +++ ghc6-6.10.4/debian/ghc6-doc.doc-base.users-guide @@ -0,0 +1,16 @@ +Document: ghc6-users-guide +Title: GHC6 User's manual +Author: The GHC Team +Abstract: Version 6 of the Glorious Glasgow Haskell Compilation system + (GHC). GHC is a compiler for Haskell98. +
+ Haskell is "the" standard lazy functional programming language. Haskell98 + is the current version of the language. The language definition and + additional documentation can be found in the `haskell-doc' package. + Alternatively, there is an online version at + http://haskell.org/onlinereport/. +Section: Programming/Haskell + +Format: HTML +Index: /usr/share/doc/ghc6-doc/index.html +Files: /usr/share/doc/ghc6-doc/*/*.html --- ghc6-6.10.4.orig/debian/rules +++ ghc6-6.10.4/debian/rules @@ -0,0 +1,287 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. +# +# This version is for a multibinary package. It also allows you to build any +# of the binary packages independantly, via binary- targets. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +# From /usr/share/doc/autotools-dev/examples/rules.gz: +export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + confflags += --build $(DEB_HOST_GNU_TYPE) +else + confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +endif + +ProjectVersion=$(shell awk -F\' "/^PACKAGE_VERSION='[0-9.]+'\$$/ { print \$$2 }" configure) + +GHC=$(firstword $(shell bash -c "type -p ghc6 ghc")) +EXTRA_CONFIGURE_FLAGS=--with-ghc="$(GHC)" + +# This thing violates the principle that builds should work the same +# way or fail uniformly and not be otherwise affected by what packages +# are installed. Optimally, the rules file should have a +# configure-indep target that would add HADDOCK_DOCS=YES to +# mk/build.mk. But as long as we can't use build-arch on buildds, +# this is IMHO the best option. I don't want to build GHC as root, +# via binary-arch, nor make a build target that doesn't actually build +# docs when B-D-I are present. A plain Build-Depends on haddock is an +# option, but as haddock Build-Depends on ghc6, I'd rather break the +# loop. +BUILD_HADDOCK_DOCS=$(shell test "$(ProjectVersion)" = "`haddock --ghc-version`" && echo YES || echo NO) +$(warning BUILD_HADDOCK_DOCS set at build time to $(BUILD_HADDOCK_DOCS)) + +configure: configure-stamp +configure-stamp: debian/stamp-patched + dh_testdir + + touch configure + + rm -f mk/build.mk + echo "XMLDocWays := html" >> mk/build.mk + echo "HADDOCK_DOCS := $(BUILD_HADDOCK_DOCS)" >> mk/build.mk + echo "XSLTPROC_OPTS += --nonet" >> mk/build.mk +ifeq (,$(findstring $(DEB_HOST_ARCH), i386 amd64 kfreebsd-i386 kfreebsd-amd64 powerpc lpia)) + echo "GhcUnregisterised=YES" >> mk/build.mk +else + echo "GhcUnregisterised=NO" >> mk/build.mk +endif +ifeq (powerpc,$(DEB_HOST_ARCH)) + echo "GhcWithInterpreter=NO" >> mk/build.mk +endif +ifneq (,$(findstring $(DEB_HOST_ARCH), hppa ia64)) # Doesn't fix the problem :-( + echo "GhcWithInterpreter=NO" >> mk/build.mk + echo "SplitObjs=NO" >> mk/build.mk + echo "GhcThreaded=NO" >> mk/build.mk + echo "GhcDebugged=YES" >> mk/build.mk +endif +ifneq (,$(findstring $(DEB_HOST_ARCH), arm armel)) + echo "SRC_HC_OPTS += -optc-mlong-calls" >> mk/build.mk + echo "UseLibFFIForAdjustors=YES" >> mk/build.mk +endif +ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + echo "SRC_HC_OPTS += -H32m -O0" >> mk/build.mk + echo "GhcHcOpts += -Rghc-timing -DDEBUG" >> mk/build.mk + echo "GhcLibHcOpts += -O -dcore-lint -keep-hc-files " >> mk/build.mk + echo "SplitObjs = NO" >> mk/build.mk + echo "STRIP = :" >> mk/build.mk +endif +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + echo "SRC_HC_OPTS += -H32m -O0" >> mk/build.mk + echo "GhcHcOpts += -O0" >> mk/build.mk + # This breaks the build - to be investigated: + # echo "GhcLibHcOpts += -O0" >> mk/build.mk + echo "GhcRtsCcOpts += -O0" >> mk/build.mk +endif + # We can't do this with a configure flag in 6.8.1 as libdir is not + # defined at the point at which we := it + echo 'bindir := $${libdir}/bin' >> mk/build.mk + # docdir doesn't have a configure flag, and unfortunately + # we also need to explicitly define all of its dependents as they + # are set with := + echo 'docdir := $$(datarootdir)/doc/ghc6-doc' >> mk/build.mk + echo 'htmldir := $$(docdir)' >> mk/build.mk + echo 'dvidir := $$(docdir)' >> mk/build.mk + echo 'pdfdir := $$(docdir)' >> mk/build.mk + echo 'psdir := $$(docdir)' >> mk/build.mk + rm -f config.sub + rm -f config.guess + ln -s /usr/share/misc/config.sub . + ln -s /usr/share/misc/config.guess . + ./configure $(confflags) --prefix=/usr $(EXTRA_CONFIGURE_FLAGS) + + touch $@ + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + sh debian/watcher.sh "$$PPID" "`pwd`" "`pwd`/build-stamp" 'ghc\|gcc' & + $(MAKE) + + # Do some very simple tests that the compiler actually works + rm -rf debian/testghc + mkdir debian/testghc + echo 'main = putStrLn "Foo"' > debian/testghc/foo.hs + ghc/stage2-inplace/ghc debian/testghc/foo.hs -o debian/testghc/foo + [ "$$(debian/testghc/foo)" = "Foo" ] + rm debian/testghc/* + echo 'main = putStrLn "Foo"' > debian/testghc/foo.hs + ghc/stage2-inplace/ghc debian/testghc/foo.hs -o debian/testghc/foo -O2 + [ "$$(debian/testghc/foo)" = "Foo" ] + rm debian/testghc/* + + touch $@ + +FILES = \( -type f -o -type l \) +PROF_FILE = \( -name "*.p_*" -o -name "lib*_p.a" \) + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_prep + dh_installdirs /var/lib/ghc-$(ProjectVersion)/package.conf.d + + # Install the basic stuff + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install-docs + + # Delete all the library LICENSE files + rm debian/tmp/usr/share/doc/ghc6-doc/libraries/*/LICENSE + rm debian/tmp/usr/share/doc/ghc6-doc/LICENSE + + # Generate lintian overrides + mkdir -p debian/tmp/usr/share/lintian/overrides + echo "ghc6 binary: extra-license-file `cd debian/tmp && echo usr/lib/ghc-*/Cabal-*/Distribution/License.hi`" >> debian/tmp/usr/share/lintian/overrides/ghc6 + echo "ghc6-prof binary: extra-license-file `cd debian/tmp && echo usr/lib/ghc-*/Cabal-*/Distribution/License.p_hi`" >> debian/tmp/usr/share/lintian/overrides/ghc6-prof + + # Sort out the package.conf files + mv debian/tmp/usr/lib/ghc-$(ProjectVersion)/package.conf \ + debian/tmp/usr/lib/ghc-$(ProjectVersion)/package.conf.shipped + ln -s debian/tmp/var/lib/ghc-$(ProjectVersion)/package.conf \ + debian/tmp/usr/lib/ghc-$(ProjectVersion)/package.conf + mkdir -p debian/tmp/var/lib/ghc-$(ProjectVersion)/package.conf.d + ln -s debian/tmp/var/lib/ghc-$(ProjectVersion)/package.conf.d \ + debian/tmp/usr/lib/ghc-$(ProjectVersion)/package.conf.d + chmod +x debian/provided_substvars + debian/provided_substvars +# mkdir -p debian/tmp/ghc + + # Sort out the binaries + mkdir -p debian/tmp/usr/bin + cd debian/tmp/usr/lib/ghc-$(ProjectVersion) && \ + if ./ghc --info | grep '"Have interpreter","NO"'; \ + then rm -f bin/ghci* bin/runghc* bin/runhaskell*; \ + fi + cd debian/tmp/usr/lib/ghc-$(ProjectVersion)/bin && \ + for f in *-$(ProjectVersion); \ + do ln -s /usr/lib/ghc-$(ProjectVersion)/bin/$$f \ + ../../../bin/; \ + done + cd debian/tmp/usr/lib/ghc-$(ProjectVersion)/bin && \ + for f in *; \ + do ln -s /usr/lib/ghc-$(ProjectVersion)/bin/$$f \ + ../../../bin/$${f}6; \ + done + rm -f debian/tmp/usr/bin/*-$(ProjectVersion)6 + rm -f debian/tmp/usr/bin/runhaskell6 + sed -i 's,=/usr/lib,=/var/lib,' debian/tmp/usr/lib/ghc-$(ProjectVersion)/bin/ghc-pkg + + ProjectVersion=$(ProjectVersion) $(MAKE) -f debian/scripts.mk all + +#ifeq (YES,$(BUILD_HADDOCK_DOCS)) + mkdir -p debian/tmp/usr/lib/ghc6-doc + cp debian/gen_contents_index debian/tmp/usr/lib/ghc6-doc/ + chmod +x debian/tmp/usr/lib/ghc6-doc/gen_contents_index + mkdir -p debian/tmp/usr/share/ghc6-doc/ghc-$(ProjectVersion)/desc/ + mkdir debian/tmp/usr/share/ghc6-doc/ghc-$(ProjectVersion)/haddock/ + utils/ghc-pkg/dist-inplace/build/ghc-pkg/ghc-pkg dump --global-conf=debian/tmp/usr/lib/ghc-$(ProjectVersion)/package.conf.shipped |\ + grep -E '^(haddock-|name|version|---)' > debian/tmp/usr/share/ghc6-doc/ghc-$(ProjectVersion)/desc/ghc6-doc +#endif + + # manpages + echo ".so man1/ghc6.1" > debian/ghc-$(ProjectVersion).1 + if test -e debian/tmp/usr/bin/ghci-$(ProjectVersion); then \ + for m in ghci6 ghci-$(ProjectVersion); do echo ".so man1/ghc6.1" > debian/$$m.1; done; \ + cp debian/runghc.man debian/runghc6.1; fi + mv debian/tmp/usr/share/man/man1/ghc.1 debian/ghc6.1 + cp utils/hp2ps/hp2ps.1 debian/hp2ps-ghc6.1 + cp debian/ghc-pkg6.man debian/ghc-pkg6.1 + + echo debian/*.1 > debian/ghc6.manpages + + # #################### + # Now all the files are sorted, create the package filelists + + # ghc6 + find debian/tmp/usr/bin $(FILES) > debian/ghc6.install +# find debian/tmp/usr/share/ghc* $(FILES) >> debian/ghc6.install + find debian/tmp/usr/share/man $(FILES) >> debian/ghc6.install + find debian/tmp/usr/lib/ghc-$(ProjectVersion) $(FILES) ! $(PROF_FILE) >> debian/ghc6.install + echo debian/tmp/usr/share/lintian/overrides/ghc6 >> debian/ghc6.install + # ghc6-prof + find debian/tmp/usr/lib $(FILES) $(PROF_FILE) > debian/ghc6-prof.install + echo debian/tmp/usr/share/lintian/overrides/ghc6-prof >> debian/ghc6-prof.install + # ghc6-doc +#ifeq (YES,$(BUILD_HADDOCK_DOCS)) + find debian/tmp/usr/share/doc $(FILES) > debian/ghc6-doc.install + find debian/tmp/usr/share/ghc6-doc $(FILES) >> debian/ghc6-doc.install + find debian/tmp/usr/lib/ghc6-doc $(FILES) >> debian/ghc6-doc.install +#endif + sed -i s,^debian/tmp,, debian/*.install + echo "/var/lib/ghc-$(ProjectVersion)/package.conf /usr/lib/ghc-$(ProjectVersion)/package.conf" > debian/ghc6.links + echo "/var/lib/ghc-$(ProjectVersion)/package.conf.d /usr/lib/ghc-$(ProjectVersion)/package.conf.d" >> debian/ghc6.links + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f configure-stamp build-stamp install-stamp binary-common-stamp + + touch configure + + [ ! -f mk/config.mk ] || $(MAKE) distclean + rm -f config.sub config.guess + rm -f debian/*.install + rm -f debian/*.1 debian/ghc-pkg6.man + rm -f debian/ghc6.manpages + rm -f mk/build.mk + $(MAKE) -f debian/scripts.mk clean + rm -rf debian/testghc + + # Hacks: + rm -f compiler/stage1/ghc_boot_platform.h + rm -f compiler/stage2/ghc_boot_platform.h + rm -f ghc/inplace-datadir/package.conf + + rm -f utils/pwd/pwd utils/pwd/pwd.hi utils/pwd/pwd.o + rm -f config.log + rm -f libraries/ghc-prim/GHC/PrimopWrappers.hs + rm -f libraries/ghc-prim/GHC/Prim.hs + rm -f libraries/frames.html libraries/index-frames.html + + rm -rf .pc + rm -f libraries/haskeline/a.out + + dh_clean + +binary-common: binary-common-stamp +binary-common-stamp: install-stamp + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install --fail-missing + dh_installmenu + dh_installman + dh_strip + dh_link + dh_compress -X.haddock + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + + touch $@ + +# binary-indep and binary-arch both build everything, as otherwise +# "dh_install --fail-missing" falls over + +# Build architecture independant packages using the common target. +binary-indep: binary-common-stamp + +# Build architecture dependant packages using the common target. +binary-arch: binary-common-stamp + +binary: binary-indep binary-arch +.PHONY: build install clean binary-indep binary-arch binary-common binary patch --- ghc6-6.10.4.orig/debian/ghc6-doc.preinst.in +++ ghc6-6.10.4/debian/ghc6-doc.preinst.in @@ -0,0 +1,21 @@ +#! /bin/sh + +set -e + +case "$1" in + upgrade|install) + if [ -e /usr/share/doc/ghc6-doc/html/libraries/ ] ; then + rm -f /usr/share/doc/ghc6-doc/html/libraries/index.html \ + /usr/share/doc/ghc6-doc/html/libraries/index-frames.html \ + /usr/share/doc/ghc6-doc/html/libraries/doc-index.html + rmdir --ignore-fail-on-non-empty /usr/share/doc/ghc6-doc/html/libraries/ + rmdir --ignore-fail-on-non-empty /usr/share/doc/ghc6-doc/html/ + fi + ;; + *) + ;; +esac + +#DEBHELPER# + +exit 0 --- ghc6-6.10.4.orig/debian/changelog +++ ghc6-6.10.4/debian/changelog @@ -0,0 +1,1349 @@ +ghc6 (6.10.4-1ubuntu1) karmic; urgency=low + + * Upload without Haddock in b-d-i + + -- Iain Lane Wed, 22 Jul 2009 16:48:11 +0100 + +ghc6 (6.10.4-1) unstable; urgency=low + + * New upstream release + * Pass UseLibFFIForAdjustors=YES to build options on armel. + * Standards-Version 3.8.2 (no changes necessary). + * Pass GhcUnregisterised=NO to build options on lpia (for Ubuntu's + benefit). + + -- Kari Pahula Wed, 22 Jul 2009 15:22:36 +0300 + +ghc6 (6.10.3-3) unstable; urgency=low + + * Patch mkWeakForeignEnv# in rts/PrimOps.cmm to avoid random + segfaults. (re: + https://bugs.launchpad.net/ubuntu/+source/ghc6/+bug/382803) + * Exclude internal boot libraries from generated Provides: libghc6-* + substvars. (Closes: #531318) + + -- Kari Pahula Sat, 27 Jun 2009 17:58:49 +0300 + +ghc6 (6.10.3-2) unstable; urgency=low + + * Only call ghc-pkg6 in ghc6-doc's trigger if ghc6 is installed. + (Closes: #530732) + * Fix the test for seeing if ghci would work. + * Build a registerised build on powerpc, but disable ghci. + + -- Kari Pahula Thu, 28 May 2009 12:40:17 +0300 + +ghc6 (6.10.3-1) unstable; urgency=low + + * New upstream release + * GHCi uses stdio in blocking mode now. (Closes: #512762) + * GHC can cope with missing setitimer(ITIMER_VIRTUAL) support. + (Closes: #509252) + * Uses haskeline instead of editline. + * Only provide ghci and runghc on archs that support it. + (Closes: #320335) + * Patched compiler/utils/Binary.hs to store Ints as Int64s on 32 bit + architectures and warn if it needed to truncate when unserialising. + * Moved package.conf to /var/lib/ghc-$VERSION/. + * Added a /var/lib/ghc-$VERSION/package.conf.d/ dir. + * Set symlinks from /usr/lib/ghc-$VERSION/package.conf* to /var. + * Don't ship generated index files in /usr/share/doc/ghc6-doc/libraries/ + and remove them in postrm. (Closes: #501188) + * Remove any leftover index.html files in + /usr/share/doc/ghc6-doc/html/libraries/. (Closes: #461323) + * Bumped to debhelper compat 7 and Standards-Version 3.8.1 (no changes + needed). + * Section: haskell for ghc6 and ghc6-prof. + * Fix up generated Provides for ghc6 and ghc6-doc. + (Closes: #514085, #518400) + * Added man pages for runghc and ghc-pkg. (Closes: #460425, #315763) + * Removed alternative for /usr/bin/ghcprof. (Closes: #527382) + * Build an unregisterised build on powerpc. (Closes: #514946) + * Build-depend on a newer binutils on [arm armel]. Add -mlong-calls to + gcc's flags. + * gen_contents_index reintroduced, this time as a perl script. + * Added /usr/share/ghc6-doc/ghc-$VERSION/desc/ for copies of package + conf info in -doc packages. + * Added a preinst for ghc6, to remove a package.conf file from a removed + but not purged old version. + + -- Kari Pahula Mon, 18 May 2009 22:18:18 +0300 + +ghc6 (6.10.1+dfsg1-13) unstable; urgency=low + + * Haddock again just a B-D-I, now with (>= 2.4.1-4). + * Patched compiler/utils/Binary.hs to store Ints as Int32s on 64 bit + arches, too. + * Put .haddock files back to ghc6-doc. + + -- Kari Pahula Wed, 25 Feb 2009 05:53:48 +0200 + +ghc6 (6.10.1+dfsg1-12) unstable; urgency=low + + * Put haddock in Build-Depends on [i386 amd64 sparc powerpc mips mipsel + s390 kfreebsd-i386]. + + -- Kari Pahula Sat, 21 Feb 2009 14:08:08 +0200 + +ghc6 (6.10.1+dfsg1-11) unstable; urgency=low + + * Put .haddock files in ghc6, not ghc6-doc. + * Don't call ghc-pkg in a loop in ghc6-doc's trigger, use perl instead. + * Don't remove packages.conf on upgrade from one 6.10.1+dfsg1 version to + another. + * Generate haddock index in ghc6-doc's postinst configure, too. + + -- Kari Pahula Sat, 21 Feb 2009 10:00:19 +0200 + +ghc6 (6.10.1+dfsg1-10) unstable; urgency=low + + * chmod +x debian/mk_provided_substvars before calling it. + + -- Kari Pahula Tue, 17 Feb 2009 19:03:49 +0200 + +ghc6 (6.10.1+dfsg1-9) unstable; urgency=low + + * Made ghc6-doc's postinst only call haddock on haddock files that are + actually installed. + + -- Kari Pahula Tue, 17 Feb 2009 12:52:37 +0200 + +ghc6 (6.10.1+dfsg1-8) unstable; urgency=low + + * Moved xsltproc, docbook-xsl, docbook-xml back as Build-Depends. + + -- Kari Pahula Tue, 17 Feb 2009 09:52:55 +0200 + +ghc6 (6.10.1+dfsg1-7) unstable; urgency=low + + * Set build deps related to doc building as Build-Depends-Indep. + * Set BUILD_HADDOCK_DOCS at build time, depending on haddock's + presence. See debian/rules for rationale. + * Replaced /usr/lib/ghc6-doc/gen_contents_index with a symlink to + /bin/true. + * Amended ghc6-doc's "postinst triggered" to perform what g_c_i did. + * Added GhcDebugged=YES and some other flags to build.mk on ia64 and hppa. + * Moved provided-{dev,prof,doc} generation to its own script and catch + errors in it. (Closes: #514085, #514086) + * Further cleanups to debian/rules. + + -- Kari Pahula Mon, 16 Feb 2009 12:28:56 +0200 + +ghc6 (6.10.1+dfsg1-6) experimental; urgency=low + + * This time actually change the build on ia64 to be unregisterised. + * Dropped ghc6's dependency on haskell-utils. + * Removed calls to haskell-utils from prerm and postinst. + * Build haddock docs on i386 and amd64. (Closes: #514088) + + -- Kari Pahula Thu, 05 Feb 2009 14:14:01 +0200 + +ghc6 (6.10.1+dfsg1-5) experimental; urgency=low + + * Add libffi-dev as a dependency for ghc6. (Closes: #513289) + * Replaced libreadline5-dev with libedit-dev from ghc6's deps. + * Don't add any extra flags to GhcRTSWays build variable. + * Build a registerised build on kfreebsd-i386. (Closes: #513198) + * Build an unregisterised build on ia64. + + -- Kari Pahula Wed, 28 Jan 2009 09:23:11 +0200 + +ghc6 (6.10.1+dfsg1-4) experimental; urgency=low + + * Add pkg-config as a build dep. + * Explicitly build an unregisterised version of the compiler on other + arches but i386, amd64, powerpc, ia64. (Closes: #512827) + * Remove --relax altogether from ia64's ld flags. + + -- Kari Pahula Mon, 26 Jan 2009 15:10:54 +0200 + +ghc6 (6.10.1+dfsg1-3) experimental; urgency=low + + * Again, use the same build options for all arches and just use what + arch-specific exceptions upstream provided. + + -- Kari Pahula Fri, 23 Jan 2009 08:24:45 +0200 + +ghc6 (6.10.1+dfsg1-2) experimental; urgency=low + + * Patched the build system to use haddock from /usr/bin/, not build its + own. + * Disabled building haddock docs for this version. + * Re-enabled some of 6.8.2's build options for non-i386, non-amd64. + * Patch compiler/Makefile's ia64 build options; + s/--ld-option=-Wl,--relax/--ld-option=--relax/. + + -- Kari Pahula Wed, 21 Jan 2009 23:33:11 +0200 + +ghc6 (6.10.1+dfsg1-1) experimental; urgency=low + + * New upstream release (Closes: #495126) + * Change the calling conventions for unboxed tuples slightly. + (Closes: #365497) + * Better documentation for swapMVar. (Closes: #405717) + * Don't change code in error messages. (Closes: #499137) + * Improve error reporting for 'deriving' (Closes: #499216) + * Better error message when -XRankNTypes is missing. (Closes: #499217) + * ghc-pkg respects --global with 'field' option. (Closes: #510499) + * Repackaged to remove a copy of GNU MP library. + * Enable building the stage2 compiler on all architectures. + * Added information about libffi (which is included with GHC) to + debian/copyright. + * Manage changes to the source with quilt. + * Link against the system's libffi and add libffi-dev as a build + dependency. + * Build-dep on haddock >= 2.4.1-1. + * Build-dep on libedit-dev, removed build-dep on libreadline-dev. + * Patched gen_contents_index: fixed the case when not run inplace; trac + #2764 + * Patched libraries/base/Data/Data.hs: use Prelude.(,,) for + tuple3DataType; trac #2750 + * Added a trigger to ghc6-doc for /usr/share/doc/ghc6-doc/libraries to + run gen_contents_index. (Closes: #506568) + + -- Kari Pahula Mon, 19 Jan 2009 12:03:16 +0200 + +ghc6 (6.8.2dfsg1-1) unstable; urgency=medium + + * Repackaged the upstream tarball to remove a copy of GNU MP library + with GFDLed docs w/ invariant sections. (Closes: #511756) + + -- Kari Pahula Thu, 15 Jan 2009 07:42:47 +0200 + +ghc6 (6.8.2-7) unstable; urgency=medium + + * Build-Depend on hurd as an alternative to procps. (Closes: #481343) + * Added AC_SYS_LARGEFILE to libraries/unix/configure.ac and ran + autoreconf. (Closes: #500407) + + -- Kari Pahula Sun, 28 Sep 2008 10:32:20 +0300 + +ghc6 (6.8.2-6) unstable; urgency=medium + + * New maintainer. + * Made the perl script driver/split/ghc-split not use the obsolete $* + var (Closes: #489157) + * Copied libraries/unix/System/Posix/Resource.hsc and + libraries/base/include/HsBase.h from 6.8.3 to fix issues with + setResourceLimit. (Closes: #491909) + + -- Kari Pahula Wed, 03 Sep 2008 23:41:18 +0300 + +ghc6 (6.8.2-5) unstable; urgency=low + + * Don't build template-haskell if we're not building GHCi. + The package is largely useless without GHCi, and some of the buildds + were having trouble building template-haskell. We'll need to fix + this some other way if GHCi is to be available on every arch, though... + + -- Ian Lynagh (wibble) Thu, 01 May 2008 12:32:13 +0000 + +ghc6 (6.8.2-4) unstable; urgency=low + + * Small wibbles to debian/watcher.sh. + * Add a build-dep on procps (debian/watcher.sh runs ps). + + -- Ian Lynagh (wibble) Wed, 26 Mar 2008 17:12:18 +0000 + +ghc6 (6.8.2-3) unstable; urgency=low + + * Every 10 minutes, print any "ps ux" lines that mention gcc or ghc. + According to folks on IRC, this is standard practice. It means that + we don't have to worry about security buildds having different + timeouts to the normal builders. + * Apply upstream patch: + FIX #2073: Don't add empty lines to GHCI's history + Ian Lynagh **20080224143256 + Closes: #461170. + + -- Ian Lynagh (wibble) Mon, 24 Mar 2008 22:09:02 +0000 + +ghc6 (6.8.2-2) unstable; urgency=low + + * Apply upstream patch: + Tweak the splitter + Ian Lynagh **20080116195612 + We were generating a label ".LnLC7", which the splitter was confusing + with a literal constant (LC). The end result was the assembler tripping + up on ".Ln.text". + Closes: #466262. + * Make an hpc symlink in /usr/bin. Closes: #461146. + * Add a dep and build-dep on gcc >= 4:4.2 as we need the + -fno-toplevel-reorder flag. Closes: #461332. + * Put the right upstream source URL in debian/copyright. + Closes: #465058. + + -- Ian Lynagh (wibble) Wed, 20 Feb 2008 17:32:52 +0000 + +ghc6 (6.8.2-1) unstable; urgency=low + + * Strengthen haddock dep and build-dep to 0.8-2 as we need the + version that makes compatible files on 32 and 64 bit arches. + Closes: #433251. + * Add a build-dep on hscolour. We now use it when making the + documentation, so the haddock docs link to syntax highlighted + source. + * Remove the libsrc package. ghc6-doc now includes the sources anyway. + Closes: #432706. + * gen_contents_index is now provided by the upstream install, so we + no longer ship our own copy. However, we do have to move it into + /usr/lib rather than /usr/share/doc. + * Remove the stat2resid slave of the GHC symlink, as stat2resid + no longer exists. Closes: #432715. + * We set bindir, docdir, htmldir, dvidir, pdfdir and psdir in + mk/build.mk rather than with configure flags, as the way configure + currently works means they can't be set relative to other variables + if set with configure flags. + * We no longer pass --datadir to configure; we used to use this to + get the docs in the right place. + * When doing the install step, we now use DESTDIR rather than prefix + to override where the files go. + * We now need to set HADDOCK_DOCS=YES in mk/build.mk in order to get the + haddock docks built. + * Removed "html/" from the documentation path in ghc6-doc.postinst, + ghc6-doc.prerm and ghc6-doc.doc-base.users-guide. + * Use "[ ! -f mk/config.mk ] ||" to guard "make distclean" rather than + ignoring all errors from it. + * Use ${binary:Version} rather than ${Source-Version} to specify the + dependency of ghc6-prof on ghc6. + * All the libraries now install LICENSE files, so we remove them after + the install step. + * Follow change in man path from /usr/man to /usr/share/man. + * lintian thinks that Cabal's Distribution/License.hi is an extra + licence file, so add a lintian override. + + -- Ian Lynagh (wibble) Tue, 18 Dec 2007 22:05:22 +0000 + +ghc6 (6.6.1-2) unstable; urgency=low + + * ghc6-doc now depends on haddock as it needs to run + gen_contents_index in postinst. Closes: #423561. + * ghc6-doc and ghc6-libsrc depend on ${shlibs:Depends}, ${misc:Depends}. + + -- Ian Lynagh (wibble) Tue, 15 May 2007 14:12:53 +0000 + +ghc6 (6.6.1-1) unstable; urgency=low + + * New upstream version. + * Policy 3.7.2 compliant. + * ghc6-doc provides libghc6-PACKAGE-doc for the various packages it + has docs for. + * Tweaked debian/rules to handle changes. + * Remove build-dep on xutils; we no longer use lndir (which has now + moved to xutils-dev anyway!) + * Remove build-dep on cpio; we now let dh_install do all the moving + rather than doing it ourselves with cpio. + * Remove build-dep on time; no longer used. + * Remove build-deps on libx11-dev, libsm-dev, libice-dev, libxmu-dev, + libxi-dev; the X11 stuff is now in separate Cabal packages. + * Manpages generation script removed s it is now in upstream. + * Pass --datadir to ./configure rather than "make install-docs" + so the haddock fields in package.conf get set correctly. + Closes: #417325. + * In mk/config.mk.in, don't put ghc-6.6.1/ on the end of datadir. + * Use $(INSTALL) rather than hardcoding /usr/bin/install everywhere. + * Don't generate or install library HTML doc contents and index. + * Do install libraries-footer.txt, libraries-header.txt and the various + prologue.txt's. + * Install a gen_contents_index script for generating the haddock + contents and index. + * Add -X.haddock to the dh_compress call to make sure the .haddock + files aren't getting compressed. + * Give ghc6-doc a postinst to generate the haddock contents and index + when it is installed. + * Give ghc6-doc a prerm to clean up the above. + * Revert these earlier changes as we now have haddock 0.8: + * Remove the --source-module argument to haddock in mk/package.mk + as haddock 0.7 doesn't support it. + * Re-add the -optP-P when generating .raw-hs files as haddock 0.7 + doesn't cope with line numbers in the files. + + -- Ian Lynagh (wibble) Sun, 29 Apr 2007 00:47:00 +0100 + +ghc6 (6.6-3) unstable; urgency=low + + * Add arm to the list of arches that have ghc6. + * Add arm to the arches in compiler/cmm/PprC.hs for which + loads and stores to be printed in a way that works if they are not + aligned as the arch wishes. + * For arm's odd floating point numbers: + * Add FPTOOLS_FLOAT_WORD_ORDER_BIGENDIAN test to aclocal.m4 + * Call FPTOOLS_FLOAT_WORD_ORDER_BIGENDIAN after AC_C_BIGENDIAN + in configure.ac. + * Extra section for the FPTOOLS_FLOAT_WORD_ORDER_BIGENDIAN test in + configure. + * Add "#undef FLOAT_WORDS_BIGENDIAN" to mk/config.h.in. + * Add FLOAT_WORDS_BIGENDIAN cases to rts/StgPrimFloat.c. + * Apply the following upstream patch, to fix potential problems + compiling ghc6 on amd64 (and possibly others): + + Fri Oct 20 16:39:25 BST 2006 Simon Marlow + * In hashExpr, use Word32 rather than relying on wrapping behaviour of Int + Fixes #952, as it turns out. + + When compiling via C, we are at the mercy of C's undefined behaviour + with respect to overflow of signed integer operations, and this was + biting us here. + + Perhaps we should always add the -fwrapv flag to gcc, but since + Haskell doesn't define overflow on Int either, it seemed the right + thing to do to fix this code anyway. + + -- Ian Lynagh (wibble) Sun, 22 Oct 2006 22:36:32 +0000 + +ghc6 (6.6-2) unstable; urgency=low + + * Add mips and mipsel to the list of arches that have ghc6. + * Add mips and mipsel to the arches in compiler/cmm/PprC.hs for which + loads and stores to be printed in a way that works if they are not + aligned as the arch wishes. + * Removed the -static flag for mips from compiler/main/DynFlags.hs. + + -- Ian Lynagh (wibble) Mon, 16 Oct 2006 14:20:08 +0100 + +ghc6 (6.6-1) unstable; urgency=low + + * New upstream version. + * Drop ghc6-hopengl package as HOpenGL is now split off from the + GHC core. + * Removed: + * ghc6-hopengl.README.debian + * ghc6-hopengl.examples + * ghc6-hopengl.postinst.in + * ghc6-hopengl.prerm.in + * Removed opengl examples. + * debian/scripts.mk no longer makes: + * debian/ghc6-hopengl.postinst + * debian/ghc6-hopengl.prerm + * Removed all opengl-related commands from debian/rules. + * Drop build-deps on + xlibmesa-gl-dev, libglu1-xorg-dev | libglu-dev, libglut3-dev + now we don't build the OpenGL libs. + * Added note to manpage that ghci is not yet available on all arches. + * Add ppc64 to the list of arches that have ghc6. Closes: #375623. + * Update locations of README and ANNOUNCE in ghc6.docs. + * Don't include ghc/mk/version.mk in debian/scripts.mk as it no longer + exists. Instead, get ProjectVersion with some shell magic. + * Don't include ghc/mk/version.mk in debian/scripts.mk as it no longer + exists. Instead, pass $(ProjectVersion) in from debian/rules. + * Remove mk/build.mk before we start filling it so the commands can be + more symmetric. + * Don't build the threaded RTS except on x86/amd64. + * Don't try to link ghc6 with the threaded RTS except on x86/amd64. + * Remove debian/test-build before creating it, so we can restart + builds part-way through without them falling over. + * Various paths in debian/rules lose their ghc/ prefix. + * Clean up debian/test-build/ after doing the test. + * hslibs no longer exists, so remove everything relating to it in + debian/rules. + * Remove register declarations from rts/StgCRun.c that break the + unregisterised build on alpha. + * Add to compiler/cmm/PprC.hs an option for loads and stores to be + printed in a way that works if they are not aligned as the arch + wishes. Enable this option for alpha. + * Remove the --source-module argument to haddock in mk/package.mk + as haddock 0.7 doesn't support it. + * Re-add the -optP-P when generating .raw-hs files as haddock 0.7 + doesn't cope with line numbers in the files. + + -- Ian Lynagh (wibble) Thu, 12 Oct 2006 01:22:24 +0000 + +ghc6 (6.4.2-2) unstable; urgency=low + + * Have ghc-pkg not create ~/.ghc when it doesn't need to, and return + the empty package file when trying to read a package file that + doesn't exist. Closes: #375166, #375188. + + -- Ian Lynagh (wibble) Sat, 24 Jun 2006 09:41:01 +0000 + +ghc6 (6.4.2-1) unstable; urgency=low + + * New upstream release. Closes: #369947. + * Add --nonet to XSLTPROC_OPTS. + * Add GhcWithInterpreter=NO on arches we don't build registerised + due to http://hackage.haskell.org/trac/ghc/ticket/631 + + -- Ian Lynagh (wibble) Mon, 19 Jun 2006 22:43:02 +0100 + +ghc6 (6.4.1-2.1) unstable; urgency=high + + * Non-maintainer upload. + * Add docbook-xml to build-dep (Closes: #356015). + + -- Luk Claes Sat, 25 Mar 2006 18:43:52 +0100 + +ghc6 (6.4.1-2) unstable; urgency=low + + * Due to problems with xmltex's uninstallability and its long-standing + bugs with lists rendering some docs unbuildable: + * Set XMLDocWays to "html" in debian/rules, rather than "html dvi ps". + * Remove build-deps on jade, docbook-utils, xmltex, docbook-xml. + * Change ghc6-hopengl's dep on "libc6-dev" to + "libc6-dev | libc6.1-dev | libc-dev" + * Fix building cabal packages that build executables with HS-Source-Dir. + Closes: #337909. + * Use "tail -n +2" rather than the deprecated "tail +2" in debian/rules. + Closes: #339606. + * On the list of arches we build registerised: + * Add amd64. Closes: #354872. + * Remove sparc (it has bitrotted). + List now reads "i386 amd64". + * Remove ghc6.README.Debian (appeal for registerised ports). The problems + when they bitrot outweigh the advantages IMO, at least until we have a + testsuite we can run when building. + * Apply fix for ghci failing to start ("Unable to mmap( MAP_FIXED ) for + Jump Islands") from Ryan Lortie. Closes: #343428. + * Delete ".SECONDARY:" from mk/suffix.mk as make >3.80 was taking + forever due to bug #346248. Closes: #348633. + * Changed xlibs-dev build-dep to: + libx11-dev, libsm-dev, libice-dev, libxmu-dev, libxi-dev. + Closes: #346752. + * Add "GhcWithNativeCodeGen=NO" to mk/build.mk when we are building + unregisterised. + + -- Ian Lynagh (wibble) Fri, 03 Mar 2006 00:32:06 +0000 + +ghc6 (6.4.1-1) unstable; urgency=low + + * New upstream release. Closes: #329322. + * Relax the libgmp3-dev build-dep to make backporting easier. + * Don't force using gcc-3.3 to build; drop gcc-3.3 build-dep. + * Apply patch to add support for kfreebsdgnu to configure(.ac) and the + mangler. Closes: #332977. + * Add kfreebsd-i386 to ghc6_arches. + * Add missing deps on libx11-dev, libsm-dev, libice-dev, libxmu-dev, + libxi-dev, libc6-dev to ghc6-hopengl. Closes: #317069. + * Update (build-)dep xlibmesa-glu-dev to libglu1-xorg-dev | libglu-dev. + * Standards version 3.6.1 -> 3.6.2. + * Upstream fixed a panic to give a sensible error message. + Closes: #319294. + + -- Ian Lynagh (wibble) Fri, 14 Oct 2005 10:44:34 +0000 + +ghc6 (6.4-4.1) unstable; urgency=low + + * Non-maintainer upload. + * C++ ABI transition: Relink against new libgmp3c2 package. + This will require a manual bootstrapping on each arch since ghc6 + build depends on itself and the new and old version of gmp3 + conflict with each other. (Closes: #319222) + - Versioned build dependency on libgmp3-dev (>= 4.1.4-6) + * Build using gcc-3.3 since this version doesn't build/work using 4.0 + and a new upstream version that fixes it isn't available yet. + + See instructions in debian/bootstrap-extracted on how to build this. + + -- Kurt Roeckx Wed, 31 Aug 2005 19:08:22 +0200 + +ghc6 (6.4-4) unstable; urgency=low + + * Use &(arr->payload) instead of BYTE_ARR_CTS(arr) in Adjustor.c on + ia64 as we no longer have the definition of BYTE_ARR_CTS to hand. + * Use ASSIGN_DBL and PK_DBL in generated C code from CMM code to avoid + unaligned access SIGBUSes on some arches. Closes: #309025. + * Use the stage2 ghc-inplace when checking "hello world" works. + * Build-dep on xmltex, docbook-xsl and docbook-xml. + * Set XMLDocWays rather than SGMLDocWays. Closes: #309016. + * Disable dvi and ps docs as they don't build. + * Remove ps and dvi sections from debian/ghc6-doc.doc-base.users-guide. + + -- Ian Lynagh (wibble) Fri, 20 May 2005 12:42:52 +0000 + +ghc6 (6.4-3) unstable; urgency=low + + * Removed powerpc from the list of arches to do a registerised build with + object splitting as there are bootstrapping issues from earlier GHCs. + * Change a stray "6.4" to $(ProjectVersion) in debian/rules + * Fix "SOURCE:" lines in {pre,post}{inst,rm}.in files. + + -- Ian Lynagh (wibble) Wed, 04 May 2005 17:07:08 +0100 + +ghc6 (6.4-2) experimental; urgency=low + + * Don't create user package.conf if not modifying. + * Change "#ifdef darwin_REGS" to "#if darwin_REGS" in + ghc/includes/MachRegs.h to fix build on powerpc (from upstream CVS). + * Add powerpc to the list of arches to do a registerised build with + object splitting. + * Fix checkFEDArgs in ghc/compiler/typecheck/TcForeign.lhs so it compiles + again. + * Remove OpenGL and GLUT packages from package.conf.shipped. + Have the postinst/prerm add/remove them. + * ghc6-hopengl provides libghc6-{opengl,glut}-{dev,prof} + * Other exposed libraries are provided as libghc6-foo-dev by ghc6 and + libghc6-foo-prof by ghc6-prof. + + -- Ian Lynagh (wibble) Mon, 21 Mar 2005 03:26:35 +0000 + +ghc6 (6.4-1) experimental; urgency=low + + * New upstream release; just for experimental for now. + * Remove xmlise-flags.sgml as upstream now ships flags.xml. + * Rejig how files are put in the right packages to follow upstream changes. + * Separate build target into build and install. + * No longer allow ghc4 or ghc5 to be used for building as they are no longer + supported. + * Handle /usr/bin/ghc6 et al. and the alternatives without the 6 suffix + better. + * Add a /usr/bin/runhaskell alternative, priority 8600000600. + + -- Ian Lynagh (wibble) Sun, 13 Mar 2005 04:25:20 +0000 + +ghc6 (6.2.2-3) unstable; urgency=low + + * Backport runghc from CVS. + * Build-dep prefers libreadline5-dev rather than libreadline4-dev. + * Compiled with libreadline5-dev. Closes: #291126. + * Remove package.conf{,.old} when changing to a different upstream + version as well as when purging. Closes: #277606. + + -- Ian Lynagh (wibble) Fri, 28 Jan 2005 01:55:31 +0000 + +ghc6 (6.2.2-2) unstable; urgency=low + + * Add build-depends on autotools-dev. + + -- Ian Lynagh (wibble) Wed, 20 Oct 2004 14:40:47 +0100 + +ghc6 (6.2.2-1) unstable; urgency=low + + * Add "Modes of operation" flags to flag reference in the users guide, + and hence to the automatically generated manpage. + * Create /usr/bin/ghc-pkg6. + * Revert changes to support mips/mipsel. They need changes in + glibc/gcc to work, supported by different changes in ghc. + * Support the spirit of noopt and nostrip values of DEB_BUILD_OPTIONS + * Make symlinks for /usr/bin/{ghc,ghc-pkg,ghci}-$version into + /usr/lib/ghc-$version/bin/. + * Add manpage symlinks for {ghc,ghci}-$version. + * Bump Standards-Version to 3.6.1. + * Remove mention of threaded packages from the manpage as they no + longer exist. + * Add grep-dctrl to build-dep list and use grep-status to build a + depends line for the set of installed packages providing + libreadline-dev (should have cardinality 1). + Replaced libreadline4-dev dependency with ${readline}. + Switch order of libreadline4-dev and libreadline-dev in build-deps + so the concrete package is first. + * Change how configure/config.sub/config.guess are handled in line + with /usr/share/doc/autotools-dev/README.Debian.gz. + * Added varfile /usr/lib/haskell-utils/ghc6_vars. + * Remove docs/building/building.out and + ghc6-6.2.2/docs/docbook-cheat-sheet/docbook-cheat-sheet.out when + cleaning. + + -- Ian Lynagh (wibble) Tue, 19 Oct 2004 18:12:55 +0000 + +ghc6 (6.2.1-5) unstable; urgency=low + + * Join build-deps onto a single line. + * Eliminate {,} bashisms in debian/rules. + * Build-dep on xlibs-dev for building the X11 package. + * Additionally build the RTS the following ways: + debug_p thr_debug thr_debug_p + (which, together with those done by default, gives us all ways). + * Install initial /usr/lib/ghc-$version/package.conf as + /usr/lib/ghc-$version/package.conf.shipped and copy it to + /usr/lib/ghc-$version/package.conf in postinst if it doesn't exist. + This means other library information isn't lost across upgrades. + * Remove /usr/lib/ghc-$version/package.conf{,.old} in postrm purge. + + -- Ian Lynagh (wibble) Sat, 07 Aug 2004 12:03:31 +0000 + +ghc6 (6.2.1-4) unstable; urgency=low + + * Remove IA64 from the unregisterised arches list to try to fix the + unaligned accesses. + * Add -mlong-calls flag for mips* in both DriverFlags and SRC_CC_OPTS + in mk/config.mk.in. Fixes problem where a step in gdb on a call to + mp_set_memory_functions lands us in the middle of Show.hc. + + -- Ian Lynagh (wibble) Thu, 08 Jul 2004 17:19:06 +0000 + +ghc6 (6.2.1-3) unstable; urgency=low + + * Up gcc build-dep to "gcc-3.3 (>= 1:3.3.4)" to fix + "charToUtf8 1884139800" panic when compiling + 'module Foo where foo 5 = 6'. + + -- Ian Lynagh (wibble) Fri, 18 Jun 2004 18:09:15 -0400 + +ghc6 (6.2.1-2) unstable; urgency=low + + * Change the mangler to allow a tab before .section on sparc. + Fixes a problem which shows up as symbols not being made global + so not being defined when compiling with gcc >= 3.something. + + -- Ian Lynagh (wibble) Tue, 13 Apr 2004 12:26:41 +0000 + +ghc6 (6.2.1-1) unstable; urgency=low + + * New upstream (stable branch) release. + * Don't use -static on any arches (remove per-arch "-static"s in + ghc/compiler/main/DriverFlags.hs). + * Remove threaded packages (functionality now handled by main packages). + * We now depend and build-depend on "gcc-3.3 (>= 1:3.3.3-2)" which should + give correct code on all arches. + + -- Ian Lynagh (wibble) Tue, 23 Mar 2004 20:47:13 +0000 + +ghc6 (6.2-3) unstable; urgency=low + + * More HOpenGL example tweaking. + + -- Ian Lynagh (wibble) Sat, 24 Jan 2004 20:16:57 +0000 + +ghc6 (6.2-2) unstable; urgency=low + + * Apply fix so OpenGL docs build when the compiling compiler doesn't + support OpenGL. + * Tweaked HOpenGL example, including suggestions from Sven Panne (HOpenGL + author). + + -- Ian Lynagh (wibble) Wed, 21 Jan 2004 23:57:22 +0000 + +ghc6 (6.2-1) unstable; urgency=low + + * New upstream version. + * ghc/docs/users_guide/flags.sgml is now xmlised by a script rather + than by hand. + * Added an HOpenGL example. + * Removed build dependency on happy (it has been pre-run on the tarball). + * Build dependency on haddock is now >= 0.6 (we need some of its new + options). + * For the normal ghc6 deb pass GhcLibsWithOpenGL=NO GhcLibsWithGLUT=NO + rather than GhcLibsWithHOpenGL=NO + * Add config.status and libraries.txt to CLEAN_FILES and a rule to + remove the HTML directory for the extraclean target in + libraries/Makefile + + -- Ian Lynagh (wibble) Tue, 16 Dec 2003 18:09:11 +0000 + +ghc6 (6.0.1-10) unstable; urgency=low + + * Change #ifdef IN_STG_CODE to #if IN_STG_CODE in the alpha section of + ghc/includes/TailCalls.h + * Add __muldi3 to RTS_LIBGCC_SYMBOLS in ghc/rts/Linker.c (ghci was + complaining about it being unknown on sparc). + * Provide a /usr/bin/haskell-compiler alternative. + * Depend on haskell-utils + * Register /usr/bin/ghc6 and ghc6 with haskell-utils + * Register /usr/bin/ghc6-threaded and ghc6-threaded with haskell-utils + * Tidy up postinst/prerm. + * Add ghc6-threaded as an alternative for /usr/bin/ghc (priority 590, + i.e. between ghc5 and ghc6). + + -- Ian Lynagh (wibble) Sat, 11 Oct 2003 11:07:00 +0000 + +ghc6 (6.0.1-9) unstable; urgency=low + + * Move the TailCalls.h include in ghc/includes/Stg.h below the config.h + include. Fixes the undefined reference warnings in -8. Closes: #211430. + + -- Ian Lynagh (wibble) Wed, 17 Sep 2003 22:04:57 +0000 + +ghc6 (6.0.1-8) unstable; urgency=low + + * If we are not on an i386, sparc or ia64 machine then do an + unregisterised build. + * Unregisterised builds should be possible for any architecture, so + set the architecture to any. + * Add s390, m68k, mips, hppa, arm and powerpc Linux to configure{,.in} + * Write a README.Debian about the registerised/unregisterised deal. + * Change a couple of machine/foo.h includes on alpha to asm/foo.h + * Add the x86-64 hack from upstream to MBlock.h, generalising it to all + 8-bit arches. + * Add -optc-mbig-switch to SRC_HC_OPTS in libraries/OpenGL/Makefile + on hppa (fixes an assembler failure for at least + Graphics/Rendering/OpenGL/GL/QueryUtils.p_o). + * Tweak ghc/includes/TailCalls.h so it only steals a register for STG + code. + * Move the include of TailCalls.h in ghc/includes/Stg.h up so it is + before all the procedure definitions. + * Change an IF_OS_darwin to an IF_ARCH_powerpc in + ghc/compiler/nativeGen/MachCode.lhs + + -- Ian Lynagh (wibble) Tue, 16 Sep 2003 20:40:43 +0000 + +ghc6 (6.0.1-7) unstable; urgency=low + + * Add ia64 to Architecture field of the packages. + * Apply various IA64 fixes from upstream CVS. + + -- Ian Lynagh (wibble) Wed, 10 Sep 2003 13:47:56 +0000 + +ghc6 (6.0.1-6) unstable; urgency=low + + * We need docbook-utils even for a binary-only build as the build fails + if it can't build the documentation. + + -- Ian Lynagh (wibble) Mon, 08 Sep 2003 00:34:51 +0000 + +ghc6 (6.0.1-5) unstable; urgency=low + + * Add jade to the build-deps. + + -- Ian Lynagh (wibble) Sun, 07 Sep 2003 10:11:54 +0000 + +ghc6 (6.0.1-4) unstable; urgency=low + + * Remove unnecessary flex build-dep and comment it out of + configure{,.in}. + * Resurrect the "SGMLDocWays := html dvi ps" line in build.mk that + got lost. + * Do a test compilation+run after building to make sure things aren't + *completely* screwed up. + * make distclean rather than maintainer-clean + + -- Ian Lynagh (wibble) Sat, 06 Sep 2003 11:07:08 +0000 + +ghc6 (6.0.1-3) unstable; urgency=low + + * Put sparc-unknown-linux entry in configure and configure.in + * Add sparc Linux support to ghc/driver/mangler/ghc-asm.lprl + * Build depend on gcc-2.95 [sparc] + * Change ghc6's dependency on gcc to ${gcc}. + This is set to either gcc-2.95 (if we are on a sparc) or gcc + (otherwise) in debian/ghc6.substvars + * Removed quotes around ${WithGhc-ghc} in configure and aclocal.m4 so + arguments can be given (e.g. to point at a certain gcc) with the + flag + * Pass flags giving the location of ghc and, in the case of sparc, + gcc to ./configure + * Added sparc to Architecture field of the packages + * touch configure early in the build and clean targets to stop the + build system trying to regenerate it with autoconf. + + -- Ian Lynagh (wibble) Thu, 14 Aug 2003 07:24:18 -0400 + +ghc6 (6.0.1-2) unstable; urgency=low + + * Ask for the correct name to be removed by update-alternatives + * Have manpage variables substituted + * Fix problem with files not getting installed into ghc6-libsrc package + * Put ghc/{README,ANNOUNCE} in /usr/share/doc/ghc6 + + -- Ian Lynagh (wibble) Sat, 02 Aug 2003 20:27:44 +0000 + +ghc6 (6.0.1-1) unstable; urgency=low + + * New upstream version + * Now policy 3.6.0 compliant + * Fixed manpage alternatives to create a manpage for ghc, not ghc6. + * Added manpages for ghci, ghci6 and the -threaded variants of + these and ghc. Manpage now also mentions ghci. + * Reinstate the -libsrc package. + * Remove redundant build dependencies on autoconf and autotools-dev + * Comment out fix for compiling GL stuff with older GHCs as it really + uses the in-place compiler + * Have all packages (except ghc6-doc due to issues with an empty depends + line) depend on ${shlibs:Depends}, ${misc:Depends} + * Create a /usr/bin/ghc6 and /usr/bin/ghci6 + * Also build a threaded-rts binary and make various related -threaded files + and symlinks. Put in a separate package (ghc6-threaded-rts) due to size. + + -- Ian Lynagh (wibble) Wed, 30 Jul 2003 12:37:21 +0000 + +ghc6 (6.0-2) unstable; urgency=low + + * Fix GET_PROC_ADDRESS properly so opengl libraries can be used (from + upstream CVS) + * GLUT libraries are also installed in the hopengl deb + * Update build-depends and depends to libglut3-dev, xlibmesa-gl-dev + and xlibmesa-glu-dev from glutg3-dev and xlibmesa-dev. + * Require at least version 0.4.0 of haddock. + * Fix doc-base control file links. + * Policy 3.5.10 compliant. + * Create the hp2ps-ghc6.1 manpage correctly. Closes: #199786. + * Change glActiveTexture to glActiveTextureARB. ghci now loads with + the OpenGL and GLUT packages. + * Update build-depend on debhelper to >= 4. + * Correct "GHC5" to "GHC6" in the doc-base title. + + -- Ian Lynagh (wibble) Sun, 06 Jul 2003 14:42:40 +0000 + +ghc6 (6.0-1) unstable; urgency=low + + * New upstream version + * New maintainer, with the old maintainer's blessing + * changed package name to ghc6 + * Building process simplified as GHC's build system now handles multiple + stages itself + * Patches from upstream: + + Removed comments from cpp functions in a couple of source files to + counteract changes in 3.3 meaning they didn't compile + + Evil mangler tweaked to allow extra whitespace gcc 3.3 puts in + and for changes to generated assembly for _module_registered + + Rename "--list-packages-local" to "--list-local-packages" + * Added missing quotes to + libraries/OpenGL/Graphics/Rendering/OpenGL/GL/Extensions.hs + so it compiles + * Removed fptags as it doesn't have a clear licence; should probably + be in its own package anyway as I imagine it is equally useful with + any Haskell compiler + * Changed libraries/OpenGL/specs/enumerant to use this compiler rather + than the installed one; in particular this means that the profiling + libraries don't need to be installed + + -- Ian Lynagh (wibble) Sat, 07 Jun 2003 17:16:25 +0000 + +ghc5 (5.04.2-1) unstable; urgency=low + + * CVS Version from 2002-12-05 (tag: ghc-5-04-2) + + fix for inet_ntoa linking error (upstream) + (closes: Bug#164573) + + export TimeLocale constructor (upstream) + (closes: Bug#167647) + * implemented proper auto* handling (config.*, autoconf) + * added autotools-dev to build-deps, bumped needed autoconf version to + >= 2.52 + * removed cpio from Build-Deps (no longer needed) + * added man page for ghc + (closes: Bug#110037) + * added links for user_guide/user-guide.html and hslibs/book-hslibs.html + (closes: Bug#153795) + * necessary adjustments for debian_libraries_hopengl.dpatch + * libdir adjustments (always in sync with Debian package version now) + * added notes in ghc5-hopengl.README.Debian + * removed cygnus-stylesheets from Build-Deps-Indep + (closes: Bug#170112) + * moved ghcprof icons to /usr/share/ tree + (debian_ghcprof_datadir.dpatch) + * edited debian/copyright to make lintian shut up ("Upstream Author(s)") + * backport of "*_stub.o link failure" fix from ghc-5-04-branch + (debian_compManager_findstubs.dpatch) + (closes: Bug#171518) + + -- Michael Weber Sat, 7 Dec 2002 19:38:10 +0100 + +ghc5 (5.04-1) unstable; urgency=low + + * CVS Version from 2002-07-15 (tag: ghc-5-04) + (closes: Bug#153020) + + spurious ghci dynamic linkage error solved by upstream update + (closes: Bug#151126) + * added Depends: libreadline4-dev (though I don't like it + and it just covers a technical issue), because too many people + get bitten by this :( + (closes: Bug#134950) + * build process revamped + + much easier to understand/maintain (KISS) + (it's a build script, no need to be too fancy) + + support for full bootstrap builds (needed for buildds) + + moved source to upstream-ghc/ + + adjusted patches; must contain `upstream-ghc/' in + the path from now on (new source layout) + + uses shadow trees (lndir) + + added "-e noidref" to docbook2* tool calls, so that they + don't barf on missing ids (there are 2 currently) + + use upstream doc install mechanism now that it's usable + for Debian (slight changes in the dir layout, though) + + removed support for `debian/rules cvs-update' + + removed ghc5-libsrc package, now that decent library + docs start to pop up + + removed debian_build.dpatch (now debian/build.mk-stage*) + * renamed ghc4_ghc_includes_gmp.dpatch debian_ghc_includes_gmp.dpatch + because it's Debian specific + * added Build-Depends: haddock + * adjusted *.doc-base.* again to reflect new doc layout + (only ghc5-doc.doc-base.users-guide left) + * _really_ changed CVS/Root to :pserver:anoncvs@cvs.haskell.org:/cvs + this time (no idea what happened to the last changes) + * updated CVS checkout instructions in copyright + * updated upstream authors in copyright + * updated README.Debian to reflect changes + * fixed missing "sec-concurrent-haskell" SGML id + * added hasktags program to update-alternatives + * new package ghc5-hopengl (finally!) + (closes: Bug#116984) + * added Build-Depends: xlibmesa-dev, glutg3-dev (for HOpenGL) + + -- Michael Weber Fri, 19 Jul 2002 15:34:43 +0200 + +ghc5 (5.02.2-1) unstable; urgency=low + + * CVS Version from 2002-02-14 (tag: ghc-5-02-2) + (closes: Bug#133595) + * buggy Makefile which prevented building with make-3.77 fixed + by update + (closes: Bug#117883) + * The "You Asked For It" release =) + * _NOT_ the "I Solved All Problems" release + * changed CVS/Root to :pserver:anoncvs@cvs.haskell.org:/cvs + * updated copyright + * removed lib6-dev from Depends: (no longer necessary) + * docbook build-deps now: docbook-utils | cygnus-stylesheets + (closes: Bug#123180) + * added time to Depends: (lost during backporting potato stuff) + * added build-deps: xutils (for lndir), time (used by build process) + * added build-deps: devscripts (for debchange, thanks to + Peter Gammie) + * readline build-deps now: libreadline-dev | libreadline4-dev + * priority: extra -> optional (as requested from the ftpmasters) + * for the -prof package, section: libs -> devel (as requested from + the ftpmasters) + * spelling correction in control file (cpu -> CPU) + (closes: Bug#124668) + * removed getSocketOption patch + (ghc5_getSocketOption.dpatch) + * added index.html symlinks for html docs + * adjusted *.doc-base.* + * removed ghc5-doc.doc-base.hslibs (accessible via + the user's guide) + * bumped Standards-Version to 3.5.6.0 + + -- Michael Weber Thu, 14 Feb 2002 21:01:14 +0100 + +ghc5 (5.02-1) unstable; urgency=low + + * CVS Version from 2001-10-15 (tag: ghc-5-02-branch) + * adjusted debian_glafp-utils_docbook.dpatch + * typo in docs fixed + (closes: Bug#110038) + * added hotfix for getSocketOption b0rkage (already fixed in CVS) + (ghc5_getSocketOption.dpatch) + + -- Michael Weber Mon, 15 Oct 2001 19:59:43 +0200 + +ghc5 (5.00.2-1) unstable; urgency=low + + * CVS Version from 2001-07-16 (tag: ghc-5-00-2) + (closes: Bug#106756) + * upstream fix for .ghci problem + (closes: Bug#94739) + * removed patches which went into upstream + (ghc5_glitches.dpatch) + + -- Michael Weber Tue, 31 Jul 2001 10:54:45 +0200 + +ghc5 (5.00-2) unstable; urgency=low + + * added dependency on libc6-dev as a workaround + (ghci needs the libm.so link) + * adjusted ghc5_glitches.dpatch slightly + + -- Michael Weber Thu, 26 Apr 2001 15:07:04 +0200 + +ghc5 (5.00-1) unstable; urgency=low + + * CVS Version from 2001-04-11 (tag: ghc-5-00) + * changed package name to ghc5 + * some more reorganizations to prepare dual ghc4/ghc5 installation + * added some missing build-deps + * now using libgmp3(-dev) + * removed some obsolete patches + (ghc4_hclose_bug.dpatch,ghc4_signal_bug.dpatch) + * added some other patches + (ghc5_glitches.dpatch) + * updated build.mk-patch once more + * DH_COMPAT=2 + * added more docs (ffi-art) + * added support for CVS happy's + + -- Michael Weber Wed, 18 Apr 2001 00:19:35 +0200 + +ghc4 (4.08.1-4) unstable; urgency=low + + * first upload as proper maintainer + * changed email address to @debian.org + + -- Michael Weber Sun, 14 Jan 2001 01:56:05 +0100 + +ghc4 (4.08.1-3) unstable; urgency=low + + * unofficial version + * backported signal-bug patch from CVS trunk + (ghc4_signal_bug.dpatch) + + -- Michael Weber Tue, 10 Oct 2000 13:34:28 +0200 + +ghc4 (4.08.1-2) unstable; urgency=low + + * unofficial version + * backported hClose-bug patch from CVS trunk + (ghc4_hclose_bug.dpatch) + + -- Michael Weber Tue, 10 Oct 2000 13:33:56 +0200 + +ghc4 (4.08.1-1) unstable; urgency=low + + * !!NOTE!! + This version replaced aaronv's upload of 4.04.19990916-3 (thanks + to wli@debian.org for the sponsor upload). All versions in + between were never officially available on the debian servers. + * CVS Version from 2000-09-02 (4.08.1) + * official 4.08.1 version + * uncommented `cvs upd' commands (accidently commented) + * changed `cvs-update' target again (first step of upcoming + "experimental" support) + * updated build.mk-patch + * set.{ps,dvi} accidently were not copied into the package, + (fixed now) + + -- Michael Weber Mon, 25 Sep 2000 14:02:52 +0200 + +ghc4 (4.08.0-1) unstable; urgency=low + + * CVS Version from 2000-06-29 (4.08.0) + * this is a snap of the official 4.08 release candidate + * need (happy >= 1.7) from now on + * unset DOCBOOK_PREFIX in order to use installed db tools + * an installed ghc4-prof pkg. must have the same version as the + corresponding ghc4 pkg. + * added option `-k' to make when cleaning, so it won't stumble over + errors + * ghc now understands option '--numeric-version', which will be + supported in the upcoming unstable version anyway... + (ghc4_numeric_version.dpatch) + * sync'ed base documents in doc-base entries with reality + * rearranged `docs',`build' targets + * rearranged documentation to sync with upstream + + -- Michael Weber Mon, 3 Jul 2000 14:52:12 +0200 + +ghc4 (4.07.20000526-1) unstable; urgency=low + + * CVS Version from 2000-05-26 (4.07) + * update to ghc-4-07-branch + * disabled debian_glafp-utils_docbook.dpatch, because it's not + necessary on this branch + * !! UNRELEASED due to building problem !! + + -- Michael Weber Fri, 26 May 2000 20:33:32 +0200 + +ghc4 (4.07.20000523-1) unstable; urgency=low + + * CVS Version from 2000-05-23 (4.07) + * removed ghc4_docbook.dpatch (incorporated by upstream, finally :-)) + * removed ghc4_hslibs_tools_clean.dpatch (incorporated by upstream) + * removed ghc4_hslibs_util_clean.dpatch (incorporated by upstream) + * removed building of docbook (Debian does have a working docbook + environment) + (debian_glafp-utils_docbook.dpatch) + * added fptags to distribution (in a really q'n'd way) + * added debian/rules options (UN)PATCHOPTS, default is now + `PATCHOPTS = --ignore-whitespace --forward' + * added notes about debian/rules options to README.Debian + * adjusted build depends + * added more hints in README.debian + * !! UNRELEASED due to building problem !! + + -- Michael Weber Fri, 26 May 2000 20:02:20 +0200 + +ghc4 (4.07.20000504-1) unstable; urgency=low + + * CVS Version from 2000-05-04 (4.07) + * hslibs/utils/Readline_stub.p_o not cleaned + (ghc4_hslibs_util_clean.dpatch) + * added DrIFT, DtdToHaskell, Xtract as update-alternatives + + -- Michael Weber Mon, 8 May 2000 01:05:37 +0200 + +ghc4 (4.07.20000429-1) unstable; urgency=low + + * CVS Version from 2000-04-29 (4.07) + * removed ghc4_hslibs_util_clean.dpatch (solved by upstream) + * Main.hi not cleaned in hslibs/tools/* dirs + (ghc4_hslibs_tools_clean.dpatch) + * changed clean targets from `realclean' to `maintainer-clean' + (due to upstream change) + * !! UNRELEASED due to stage1 problems !! + + -- Michael Weber Sun, 30 Apr 2000 01:06:47 +0200 + +ghc4 (4.07.20000411-1) unstable; urgency=low + + * CVS Version from 2000-04-11 (4.07) + * removed ghc4_configure_readline.dpatch (incorporated by upstream) + * adjusted Build-depends (this version can only be build with GHC 4.06) + * `debian/rules patch' now doesn't try to apply patches, if they're + already applied + * added option `StripLibraries = YES' + * !! UNRELEASED due to stage2 problems !! + + -- Michael Weber Thu, 13 Apr 2000 00:37:29 +0200 + +ghc4 (4.07.20000202-1) unstable; urgency=low + + * CVS Version from 2000-02-02 (4.07) + * added target `cvs-update' (see README.Debian) + * replaced sgml-tools by cygnus-stylesheets in Build-Depends + * removed ghc4_hslibs_cstring.dpatch (incorporated by upstream) + * removed ghc4_ghc_mk.dpatch (incorporated by upstream) + * removed debian_sgml.dpatch (no longer necessary) + * use autoreconf instead of autoconf (in debian/rules.local) + * html docs back in action + * renamed doc-base ID ghc4-installation to ghc4-building + * YARP [Just Another Readline Patch]: doesn't find termcap + (ghc4_configure_readline.dpatch) + * Readline_stub--stamp was not removed on clean + (ghc4_hslibs_util_clean.dpatch) + * removed hardcoded DTD paths in docs/fptools-both.dsl + (ghc4_docbook.dpatch) + * added `docs' target + * `debian/rules clean' again checks for root priv. (cf. packaging#3.2.1) + * added build option `-split-objs' (produces smaller executables) + * added build option `GhcLibHcOpts = -O' (won't compile otherwise, because + of a compiler bug in 4.06) + + -- Michael Weber Thu, 3 Feb 2000 17:47:00 +0100 + +ghc4 (4.06.20000109-1) unstable; urgency=low + + * CVS version from 2000-01-09 (4.06) + * debian/rules clean doesn't check for root priv. any more + * removed emacs local variable (add-log-mailing-address) in changelog. + (closes: Bug#54515) + * references to `haskell-doc' in control and debian/*doc-base*. + (closes: Bug#52729) + * Arch back to `i386' only, although sparc should be possible, too (with + minor changes, really). (closes: Bug#52794) + * bumped Standards-Version to 3.1.0 + * introduced build dependencies + * removed ghc4_clean.dpatch (incorporated by upstream) + * removed ghc4_makefiles.dpatch (incorporated by upstream) + * removed ghc4_mk.dpatch (incorporated by upstream) + * removed ghc4_readline.dpatch (incorporated by upstream) + * removed ghc4_stat2resid.dpatch (incorporated by upstream) + * autoconf changes to rules, rules.local + * corrected bug in ghc/mk/paths.mk (wrt. variable referencing) + (ghc4_ghc_mk.dpatch) + * corrected bug in hslibs/CString.lhs (ghc4_hslibs_cstring.dpatch) + * added patch for sgmltools, removed {html,txt} because of problems + + -- Michael Weber Sun, 9 Jan 2000 15:45:36 +0100 + +ghc4 (4.05.19991206-1) unstable; urgency=low + + * CVS version from 1999-12-06 (4.05) + * removed distrib/Makefile-bin.in patch (solved by upstream) + * removed ghc/compiler/Makefile patch (solved by upstream) + * adjusted mk/target.mk patch + * moved $(libdir)/ghc/$(version) -> $(libdir)/ghc-$(version) (upstream-like) + * dropped users-guide.info (wasn't complete, anyway) + * added postscript and plain text docs + * heap size back to 120M :-( + * changed the build process heavily + * fixed `missing symbol in libHSutil*.a' (formerly libHSmisc*.a) bug + * some cleanup patches + * updated URLs to the Haskell report in control and debian/*doc-base* + + -- Michael Weber Wed, 8 Dec 1999 23:37:37 +0100 + +ghc4 (4.04.19990916-3local1) unstable; urgency=low + + * added warning message about fragile `clean' target + * cut down memory req's for building GHC (100M heap should be ok) + * Arch: field back to ``i386'' + + -- Michael Weber Tue, 30 Nov 1999 23:32:36 +0100 + +ghc4 (4.04.19990916-3) unstable; urgency=low + + * First revision to be uploaded to Debian + * Changed maintainer fields where necessary + * Changed binary packages to Architecture: any + + -- Aaron Van Couwenberghe Tue, 30 Nov 1999 14:27:18 -0800 + +ghc4 (4.04.19990916-2) unstable; urgency=low + + * fixed typo in copyright + * bumped Standards-Version to 3.0.1 + * doc-base support + * moved (un)patch rules to debian/rules.local + + -- Michael Weber Wed, 17 Nov 1999 18:06:25 +0100 + +ghc4 (4.04.19990916-1) unstable; urgency=low + + * added haskell-doc, ghc4-prof to Suggests + * new version numbering scheme + * improved build process (targets stage1,clean) + + -- Michael Weber Sun, 19 Sep 1999 21:49:25 +0200 + +ghc4 (4.04-9) unstable; urgency=low + + * added libgmp2-dev to Depends + * CVS version from 1999/09/16 + + -- Michael Weber Thu, 16 Sep 1999 22:09:11 +0200 + +ghc4 (4.04-8) unstable; urgency=low + + * fixed manpage packaging bug in ghc4-prof + + -- Michael Weber Sat, 7 Aug 1999 21:59:05 +0200 + +ghc4 (4.04-7) unstable; urgency=low + + * Standards-Version 3.0.0.0 + * removed undocumented manpages (lintian complains) + * moved usr/info -> usr/share/info according to FHS + * added 'perl | perl5' to Depends + + -- Michael Weber Sat, 7 Aug 1999 21:54:39 +0200 + +ghc4 (4.04-6) unstable; urgency=low + + * removed patch for happy version check (now in upstream) + * GHC is working again + * CVS version from 1999/08/03 + + -- Michael Weber Wed, 4 Aug 1999 18:12:07 +0200 + +ghc4 (4.04-5) unstable; urgency=low + + * local version, GHC doesn't work + * removed hstags from alternatives because it's non-functional + * removed mkdependHS from alternatives because directly running it + is deprecated now (now 'ghc -M') + * re-added info file + * removed obsolete HAVE_READLINE variable in mk/build.mk + * removed patch for {hscpp,mkdependHS} "absolute path" fix (now in upstream) + * moved to patch system (taken from glibc package) + * CVS version from 1999/07/31 + + -- Michael Weber Sun, 1 Aug 1999 02:09:44 +0200 + +ghc4 (4.04-4) unstable; urgency=low + + * got rid of absolute cpp paths in {hscpp,mkdependHS} + * removed info files due to problem with sgmltools + * first glibc-2.1.1 version + + -- Michael Weber Tue, 13 Jul 1999 15:35:28 +0000 + +ghc4 (4.04-3) unstable; urgency=low + + * moved profiling libs into separate package + * added hscpp as alternative (useful for hugs) + * CVS version from 1999/07/10 + + -- Michael Weber Sat, 10 Jul 1999 19:20:49 +0200 + +ghc4 (4.04-2) unstable; urgency=low + + * compiled with use of happy-1.6 parser generator + * fixed some "unclean" directories + * added info entry + * added dwww index-file + + -- Michael Weber Sat, 3 Jul 1999 03:04:13 +0200 + +ghc4 (4.04-1) unstable; urgency=low + + * added missing *.prl files + * added mkdependHS as alternative + * new CVS version as of 1999/06/30 + + -- Michael Weber Wed, 30 Jun 1999 19:53:09 +0200 + +ghc4 (4.03-1) unstable; urgency=low + + * Initial Release. + + -- Michael Weber Sat, 26 Jun 1999 17:52:29 +0200 + + --- ghc6-6.10.4.orig/debian/runghc.man +++ ghc6-6.10.4/debian/runghc.man @@ -0,0 +1,45 @@ +.TH RUNGHC 1 "28 NOVEMBER 2007" +.SH NAME +runghc \- program to run Haskell programs without first having to compile them. +.SH SYNOPSIS +.B runghc +.RI +[runghc|flags] [GHC|flags] module [program|flags]... +.br +.SH DESCRIPTION +.B runghc +is considered a non-interactive interpreter and part of The Glasgow Haskell Compiler. +.B runghc +is a compiler that automatically runs its results at the end. +.PP +.SH OPTIONS +.TP +the flags are: +.TP +.B \-f +it tells runghc which GHC to use to run the program. If it is not given then runghc will search for GHC in the directories in the system search path. runghc -f /path/to/ghc +.TP +.B \-- +runghc will try to work out where the boundaries between [runghc flags] and [GHC flags], and [GHC flags] and module are, but you can use a -- flag if it doesn't get it right. For example, runghc -- -fglasgow-exts Foo +means runghc won't try to use glasgow-exts as the path to GHC, but instead will pass the flag to GHC. + +.SH EXAMPLES +.TP +.B runghc foo +.PP +.B runghc -f /path/to/ghc foo +.TP +.B runghc -- -fglasgow-exts Foo + +.SH SEE ALSO +.BR ghc (1), +.BR ghci (1). +.br + +.SH COPYRIGHT +Copyright 2002, The University Court of the University of Glasgow. All rights reserved. + +.SH AUTHOR +This manual page was written by Efrain Valles Pulgar . This is free documentation; see the GNU +General Public Licence version 2 or later for copying conditions. There is NO WARRANTY. + --- ghc6-6.10.4.orig/debian/ghc6-doc.postrm.in +++ ghc6-6.10.4/debian/ghc6-doc.postrm.in @@ -0,0 +1,17 @@ +#! /bin/sh + +set -e + +case "$1" in + remove) + rm -f /usr/share/doc/ghc6-doc/libraries/index.html \ + /usr/share/doc/ghc6-doc/index-frames.html \ + /usr/share/doc/ghc6-doc/doc-index.html + ;; + *) + ;; +esac + +#DEBHELPER# + +exit 0 --- ghc6-6.10.4.orig/debian/ghc6.preinst.in +++ ghc6-6.10.4/debian/ghc6.preinst.in @@ -0,0 +1,28 @@ +#! /bin/sh +# preinst script for ghc6 + +set -e + +case "$1" in + install) + if test -n "$2"; then + if dpkg --compare-versions "$2" "<<" "6.10.3" && dpkg --compare-versions "$2" ">>" "6.10.1"; then + rm -f /usr/lib/ghc-6.10.1/package.conf* + rmdir --ignore-fail-on-non-empty /usr/lib/ghc-6.10.1 + fi + fi + ;; + upgrade|abort-upgrade) + exit 0 + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- ghc6-6.10.4.orig/debian/provided_substvars +++ ghc6-6.10.4/debian/provided_substvars @@ -0,0 +1,45 @@ +#! /usr/bin/perl + +-x 'utils/ghc-pkg/dist-inplace/build/ghc-pkg/ghc-pkg' or die "inplace ghc-pkg not executable or present"; + +open PKG, 'utils/ghc-pkg/dist-inplace/build/ghc-pkg/ghc-pkg \ +list --global-conf inplace-datadir/package.conf --simple-output |' + or die "ghc-pkg list failed: $!"; +my @pkgs; +my @ignored = ('ghc', 'ghc-mtl', 'utf8-string', 'terminfo', 'haskeline'); +while () { + y/A-Z/a-z/; + my $pkgstring = $_; + LOOP: while ($pkgstring =~ m,([^ ]*?)-\d.*? ?,g) { + my $pkg = $1; + foreach (@ignored, @pkgs) { + next LOOP if $_ eq $pkg; + } + push @pkgs, $1; + } +} +close PKG; + +open DEV, '>debian/ghc6.substvars'; +print DEV 'provided-devs='; +my $buf = ""; +foreach (@pkgs) {$buf .= "libghc6-$_-dev, ";} +$buf =~ s#(.*), #$1#; +print DEV $buf."\n"; +close DEV; + +open PROF, '>debian/ghc6-prof.substvars'; +print PROF 'provided-profs='; +my $buf = ""; +foreach (@pkgs) {$buf .= "libghc6-$_-prof, ";} +$buf =~ s#(.*), #$1#; +print PROF $buf."\n"; +close PROF; + +open DOC, '>debian/ghc6-doc.substvars'; +print DOC 'provided-docs='; +my $buf = ""; +foreach (@pkgs) {$buf .= "libghc6-$_-doc, ";} +$buf =~ s#(.*), #$1#; +print DOC $buf."\n"; +close DOC; --- ghc6-6.10.4.orig/debian/ghc6-doc.prerm +++ ghc6-6.10.4/debian/ghc6-doc.prerm @@ -0,0 +1,40 @@ +#! /bin/sh +# prerm script for ghc6-doc +# + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ + +case "$1" in + remove|upgrade|deconfigure|failed-upgrade) + rm -f /usr/share/doc/ghc6-doc/libraries/doc-index*.html + rm -f /usr/share/doc/ghc6-doc/libraries/haddock.css + rm -f /usr/share/doc/ghc6-doc/libraries/haddock.js + rm -f /usr/share/doc/ghc6-doc/libraries/index.html + rm -f /usr/share/doc/ghc6-doc/libraries/libraries.txt + rm -f /usr/share/doc/ghc6-doc/libraries/haskell_icon.gif + rm -f /usr/share/doc/ghc6-doc/libraries/minus.gif + rm -f /usr/share/doc/ghc6-doc/libraries/plus.gif + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- ghc6-6.10.4.orig/debian/ghc6.postrm.in +++ ghc6-6.10.4/debian/ghc6.postrm.in @@ -0,0 +1,32 @@ +#! /bin/sh +# postrm script for ghc6 +# +# SOURCE: ghc6.postrm.in + +set -e + +execdir=/usr/bin +libdir=/usr/lib/ghc-@VERSION@ +bindir=$libdir/bin +vardir=/var/lib/ghc-@VERSION@ + +case "$1" in + purge) + rm -f $vardir/package.conf + ;; + upgrade) + if dpkg --compare-versions "$2" ge "@VERSION@++" || + dpkg --compare-versions "$2" le "@VERSION@" + then + rm -f $vardir/package.conf + fi + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- ghc6-6.10.4.orig/debian/copyright +++ ghc6-6.10.4/debian/copyright @@ -0,0 +1,156 @@ +This package was debianised by Ian Lynagh on +Sat, 07 Jun 2003. It was based on Michael Weber 's +ghc5 package. All of the Debian packaging scripts written by us are +released into the public domain. + +It was downloaded from +http://www.haskell.org/ghc/dist/ + +Upstream Authors: The GHC team + Simon Peyton Jones + Simon Marlow + +See http://www.haskell.org/ghc/contributors.html for more details. + + +Copyright: + +The Glasgow Haskell Compiler License + +Copyright 2002-2009, The University Court of the University of Glasgow. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither name of the University nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY COURT OF THE UNIVERSITY OF +GLASGOW AND THE CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +UNIVERSITY COURT OF THE UNIVERSITY OF GLASGOW OR THE CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. + + +GHC includes libffi. +libffi - Copyright (c) 1996-2008 Red Hat, Inc and others. +See source files for details. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +``Software''), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +GHC includes mtl. +Copyright: The University of Glasgow 2001, + Jeff Newbern 2003-2007, + Andriy Palamarchuk 2006-2007, + Michael Weber 2001, + Andy Gill 2001, + Oregon Graduate Institute of Science and Technology, 2001 +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. + +- Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +- Neither name of the University nor the names of its contributors may be +used to endorse or promote products derived from this software without +specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY COURT OF THE UNIVERSITY OF +GLASGOW AND THE CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +UNIVERSITY COURT OF THE UNIVERSITY OF GLASGOW OR THE CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. + + +GHC includes haskeline and terminfo Haskell bindings. +Copyright: Judah Jacobson, 2007-2009 +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +- Redistribution of source code must retain the above copyright notice, +this list of conditions and the following disclamer. + +- Redistribution in binary form must reproduce the above copyright notice, +this list of conditions and the following disclamer in the documentation +and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR THE CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +GHC includes utf8-string +Copyright: Galois Inc, 2007. +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* * Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* * Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* * Neither the name of Galois Inc. nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY Galois Inc. ``AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL Galois Inc. BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- ghc6-6.10.4.orig/debian/scripts.mk +++ ghc6-6.10.4/debian/scripts.mk @@ -0,0 +1,16 @@ +#!/usr/bin/make -f + +FILES = debian/ghc6.postinst debian/ghc6.prerm debian/ghc6.postrm +FILES += debian/ghc6-doc.postinst debian/gen_contents_index debian/ghc6-doc.triggers +FILES += debian/ghc6-doc.preinst debian/ghc-pkg6.man + +.PHONY: all clean + +all: $(FILES) + +%: %.in + sed "s/@VERSION@/$(ProjectVersion)/" $< > $@ + +clean: + rm -f $(FILES) + --- ghc6-6.10.4.orig/debian/ghc6.docs +++ ghc6-6.10.4/debian/ghc6.docs @@ -0,0 +1,3 @@ +README +ANNOUNCE + --- ghc6-6.10.4.orig/debian/ghc6.postinst.in +++ ghc6-6.10.4/debian/ghc6.postinst.in @@ -0,0 +1,74 @@ +#! /bin/sh +# postinst script for ghc6 +# +# SOURCE: ghc6.postinst.in +set -e + +execdir=/usr/bin +libdir=/usr/lib/ghc-@VERSION@ +bindir=$libdir/bin +mandir=/usr/share/man +vardir=/var/lib/ghc-@VERSION@ + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +if $libdir/bin/ghc --info | grep -q '"Have interpreter","YES"' ; then + NEED_INTERPRETER="\ + --slave $execdir/runghc runghc $bindir/runghc \ + --slave $execdir/ghci ghci $bindir/ghci \ + --slave $mandir/man1/ghci.1.gz ghci.1.gz $mandir/man1/ghc6.1.gz \ + --slave $mandir/man1/runghc.1.gz runghc.1.gz $mandir/man1/runghc6.1.gz" +fi + +case "$1" in + configure|abort-upgrade|abort-remove|abort-deconfigure) + if [ -n "$NEED_INTERPRETER" ] ; then + update-alternatives \ + --install $execdir/runhaskell runhaskell $execdir/runghc6 8600000600 \ + --slave $mandir/man1/runhaskell.1.gz runhaskell.1.gz $mandir/man1/runghc6.1.gz + fi + update-alternatives \ + --install $execdir/haskell-compiler haskell-compiler $execdir/ghc6 600 \ + --slave $mandir/man1/haskell-compiler.1.gz haskell-compiler.1.gz $mandir/man1/ghc6.1.gz + update-alternatives \ + --install $execdir/ghc ghc $bindir/ghc 600 \ + --slave $execdir/ghc-pkg ghc-pkg $bindir/ghc-pkg \ + --slave $execdir/hsc2hs hsc2hs $bindir/hsc2hs \ + --slave $execdir/hp2ps hp2ps $bindir/hp2ps \ + --slave $execdir/hpc hpc $bindir/hpc \ + --slave $mandir/man1/hp2ps.1.gz hp2ps.1.gz $mandir/man1/hp2ps-ghc6.1.gz \ + --slave $mandir/man1/ghc.1.gz ghc.1.gz $mandir/man1/ghc6.1.gz \ + --slave $mandir/man1/ghc-pkg.1.gz ghc-pkg.1.gz $mandir/man1/ghc-pkg6.1.gz \ + --slave $execdir/hasktags hasktags $bindir/hasktags $NEED_INTERPRETER + if [ ! -e $vardir/package.conf ] + then + cp $libdir/package.conf.shipped $vardir/package.conf + fi + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- ghc6-6.10.4.orig/debian/ghc6-doc.postinst.in +++ ghc6-6.10.4/debian/ghc6-doc.postinst.in @@ -0,0 +1,40 @@ +#! /bin/sh +# postinst script for ghc6-doc +# +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + triggered|configure) + /usr/lib/ghc6-doc/gen_contents_index + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- ghc6-6.10.4.orig/debian/ghc6.preinst +++ ghc6-6.10.4/debian/ghc6.preinst @@ -0,0 +1,29 @@ +#! /bin/sh +# preinst script for ghc6 + +set -e + +case "$1" in + install) + if test -n "$2"; then + if dpkg --compare-versions "$2" "<<" "6.10.3" && dpkg --compare-versions "$2" ">>" "6.10.1"; then + rm -f /usr/lib/ghc-6.10.1/package.conf* + rmdir --ignore-fail-on-non-empty /usr/lib/ghc-6.10.1 + fi + fi + ;; + upgrade|abort-upgrade) + exit 0 + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- ghc6-6.10.4.orig/debian/gen_contents_index.in +++ ghc6-6.10.4/debian/gen_contents_index.in @@ -0,0 +1,71 @@ +#! /usr/bin/perl +# gen_contents_index, written for Debian by Kari Pahula +# Copyright 2009 Kari Pahula +# Licensed under BSD3, see /usr/share/common-licenses/BSD + +my $pkgdir = '/usr/share/ghc6-doc/ghc-@VERSION@/desc/'; +my @ifaces; +my %pkgs; + +# First, add everything from the global Cabal registry to index. +if (-e '/usr/bin/ghc-pkg6') { + open CABAL, 'ghc-pkg6 dump --global |' or warn "ghc-pkg dump failed: $!"; + addInfo (\*CABAL, \%pkgs, \@ifaces); + close CABAL; +} + +# Then, add -doc packages that aren't registered but have the +# corresponding data installed otherwise. +opendir PKGS, $pkgdir; +while ($_ = readdir PKGS) { + next if /^[.]/; + open DESC, $pkgdir.$_; + addInfo(\*DESC, \%pkgs, \@ifaces); + close DESC; +} +closedir PKGS; + +exec ('haddock', '--gen-index', '--gen-contents', + '-o', '/usr/share/doc/ghc6-doc/libraries/', + '-t'. 'Haskell Hierarchical Libraries', + '-p', '/usr/share/doc/ghc6-doc/libraries/prologue.txt', + @ifaces); + +sub addInfo { + my $fh = shift; + my %dat; + while (<$fh>) { + if (/^name: (.*)/) { + $dat{pkg} = $1; + } elsif (/^version: (.*)/) { + $dat{ver} = $1; + } elsif (/^haddock-interfaces: (.*)/) { + $dat{ifaces} = $1; + } elsif (/^haddock-html: (.*)/) { + $dat{html} = $1; + } elsif (/^---/) { + process(\%dat, @_); + %dat = (); + } + } + process(\%dat, @_); +} + +sub process { + my $dat = shift; + my $pkgs = shift; + my $ifaces = shift; + my $path; + return undef if $$dat{pkg} eq 'ghc'; + my $p = $$dat{pkg}.'-'.$$dat{ver}; + return undef if (exists $$pkgs{$p}); + if ($$dat{html} =~ m,^/usr/share/doc/([^/]*-doc/html/.*),) { + $path = "../../$1"; + } elsif ($$dat{html} =~ m,^/usr/share/doc/ghc6-doc/libraries/(.*),) { + $path = $1; + } + if (defined $path && -r $$dat{ifaces}) { + $$pkgs{$p} = 1; + push @ifaces, "--read-interface=$path,$$dat{ifaces}"; + } +} --- ghc6-6.10.4.orig/debian/watcher.sh +++ ghc6-6.10.4/debian/watcher.sh @@ -0,0 +1,33 @@ +#!/bin/sh + +if [ "$#" -ne 4 ] +then + echo "Watcher: Bad args: $#" + exit 1 +fi + +CHECK_PID=$1 +DIR="$2" +FILE="$3" +GREP_FOR="$4" + +echo "Watcher: Check PID: $CHECK_PID" +echo "Watcher: Directory: $DIR" +echo "Watcher: File: $FILE" +echo "Watcher: Grep for: $GREP_FOR" + +# If the PID we are told still exists (our caller is still running), +# the directory we are told (the working directory still exists) and +# the file we are told doesn't exist (the build stamp hasn't been created) +# keep going +while ps "$CHECK_PID" > /dev/null && + [ -d "$DIR" ] && + [ ! -f "$FILE" ] +do + sleep 600 + echo "Watcher: Tick." + ps ux | grep -- "$GREP_FOR" | grep -v grep +done + +echo "Watcher: Terminating." + --- ghc6-6.10.4.orig/debian/ghc6-doc.triggers.in +++ ghc6-6.10.4/debian/ghc6-doc.triggers.in @@ -0,0 +1,6 @@ +interest /usr/share/doc/ghc6-doc/libraries +interest /usr/share/ghc6-doc/haddock +interest /usr/share/ghc6-doc/ghc-@VERSION@/haddock +interest /usr/share/ghc6-doc/ghc-@VERSION@/desc +interest /usr/lib/ghc6-doc/haddock +interest /usr/lib/ghc-@VERSION@/haddock --- ghc6-6.10.4.orig/debian/ghc-pkg6.man.in +++ ghc6-6.10.4/debian/ghc-pkg6.man.in @@ -0,0 +1,211 @@ +.TH ghc-pkg 1 "2009-05-11" +.SH NAME +ghc-pkg \- GHC Haskell Cabal package manager +.SH SYNOPSIS +.B ghc-pkg +.I action +.RI [ OPTION ]... +.SH DESCRIPTION +A package is a library of Haskell modules known to the compiler. The +.B ghc-pkg +tool allows adding or removing them from a package database. By +default, the system-wide package database is modified, but +alternatively the user's local package database or another specified +file can be used. +.PP +To make a package available for +.BR ghc , +.B ghc-pkg +can be used to register it. Unregistering it removes it from the +database. Also, packages can be hidden, to make +.B ghc +ignore the package by default, without uninstalling it. Exposing a +package makes a hidden package available. Additionally, +.B ghc-pkg +has various commands to query the package database. +.PP +Where a package name is required, the package can be named in full +including the version number (e.g. +.BR network-1.0 ), +or without the version number. Naming a package without the version +number matches all versions of the package; the specified action will +be applied to all the matching packages. A package specifier that +matches all version of the package can also be written +.BR pkg-* , +to make it clearer that multiple packages are being matched. +.SH ACTIONS +.TP +\fBregister\fP \fIfilename\fP|\fB-\fP +Register the package using the specified installed package +description. +.TP +\fBupdate\fP \fIfilename\fP|\fB-\fP +Register the package, overwriting any other package with the same +name. +.TP +\fBunregister\fP \fIpkg-id\fP +Unregister the specified package. +.TP +\fBexpose\fP \fIpkg-id\fP +Expose the specified package. +.TP +\fBhide\fP \fIpkg-id\fP +Hide the specified package +.TP +\fBlist\fP \fR[\fIpkg\fR]...\fP +List registered packages in the global database, and also the user +database if +.B --user +is given. If a package name is given all the registered versions will +be listed in ascending order. Accepts the +.B --simple-output +flag. +.TP +\fBfind-module\fP \fImodule\fP +List registered packages exposing module +.I module +in the global database, and also the user database if +.B --user +is given. All the registered versions will be listed in ascending +order. Accepts the +.B --simple-output +flag. +.TP +\fBlatest\fP \fIpkg-id\fP +Prints the highest registered version of a package. +.TP +.B check +Check the consistency of package dependencies and list broken +packages. Accepts the +.B --simple-output +flag. +.TP +\fBdescribe\fP \fIpkg\fP +Give the registered description for the +specified package. The description is returned in precisely the syntax +required by ghc-pkg register. +.TP +\fBfield\fP \fIpkg field\fP +Extract the specified field of the package description for the +specified package. Accepts comma-separated multiple fields. +.TP +.B dump +Dump the registered description for every package. This is like +.BR ghc-pkg\ describe\ '*' , +expect that it is intended to be used by tools that parse the results, +rather than humans. +.SH OPTIONS +When asked to modify a database +.RB ( register ,\ unregister ,\ update ,\ hide ,\ expose ,\ and\ also\ check ), +.B ghc-pkg +modifies the global database by +default. Specifying +.B --user +causes it to act on the user database, +or +.B --package-conf +can be used to act on another database +entirely. When multiple of these options are given, the rightmost +one is used as the database to act upon. +.PP +Commands that query the package database +.RB ( list ,\ latest ,\ describe ,\ field ) +operate on the list of databases specified by the flags +.BR --user ,\ --global , +and +.BR --package-conf . +If none of these flags are +given, the default is +.BR --global\ --user . +.TP +.B --user +Use the current user's package database. +.TP +.B --global +Use the global package database. +.TP +\fB-f\fP \fIFILE\fP, \fB--package-conf=\fIFILE\fP +Use the specified package config file. +.TP +.BI --global-conf= FILE +Location of the global package config. +.TP +.B --force +Ignore missing dependencies, directories, and libraries. +.TP +.B --force-files +Ignore missing directories and libraries only. +.TP +.BR -g ,\ --auto-ghc-libs +Automatically build libs for GHCi (with register). +.TP +.BR -? ,\ --help +Display a help message and exit. +.TP +.BR -V ,\ --version +Output version information and exit. +.TP +.B --simple-output +Print output in easy-to-parse format for some commands. +.TP +.B --names-only +Only print package names, not versions; can only be used with +.BR list\ --simple-output . +.TP +.B --ignore-case +Ignore case for substring matching. +.SH ENVIRONMENT VARIABLES +.TP +.B GHC_PACKAGE_PATH +The +.B GHC_PACKAGE_PATH +environment variable may be set to a +.BR : -separated +list of files containing package databases. This list of package +databases is used by +.B ghc +and +.BR ghc-pkg , +with earlier databases in the list overriding later ones. This order +was chosen to match the behaviour of the +.B PATH +environment variable; think of it as a list of package databases that +are searched left-to-right for packages. + +If +.B GHC_PACKAGE_PATH +ends in a separator, then the default user and system package +databases are appended, in that order. e.g. to augment the usual set +of packages with a database of your own, you could say: + +.br +\fB export GHC_PACKAGE_PATH=$HOME/.my-ghc-packages.conf:\fP +.br + +To check whether your +.B GHC_PACKAGE_PATH +setting is doing the right thing, +.B ghc-pkg list +will list all the databases in use, in the reverse order they are +searched. +.SH FILES +Both of these locations are changed for Debian. Upstream still keeps +these under +.IR /usr . +Some programs may refer to that, but look in +.I /var +instead. +.TP +.I /var/lib/ghc-@VERSION@/package.conf +Global package.conf file. +.TP +.I /var/lib/ghc-@VERSION@/package.conf.d/ +Directory for library specific package.conf files. These are added to +the global registry. +.SH "SEE ALSO" +.BR ghc (1), +.BR runghc (1), +.BR hugs (1). +.SH AUTHOR +This manual page was written by Kari Pahula , for the +Debian project (and may be used by others). --- ghc6-6.10.4.orig/debian/control +++ ghc6-6.10.4/debian/control @@ -0,0 +1,62 @@ +Source: ghc6 +Section: haskell +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Kari Pahula +Standards-Version: 3.8.2 +Build-Depends: debhelper (>= 7), libgmp3-dev, devscripts, ghc6, grep-dctrl, autotools-dev, gcc (>= 4:4.2), procps | hurd, quilt, libffi-dev, autoconf, pkg-config, xsltproc, docbook-xsl, docbook-xml, binutils (>= 2.19.51.20090508) [arm armel] +#Build-Depends-Indep: haddock (>= 2.4.2-2) +Homepage: http://haskell.org/ghc/ + +Package: ghc6 +Architecture: any +Depends: perl | perl5, gcc (>= 4:4.2), libgmp3-dev, libffi-dev, ${shlibs:Depends}, ${misc:Depends} +Provides: haskell-compiler, ghc, ${provided-devs} +Conflicts: ghc4 (<= 4.08.1-4) +Suggests: ghc6-prof, ghc6-doc, haskell-doc +Description: GHC - the Glasgow Haskell Compilation system + Version 6 of the Glorious Glasgow Haskell Compilation system (GHC). GHC is + a compiler for Haskell98. + . + Haskell is "the" standard lazy functional programming language. Haskell98 + is the current version of the language. The language definition and + additional documentation can be found in the `haskell-doc' package. + Alternatively, there is an online version at + http://haskell.org/onlinereport/. + +Package: ghc6-prof +Architecture: any +Provides: ghc-prof, ${provided-profs} +Depends: ghc6 (= ${binary:Version}), ${misc:Depends} +Description: Profiling libraries for the Glasgow Haskell Compilation system + Version 6 of the Glorious Glasgow Haskell Compilation system (GHC). GHC is + a compiler for Haskell98. + . + Haskell is "the" standard lazy functional programming language. Haskell98 + is the current version of the language. The language definition and + additional documentation can be found in the `haskell-doc' package. + Alternatively, there is an online version at + http://haskell.org/onlinereport/. + . + This package contains additional profiling libraries. They are only needed, + if you want to take a closer look on where exactly your program burns CPU + cycles. + +Package: ghc6-doc +Section: doc +Architecture: all +Suggests: haskell-doc +Provides: ${provided-docs} +Depends: haddock (>= 2.4.2), ${misc:Depends} +Description: Documentation for the Glasgow Haskell Compilation system + Version 6 of the Glorious Glasgow Haskell Compilation system (GHC). GHC is + a compiler for Haskell98. + . + Haskell is "the" standard lazy functional programming language. Haskell98 + is the current version of the language. The language definition and + additional documentation can be found in the `haskell-doc' package. + Alternatively, there is an online version at + http://haskell.org/onlinereport/. + . + This package includes HTML, DVI and PS versions of the SGML-based + documentation around GHC. --- ghc6-6.10.4.orig/debian/patches/no_gen_contents_index +++ ghc6-6.10.4/debian/patches/no_gen_contents_index @@ -0,0 +1,21 @@ +Index: ghc6-6.10.3/libraries/Makefile +=================================================================== +--- ghc6-6.10.3.orig/libraries/Makefile 2009-05-13 18:34:11.000000000 +0300 ++++ ghc6-6.10.3/libraries/Makefile 2009-05-13 19:19:28.000000000 +0300 +@@ -262,7 +262,6 @@ + DOC_SUBDIRS = $(filter-out %-compat, $(SUBDIRS)) + + doc: $(foreach SUBDIR,$(DOC_SUBDIRS),doc.library.$(SUBDIR)) +- sh gen_contents_index --inplace + + # Making hyperlinked source only works if we have hscolour + ifeq "$(HSCOLOUR_SRCS)" "YES" +@@ -326,8 +325,6 @@ + install: $(foreach SUBDIR,$(SUBDIRS_INSTALL),install.library.$(SUBDIR)) + ifeq "$(HADDOCK_DOCS)" "YES" + $(INSTALL_DIR) $(DESTDIR)$(html_installed_root) +- $(INSTALL_DATA) index.html doc-index*.html $(DESTDIR)$(html_installed_root) +- $(INSTALL_SCRIPT) gen_contents_index $(DESTDIR)$(html_installed_root) + $(INSTALL_DATA) prologue.txt $(DESTDIR)$(html_installed_root) + # Hacks: + $(INSTALL_DATA) base/dist/doc/html/*/*.css $(DESTDIR)$(html_installed_root) --- ghc6-6.10.4.orig/debian/patches/ghc_binary_int32 +++ ghc6-6.10.4/debian/patches/ghc_binary_int32 @@ -0,0 +1,20 @@ +Index: ghc6-6.10.2/compiler/utils/Binary.hs +=================================================================== +--- ghc6-6.10.2.orig/compiler/utils/Binary.hs 2009-03-30 20:13:16.000000000 +0300 ++++ ghc6-6.10.2/compiler/utils/Binary.hs 2009-04-19 13:42:15.000000000 +0300 +@@ -400,10 +400,13 @@ + + instance Binary Int where + #if SIZEOF_HSINT == 4 +- put_ bh i = put_ bh (fromIntegral i :: Int32) ++ put_ bh i = put_ bh (fromIntegral i :: Int64) + get bh = do + x <- get bh +- return $! (fromIntegral (x :: Int32)) ++ when (x < (fromIntegral (minBound :: Int32)) ++ || x > (fromIntegral (maxBound :: Int32))) $ ++ hPutStrLn stderr ("Binary: Int64 truncated to fit in 32 bit Int") ++ return $! (fromIntegral (x :: Int64)) + #elif SIZEOF_HSINT == 8 + put_ bh i = put_ bh (fromIntegral i :: Int64) + get bh = do --- ghc6-6.10.4.orig/debian/patches/ld-relax-ia64-fix +++ ghc6-6.10.4/debian/patches/ld-relax-ia64-fix @@ -0,0 +1,18 @@ +Index: ghc6-6.10.1+dfsg1/compiler/Makefile +=================================================================== +--- ghc6-6.10.1+dfsg1.orig/compiler/Makefile 2009-01-26 11:14:44.000000000 +0200 ++++ ghc6-6.10.1+dfsg1/compiler/Makefile 2009-01-26 11:15:11.000000000 +0200 +@@ -141,13 +141,6 @@ + COMMON_CONFIGURE_FLAGS += --ld-options=-E + endif + +-ifeq "$(GhcUnregisterised)" "NO" +-ifeq "$(HOSTPLATFORM)" "ia64-unknown-linux" +-# needed for generating proper relocation in large binaries: trac #856 +-COMMON_CONFIGURE_FLAGS += --ld-option=-Wl,--relax +-endif +-endif +- + # We need to turn on profiling either if we have been asked to + # (GhcLibProfiled = YES) or if we want GHC itself to be compiled with + # profiling enabled (GhcProfiled = YES). --- ghc6-6.10.4.orig/debian/patches/series +++ ghc6-6.10.4/debian/patches/series @@ -0,0 +1,5 @@ +system-libffi +use-system-haddock +ld-relax-ia64-fix +ghc_binary_int32 +no_gen_contents_index --- ghc6-6.10.4.orig/debian/patches/system-libffi +++ ghc6-6.10.4/debian/patches/system-libffi @@ -0,0 +1,62 @@ +Index: ghc6-6.10.2/Makefile +=================================================================== +--- ghc6-6.10.2.orig/Makefile 2009-03-30 20:13:16.000000000 +0300 ++++ ghc6-6.10.2/Makefile 2009-04-19 12:15:23.000000000 +0300 +@@ -72,7 +72,7 @@ + SUBDIRS_BUILD = includes utils driver docs compiler libraries/Cabal/doc + endif + +-SUBDIRS = gmp libffi includes utils docs rts compiler ghc driver libraries libraries/Cabal/doc ++SUBDIRS = gmp includes utils docs rts compiler ghc driver libraries libraries/Cabal/doc + + check-all: check-packages check-tools + +@@ -117,7 +117,6 @@ + stage1 : $(GCC_LIB_DEP) check-all + $(MAKE) -C libraries boot + $(MAKE) -C gmp all +- $(MAKE) -C libffi all + $(MAKE) -C utils/mkdependC boot + $(MAKE) -C utils with-bootstrapping-compiler + @case '${MFLAGS}' in *-[ik]*) x_on_err=0;; *-r*[ik]*) x_on_err=0;; *) x_on_err=1;; esac; \ +@@ -353,7 +352,6 @@ + $(MAKE) -C driver binary-dist WHERE_AM_I=$(WHERE_AM_I)/driver + $(MAKE) -C utils binary-dist WHERE_AM_I=$(WHERE_AM_I)/utils + $(MAKE) -C docs binary-dist WHERE_AM_I=$(WHERE_AM_I)/docs +- $(MAKE) -C libffi binary-dist WHERE_AM_I=$(WHERE_AM_I)/libffi + $(MAKE) -C libraries binary-dist WHERE_AM_I=$(WHERE_AM_I)/libraries + $(MAKE) -C libraries/Cabal/doc binary-dist WHERE_AM_I=$(WHERE_AM_I)/libraries/Cabal/doc + # Now thinks get messier. Some files we need to move around, rename or +Index: ghc6-6.10.2/rts/Makefile +=================================================================== +--- ghc6-6.10.2.orig/rts/Makefile 2009-03-30 20:13:15.000000000 +0300 ++++ ghc6-6.10.2/rts/Makefile 2009-04-19 12:49:36.000000000 +0300 +@@ -374,10 +374,12 @@ + #----------------------------------------------------------------------------- + # libffi stuff + +-SRC_CC_OPTS += -I../libffi/build/include +-SRC_HC_OPTS += -I../libffi/build/include +-SRC_HSC2HS_OPTS += -I../libffi/build/include +-SRC_LD_OPTS += -L../libffi/build/include ++# work around #524097 ++GCC_TARGET = $(shell gcc -v 2&>1 | grep Target | cut -d' ' -f 2) ++SRC_CC_OPTS += $(shell pkg-config --cflags libffi) -I/usr/include/$(GCC_TARGET) ++SRC_HC_OPTS += $(shell pkg-config --cflags libffi) -I/usr/include/$(GCC_TARGET) ++SRC_HSC2HS_OPTS += $(shell pkg-config --cflags libffi) -I/usr/include/$(GCC_TARGET) ++SRC_LD_OPTS += $(shell pkg-config --libs libffi) + + #----------------------------------------------------------------------------- + # +Index: ghc6-6.10.2/compiler/ghc.cabal.in +=================================================================== +--- ghc6-6.10.2.orig/compiler/ghc.cabal.in 2009-03-30 20:13:15.000000000 +0300 ++++ ghc6-6.10.2/compiler/ghc.cabal.in 2009-04-19 12:15:23.000000000 +0300 +@@ -80,7 +80,6 @@ + if flag(ghci) + Build-Depends: template-haskell + CPP-Options: -DGHCI +- Include-Dirs: ../libffi/build/include + + if !flag(ncg) + CPP-Options: -DOMIT_NATIVE_CODEGEN --- ghc6-6.10.4.orig/debian/patches/use-system-haddock +++ ghc6-6.10.4/debian/patches/use-system-haddock @@ -0,0 +1,60 @@ +Index: ghc6-6.10.1+dfsg1/compiler/Makefile +=================================================================== +--- ghc6-6.10.1+dfsg1.orig/compiler/Makefile 2009-01-20 19:34:22.000000000 +0200 ++++ ghc6-6.10.1+dfsg1/compiler/Makefile 2009-01-20 19:34:44.000000000 +0200 +@@ -213,7 +213,7 @@ + doc.stage.%: + $(CABAL) haddock --distpref dist-stage$* \ + --haddock-option=--optghc=-DSTAGE=$* \ +- --with-haddock=$(FPTOOLS_TOP_ABS)/utils/haddock/install-inplace/bin/haddock ++ --with-haddock=/usr/bin/haddock + + install: + $(INSTALL_PACKAGE) install '$(GHC_PKG_INSTALL_PROG)' '$(DESTDIR)$(datadir)/package.conf' '$(DESTDIR)' '$(prefix)' '$(iprefix)' '$(ibindir)' '$(ilibdir)' '$(ilibexecdir)' '$(idynlibdir)' '$(idatadir)' '$(idocdir)' '$(ihtmldir)' '$(ihaddockdir)' --distpref dist-stage2 +Index: ghc6-6.10.1+dfsg1/libraries/Makefile +=================================================================== +--- ghc6-6.10.1+dfsg1.orig/libraries/Makefile 2009-01-20 19:34:22.000000000 +0200 ++++ ghc6-6.10.1+dfsg1/libraries/Makefile 2009-01-20 20:20:19.000000000 +0200 +@@ -259,7 +259,7 @@ + ifneq "$(HSCOLOUR)" "" + CABAL_HADDOCK_FLAGS += --hyperlink-source + endif +-CABAL_HADDOCK_FLAGS += --with-haddock=$(FPTOOLS_TOP_ABS)/utils/haddock/install-inplace/bin/haddock ++CABAL_HADDOCK_FLAGS += --with-haddock=/usr/bin/haddock + + $(foreach SUBDIR,$(DOC_SUBDIRS),doc.library.$(SUBDIR)):\ + doc.library.%: stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).% \ +Index: ghc6-6.10.1+dfsg1/utils/Makefile +=================================================================== +--- ghc6-6.10.1+dfsg1.orig/utils/Makefile 2009-01-20 19:34:22.000000000 +0200 ++++ ghc6-6.10.1+dfsg1/utils/Makefile 2009-01-20 19:34:44.000000000 +0200 +@@ -61,7 +61,7 @@ + + WITH_BOOTSTRAPPING_COMPILER = installPackage ghc-pkg hsc2hs hpc + +-WITH_STAGE2 = installPackage ghc-pkg hasktags runghc hpc pwd haddock ++WITH_STAGE2 = installPackage ghc-pkg hasktags runghc hpc pwd + ifneq "$(NO_INSTALL_HSC2HS)" "YES" + WITH_STAGE2 += hsc2hs + endif +@@ -90,7 +90,6 @@ + $(foreach P,$(WITH_BOOTSTRAPPING_COMPILER),with-bootstrapping-compiler.$P) + + with-stage-2: $(foreach P,$(WITH_STAGE2),with-stage-2.$P) +- $(MAKE) -C haddock install-inplace + + install:: $(foreach P,$(filter-out $(DO_NOT_INSTALL),$(WITH_STAGE2)),install.$P) + +Index: ghc6-6.10.1+dfsg1/libraries/gen_contents_index +=================================================================== +--- ghc6-6.10.1+dfsg1.orig/libraries/gen_contents_index 2009-01-20 20:15:40.000000000 +0200 ++++ ghc6-6.10.1+dfsg1/libraries/gen_contents_index 2009-01-20 20:20:00.000000000 +0200 +@@ -29,7 +29,7 @@ + done + + # Now create the combined contents and index pages +-$HADDOCK --gen-index --gen-contents -o . \ ++/usr/bin/haddock --gen-index --gen-contents -o . \ + -t "Haskell Hierarchical Libraries" \ + -p "prologue.txt" \ + $HADDOCK_ARGS