rpms/ghc/devel ghc.spec,1.45,1.46

Jens Petersen petersen at fedoraproject.org
Fri Sep 26 07:14:44 UTC 2008


Author: petersen

Update of /cvs/extras/rpms/ghc/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20774

Modified Files:
	ghc.spec 
Log Message:
bring back %package_debugging for bos since it does "more" than --short-circuit



Index: ghc.spec
===================================================================
RCS file: /cvs/extras/rpms/ghc/devel/ghc.spec,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- ghc.spec	24 Sep 2008 08:03:22 -0000	1.45
+++ ghc.spec	26 Sep 2008 07:14:14 -0000	1.46
@@ -2,6 +2,18 @@
 %define build_prof 1
 %define build_doc 1
 
+# Fixing packaging problems can be a tremendous pain because it
+# generally requires a complete rebuild, which takes hours.  To offset
+# the misery, do a complete build once using "rpmbuild -bc", then copy
+# your built tree to a directory of the same name suffixed with
+# ".built", using "cp -al".  Finally, set this variable, and it will
+# copy the already-built tree into place during build instead of
+# actually doing the build.
+#
+# Obviously, this can only work if you leave the build section
+# completely untouched between builds.
+%define package_debugging 0
+
 Name:		ghc
 Version:	6.8.3
 Release:	5%{?dist}
@@ -69,6 +81,15 @@
 %patch0 -p1 -b .0-haddock~
 
 %build
+# hack for building a local test package quickly from a prebuilt tree 
+%if %{package_debugging}
+pushd ..
+rm -rf %{name}-%{version}
+cp -al %{name}-%{version}.built %{name}-%{version}
+popd
+exit 0
+%endif
+
 %if !%{build_prof}
 echo "GhcLibWays=" >> mk/build.mk
 echo "GhcRTSWays=thr debug" >> mk/build.mk




More information about the fedora-extras-commits mailing list