[m-dev.] diff: updates to debian/*
Tyson Dowd
trd at cs.mu.OZ.AU
Wed Nov 24 13:39:28 AEDT 1999
This patch has the latest changes to the debian/* files.
The main change is a cleanup to use helper scripts to do most of the
jobs, and a move to installing into /usr/share/{info,doc,man} instead of
/usr
--- mercury-0.8.1.rotd19991102.orig/debian/README.debian
+++ mercury-0.8.1.rotd19991102/debian/README.debian
@@ -19,7 +19,11 @@
mercury-compiler-(version).tar.gz
This particular version can be compiled using a release of the day:
-ftp://ftp.mercury.cs.mu.oz.au/pub/mercury/debian/mercury-compiler-rotd-1999-10-25.tar.gz
+ftp://ftp.mercury.cs.mu.oz.au/pub/mercury/debian/mercury-compiler-rotd-1999-10-26.tar.gz
+
+Please note that if you want to rebuild Mercury, you have better have a
+lot of disc space and a reasonably quick machine. 200Mb of disc,
+>= 64Mb of memory, and something faster than a Pentium2-266 would be good.
-- Tyson Dowd <trd at cs.mu.oz.au> Mon, 22 Mar 1999 16:33:10 +1100
--- mercury-0.8.1.rotd19991102.orig/debian/changelog
+++ mercury-0.8.1.rotd19991102/debian/changelog
@@ -1,3 +1,17 @@
+mercury (0.8.1.rotd19991102-1) unstable; urgency=low
+
+ * New upstream release.
+ * Apply patch to allow building with Linux/SPARC
+ (Fixes #49160)
+
+ -- Tyson Dowd <trd at cs.mu.oz.au> Sun, 14 Nov 1999 21:11:19 +1100
+
+mercury (0.8.1.rotd19991025-3) unstable; urgency=low
+
+ * Update documentation to mention new ROTD to build with.
+
+ -- Tyson Dowd <trd at cs.mu.oz.au> Mon, 1 Nov 1999 14:54:44 +1100
+
mercury (0.8.1.rotd19991025-2) unstable; urgency=low
* Modify path for bootstrapping from a local installation directory
--- mercury-0.8.1.rotd19991102.orig/debian/control
+++ mercury-0.8.1.rotd19991102/debian/control
@@ -2,7 +2,7 @@
Section: devel
Priority: optional
Maintainer: Tyson Dowd <trd at cs.mu.oz.au>
-Standards-Version: 2.4.1
+Standards-Version: 3.1.0.0
Package: mercury
Architecture: any
--- mercury-0.8.1.rotd19991102.orig/debian/dirs
+++ mercury-0.8.1.rotd19991102/debian/dirs
@@ -1,5 +1,5 @@
usr/bin
-usr/info
-usr/doc/mercury
+usr/share/info
+usr/share/doc/mercury
usr/lib
-usr/man/man1
+usr/share/man/man1
--- mercury-0.8.1.rotd19991102.orig/debian/rules
+++ mercury-0.8.1.rotd19991102/debian/rules
@@ -9,13 +9,17 @@
package=mercury
-MERCURY_DOCS = BUGS HISTORY LIMITATIONS NEWS README RELEASE_NOTES \
- README.Linux WORK_IN_PROGRESS
MERCURY_MANS = doc/c2init.1 doc/mmc.1 doc/mgnuc.1 doc/ml.1 \
doc/mprof.1
-DEBIAN_DOCS = debian/README.debian debian/copyright
+#DEBIAN_DOCS = debian/README.debian debian/copyright
-PATH := $(PATH):/usr/local/mercury-DEV/bin:/home/tyson/install/bin
+ # A local installation of Mercury. You might want to override
+ # this to be where you installed a Mercury compiler to bootstrap
+ # with. If you are building from an installed binary package in
+ # /usr/bin it shouldn't be a problem
+LOCAL_MERCURY_INSTALL = /home/tyson/install/bin
+
+PATH := $(PATH):/usr/local/mercury-DEV/bin:$(LOCAL_MERCURY_INSTALL)
# To build, configure as if we are going to install in /usr,
# then build the compiler.
@@ -36,9 +40,9 @@
-mmake realclean
-rm -f config.status config.cache config.log configure.log
-rm -f runtime/mercury_conf.h boehm_gc/mercury_boehm_gc_conf.h
- -rm -f bindist.build_vars bindist/bindist.build_vars
- -rm -f Mmake.common
- -rm -f configure
+ -rm -f bindist/bindist.build_vars
+ -rm -f make_all.log make_install.log mercury-compiler.spec
+ -rm -f Mmake.common configure
-rm -f `find . -name "*~"`
-rm -rf debian/tmp debian/files* core debian/substvars
@@ -51,6 +55,7 @@
# are architecture independent. But that's not really worth worrying
# about.
+
# To build the binary package, we install into ./debian/tmp/usr
# However, we have configured as if we are going to install into
# /usr, so we need to convince the "make install" target to
@@ -58,38 +63,33 @@
# We override INSTALL_PREFIX to tell it to install to ./debian/tmp/usr.
# Hardcoded paths should be depending on FINAL_INSTALL_PREFIX instead,
# which we leave configured for /usr.
-binary-arch: checkroot build
- $(checkdir)
- -rm -rf debian/tmp
- install -d debian/tmp
- cd debian/tmp;install -d `cat ../dirs`
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
make install INSTALL_PREFIX=`pwd`/debian/tmp/usr ;\
- cp boehm_gc/README debian/tmp/usr/doc/mercury/README.boehm_gc
-# According to debian policy, samples go in examples
- cp -r samples debian/tmp/usr/doc/mercury/examples
-# install the various information files into /usr/doc
- install -m 644 $(MERCURY_DOCS) $(DEBIAN_DOCS) debian/tmp/usr/doc/mercury
- install -m 644 debian/changelog \
- debian/tmp/usr/doc/mercury/changelog.Debian
-# install the manpages
- install -m 644 $(MERCURY_MANS) debian/tmp/usr/man/man1/
-# compress manpages, info pages, and html
- -gzip -9 `find debian/tmp/usr/man -type f 2>/dev/null`
- -gzip -9 `find debian/tmp/usr/info -type f`
- -gzip -9 `find debian/tmp/usr/doc -type f -size +4k ! -name "*.htm*"`
-# strip all executables
- strip `find debian/tmp -type f -perm +111 | xargs file | fgrep ELF | sed 's/^\([^:]*\):.*$$/\1/'`
-# create DEBIAN directory
- install -d debian/tmp/DEBIAN
-# install necessary scrips into debian directory
- install -m 755 debian/postinst debian/postrm debian/tmp/DEBIAN/
- # XXX not entirely sure what to do about the shlibs
- -dpkg-shlibdeps `find debian/tmp -type f -perm +111 | xargs file | fgrep ELF | sed 's/^\([^:]*\):.*$$/\1/'`
- md5sum `find debian/tmp/* -type f ! -regex "debian/tmp/DEBIAN/.*"` >debian/tmp/DEBIAN/checksums
- dpkg-gencontrol
- chown -R root.root debian/tmp
- chmod -R go=rX debian/tmp
- dpkg --build debian/tmp ..
+
+binary-arch: install
+ # cp boehm_gc/README debian/tmp/usr/share/doc/mercury/README.boehm_gc
+# We are probably going to have to override the installation directories
+# to put the documents into /usr/share/doc
+ dh_installdocs
+ dh_installexamples samples/*
+ dh_installmanpages
+
+# dh_undocumented undocumented commands
+
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_suidregister
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+
+ dh_md5sums
+ dh_builddeb
define checkdir
test -f debian/rules
--- mercury-0.8.1.rotd19991102.orig/debian/mercury.docs
+++ mercury-0.8.1.rotd19991102/debian/mercury.docs
@@ -0,0 +1,8 @@
+BUGS
+HISTORY
+LIMITATIONS
+NEWS
+README
+RELEASE_NOTES
+README.Linux
+WORK_IN_PROGRESS
--
Tyson Dowd #
# Surreal humour isn't eveyone's cup of fur.
trd at cs.mu.oz.au #
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list