Ticket #8: target_os.dpatch

File target_os.dpatch, 8.0 kB (added by visq, 5 years ago)

Patch to enable target_os detection using autoconf

Line 
1Sun Apr 26 13:19:32 CEST 2009  benedikt.huber@gmail.com
2  * Add AC_CANONICAL_TARGET to configure.ac
3
4New patches:
5
6[Add AC_CANONICAL_TARGET to configure.ac
7benedikt.huber@gmail.com**20090426111932
8 Ignore-this: 8fd3d0066ed2138e06752e1b01074e24
9] {
10hunk ./src/generic/prepare.sh 28
11 cp tarball/packages/core.packages     "${IMAGE_DIR}/packages/"
12 cp tarball/scripts/*.sh               "${IMAGE_DIR}/scripts/"
13 cp tarball/scripts/config.in          "${IMAGE_DIR}/scripts/"
14+curl "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD"   \
15+    -o "${IMAGE_DIR}/scripts/config.sub"   || die "Failed to download config.sub"
16+curl "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD" \
17+    -o "${IMAGE_DIR}/scripts/config.guess" || die "Failed to download config.guess"
18 cp tarball/configure.ac tarball/Makefile "${IMAGE_DIR}/"
19 chmod +x "${IMAGE_DIR}/scripts/"*.sh
20 
21hunk ./src/generic/tarball/configure.ac 2
22 AC_INIT([haskell-platform],[2009.0.0])
23+AC_CONFIG_AUX_DIR([scripts])
24+AC_CANONICAL_TARGET
25 
26 # Sanity check:
27 AC_CONFIG_SRCDIR([packages/platform.packages])
28}
29
30Context:
31
32[Bump HTTP version: contains recent bug fix for cabal via proxies
33Don Stewart <dons@galois.com>**20090422092900
34 Ignore-this: ffbadd1a150780c0929e05379ce4a40f
35]
36[Drop OpenAL from first release, on advice of maintainer
37Don Stewart <dons@galois.com>**20090422092849
38 Ignore-this: 303b3be7092e57144008fe2803378102
39]
40[Check for zlib in configure
41Duncan Coutts <duncan@haskell.org>**20090419223803]
42[Fix location of config and name of prefix var
43Duncan Coutts <duncan@haskell.org>**20090419221828]
44[Switch to an autoconf based ./configure
45Duncan Coutts <duncan@haskell.org>**20090419195842]
46[Undo the breakage in the prepare script
47Duncan Coutts <duncan@haskell.org>**20090419161125]
48[Put mtl at the top of the list
49Don Stewart <dons@galois.com>**20090419154454
50 Ignore-this: ee0d0f54c6ce67c7f953ac33a81e01a4
51]
52[Fix the install.sh script
53Duncan Coutts <duncan@haskell.org>**20090419152250]
54[Echo another message during building
55Duncan Coutts <duncan@haskell.org>**20090419144823]
56[Do not clean each package before building
57Duncan Coutts <duncan@haskell.org>**20090419144804
58 Breaks happy package
59]
60[Specify location of happy for dependent packages
61Duncan Coutts <duncan@haskell.org>**20090419144747]
62[Keep the list of installed packages
63Duncan Coutts <duncan@haskell.org>**20090419144720]
64[Fix prepare script to set exe bits properly
65Duncan Coutts <duncan@haskell.org>**20090419144658]
66[Remove haddock from platform cabal file
67Duncan Coutts <duncan@haskell.org>**20090419144632
68 It's a core package distributed with ghc
69]
70[Correct package order, with tools
71Don Stewart <dons@galois.com>**20090419133755
72 Ignore-this: da1142966ed344acfc22d55ea71ad590
73]
74[Update the global pkgdb during install
75Lennart Kolmodin <kolmodin@gentoo.org>**20090419130149
76 Ignore-this: d69453c9d4fd9f1c8fae861d682d793f
77]
78[Add build tools to Build.hs
79Don Stewart <dons@galois.com>**20090419125513
80 Ignore-this: b0890c95d30aa18de14109418f7a8bdf
81]
82[Updates to the install script
83Duncan Coutts <duncan@haskell.org>**20090419124645]
84[Move tools into build tools
85Don Stewart <dons@galois.com>**20090419121600
86 Ignore-this: 997c3cb760043c27b3cd58dc8c7fd8d9
87]
88[Preserve permissions when makeing tarball image
89Duncan Coutts <duncan@haskell.org>**20090419122804]
90[Add prepare.sh file to make the tarball
91Duncan Coutts <duncan@haskell.org>**20090419122502]
92[Move some dirs about in the generic tarball stuff
93Duncan Coutts <duncan@haskell.org>**20090419121948]
94[./Build ../foo.cabal outdir
95Don Stewart <dons@galois.com>**20090419110937
96 Ignore-this: 851e637832ad0824e1260defc52a5ef3
97]
98[Move packages and scripts into subdirs
99Duncan Coutts <duncan@haskell.org>**20090419102528]
100[Update Makefile
101Duncan Coutts <duncan@haskell.org>**20090419082627]
102[More build updates
103Duncan Coutts <duncan@haskell.org>**20090419081858]
104[Updates to the build.sh
105Duncan Coutts <duncan@haskell.org>**20090419081630]
106[First go at updating the install.sh
107Duncan Coutts <duncan@haskell.org>**20090418172927]
108[Register packages into local packagedb, read vars from config.status, use shipped Cabal
109Lennart Kolmodin <kolmodin@gentoo.org>**20090418171729
110 Ignore-this: ab279fccc524657e8cd59b72e419c0a1
111]
112[Set the GHC and GHC_PKG vars in config.status
113Duncan Coutts <duncan@haskell.org>**20090418170741]
114[More configure updates
115Duncan Coutts <duncan@haskell.org>**20090418165207]
116[More updates to configure
117Duncan Coutts <duncan@haskell.org>**20090418163932]
118[Create a configure.env-vars file with values from flags passed to configure
119Lennart Kolmodin <kolmodin@gentoo.org>**20090418163500
120 Ignore-this: 7c5c23b1b74b63da14f6b68df5bbe5f3
121]
122[Build packages packages previously not installed
123Lennart Kolmodin <kolmodin@gentoo.org>**20090418153424
124 Ignore-this: bf6869fdef3f9a2d23105c1a2784fc81
125]
126[Comments for configure
127Lennart Kolmodin <kolmodin@gentoo.org>**20090418144633
128 Ignore-this: d5cf7de8542195845893affc30437667
129]
130[Do the checking in configure, not build.sh
131Lennart Kolmodin <kolmodin@gentoo.org>**20090418140445
132 Ignore-this: 70c905195341ae37152f92af80e23591
133]
134[Write platform.packages in install order
135Don Stewart <dons@galois.com>**20090418132144
136 Ignore-this: 32289f65ad00f90fb2645654cafa67cd
137]
138[Check ghc version to be correct
139Lennart Kolmodin <kolmodin@gentoo.org>**20090418132503
140 Ignore-this: 47b03dd1b8d87e4d5c45399ca92cffd
141]
142[Add core.packages
143Lennart Kolmodin <kolmodin@gentoo.org>**20090418132339
144 Ignore-this: 8ae0db32f86e61573969e4f909cfb6b9
145]
146[write platform.packages
147Don Stewart <dons@galois.com>**20090418124639
148 Ignore-this: 3620c08e25963a8ae48c945342c0eaf0
149]
150[Add Build.hs, currently generates 'cabal unpack' set
151Don Stewart <dons@galois.com>**20090418124303
152 Ignore-this: 492b55363b271d2b0fde5918d4df1882
153]
154[Make configure a bit more realistic
155Duncan Coutts <duncan@haskell.org>**20090418113633
156 We now assume:
157   core.packages      -- list of core packages
158   platform.packages  -- list of all packages to be installed
159]
160[Adjust makefile to use a build stamp (untested)
161Duncan Coutts <duncan@haskell.org>**20090418113612]
162[Check that core packages exists
163Lennart Kolmodin <kolmodin@gentoo.org>**20090418111016
164 Ignore-this: b7de97b842029f387721bd1e9eff563d
165]
166[Add skeliton Makefile
167Duncan Coutts <duncan@haskell.org>**20090418100900]
168[Add initial configure, build and install script templates
169Duncan Coutts <duncan@haskell.org>**20090418100823]
170[Improve description, add list of developer tools
171Don Stewart <dons@galois.com>**20090418092253
172 Ignore-this: 29bc0089232818c24c45c93fdaddc8d9
173]
174[Add cabal-install's bootstrap.sh
175Duncan Coutts <duncan@haskell.org>**20090417194859
176 as an initial version of the generic tarball installer's configure
177  and make script.
178]
179[Update to latest versions of packages
180Duncan Coutts <duncan@haskell.org>**20090417113937
181 hopefully final for 2009.0.0
182]
183[Update with core package list
184Don Stewart <dons@galois.com>**20090417110833
185 Ignore-this: 65f3ced901164a44f6c571b3e28efb45
186]
187[Add comments that alex and happy are required
188Duncan Coutts <duncan@haskell.org>**20090330084922]
189[Drop ALUT, it cannot be built on all platforms
190Duncan Coutts <duncan@haskell.org>**20090330084750]
191[Update HTTP and zlib version deps
192Duncan Coutts <duncan@haskell.org>**20090302224422]
193[The alut C lib is in the default OSX install
194Duncan Coutts <duncan@haskell.org>**20081123235707
195 drop it from the platform for OSX
196]
197[Update versions of extralibs to match ghc-6.10.1 release
198Duncan Coutts <duncan@haskell.org>**20081123150705
199 Or latest hackage versions for packages that were in extralibs
200 in ghc-6.8.x but are not included with ghc-6.10.x.
201]
202[Bump versions of extralib packages to most recent thiiings
203Don Stewart <dons@galois.com>**20081001034300]
204[versioning
205Don Stewart <dons@galois.com>**20080930235133]
206[Update the list of platform packages
207Duncan Coutts <duncan@haskell.org>**20080827202356]
208[Use standard Setup.hs
209Duncan Coutts <duncan@haskell.org>**20080827195945]
210[Initial sketch of HP
211Don Stewart <dons@galois.com>**20080724190320]
212Patch bundle hash:
2137e6baa1169491237baa2f9cce7e31f881166ea8b