~openjdk/openjdk/openjdk6

1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1
#!/usr/bin/make -f
2
# -*- makefile -*-
3
4
# Uncomment this to turn on verbose mode.
5
#export DH_VERBOSE=1
6
7
unexport LANG LC_ALL
8
9
SHELL = /bin/bash
10
186 by Matthias Klose
* Allow configuration with --with-cacao.
11
vafilt = $(subst $(2)=,,$(filter $(2)=%,$(1)))
12
13
DPKG_VARS		:= $(shell dpkg-architecture)
14
DEB_HOST_GNU_TYPE	?= $(call vafilt,$(DPKG_VARS),DEB_HOST_GNU_TYPE)
15
DEB_BUILD_GNU_TYPE	?= $(call vafilt,$(DPKG_VARS),DEB_BUILD_GNU_TYPE)
16
DEB_HOST_ARCH		?= $(call vafilt,$(DPKG_VARS),DEB_HOST_ARCH)
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
17
DEB_HOST_MULTIARCH	?= $(call vafilt,$(DPKG_VARS),DEB_HOST_MULTIARCH)
186 by Matthias Klose
* Allow configuration with --with-cacao.
18
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
19
PATH := $(CURDIR)/bin:$(PATH)
20
export PATH
255 by Matthias Klose
* Update IcedTea build infrastructure (20081006).
21
186 by Matthias Klose
* Allow configuration with --with-cacao.
22
CHANGELOG_VARS := $(shell dpkg-parsechangelog | sed -n 's/ /_/g;/^[^_]/s/^\([^:]*\):_\(.*\)/\1=\2/p')
23
PKGSOURCE := $(call vafilt,$(CHANGELOG_VARS),Source)
298 by Matthias Klose
* openjdk-jre-headless: Depend on ca-certificates-java.
24
PKGVERSION := $(call vafilt,$(CHANGELOG_VARS),Version)
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
25
383 by Matthias Klose
* Fix dependency on the java bridge packages.
26
distribution := $(shell lsb_release --id --short)
27
distrel := $(shell lsb_release --codename --short)
453 by Matthias Klose
openjdk-6 (6b20-1.9-0ubuntu1) maverick; urgency=low
28
ifeq ($(distrel),n/a)
29
  distrel := sid
30
endif
383 by Matthias Klose
* Fix dependency on the java bridge packages.
31
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
32
multiarch_dir = /$(DEB_HOST_MULTIARCH)
33
ifneq (,$(DEB_HOST_MULTIARCH))
494 by Matthias Klose
openjdk-6 (6b23~pre10-0ubuntu1) oneiric; urgency=low
34
  ifneq (,$(filter $(distrel),natty oneiric))
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
35
    DEB_HOST_MULTIARCH =
36
    multiarch_dir =
37
  endif
38
endif
39
405 by Matthias Klose
* Update IcedTea build infrastructure (20100114, 1.7 branch).
40
hotspot_archs	= amd64 i386 lpia sparc sparc64
383 by Matthias Klose
* Fix dependency on the java bridge packages.
41
# requires llvm; llvm in jaunty is recent enough, but in universe
42
ifeq (,$(filter $(distrel),lenny jaunty intrepid hardy gutsy feisty edgy dapper))
43
  shark_archs	= amd64 i386 lpia
507 by Matthias Klose
openjdk-6 (6b24~pre4-1ubuntu1) precise; urgency=low
44
  shark_archs	=
383 by Matthias Klose
* Fix dependency on the java bridge packages.
45
endif
358 by Matthias Klose
* Update to hotspot hs14b15.
46
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
47
VENDOR		= openjdk
48
Vendor		= OpenJDK
49
TOP		= usr/lib/jvm
50
origin		= openjdk
51
basename	= openjdk-$(shortver)
52
ifneq (,$(filter $(DEB_HOST_ARCH), $(hotspot_archs)))
53
  priority	= 1061
54
  vm_name	= Hotspot JIT
55
else ifneq (,$(filter $(DEB_HOST_ARCH), $(shark_archs)))
56
  priority	= 1059
57
  vm_name	= Hotspot Shark
58
else
59
  priority	= 1057
60
  vm_name	= Hotspot Zero
61
endif
62
p_lib_arch	= all
63
jvmver		= 1.6.0
64
shortver	= 6
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
65
ifneq (,$(DEB_HOST_MULTIARCH))
66
  jdirname	= java-$(shortver)-$(origin)-$(DEB_HOST_ARCH)
67
  jdiralias	= java-$(jvmver)-$(origin)-$(DEB_HOST_ARCH)
68
  basedir	= $(TOP)/$(jdirname)
491 by Matthias Klose
openjdk-6 (6b23~pre9-1) unstable; urgency=low
69
  commonbasedir	= $(TOP)/java-$(shortver)-$(origin)-common
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
70
  etcdir	= etc/java-$(shortver)-$(origin)
71
else
72
  jdirname	= java-$(shortver)-$(origin)
496 by Matthias Klose
* Fix dangling java-1.6.0-openjdk symlink for non-multiarch builds.
73
  jdiralias	= java-$(jvmver)-$(origin)
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
74
  basedir	= $(TOP)/$(jdirname)
75
  commonbasedir	= $(TOP)/java-$(shortver)-$(origin)
76
  etcdir	= etc/$(jdirname)
77
endif
78
security	= $(etcdir)/security
443 by Matthias Klose
openjdk-6 (6b20~pre1-0ubuntu2) maverick; urgency=low
79
jreimg		= openjdk.build/j2re-image
80
sdkimg		= openjdk.build/j2sdk-image
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
81
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
82
# Support parallel=<n> in DEB_BUILD_OPTIONS (see #209008)
83
COMMA=,
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
84
SPACE = $(EMPTY) $(EMPTY)
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
85
ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
147 by Matthias Klose
* Explicitely configure --with-parallel-jobs, needed by the updated IcedTea.
86
  NJOBS = $(subst parallel=,,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
87
  HOTSPOT_BUILD_JOBS = $(NJOBS)
88
  ALT_PARALLEL_COMPILE_JOBS = $(NJOBS)
89
  export HOTSPOT_BUILD_JOBS
90
  export ALT_PARALLEL_COMPILE_JOBS
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
91
endif
147 by Matthias Klose
* Explicitely configure --with-parallel-jobs, needed by the updated IcedTea.
92
93
# make the build log comparable
94
#export HOTSPOT_BUILD_JOBS = 1
95
#export ALT_PARALLEL_COMPILE_JOBS = 1
96
34 by Matthias Klose
* Build-depend on mauve and xvfb; run some mauve tests (the list of
97
with_check = $(if $(findstring nocheck, $(DEB_BUILD_OPTIONS)),,yes)
196 by Matthias Klose
* debian/patches/const_strings.patch, debian/patches/issue-6659207.diff:
98
with_docs = $(if $(findstring nodocs, $(DEB_BUILD_OPTIONS)),,yes)
325 by Matthias Klose
- support the build of shark based packages
99
ifneq (,$(findstring cacao shark, $(PKGSOURCE)))
100
  with_docs = disabled for cacao and shark
210 by Matthias Klose
- cacao related updates
101
endif
255 by Matthias Klose
* Update IcedTea build infrastructure (20081006).
102
383 by Matthias Klose
* Fix dependency on the java bridge packages.
103
with_wgy_zenhai = $(if $(filter $(distrel),lenny gutsy feisty edgy dapper),,yes)
132 by Matthias Klose
* Recommend the ttf-wqy-zenhei font instead of ttf-arphic-uming, if the
104
558 by Matthias Klose
openjdk-6 (6b29-1.13.0-2) UNRELEASED; urgency=medium
105
arch_map	:= alpha=alpha arm=arm armel=arm armhf=arm arm64=aarch64 amd64=amd64 hppa=parisc i386=i586 lpia=i586 m68k=m68k mips=mips mipsel=mipsel powerpc=ppc powerpcspe=ppc ppc64=ppc64 ppc64el=ppc64le sparc=sparc sparc64=sparc64 sh4=sh s390=s390 s390x=s390x ia64=ia64
106
archdir_map	:= alpha=alpha arm=arm armel=arm armhf=arm arm64=aarch64 amd64=amd64 hppa=parisc i386=i386 lpia=i386 m68k=m68k mips=mips mipsel=mipsel powerpc=ppc powerpcspe=ppc ppc64=ppc64 ppc64el=ppc64le sparc=sparc sparc64=sparcv9 sh4=sh s390=s390 s390x=s390x ia64=ia64
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
107
108
jvmarch		:= $(strip $(patsubst $(DEB_HOST_ARCH)=%, %, \
109
			$(filter $(DEB_HOST_ARCH)=%, $(arch_map))))
110
archdir		:= $(strip $(patsubst $(DEB_HOST_ARCH)=%, %, \
111
			$(filter $(DEB_HOST_ARCH)=%, $(archdir_map))))
112
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
113
default_vm = $(if $(filter $(DEB_HOST_ARCH), $(hotspot_archs)),hotspot,zero)
114
558 by Matthias Klose
openjdk-6 (6b29-1.13.0-2) UNRELEASED; urgency=medium
115
stage1_gcj_archs = amd64 armel armhf arm64 hppa i386 ia64 lpia powerpc powerpcspe ppc64 ppc64el m68k mips mipsel sh4 sparc sparc64 s390 s390x
551 by Matthias Klose
openjdk-6 (6b27-1.12.3-1) unstable; urgency=high
116
stage1_openjdk_archs = alpha
247 by Matthias Klose
* Update cacao based builds:
117
stage1_cacao_archs =
432 by Matthias Klose
* Update IcedTea6 to the icedtea6-1.8 release.
118
ifneq (,$(filter nobootstrap, $(DEB_BUILD_OPTIONS)))
119
  stage1_openjdk_archs := $(stage1_openjdk_archs) $(stage1_gcj_archs)
120
  stage1_gcj_archs :=
121
else ifneq (,$(filter $(distrel),hardy jaunty))
446 by Matthias Klose
* Include docs in the -doc package. LP: #600834.
122
  stage1_openjdk_archs := $(filter-out armel, $(stage1_openjdk_archs) $(stage1_gcj_archs))
123
  stage1_gcj_archs := armel
453 by Matthias Klose
openjdk-6 (6b20-1.9-0ubuntu1) maverick; urgency=low
124
else ifneq (,$(filter $(distrel),lenny))
125
  stage1_gcj_archs := $(filter-out ia64, $(stage1_gcj_archs))
126
  stage1_openjdk_archs := $(stage1_openjdk_archs) ia64
422 by Matthias Klose
Build changes for building on dapper
127
endif
247 by Matthias Klose
* Update cacao based builds:
128
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
129
ifeq (,$(filter $(distrel),lenny intrepid hardy gutsy feisty edgy dapper))
503 by Matthias Klose
* Enable CACAO on armhf.
130
  cacao_archs = alpha amd64 armel armhf i386 lpia powerpc m68k mips mipsel s390
421 by Matthias Klose
* Build-depend on xulrunner-1.9.2-dev instead of xulrunner-dev,
131
endif
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
132
ifeq (,$(filter $(distrel),squeeze lenny maverick lucid karmic hardy dapper))
521 by Matthias Klose
* Build jamvm on powerpc.
133
  jamvm_archs = amd64 armel armhf i386 lpia mips mipsel powerpc
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
134
endif
522 by Matthias Klose
openjdk-6 (6b24-1.11.1-1) unstable; urgency=medium
135
#ifeq (,$(filter $(distrel),wheezy sid squeeze lenny maverick natty maverick lucid karmic hardy dapper))
136
#  jamvm_defaults = armel armhf
137
#endif
421 by Matthias Klose
* Build-depend on xulrunner-1.9.2-dev instead of xulrunner-dev,
138
393 by Matthias Klose
* On armel and powerpc, build an additional VM using shark in the
139
# requires patched llvm-2.6
401 by Matthias Klose
* Update IcedTea build infrastructure (20091215).
140
ifeq (,$(filter $(distrel),lenny jaunty intrepid hardy gutsy feisty edgy dapper))
443 by Matthias Klose
openjdk-6 (6b20~pre1-0ubuntu2) maverick; urgency=low
141
  # FIXME: armel currently doesn't work
466 by Matthias Klose
openjdk-6 (6b22-1.10-0ubuntu1) natty; urgency=low
142
  altshark_archs = powerpc ppc64
507 by Matthias Klose
openjdk-6 (6b24~pre4-1ubuntu1) precise; urgency=low
143
  altshark_archs =
393 by Matthias Klose
* On armel and powerpc, build an additional VM using shark in the
144
endif
405 by Matthias Klose
* Update IcedTea build infrastructure (20100114, 1.7 branch).
145
altzero_archs = $(filter-out sparc sparc64, $(hotspot_archs)) $(altshark_archs)
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
146
ifneq (,$(filter $(distrel),lenny dapper hardy intrepid))
147
  altzero_archs =
148
  altshark_archs =
149
endif
332 by Matthias Klose
* Update hotspot to 14.0-b10.
150
432 by Matthias Klose
* Update IcedTea6 to the icedtea6-1.8 release.
151
ifeq (,$(filter noaltcacao, $(DEB_BUILD_OPTIONS)))
152
  ifneq (,$(filter $(DEB_HOST_ARCH), $(cacao_archs)))
153
    alternate_vms += cacao
154
  endif
155
endif
156
ifeq (,$(filter noaltzero, $(DEB_BUILD_OPTIONS))$(filter noaltshark, $(DEB_BUILD_OPTIONS)))
157
  ifneq (,$(filter $(DEB_HOST_ARCH), $(altzero_archs)))
158
    ifneq (,$(filter $(DEB_HOST_ARCH), $(shark_archs) $(altshark_archs)))
159
      alternate_vms += shark
160
      zero_dir = shark
161
    else
162
      alternate_vms += zero
163
      zero_dir = zero
164
    endif
165
  endif
166
endif
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
167
ifeq (,$(filter noaltjamvm, $(DEB_BUILD_OPTIONS)))
168
  ifneq (,$(filter $(DEB_HOST_ARCH), $(jamvm_archs)))
169
    alternate_vms += jamvm
170
  endif
171
endif
432 by Matthias Klose
* Update IcedTea6 to the icedtea6-1.8 release.
172
247 by Matthias Klose
* Update cacao based builds:
173
ifneq (,$(filter $(DEB_HOST_ARCH), $(stage1_gcj_archs)))
174
  STAGE1_JAVA = gcj
422 by Matthias Klose
Build changes for building on dapper
175
  ifneq (,$(filter $(distrel),dapper))
176
    STAGE1_HOME = /usr/lib/jvm/java-1.5.0-gcj-4.5-snap
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
177
    #STAGE1_HOME = /usr/lib/jvm/java-1.5.0-gcj-4.4
422 by Matthias Klose
Build changes for building on dapper
178
  else
179
    STAGE1_HOME = /usr/lib/jvm/java-gcj
180
  endif
247 by Matthias Klose
* Update cacao based builds:
181
else ifneq (,$(filter $(DEB_HOST_ARCH), $(stage1_openjdk_archs)))
103.1.5 by Matthias Klose
* Enable bootstrap/normal builds per architecture.
182
  STAGE1_JAVA = openjdk
497 by Matthias Klose
- Don't use the broken symlink to build with OpenJDK as stage1 compiler
183
  STAGE1_HOME = $(firstword $(wildcard /usr/lib/jvm/java-6-openjdk-$(DEB_HOST_ARCH) /usr/lib/jvm/java-6-openjdk))
247 by Matthias Klose
* Update cacao based builds:
184
else ifneq (,$(filter $(DEB_HOST_ARCH), $(stage1_cacao_archs)))
185
  STAGE1_JAVA = cacao
186
  STAGE1_HOME = /usr/lib/jvm/java-6-cacao
103.1.5 by Matthias Klose
* Enable bootstrap/normal builds per architecture.
187
else
247 by Matthias Klose
* Update cacao based builds:
188
  $(error unknown bootstrap method for architecture $(DEB_HOST_ARCH))
103.1.5 by Matthias Klose
* Enable bootstrap/normal builds per architecture.
189
endif
247 by Matthias Klose
* Update cacao based builds:
190
574 by Matthias Klose
openjdk-6 (6b39-1.13.11-1) experimental; urgency=medium
191
OPENJDK_VERSION = b39
192
OPENJDK_SRC_ZIP = openjdk-6-src-$(OPENJDK_VERSION)-03_may_2016.tar.xz
110 by Matthias Klose
* Differentiate between the openjdk version required as dependency and
193
# the version of the build dependency for non-bootstrap builds; only adjust if
194
# the package is installable on all these architectures.
558 by Matthias Klose
openjdk-6 (6b29-1.13.0-2) UNRELEASED; urgency=medium
195
req_openjdk_bd_ver = 6b27
196
req_openjdk_ver = 6b27
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
197
28 by Matthias Klose
openjdk-6 (6b06-0ubuntu1) hardy; urgency=low
198
unexport CFLAGS CXXFLAGS CPPFLAGS FFLAGS LDFLAGS
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
199
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
200
ifneq (,$(filter $(distrel),dapper))
201
  #GCJ_SUFFIX = -4.4
202
  #ifneq (,$(filter $(DEB_HOST_ARCH), i386 lpia))
203
  #  export GCC_SUFFIX = -4.0
204
  #endif
205
  #ifneq (,$(filter $(DEB_HOST_ARCH), amd64 powerpc sparc))
206
  #  export GCC_SUFFIX = -4.0
207
  #endif
208
else ifneq (,$(filter $(distrel),hardy gutsy feisty edgy dapper))
135 by Matthias Klose
* Use GCC-4.3 on all platforms where available.
209
  ifneq (,$(filter $(DEB_HOST_ARCH), i386 lpia))
210
    export GCC_SUFFIX = -4.1
211
    GCJ_SUFFIX = -4.2
212
  endif
149 by Matthias Klose
* Backport the linux-sparc patches, enable building on sparc.
213
  ifneq (,$(filter $(DEB_HOST_ARCH), amd64 powerpc sparc))
135 by Matthias Klose
* Use GCC-4.3 on all platforms where available.
214
    export GCC_SUFFIX = -4.2
215
  endif
370 by Matthias Klose
* Build using GCC-4.4 on sparc as well, require 4.4.1.
216
else ifneq (,$(filter $(distrel),lenny intrepid jaunty))
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
217
  export GCC_SUFFIX = -4.3
218
  export GCJ_SUFFIX = -4.3
467 by Matthias Klose
openjdk-6 (6b22-1.10-3) experimental; urgency=low
219
else ifneq (,$(filter $(distrel),squeeze karmic lucid maverick))
347 by Matthias Klose
openjdk-6 (6b16~pre1-0ubuntu1) karmic; urgency=low
220
  export GCC_SUFFIX = -4.4
221
  export GCJ_SUFFIX = -4.4
470 by Matthias Klose
openjdk-6 (6b23~pre1-0ubuntu2) oneiric; urgency=low
222
else ifneq (,$(filter $(distrel),natty))
223
  export GCC_SUFFIX = -4.5
224
  export GCJ_SUFFIX = -4.5
556 by Matthias Klose
openjdk-6 (6b27-1.12.6-1) unstable; urgency=high
225
else ifneq (,$(filter $(distrel),wheezy quantal raring))
534 by Matthias Klose
openjdk-6 (6b24-1.11.1-4) unstable; urgency=low
226
  export GCC_SUFFIX = -4.7
227
  export GCJ_SUFFIX = -4.7
536 by Matthias Klose
openjdk-6 (6b24-1.11.1-6) unstable; urgency=low
228
  ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel))
229
    export GCC_SUFFIX = -4.4
230
  endif
541 by Matthias Klose
[ Thorsten Glaser ]
231
  ifneq (,$(filter $(DEB_HOST_ARCH), m68k s390))
536 by Matthias Klose
openjdk-6 (6b24-1.11.1-6) unstable; urgency=low
232
    export GCJ_SUFFIX = -4.6
233
  endif
477 by Matthias Klose
openjdk-6 (6b23~pre3-0ubuntu2) oneiric; urgency=low
234
else ifneq (,$(filter $(distrel),oneiric))
235
  export GCC_SUFFIX = -4.6
236
  export GCJ_SUFFIX = -4.6
485 by Matthias Klose
openjdk-6 (6b23~pre6-1) unstable; urgency=low
237
  ifneq (,$(filter $(DEB_HOST_ARCH), armel armhf))
477 by Matthias Klose
openjdk-6 (6b23~pre3-0ubuntu2) oneiric; urgency=low
238
    export GCC_SUFFIX = -4.5
239
  endif
536 by Matthias Klose
openjdk-6 (6b24-1.11.1-6) unstable; urgency=low
240
else ifneq (,$(filter $(distrel),precise))
470 by Matthias Klose
openjdk-6 (6b23~pre1-0ubuntu2) oneiric; urgency=low
241
  export GCC_SUFFIX = -4.6
242
  export GCJ_SUFFIX = -4.6
564 by Matthias Klose
openjdk-6 (6b32-1.13.4-4) unstable; urgency=medium
243
else ifneq (,$(filter $(distrel),saucy trusty))
556 by Matthias Klose
openjdk-6 (6b27-1.12.6-1) unstable; urgency=high
244
  export GCC_SUFFIX = -4.8
245
  export GCJ_SUFFIX = -4.8
564 by Matthias Klose
openjdk-6 (6b32-1.13.4-4) unstable; urgency=medium
246
else
247
  export GCC_SUFFIX = -4.9
248
  export GCJ_SUFFIX = -4.9
21 by Matthias Klose
- build using GCC-4.1/4.2 on hardy
249
endif
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
250
503 by Matthias Klose
* Enable CACAO on armhf.
251
ifneq (,$(filter $(DEB_HOST_ARCH), armel armhf))
373 by Matthias Klose
openjdk-6 (6b16-1.6~pre1-0ubuntu1) karmic; urgency=low
252
ifeq ($(distribution),Ubuntu)
446 by Matthias Klose
* Include docs in the -doc package. LP: #600834.
253
  ifneq (,$(filter $(distrel),jaunty))
254
    OPT_CFLAGS/cppInterpreter_arm.o = -O2 -falign-functions=32 -falign-loops=8 -g0
451 by Matthias Klose
- build the ARM assembler interpreter in arm mode
255
  else
446 by Matthias Klose
* Include docs in the -doc package. LP: #600834.
256
    OPT_CFLAGS/cppInterpreter_arm.o = -march=armv6 -mtune=cortex-a8 -O2 -falign-functions=64 -falign-loops=8 -g0
257
  endif
373 by Matthias Klose
openjdk-6 (6b16-1.6~pre1-0ubuntu1) karmic; urgency=low
258
else
259
  OPT_CFLAGS/cppInterpreter_arm.o = -O2 -falign-functions=32 -falign-loops=8 -g0
260
endif
261
export OPT_CFLAGS/cppInterpreter_arm.o
503 by Matthias Klose
* Enable CACAO on armhf.
262
endif
373 by Matthias Klose
openjdk-6 (6b16-1.6~pre1-0ubuntu1) karmic; urgency=low
263
383 by Matthias Klose
* Fix dependency on the java bridge packages.
264
ifeq (,$(filter $(distrel),lenny intrepid hardy gutsy feisty edgy dapper))
305 by Matthias Klose
openjdk-6 (6b13~pre1-0ubuntu3) jaunty; urgency=low
265
  with_pulse = yes
266
endif
265 by Matthias Klose
* Update IcedTea build infrastructure (20081011).
267
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
268
ifneq (,$(filter $(distrel),dapper))
269
  with_bridge =
508 by Matthias Klose
[ Luke Yelavich ]
270
else ifneq (,$(filter $(distrel),lenny jaunty intrepid hardy gutsy feisty edgy))
271
  with_bridge =
272
else ifneq (,$(filter $(distrel),squeeze karmic lucid maverick natty oneiric))
273
  with_bridge = bridge
358 by Matthias Klose
* Update to hotspot hs14b15.
274
  with_jni_bridge = yes
508 by Matthias Klose
[ Luke Yelavich ]
275
else
276
  with_bridge = atk
358 by Matthias Klose
* Update to hotspot hs14b15.
277
endif
278
453 by Matthias Klose
openjdk-6 (6b20-1.9-0ubuntu1) maverick; urgency=low
279
ifeq (,$(filter $(distrel),lenny karmic jaunty intrepid hardy gutsy feisty edgy dapper))
391 by Matthias Klose
* Support PKCS11 cryptography via NSS, now allowing import of all
280
  with_nss = yes
281
endif
282
574 by Matthias Klose
openjdk-6 (6b39-1.13.11-1) experimental; urgency=medium
283
ifneq (,$(filter $(distrel),squeeze wheezy jessie lucid precise trusty vivid wily))
284
  # use the timezone files from tzdata-java
454 by Matthias Klose
openjdk-6 (6b20-1.9-1) experimental; urgency=low
285
  with_tzdata = yes
286
endif
287
558 by Matthias Klose
openjdk-6 (6b29-1.13.0-2) UNRELEASED; urgency=medium
288
ifneq (,$(filter $(distrel),lenny squeeze natty maverick lucid karmic jaunty intrepid hardy))
289
  lcms_version = 1
290
else
291
  lcms_version = 2
292
endif
470 by Matthias Klose
openjdk-6 (6b23~pre1-0ubuntu2) oneiric; urgency=low
293
430 by Matthias Klose
* Start a window manager when running the tests. Prefer metacity,
294
on_buildd := $(shell [ -f /CurrentlyBuilding -o "$$LOGNAME" = buildd ] && echo yes)
295
296
ifeq ($(distribution),Debian)
297
  with_wm = $(notdir $(firstword $(wildcard /usr/bin/metacity /usr/bin/twm)))
449 by Matthias Klose
- fix testsuite runs using metacity.
298
  ifneq (,$(findstring twm, $(with_wm)))
472 by Matthias Klose
openjdk-6 (6b23~pre2-0ubuntu1) oneiric; urgency=low
299
    with_wm_args = -f $(CURDIR)/bin/jtreg.tmwrc
449 by Matthias Klose
- fix testsuite runs using metacity.
300
  endif
460.1.1 by Matthias Klose
6b20-1.9.2-1 upload
301
  bd_wm = metacity | twm, dbus-x11 | twm,
485 by Matthias Klose
openjdk-6 (6b23~pre6-1) unstable; urgency=low
302
  bd_wm = twm | metacity, twm | dbus-x11,
430 by Matthias Klose
* Start a window manager when running the tests. Prefer metacity,
303
else
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
304
  with_wm = $(notdir $(firstword $(wildcard /usr/bin/metacity /usr/bin/twm)))
430 by Matthias Klose
* Start a window manager when running the tests. Prefer metacity,
305
  with_wm_args =
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
306
  ifneq (,$(findstring twm, $(with_wm)))
472 by Matthias Klose
openjdk-6 (6b23~pre2-0ubuntu1) oneiric; urgency=low
307
    with_wm_args = -f $(CURDIR)/bin/jtreg.tmwrc
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
308
  endif
558 by Matthias Klose
openjdk-6 (6b29-1.13.0-2) UNRELEASED; urgency=medium
309
  ifneq (,$(filter $(distrel),saucy raring quantal precise oneiric natty maverick lucid karmic jaunty intrepid hardy))
310
    bd_wm = metacity | twm, dbus-x11,
311
  else
312
    bd_wm = twm,
313
  endif
460.1.1 by Matthias Klose
6b20-1.9.2-1 upload
314
  ifeq (,$(filter $(distrel),etch dapper dapper))
315
    bd_wm += dbus-x11,
316
  endif
317
endif
318
ifeq ($(with_wm),metacity)
485 by Matthias Klose
openjdk-6 (6b23~pre6-1) unstable; urgency=low
319
  with_wm_prefix = dbus-launch --exit-with-session
430 by Matthias Klose
* Start a window manager when running the tests. Prefer metacity,
320
endif
321
383 by Matthias Klose
* Fix dependency on the java bridge packages.
322
#ifeq (,$(filter $(distrel),lenny jaunty intrepid hardy gutsy feisty edgy dapper))
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
323
#  with_systemtap = yes
324
#endif
325
406 by Torsten Werner
commit missing changes
326
with_hotspot = original
476 by Matthias Klose
openjdk-6 (6b23~pre3-0ubuntu1) oneiric; urgency=low
327
#ifneq (,$(filter $(DEB_HOST_ARCH), amd64 i386 lpia powerpc ppc64))
328
#  with_hotspot = hs20
329
#endif
383 by Matthias Klose
* Fix dependency on the java bridge packages.
330
405 by Matthias Klose
* Update IcedTea build infrastructure (20100114, 1.7 branch).
331
ifneq (,$(filter $(DEB_HOST_ARCH), sparc64))
332
  export DISABLE_PRECOMPILED_HEADER=1
333
endif
334
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
335
ifeq (,$(filter $(distrel), dapper))
336
  DISTRIBUTION_PATCHES += \
337
	debian/patches/ld-symbolic-functions.diff
338
endif
383 by Matthias Klose
* Fix dependency on the java bridge packages.
339
DISTRIBUTION_PATCHES += \
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
340
	debian/patches/set-exec-name-$(with_hotspot).diff \
79.1.7 by Torsten Werner
actually apply the shebang patch
341
	debian/patches/shebang.diff \
87 by Torsten Werner
Add patch jexec.diff to make the jexec binary without specifying an
342
	debian/patches/jexec.diff \
150 by Matthias Klose
* Don't use an absolute path calling the compiler.
343
	debian/patches/no-compiler-path.diff \
284 by Matthias Klose
* Don't configure --with-alt-jar=/usr/bin/fastjar on hotspot archs
344
	debian/patches/jdk-freetypeScaler-crash.diff \
294 by Matthias Klose
openjdk-6 (6b12-0) experimental; urgency=low
345
	debian/patches/icedtea-pretend-memory.diff \
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
346
	debian/patches/default-jvm-cfg-$(with_hotspot).diff \
320 by Matthias Klose
openjdk-6 (6b14-0ubuntu5) jaunty; urgency=low
347
	debian/patches/nonreparenting-wm.diff \
344 by Matthias Klose
* Merge changes from 6b14-1.4.1.
348
	debian/patches/accessible-toolkit.patch \
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
349
508 by Matthias Klose
[ Luke Yelavich ]
350
ifeq ($(with_bridge),atk)
351
    DISTRIBUTION_PATCHES += \
352
	debian/patches/atk-wrapper-security.patch
353
else ifneq (,$(with_bridge))
354
    DISTRIBUTION_PATCHES += \
355
	debian/patches/java-access-bridge-security.patch
356
endif
357
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
358
DISTRIBUTION_PATCHES += \
453 by Matthias Klose
openjdk-6 (6b20-1.9-0ubuntu1) maverick; urgency=low
359
	debian/patches/icedtea-override-redirect-compiz.patch \
438 by Matthias Klose
* Add powerpcspe build fixes (Sebastian Andrzej Siewior). Closes: #586359.
360
	debian/patches/zero-only-use-floating-point-if-floating-poi.patch \
446 by Matthias Klose
* Include docs in the -doc package. LP: #600834.
361
	debian/patches/icedtea-4953367.patch \
362
	debian/patches/fontconfig-wqy-microhei.patch \
493 by Damien Raude-Morvan
d/patches/icc_loading_with_symlink.diff: Try to fix loading of ICC profile
363
	debian/patches/icc_loading_with_symlink.diff \
526 by Matthias Klose
* Fix crash in java.net.NetworkInterface.getNetworkInterfaces() when
364
	debian/patches/enumipv6-fix.patch \
534 by Matthias Klose
openjdk-6 (6b24-1.11.1-4) unstable; urgency=low
365
	debian/patches/libpcsclite-dlopen.diff \
542 by Matthias Klose
[ Thorsten Glaser ]
366
	debian/patches/m68k-text-relocations.diff \
558 by Matthias Klose
openjdk-6 (6b29-1.13.0-2) UNRELEASED; urgency=medium
367
	debian/patches/add-zero-ports.diff \
574 by Matthias Klose
openjdk-6 (6b39-1.13.11-1) experimental; urgency=medium
368
	debian/patches/hotspot-disable-arm32-jit.diff \
570 by Matthias Klose
* Fix applaying the fontconfig-dejavu patch for older releases.
369
370
ifneq (,$(filter $(distrel),squeeze wheezy lucid maverick natty oneiric precise quantal raring))
371
  DISTRIBUTION_PATCHES += \
372
	debian/patches/fontconfig-dejavu.diff
373
endif
558 by Matthias Klose
openjdk-6 (6b29-1.13.0-2) UNRELEASED; urgency=medium
374
375
ifneq (,$(filter $(DEB_HOST_ARCH), sparc sparc64))
376
  export COMPILER_WARNINGS_FATAL = false
377
endif
378
379
ifeq ($(DEB_HOST_ARCH),arm64)
380
    DISTRIBUTION_PATCHES += debian/patches/hotspot-fork.diff
381
endif
536 by Matthias Klose
openjdk-6 (6b24-1.11.1-6) unstable; urgency=low
382
550 by Matthias Klose
* Fix fontconfig definitions for japanese and korean fonts, fixing
383
ifeq ($(DEB_HOST_ARCH),armel)
384
  ifeq ($(distrel),quantal)
385
    DISTRIBUTION_PATCHES += debian/patches/cacao-armv4.diff
386
  else ifeq ($(distribution),Debian)
387
    DISTRIBUTION_PATCHES += debian/patches/cacao-armv4.diff
388
  endif
389
endif
400 by Matthias Klose
prepare 6b17~pre2-1 upload
390
422 by Matthias Klose
Build changes for building on dapper
391
# FIXME needs an update:
392
#	$(if $(with_wgy_zenhai),,debian/patches/fontconfig-arphic-uming.diff) \
393
525 by Matthias Klose
* Use NanumMyeongjo as the preferred korean font. LP: #792471.
394
ifeq (,$(filter $(distrel),lenny squeeze oneiric natty maverick lucid jaunty intrepid hardy gutsy feisty edgy dapper))
528 by Matthias Klose
* Use IPAfont as the preferred japanesse font. Closes: #646054.
395
  DISTRIBUTION_PATCHES += \
396
	debian/patches/fontconfig-korean-nanum.diff \
397
	debian/patches/fontconfig-japanese.diff
525 by Matthias Klose
* Use NanumMyeongjo as the preferred korean font. LP: #792471.
398
endif
399
405 by Matthias Klose
* Update IcedTea build infrastructure (20100114, 1.7 branch).
400
#	debian/patches/sparc-inline.diff \
432 by Matthias Klose
* Update IcedTea6 to the icedtea6-1.8 release.
401
#	debian/patches/pkcs11-secmod-debug.diff \
405 by Matthias Klose
* Update IcedTea build infrastructure (20100114, 1.7 branch).
402
468 by Matthias Klose
openjdk-6 (6b22-1.10.1~pre1-0ubuntu1) natty; urgency=low
403
DISTRIBUTION_PATCHES += debian/patches/default-libpath-$(with_hotspot).diff \
404
	debian/patches/deb-multiarch-$(with_hotspot).diff \
400 by Matthias Klose
prepare 6b17~pre2-1 upload
405
468 by Matthias Klose
openjdk-6 (6b22-1.10.1~pre1-0ubuntu1) natty; urgency=low
406
#	debian/patches/sane-library-paths.patch \
400 by Matthias Klose
prepare 6b17~pre2-1 upload
407
#	debian/patches/hotspot-warn-no-errformat.diff \
255 by Matthias Klose
* Update IcedTea build infrastructure (20081006).
408
#	debian/patches/gcc-mtune-generic.diff \
409
142 by Matthias Klose
- Fix typo using wrong macro (distrelease -> distrel)
410
ifneq (,$(filter $(distrel),hardy gutsy feisty edgy dapper))
135 by Matthias Klose
* Use GCC-4.3 on all platforms where available.
411
  DISTRIBUTION_PATCHES += \
412
	$(if $(filter $(DEB_HOST_ARCH), amd64), debian/patches/gcc-jdk-opt-O2.diff) \
450 by Matthias Klose
* Upload to experimental
413
	$(if $(filter $(DEB_HOST_ARCH), powerpc), debian/patches/gcc-opt-O2.diff) \
438 by Matthias Klose
* Add powerpcspe build fixes (Sebastian Andrzej Siewior). Closes: #586359.
414
	$(if $(filter $(DEB_HOST_ARCH), powerpcspe), debian/patches/gcc-opt-O2.diff)
381 by Matthias Klose
* Work around GCC PR target/41327, build the JDK on s390 with -O2.
415
else ifeq ($(DEB_HOST_ARCH),s390)
416
  # GCC PR target/41327
417
  DISTRIBUTION_PATCHES += debian/patches/gcc-jdk-opt-O2.diff
135 by Matthias Klose
* Use GCC-4.3 on all platforms where available.
418
endif
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
419
507 by Matthias Klose
openjdk-6 (6b24~pre4-1ubuntu1) precise; urgency=low
420
ifeq (0,1)
506 by Matthias Klose
openjdk-6 (6b24~pre3-0ubuntu1) precise; urgency=low
421
ifneq (,$(filter $(distrel),wheezy sid precise))
422
  DISTRIBUTION_PATCHES += \
423
	debian/patches/0-sharkllvm30-targetselect-138450.patch \
424
	debian/patches/1-sharkllvm30-de-const-type-135375.patch \
425
	debian/patches/2-sharkllvm30-PHI-128537-Call-ArrayRef-135265.patch \
426
	debian/patches/shark-removed-intrinsics.patch \
427
	debian/patches/llvm-3.0-buildfix.patch
428
#	debian/patches/3-sharkllvm30-MCJIT.patch
429
endif
507 by Matthias Klose
openjdk-6 (6b24~pre4-1ubuntu1) precise; urgency=low
430
endif
506 by Matthias Klose
openjdk-6 (6b24~pre3-0ubuntu1) precise; urgency=low
431
30 by Matthias Klose
* debian/patches/openjdk-ubuntu-branding.patch: New patch.
432
ifeq ($(distribution),Ubuntu)
324 by Matthias Klose
* Add dependency on libjpeg62 for the -headless package. LP: #318383.
433
  DISTRIBUTION_PATCHES += \
387 by Matthias Klose
* Use pulseaudio as default serviceprovider for
434
	debian/patches/openjdk-ubuntu-branding.patch
435
endif
375 by Matthias Klose
* Update IcedTea from the 1.6 release branch:
436
387 by Matthias Klose
* Use pulseaudio as default serviceprovider for
437
ifeq ($(with_pulse),yes)
438
  # only in karmic and later the default
439
  ifeq (,$(filter $(distrel), lenny squeeze sid jaunty intrepid hardy gutsy feisty edgy dapper))
440
    DISTRIBUTION_PATCHES += \
441
	debian/patches/jdk-pulseaudio-default.diff
442
  endif
343 by Matthias Klose
* Fix build failure on armel.
443
endif
444
414 by Matthias Klose
* Update IcedTea build infrastructure (20100310).
445
ifneq (,$(filter $(DEB_HOST_ARCH), alpha))
446
  DISTRIBUTION_ECJ_PATCHES += \
447
	debian/patches/alpha-float-const.diff
448
endif
449
450
export DISTRIBUTION_PATCHES DISTRIBUTION_ECJ_PATCHES
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
451
452
ifeq ($(STAGE1_JAVA),gcj)
453
  CONFIGURE_ARGS = \
461 by Matthias Klose
* Update from the IcedTea6 trunk (20101126).
454
	--with-jdk-home=$(STAGE1_HOME)
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
455
  ifeq (,$(filter $(distrel),dapper))
456
    CONFIGURE_ARGS += \
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
457
	--with-javac=/usr/bin/ecj \
247 by Matthias Klose
* Update cacao based builds:
458
	--with-java=$(STAGE1_HOME)/bin/java \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
459
	--with-javah=/usr/bin/gjavah$(GCJ_SUFFIX) \
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
460
	--with-rmic=/usr/bin/grmic$(GCJ_SUFFIX)
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
461
  else
422 by Matthias Klose
Build changes for building on dapper
462
    CONFIGURE_ARGS += \
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
463
	--with-ecj-jar=$(STAGE1_HOME)/lib/ecj.jar \
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
464
	--with-javac=$(STAGE1_HOME)/bin/javac \
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
465
	--with-java=$(STAGE1_HOME)/bin/java \
466
	--with-javah=$(STAGE1_HOME)/bin/javah \
467
	--with-rmic=$(STAGE1_HOME)/bin/rmic
422 by Matthias Klose
Build changes for building on dapper
468
  endif
310 by Matthias Klose
* Update IcedTea build infrastructure (20081203).
469
  ifeq (,$(filter ia64, $(DEB_HOST_ARCH)))
470
    CONFIGURE_ARGS += \
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
471
	--with-jar=/usr/bin/fastjar
310 by Matthias Klose
* Update IcedTea build infrastructure (20081203).
472
  endif
414 by Matthias Klose
* Update IcedTea build infrastructure (20100310).
473
  build_target = #icedtea-against-icedtea
23 by Matthias Klose
* First public OpenJDK upstream code drop (b05).
474
else ifeq ($(STAGE1_JAVA),openjdk)
475
  CONFIGURE_ARGS = \
471 by Matthias Klose
* Fix non-bootstrap builds.
476
	--with-jdk-home=$(STAGE1_HOME) --disable-bootstrap
43 by Matthias Klose
* Fix build infrastructure to bootstrap with OpenJDK instead of ecj.
477
  build_target = #icedtea-against-icedtea
247 by Matthias Klose
* Update cacao based builds:
478
else ifeq ($(STAGE1_JAVA),cacao)
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
479
  CONFIGURE_ARGS = \
471 by Matthias Klose
* Fix non-bootstrap builds.
480
	--with-jdk-home=$(STAGE1_HOME)
43 by Matthias Klose
* Fix build infrastructure to bootstrap with OpenJDK instead of ecj.
481
  build_target = #icedtea-against-icedtea
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
482
endif
186 by Matthias Klose
* Allow configuration with --with-cacao.
483
298 by Matthias Klose
* openjdk-jre-headless: Depend on ca-certificates-java.
484
CONFIGURE_ARGS += --with-pkgversion="$(PKGVERSION)"
485
284 by Matthias Klose
* Don't configure --with-alt-jar=/usr/bin/fastjar on hotspot archs
486
# there are problems --with-alt-jar=/usr/bin/fastjar,
487
# see http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=217
488
# only use it for zero ports except powerpc (which we assume as
489
# fast enough to build.
558 by Matthias Klose
openjdk-6 (6b29-1.13.0-2) UNRELEASED; urgency=medium
490
ifeq (,$(filter $(DEB_HOST_ARCH), $(hotspot_archs) ia64 powerpc powerpcspe ppc64 ppc64el))
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
491
  CONFIGURE_ARGS += --with-alt-jar=/usr/bin/fastjar
284 by Matthias Klose
* Don't configure --with-alt-jar=/usr/bin/fastjar on hotspot archs
492
endif
493
424 by Matthias Klose
* On hppa, configure --without-rhino --disable-plugin.
494
ifneq (,$(filter $(DEB_HOST_ARCH), hppa))
495
  CONFIGURE_ARGS += \
496
	--without-rhino
497
else
498
  ifneq (,$(strip $(foreach i, dapper hardy intrepid jaunty,$(findstring $(i),$(PKGVERSION)))))
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
499
  CONFIGURE_ARGS += \
500
	--with-rhino=/usr/share/java/js-1.7R2.jar
424 by Matthias Klose
* On hppa, configure --without-rhino --disable-plugin.
501
  else
502
    CONFIGURE_ARGS += \
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
503
	--with-rhino=/usr/share/java/js.jar
424 by Matthias Klose
* On hppa, configure --without-rhino --disable-plugin.
504
  endif
505
endif
247 by Matthias Klose
* Update cacao based builds:
506
CONFIGURE_ARGS += \
543 by Matthias Klose
* IcedTea 1.12 release.
507
	--disable-downloading \
333 by Matthias Klose
* Build in separate build directory.
508
	--with-openjdk-src-zip=$(firstword $(wildcard $(CURDIR)/$(OPENJDK_SRC_ZIP) /usr/src/$(OPENJDK_SRC_ZIP)))
400 by Matthias Klose
prepare 6b17~pre2-1 upload
509
CONFIGURE_ARGS += \
510
	--with-hotspot-build=$(with_hotspot)
511
ifneq ($(with_hotspot),original)
512
  CONFIGURE_ARGS += \
513
	--with-hotspot-src-zip=$(firstword $(wildcard $(CURDIR)/hotspot-*.tar.gz /usr/src/hotspot-*.tar.gz))
514
endif
247 by Matthias Klose
* Update cacao based builds:
515
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
516
ifneq (,$(filter $(DEB_HOST_ARCH), $(cacao_archs)))
247 by Matthias Klose
* Update cacao based builds:
517
  CONFIGURE_ARGS += \
258 by Matthias Klose
- don't build the icedtea6-plugin from the cacao source
518
	--with-cacao-src-zip=$(firstword $(wildcard $(CURDIR)/cacao-*.tar.* /usr/src/cacao-*.tar.*))
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
519
  ifneq (,$(filter $(DEB_HOST_ARCH), armel))
443 by Matthias Klose
openjdk-6 (6b20~pre1-0ubuntu2) maverick; urgency=low
520
    # TODO: test build done without --enable-softfloat
521
    EXTRA_BUILD_ENV = CACAO_CONFIGURE_ARGS='--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)'
223 by Matthias Klose
- prepare for release
522
  else
523
    EXTRA_BUILD_ENV = CACAO_CONFIGURE_ARGS='--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)'
187 by Matthias Klose
* Configure cacao builds with --enable-softfloat.
524
  endif
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
525
endif
526
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
527
ifneq (,$(filter $(DEB_HOST_ARCH), $(jamvm_archs)))
528
  CONFIGURE_ARGS += \
529
	--with-jamvm-src-zip=$(firstword $(wildcard $(CURDIR)/jamvm-*.tar.* /usr/src/jamvm-*.tar.*))
530
endif
531
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
532
ifeq (,$(filter $(DEB_HOST_ARCH), $(hotspot_archs)))
533
  CONFIGURE_ARGS += --enable-zero
534
  ifneq (,$(filter $(DEB_HOST_ARCH), $(shark_archs)))
535
    CONFIGURE_ARGS += --enable-shark
314 by Matthias Klose
* Build for intrepid with original hotspot.
536
  endif
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
537
endif
538
539
EXTRA_BUILD_ENV += LIBFFI_LIBS=-lffi_pic
540
146 by Matthias Klose
* Disable building the docs on powerpc and sparc, we don't build architecture
541
# assume we don't build binary indep packages on these architectures
196 by Matthias Klose
* debian/patches/const_strings.patch, debian/patches/issue-6659207.diff:
542
ifeq ($(with_docs),yes)
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
543
  ifeq (,$(filter $(DEB_HOST_ARCH), amd64 i386 lpia))
196 by Matthias Klose
* debian/patches/const_strings.patch, debian/patches/issue-6659207.diff:
544
    CONFIGURE_ARGS += --disable-docs
545
  endif
198 by Matthias Klose
* Support `nodocs' in DEB_BUILD_OPTIONS (configure with --disable-docs)
546
else
547
  CONFIGURE_ARGS += --disable-docs
146 by Matthias Klose
* Disable building the docs on powerpc and sparc, we don't build architecture
548
endif
549
147 by Matthias Klose
* Explicitely configure --with-parallel-jobs, needed by the updated IcedTea.
550
ifneq (,$(NJOBS))
551
  CONFIGURE_ARGS += --with-parallel-jobs=$(NJOBS)
552
endif
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
553
373 by Matthias Klose
openjdk-6 (6b16-1.6~pre1-0ubuntu1) karmic; urgency=low
554
CONFIGURE_ARGS += --enable-xrender
555
268 by Matthias Klose
* Add support to build with pulseaudio support.
556
ifeq ($(with_pulse),yes)
557
  CONFIGURE_ARGS += --enable-pulse-java
265 by Matthias Klose
* Update IcedTea build infrastructure (20081011).
558
endif
559
561 by Matthias Klose
openjdk-6 (6b30-1.13.2-1) unstable; urgency=medium
560
# IcedTea 1.13 now needs lcms2 >= 2.5. Disable on releases which have
561
# an unpatched earlier lcms2 without the security fixes included in 2.5.
558 by Matthias Klose
openjdk-6 (6b29-1.13.0-2) UNRELEASED; urgency=medium
562
ifneq ($(lcms_version),2)
563
  CONFIGURE_ARGS += --disable-system-lcms
561 by Matthias Klose
openjdk-6 (6b30-1.13.2-1) unstable; urgency=medium
564
else ifneq (,$(filter $(distrel),lenny squeeze oneiric natty maverick lucid karmic jaunty intrepid hardy))
565
  CONFIGURE_ARGS += --disable-system-lcms
558 by Matthias Klose
openjdk-6 (6b29-1.13.0-2) UNRELEASED; urgency=medium
566
else
567
  CONFIGURE_ARGS += --enable-system-lcms
568
endif
569
562 by Matthias Klose
openjdk-6 (6b31-1.13.3-1) unstable; urgency=high
570
CONFIGURE_ARGS += --enable-system-kerberos
571
391 by Matthias Klose
* Support PKCS11 cryptography via NSS, now allowing import of all
572
ifeq ($(with_nss),yes)
573
  CONFIGURE_ARGS += --enable-nss
432 by Matthias Klose
* Update IcedTea6 to the icedtea6-1.8 release.
574
else ifeq ($(with_nss),no)
575
  CONFIGURE_ARGS += --disable-nss
391 by Matthias Klose
* Support PKCS11 cryptography via NSS, now allowing import of all
576
endif
577
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
578
ifeq ($(with_systemtap),yes)
579
  CONFIGURE_ARGS += --enable-systemtap --with-abs-install-dir=/$(basedir)
580
endif
581
582
ifneq (,$(alternate_vms))
583
  CONFIGURE_ARGS += --with-additional-vms=$(subst $(SPACE),$(COMMA),$(alternate_vms))
584
endif
585
221 by Matthias Klose
* Configure with --host and --build.
586
CONFIGURE_ARGS += --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
587
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
588
# (most) jre and jdk tools handled by the alternatives system.
589
# dups in heimdal-clients, krb5-user: kinit, klist, ktab, no alternatives
461 by Matthias Klose
* Update from the IcedTea6 trunk (20101126).
590
# use javaws from icedtea-netx
591
all_jre_tools	= $(filter-out javaws, $(notdir $(wildcard build/$(jreimg)/bin/*)))
592
jre_tools	= $(filter policytool, $(all_jre_tools))
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
593
jre_hl_tools	:= $(filter-out $(jre_tools), $(all_jre_tools))
594
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
595
corba_tools	= orbd servertool tnameserv
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
596
jre_hl_tools_alt= $(filter-out $(corba_tools), $(jre_hl_tools)) $(corba_tools)
597
jre_tools_alt	= $(filter-out kinit klist ktab, $(jre_tools))
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
598
461 by Matthias Klose
* Update from the IcedTea6 trunk (20101126).
599
all_jdk_tools	= $(filter-out javaws, $(notdir $(wildcard build/$(sdkimg)/bin/*)))
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
600
jdk_tools	= $(filter-out $(all_jre_tools), $(all_jdk_tools))
516 by Matthias Klose
* Don't install an alternative for the deprecated apt tool.
601
jdk_tools_alt	= $(filter-out apt java-rmi.cgi, $(jdk_tools))
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
602
65 by Torsten Werner
Switch to bzip2 package compression in Debian but leave lzma compression
603
ifeq ($(distribution),Ubuntu)
422 by Matthias Klose
Build changes for building on dapper
604
  ifeq ($(distrel),dapper)
605
    pkg_compress =
606
  else
607
    pkg_compress = lzma
608
  endif
65 by Torsten Werner
Switch to bzip2 package compression in Debian but leave lzma compression
609
else
610
  pkg_compress  = bzip2
611
endif
422 by Matthias Klose
Build changes for building on dapper
612
pkg_compress =
39 by Matthias Klose
* Compress packages using lzma.
613
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
614
# build dependencies
561 by Matthias Klose
openjdk-6 (6b30-1.13.2-1) unstable; urgency=medium
615
bd_autotools = autoconf, $(if $(filter $(distrel), dapper),automake1.9,automake1.11), autotools-dev,
247 by Matthias Klose
* Update cacao based builds:
616
bd_bootstrap =
617
ifneq (,$(stage1_gcj_archs))
422 by Matthias Klose
Build changes for building on dapper
618
  ifneq (,$(filter $(distrel),dapper))
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
619
    bd_bootstrap += gcc-snapshot (>= 20100403-1~dapper3),
620
    #bd_bootstrap += gcj-4.4-jdk,
556 by Matthias Klose
openjdk-6 (6b27-1.12.6-1) unstable; urgency=high
621
  else ifneq (,$(filter $(distrel),wheezy))
541 by Matthias Klose
[ Thorsten Glaser ]
622
    stage1_gcj46_archs = m68k s390
623
    stage1_gcj47_archs = $(filter-out $(stage1_gcj46_archs), $(stage1_gcj_archs))
475 by Matthias Klose
* Don't build with -Werror on sparc.
624
    bd_bootstrap += \
625
	ecj-gcj [$(strip $(foreach a,$(stage1_gcj_archs), $(a)))], \
541 by Matthias Klose
[ Thorsten Glaser ]
626
	gcj-4.6-jdk [$(strip $(foreach a,$(stage1_gcj46_archs), $(a)))], \
627
	gcj-4.7-jdk [$(strip $(foreach a,$(stage1_gcj47_archs), $(a)))], \
475 by Matthias Klose
* Don't build with -Werror on sparc.
628
	gcj-jdk [$(strip $(foreach a,$(stage1_gcj_archs), $(a)))],
541 by Matthias Klose
[ Thorsten Glaser ]
629
    bd_bootstrap += g++-4.4 [mips mipsel],
422 by Matthias Klose
Build changes for building on dapper
630
  else ifeq (,$(filter $(distrel),lenny jaunty intrepid hardy gutsy feisty edgy))
347 by Matthias Klose
openjdk-6 (6b16~pre1-0ubuntu1) karmic; urgency=low
631
    bd_bootstrap += \
422 by Matthias Klose
Build changes for building on dapper
632
	ecj-gcj [$(strip $(foreach a,$(stage1_gcj_archs), $(a)))], \
347 by Matthias Klose
openjdk-6 (6b16~pre1-0ubuntu1) karmic; urgency=low
633
	gcj-jdk [$(strip $(foreach a,$(stage1_gcj_archs), $(a)))],
634
  else
635
    bd_bootstrap += \
422 by Matthias Klose
Build changes for building on dapper
636
	ecj-gcj [$(strip $(foreach a,$(stage1_gcj_archs), $(a)))], \
247 by Matthias Klose
* Update cacao based builds:
637
	gcj (>= 4:4.2.1) [$(strip $(foreach a,$(stage1_gcj_archs), $(a)))], \
638
	java-gcj-compat-dev (>= 1.0.76-2ubuntu3) [$(strip $(foreach a,$(stage1_gcj_archs), $(a)))],
347 by Matthias Klose
openjdk-6 (6b16~pre1-0ubuntu1) karmic; urgency=low
639
  endif
247 by Matthias Klose
* Update cacao based builds:
640
endif
641
ifneq (,$(stage1_openjdk_archs))
642
  bd_bootstrap += \
643
	openjdk-6-jdk (>= $(req_openjdk_bd_ver)) [$(strip $(foreach a,$(stage1_openjdk_archs), $(a)))],
644
endif
645
ifneq (,$(stage1_cacao_archs))
646
  bd_bootstrap += \
647
	cacao-oj6-jdk [$(strip $(foreach a,$(stage1_cacao_archs), $(a)))],
648
endif
332 by Matthias Klose
* Update hotspot to 14.0-b10.
649
422 by Matthias Klose
Build changes for building on dapper
650
ifneq (,$(filter $(distrel),dapper))
651
  bd_gcc = g++-4.0,
652
else ifneq (,$(filter $(distrel),hardy gutsy feisty edgy))
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
653
  bd_gcc = g++-4.2 [amd64 powerpc sparc], g++-4.1 [i386 lpia],
380 by Matthias Klose
- prepare for 6b16-1.6 upload
654
else ifneq (,$(filter $(distrel),lenny intrepid jaunty))
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
655
  bd_gcc = g++-4.3,
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
656
else ifneq (,$(filter $(distrel),squeeze karmic lucid maverick))
370 by Matthias Klose
* Build using GCC-4.4 on sparc as well, require 4.4.1.
657
  bd_gcc = g++-4.4 (>= 4.4.1),
470 by Matthias Klose
openjdk-6 (6b23~pre1-0ubuntu2) oneiric; urgency=low
658
else ifneq (,$(filter $(distrel),natty))
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
659
  bd_gcc = g++-4.5,
540 by Matthias Klose
openjdk-6 (6b24-1.11.5-1) unstable; urgency=low
660
else ifneq (,$(filter $(distrel),oneiric))
661
  bd_gcc = g++-4.6, g++-4.5 [armel armhf],
662
else ifneq (,$(filter $(distrel),precise))
470 by Matthias Klose
openjdk-6 (6b23~pre1-0ubuntu2) oneiric; urgency=low
663
  bd_gcc = g++-4.6,
556 by Matthias Klose
openjdk-6 (6b27-1.12.6-1) unstable; urgency=high
664
else ifneq (,$(filter $(distrel),wheezy quantal raring))
536 by Matthias Klose
openjdk-6 (6b24-1.11.1-6) unstable; urgency=low
665
  bd_gcc = g++-4.7,
564 by Matthias Klose
openjdk-6 (6b32-1.13.4-4) unstable; urgency=medium
666
else ifneq (,$(filter $(distrel),saucy trusty))
556 by Matthias Klose
openjdk-6 (6b27-1.12.6-1) unstable; urgency=high
667
  bd_gcc = g++-4.8,
564 by Matthias Klose
openjdk-6 (6b32-1.13.4-4) unstable; urgency=medium
668
else
669
  bd_gcc = g++-4.9,
21 by Matthias Klose
- build using GCC-4.1/4.2 on hardy
670
endif
534 by Matthias Klose
openjdk-6 (6b24-1.11.1-4) unstable; urgency=low
671
bd_syslibs = zlib1g-dev,
501 by Matthias Klose
openjdk-6 (6b23~pre11-1) unstable; urgency=high
672
ifneq (,$(filter $(distrel),lenny squeeze oneiric natty maverick lucid karmic jaunty intrepid hardy gutsy feisty edgy dapper))
534 by Matthias Klose
openjdk-6 (6b24-1.11.1-4) unstable; urgency=low
673
  bd_syslibs += libpng12-dev, libjpeg62-dev,
567 by Matthias Klose
* Change B-D to libjpeg-dev to finish the transition to libjpeg-turbo
674
else ifneq (,$(filter $(distrel),wheezy precise quantal raring saucy))
534 by Matthias Klose
openjdk-6 (6b24-1.11.1-4) unstable; urgency=low
675
  bd_syslibs += libpng-dev, libjpeg8-dev,
565 by Matthias Klose
* Change B-D to libjpeg-dev to finish the transition to libjpeg-turbo
676
else
566 by Matthias Klose
* Depend on libnss3 instead of libnss3-1d for recent releases.
677
  bd_syslibs += libpng-dev, libjpeg-dev,
405 by Matthias Klose
* Update IcedTea build infrastructure (20100114, 1.7 branch).
678
endif
679
bd_syslibs += \
680
	libgif-dev$(if $(filter $(distrel),etch dapper edgy feisty gutsy), | libungif4-dev),
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
681
bd_openjdk = \
523 by Matthias Klose
openjdk-6 (6b24-1.11.1-2) unstable; urgency=medium
682
	libxtst-dev, libxi-dev, libxt-dev, libxaw7-dev, libxrender-dev, \
228 by Matthias Klose
* Fix cups (build) dependencies for older releases.
683
	$(if $(filter $(distrel), etch dapper edgy gutsy hardy),libcupsys2-dev,libcups2-dev), \
558 by Matthias Klose
openjdk-6 (6b29-1.13.0-2) UNRELEASED; urgency=medium
684
	libasound2-dev, liblcms$(lcms_version)-dev, libfreetype6-dev (>= 2.2.1), libgtk2.0-dev, \
562 by Matthias Klose
openjdk-6 (6b31-1.13.3-1) unstable; urgency=high
685
	libxinerama-dev, xsltproc, libkrb5-dev,
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
686
ifneq (,$(strip $(foreach i, dapper hardy intrepid jaunty,$(findstring $(i),$(PKGVERSION)))))
687
  bd_openjdk += rhino1.7,
688
else
689
  bd_openjdk += rhino,
690
endif
549 by Matthias Klose
* Add Built-Using: rhino attribute for the -lib package.
691
ifeq (,$(filter $(distrel),lenny squeeze quantal precise oneiric natty maverick lucid karmic jaunty intrepid hardy gutsy feisty edgy dapper))
692
  rhino_source := $(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W rhino)
693
endif
694
422 by Matthias Klose
Build changes for building on dapper
695
pkg_ffidev = $(if $(filter $(distribution),Ubuntu),$(if $(filter $(distrel),dapper hardy),libffi4-dev,libffi-dev),libffi-dev)
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
696
50 by Matthias Klose
* Build-depend on libffi4-dev on architectures other than amd64, i386, lpia.
697
bd_zero = \
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
698
	$(pkg_ffidev) [$(foreach a,$(hotspot_archs),!$(a))],
357 by Matthias Klose
openjdk-6 (6b16~pre2-0ubuntu3) karmic; urgency=low
699
bd_zero = \
700
	$(pkg_ffidev),
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
701
702
ifneq (,$(shark_archs))
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
703
  bd_zero = $(pkg_ffidev),
443 by Matthias Klose
openjdk-6 (6b20~pre1-0ubuntu2) maverick; urgency=low
704
  ifneq (,$(filter $(distrel),lucid))
435 by Matthias Klose
* Update from the 1.8 branch.
705
    bd_shark = llvm-dev (>= 2.7) [$(foreach a,$(shark_archs) $(altshark_archs),$(a))],
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
706
    bd_shark += oprofile [$(foreach a,$(shark_archs) $(altshark_archs),$(a))],
443 by Matthias Klose
openjdk-6 (6b20~pre1-0ubuntu2) maverick; urgency=low
707
  else ifneq (,$(filter $(distrel),karmic))
708
    bd_shark = llvm-dev (>= 2.6) [$(foreach a,$(shark_archs) $(altshark_archs),$(a))],
455 by Matthias Klose
* IcedTea6 1.9.1 release.
709
  else
476 by Matthias Klose
openjdk-6 (6b23~pre3-0ubuntu1) oneiric; urgency=low
710
    ifneq (,$(filter $(distrel),squeeze maverick natty))
461 by Matthias Klose
* Update from the IcedTea6 trunk (20101126).
711
      llvm_suffix = -2.7
507 by Matthias Klose
openjdk-6 (6b24~pre4-1ubuntu1) precise; urgency=low
712
    else ifneq (,$(filter $(distrel),oneirc precise))
476 by Matthias Klose
openjdk-6 (6b23~pre3-0ubuntu1) oneiric; urgency=low
713
      llvm_suffix = -2.9
506 by Matthias Klose
openjdk-6 (6b24~pre3-0ubuntu1) precise; urgency=low
714
    else
715
      llvm_suffix = -3.0
461 by Matthias Klose
* Update from the IcedTea6 trunk (20101126).
716
    endif
717
    bd_shark = llvm$(llvm_suffix)-dev [$(foreach a,$(shark_archs) $(altshark_archs),$(a))],
464 by Matthias Klose
* Update from the IcedTea6 trunk (20101223).
718
    ifneq (,$(filter $(DEB_HOST_ARCH),$(shark_archs) $(altshark_archs)))
461 by Matthias Klose
* Update from the IcedTea6 trunk (20101126).
719
      CONFIGURE_ARGS += --with-llvm-config=llvm-config$(llvm_suffix)
720
    endif
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
721
  endif
325 by Matthias Klose
- support the build of shark based packages
722
endif
332 by Matthias Klose
* Update hotspot to 14.0-b10.
723
421 by Matthias Klose
* Build-depend on xulrunner-1.9.2-dev instead of xulrunner-dev,
724
ifneq (,$(cacao_archs))
462 by Matthias Klose
- merge outstanding b20-1.9 changes
725
  # cacao included in the openjdk tarball
485 by Matthias Klose
openjdk-6 (6b23~pre6-1) unstable; urgency=low
726
  bd_cacao = libtool [$(strip $(foreach a,$(sort $(cacao_archs) $(jamvm_archs)), $(a)))],
421 by Matthias Klose
* Build-depend on xulrunner-1.9.2-dev instead of xulrunner-dev,
727
endif
332 by Matthias Klose
* Update hotspot to 14.0-b10.
728
468 by Matthias Klose
openjdk-6 (6b22-1.10.1~pre1-0ubuntu1) natty; urgency=low
729
ifneq (,$(filter $(distrel),squeeze))
411 by Matthias Klose
updates up to 6b18~pre1-1ubuntu1
730
  bd_ant = ant1.7, ant1.7-optional,
731
else
732
  bd_ant = ant, ant-optional,
733
endif
734
470 by Matthias Klose
openjdk-6 (6b23~pre1-0ubuntu2) oneiric; urgency=low
735
bd_fastjar = fastjar (>= 2:0.96-0ubuntu2),
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
736
ifneq (,$(filter $(distrel),lenny))
470 by Matthias Klose
openjdk-6 (6b23~pre1-0ubuntu2) oneiric; urgency=low
737
  bd_fastjar = fastjar (>= 2:0.95-4),
552 by Matthias Klose
- fix fastjar b-d for hardy
738
else ifneq (,$(filter $(distrel),hardy))
739
  bd_fastjar = fastjar (>= 2:0.95-1ubuntu2.1),
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
740
endif
422 by Matthias Klose
Build changes for building on dapper
741
ifneq (,$(filter $(distrel),dapper))
742
  bd_compress = $(pkg_compress),
255 by Matthias Klose
* Update IcedTea build infrastructure (20081006).
743
endif
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
744
bd_xvfb = xvfb, xauth, xfonts-base, libgl1-mesa-dri,
430 by Matthias Klose
* Start a window manager when running the tests. Prefer metacity,
745
bd_xvfb += $(bd_wm)
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
746
ifeq (,$(filter $(distrel),dapper))
747
  bd_xvfb += x11-xkb-utils,
748
  bd_mauve = mauve,
749
endif
449 by Matthias Klose
- fix testsuite runs using metacity.
750
ifneq (,$(filter $(distrel),lenny))
751
  bd_xvfb += xkb-data, xserver-xorg-core,
752
endif
268 by Matthias Klose
* Add support to build with pulseaudio support.
753
ifeq ($(with_pulse),yes)
376 by Matthias Klose
* Move the pulseaudio recommendation to a suggestion, don't build-depend
754
  bd_pulsejava = libpulse-dev (>= 0.9.12),
265 by Matthias Klose
* Update IcedTea build infrastructure (20081011).
755
endif
452 by Matthias Klose
* openjdk-6-jre: Recommend ttf-dejavu-extra. LP: #569396.
756
ifeq ($(with_nss),yes)
566 by Matthias Klose
* Depend on libnss3 instead of libnss3-1d for recent releases.
757
  ifneq (,$(filter $(distrel),lenny squeeze precise oneiric natty maverick lucid karmic hardy dapper))
758
    bd_nss = libnss3-dev (>= 3.12.3),
759
  else ifneq (,$(filter $(distrel),wheezy quantal raring saucy trusty))
568 by Matthias Klose
- Fix typo in nss version
760
    bd_nss = libnss3-dev (>= 2:3.12.3),
472 by Matthias Klose
openjdk-6 (6b23~pre2-0ubuntu1) oneiric; urgency=low
761
  else
568 by Matthias Klose
- Fix typo in nss version
762
    bd_nss = libnss3-dev (>= 2:3.17.1),
472 by Matthias Klose
openjdk-6 (6b23~pre2-0ubuntu1) oneiric; urgency=low
763
  endif
391 by Matthias Klose
* Support PKCS11 cryptography via NSS, now allowing import of all
764
endif
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
765
ifeq ($(with_systemtap),yes)
766
  bd_systemtap = systemtap-sdt-dev,
767
endif
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
768
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
769
dlopen_hl_depends = \
228 by Matthias Klose
* Fix cups (build) dependencies for older releases.
770
	$(if $(filter $(distrel), etch dapper edgy gutsy hardy),libcupsys2,libcups2), \
567 by Matthias Klose
* Change B-D to libjpeg-dev to finish the transition to libjpeg-turbo
771
	liblcms$(if $(filter 1,$(lcms_version)),1,2-2),
772
ifneq (,$(filter $(distrel),lenny squeeze oneiric natty maverick lucid karmic jaunty intrepid hardy gutsy feisty edgy dapper))
773
  dlopen_hl_depends += libjpeg62,
569 by Matthias Klose
openjdk-6 (6b33-1.13.5-2) unstable; urgency=medium
774
else ifneq (,$(filter $(distrel),wheezy precise quantal raring saucy))
775
  dlopen_hl_depends += libjpeg8,
776
else ifneq (,$(filter $(distrel), jessie sid))
777
  dlopen_hl_depends += libjpeg62-turbo,
567 by Matthias Klose
* Change B-D to libjpeg-dev to finish the transition to libjpeg-turbo
778
else
779
  dlopen_hl_depends += libjpeg8,
780
endif
566 by Matthias Klose
* Depend on libnss3 instead of libnss3-1d for recent releases.
781
ifneq (,$(filter $(distrel),lenny squeeze precise oneiric natty maverick lucid karmic hardy dapper))
782
  dlopen_hl_depends += , libnss3-1d (>= 3.12.3)
783
else ifneq (,$(filter $(distrel),wheezy quantal raring saucy trusty))
568 by Matthias Klose
- Fix typo in nss version
784
  dlopen_hl_depends += , libnss3 (>= 2:3.12.3)
472 by Matthias Klose
openjdk-6 (6b23~pre2-0ubuntu1) oneiric; urgency=low
785
else
568 by Matthias Klose
- Fix typo in nss version
786
  dlopen_hl_depends += , libnss3 (>= 2:3.17.1)
391 by Matthias Klose
* Support PKCS11 cryptography via NSS, now allowing import of all
787
endif
534 by Matthias Klose
openjdk-6 (6b24-1.11.1-4) unstable; urgency=low
788
dlopen_hl_depends += , libpcsclite1
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
789
dlopen_hl_recommends = \
790
dlopen_jre_depends = \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
791
	libgtk2.0-0, libgnome2-0, libgnomevfs2-0, libgconf2-4, \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
792
	libxrandr2, libxinerama1, libgl1-mesa-glx
236 by Matthias Klose
- prepare for upload
793
dlopen_jre_recommends =
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
794
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
795
plugin_name = IcedTeaPlugin.so
796
browser_plugin_dirs = mozilla
23 by Matthias Klose
* First public OpenJDK upstream code drop (b05).
797
534 by Matthias Klose
openjdk-6 (6b24-1.11.1-4) unstable; urgency=low
798
# .desktop files need to be multiarch installable
405 by Matthias Klose
* Update IcedTea build infrastructure (20100114, 1.7 branch).
799
java_launcher = /$(basedir)/bin/java
534 by Matthias Klose
openjdk-6 (6b24-1.11.1-4) unstable; urgency=low
800
java_launcher = /usr/bin/java
405 by Matthias Klose
* Update IcedTea build infrastructure (20100114, 1.7 branch).
801
ifeq ($(distribution),Ubuntu)
802
  ifeq (,$(filter $(distrel),karmic jaunty intrepid hardy gutsy feisty edgy dapper))
803
    java_launcher = cautious-launcher %f /$(basedir)/bin/java
534 by Matthias Klose
openjdk-6 (6b24-1.11.1-4) unstable; urgency=low
804
    java_launcher = cautious-launcher %f /usr/bin/java
405 by Matthias Klose
* Update IcedTea build infrastructure (20100114, 1.7 branch).
805
  endif
806
endif
807
383 by Matthias Klose
* Fix dependency on the java bridge packages.
808
ifneq (,$(filter $(distrel),etch dapper edgy feisty))
193 by Matthias Klose
* openjdk-6-jre-headless: Depend on ttf-dejavu-core instead of ttf-dejavu.
809
  core_fonts = ttf-dejavu
452 by Matthias Klose
* openjdk-6-jre: Recommend ttf-dejavu-extra. LP: #569396.
810
else ifneq (,$(filter $(distrel),lenny gutsy hardy intrepid jaunty karmic))
193 by Matthias Klose
* openjdk-6-jre-headless: Depend on ttf-dejavu-core instead of ttf-dejavu.
811
  core_fonts = ttf-dejavu-core
452 by Matthias Klose
* openjdk-6-jre: Recommend ttf-dejavu-extra. LP: #569396.
812
else
813
  core_fonts = ttf-dejavu-extra
193 by Matthias Klose
* openjdk-6-jre-headless: Depend on ttf-dejavu-core instead of ttf-dejavu.
814
endif
546 by Matthias Klose
* Fix font suggestion for indic fonts in wheezy.
815
ifneq (,$(filter $(distrel),lenny squeeze oneiric natty maverick lucid jaunty intrepid hardy gutsy feisty edgy dapper))
816
  cjk_fonts = ttf-baekmuk | ttf-unfonts | ttf-unfonts-core,
817
  cjk_fonts += ttf-sazanami-gothic | ttf-kochi-gothic,
818
  cjk_fonts += ttf-sazanami-mincho | ttf-kochi-mincho,
819
else
525 by Matthias Klose
* Use NanumMyeongjo as the preferred korean font. LP: #792471.
820
  cfk_fonts = fonts-nanum,
528 by Matthias Klose
* Use IPAfont as the preferred japanesse font. Closes: #646054.
821
  cjk_fonts += fonts-ipafont-gothic, fonts-ipafont-mincho,
534 by Matthias Klose
openjdk-6 (6b24-1.11.1-4) unstable; urgency=low
822
  # FIXME: find out why this b-d is needed, the fontconfig compiler fails without it
823
  bd_openjdk += fonts-ipafont-mincho,
525 by Matthias Klose
* Use NanumMyeongjo as the preferred korean font. LP: #792471.
824
endif
446 by Matthias Klose
* Include docs in the -doc package. LP: #600834.
825
cjk_fonts += $(if $(with_wgy_zenhai),ttf-wqy-microhei | ttf-wqy-zenhei,ttf-arphic-uming),
564 by Matthias Klose
openjdk-6 (6b32-1.13.4-4) unstable; urgency=medium
826
ifneq (,$(filter $(distrel),lenny squeeze wheezy))
190 by Matthias Klose
* Do recommends ttf-indic-fonts instead of ttf-indic-fonts-core for
827
  cjk_fonts += ttf-indic-fonts,
564 by Matthias Klose
openjdk-6 (6b32-1.13.4-4) unstable; urgency=medium
828
else ifneq (,$(filter $(distrel), lucid maverick natty oneiric precise quantal raring saucy trusty))
190 by Matthias Klose
* Do recommends ttf-indic-fonts instead of ttf-indic-fonts-core for
829
  cjk_fonts += ttf-indic-fonts-core, ttf-telugu-fonts, ttf-oriya-fonts,
830
  cjk_fonts += ttf-kannada-fonts, ttf-bengali-fonts,
564 by Matthias Klose
openjdk-6 (6b32-1.13.4-4) unstable; urgency=medium
831
else
832
  cjk_fonts += fonts-indic,
190 by Matthias Klose
* Do recommends ttf-indic-fonts instead of ttf-indic-fonts-core for
833
endif
132 by Matthias Klose
* Recommend the ttf-wqy-zenhei font instead of ttf-arphic-uming, if the
834
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
835
p_jre	= $(basename)-jre
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
836
p_jrehl	= $(basename)-jre-headless
363 by Matthias Klose
openjdk-6 (6b16-4) unstable; urgency=medium
837
p_jrec	= icedtea-$(shortver)-jre-cacao
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
838
p_jrej	= icedtea-$(shortver)-jre-jamvm
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
839
p_jrez	= $(basename)-jre-zero
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
840
p_lib	= $(basename)-jre-lib
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
841
p_jdk	= $(basename)-jdk
842
p_demo	= $(basename)-demo
843
p_src	= $(basename)-source
844
p_doc	= $(basename)-doc
178 by Matthias Klose
* Build an openjdk-6-dbg package.
845
p_dbg	= $(basename)-dbg
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
846
847
d	= debian/tmp
848
d_jre	= debian/$(p_jre)
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
849
d_jrehl	= debian/$(p_jrehl)
332 by Matthias Klose
* Update hotspot to 14.0-b10.
850
d_jrec	= debian/$(p_jrec)
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
851
d_jrej	= debian/$(p_jrej)
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
852
d_jrez	= debian/$(p_jrez)
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
853
d_lib	= debian/$(p_lib)
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
854
d_jdk	= debian/$(p_jdk)
855
d_demo	= debian/$(p_demo)
856
d_src	= debian/$(p_src)
857
d_doc	= debian/$(p_doc)
178 by Matthias Klose
* Build an openjdk-6-dbg package.
858
d_dbg	= debian/$(p_dbg)
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
859
860
control_vars = \
230 by Torsten Werner
newer versions of dpkg-gencontrol do not allow underscores in shlibvars:
861
	'-Vvm:Name=$(vm_name)' \
43 by Matthias Klose
* Fix build infrastructure to bootstrap with OpenJDK instead of ecj.
862
	'-Vbase:Version=$(req_openjdk_ver)' \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
863
	'-Vdlopenhl:Depends=$(dlopen_hl_depends)' \
864
	'-Vdlopenhl:Recommends=$(dlopen_hl_recommends)' \
865
	'-Vdlopenjre:Depends=$(dlopen_jre_depends)' \
866
	'-Vdlopenjre:Recommends=$(dlopen_jre_recommends)' \
268 by Matthias Klose
* Add support to build with pulseaudio support.
867
	'-Vpkg:pulseaudio=$(pkg_pulseaudio)' \
420 by Matthias Klose
6b18~pre4-1 upload to unstable
868
	'-Vxulrunner:Depends=$(xulrunner_depends)' \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
869
39 by Matthias Klose
* Compress packages using lzma.
870
ifeq ($(pkg_compress),lzma)
871
  bd_options = -- -Zlzma
872
  control_vars += '-Vdpkg:Depends=dpkg (>= 1.14.12ubuntu3)'
873
else ifeq ($(pkg_compress),bzip2)
874
  bd_options = -- -Zbzip2
875
  control_vars += '-Vdpkg:Depends=dpkg (>= 1.10.24)'
876
endif
877
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
878
ifneq (,$(DEB_HOST_MULTIARCH))
879
  control_vars += \
880
	'-Vmultiarch:Depends=multiarch-support' \
881
	'-Vmultiarch:Conflicts=default-jre-headless (<< 1.6-43~), icedtea-netx (<< 1.1.1-2~)'
882
endif
883
332 by Matthias Klose
* Update hotspot to 14.0-b10.
884
ifneq (,$(filter-out $(hotspot_archs), $(cacao_archs)))
885
  control_vars += '-Vcacao:Recommends=$(p_jrec) (= $${binary:Version})'
886
endif
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
887
ifneq (,$(filter-out $(hotspot_archs), $(jamvm_archs)))
481 by Matthias Klose
* openjdk-6-jre-headless: Depend on icedtea-6-jre-jamvm, if it's
888
  ifneq (,$(filter $(DEB_HOST_ARCH),$(jamvm_defaults)))
889
    control_vars += '-Vjredefault:Depends=$(p_jrej) (= $${binary:Version})'
890
  else
891
    control_vars += '-Vjamvm:Recommends=$(p_jrej) (= $${binary:Version})'
892
  endif
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
893
endif
332 by Matthias Klose
* Update hotspot to 14.0-b10.
894
508 by Matthias Klose
[ Luke Yelavich ]
895
ifeq ($(with_bridge),atk)
896
  control_vars += '-Vdep:bridge=libatk-wrapper-java-jni (>= 0.30.4-0ubuntu2)'
897
else ifeq ($(with_bridge),yes)
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
898
  ifneq (,$(DEB_HOST_MULTIARCH))
899
    control_vars += '-Vdep:bridge=libaccess-bridge-java-jni (>= 1.26.2-6)'
900
  else ifeq ($(with_jni_bridge),yes)
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
901
    control_vars += '-Vdep:bridge=libaccess-bridge-java-jni'
902
  else
903
    control_vars += '-Vdep:bridge=libaccess-bridge-java'
904
  endif
363 by Matthias Klose
openjdk-6 (6b16-4) unstable; urgency=medium
905
endif
358 by Matthias Klose
* Update to hotspot hs14b15.
906
393 by Matthias Klose
* On armel and powerpc, build an additional VM using shark in the
907
ifeq (,$(filter $(DEB_HOST_ARCH), $(hotspot_archs)))
908
  ifneq (,$(filter $(DEB_HOST_ARCH), $(shark_archs)))
909
    control_vars += '-Vdefaultvm:Provides=$(p_jre)-zero, $(p_jre)-shark'
910
  else
911
    control_vars += '-Vdefaultvm:Provides=$(p_jre)-zero'
912
  endif
913
endif
914
ifneq (,$(filter $(DEB_HOST_ARCH), $(shark_archs) $(altshark_archs)))
915
  control_vars += '-Vzerovm:Provides=$(p_jre)-shark'
916
endif
917
453 by Matthias Klose
openjdk-6 (6b20-1.9-0ubuntu1) maverick; urgency=low
918
ifneq (,$(filter $(distrel),lenny jaunty intrepid hardy gutsy feisty edgy dapper))
919
  control_vars += '-Vjvm:Provides=java-virtual-machine'
920
endif
921
464 by Matthias Klose
* Update from the IcedTea6 trunk (20101223).
922
ifeq (,$(filter $(distrel), lenny dapper))
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
923
  pkg_certs = ca-certificates-java
924
endif
925
control_vars += '-Vcacert:Depends=$(pkg_certs)'
926
454 by Matthias Klose
openjdk-6 (6b20-1.9-1) experimental; urgency=low
927
ifeq ($(with_tzdata),yes)
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
928
  pkg_tzdata = tzdata-java
929
endif
930
control_vars += '-Vtzdata:Depends=$(pkg_tzdata)'
931
932
ifeq (,$(filter $(distrel), dapper))
933
  pkg_jcommon = java-common (>= 0.28)
934
endif
935
control_vars += '-Vjcommon:Depends=$(pkg_jcommon)'
936
549 by Matthias Klose
* Add Built-Using: rhino attribute for the -lib package.
937
ifneq (,$(rhino_source))
938
  control_vars += "-Vrhino:Source=$(rhino_source)"
939
endif
940
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
941
debian/control: debian/control.in debian/rules
942
	@cp -p debian/control debian/control.old
943
	sed \
185 by Matthias Klose
- use and substitute @basename@ in debian/control.in
944
	      -e 's/@basename@/$(basename)/g' \
422 by Matthias Klose
Build changes for building on dapper
945
	      -e 's/@bd_autotools@/$(bd_autotools)/g' \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
946
	      -e 's/@bd_bootstrap@/$(bd_bootstrap)/g' \
947
	      -e 's/@bd_openjdk@/$(bd_openjdk)/g' \
50 by Matthias Klose
* Build-depend on libffi4-dev on architectures other than amd64, i386, lpia.
948
	      -e 's/@bd_zero@/$(bd_zero)/g' \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
949
	      -e 's/@bd_gcc@/$(bd_gcc)/g' \
950
	      -e 's/@bd_syslibs@/$(bd_syslibs)/g' \
470 by Matthias Klose
openjdk-6 (6b23~pre1-0ubuntu2) oneiric; urgency=low
951
	      -e 's/@bd_fastjar@/$(bd_fastjar)/g' \
34 by Matthias Klose
* Build-depend on mauve and xvfb; run some mauve tests (the list of
952
	      -e 's/@bd_mauve@/$(bd_mauve)/g' \
405 by Matthias Klose
* Update IcedTea build infrastructure (20100114, 1.7 branch).
953
	      -e 's/@bd_xvfb@/$(bd_xvfb)/g' \
39 by Matthias Klose
* Compress packages using lzma.
954
	      -e 's/@bd_compress@/$(pkg_compress)/g' \
256 by Matthias Klose
* Build depend on cacao-source for cacao-oj6 builds.
955
	      -e 's/@bd_cacao@/$(bd_cacao)/g' \
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
956
	      -e 's/@bd_jamvm@/$(bd_jamvm)/g' \
268 by Matthias Klose
* Add support to build with pulseaudio support.
957
	      -e 's/@bd_pulsejava@/$(bd_pulsejava)/g' \
391 by Matthias Klose
* Support PKCS11 cryptography via NSS, now allowing import of all
958
	      -e 's/@bd_nss@/$(bd_nss)/g' \
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
959
	      -e 's/@bd_systemtap@/$(bd_systemtap)/g' \
310 by Matthias Klose
* Update IcedTea build infrastructure (20081203).
960
	      -e 's/@bd_shark@/$(bd_shark)/g' \
411 by Matthias Klose
updates up to 6b18~pre1-1ubuntu1
961
	      -e 's/@bd_ant@/$(bd_ant)/g' \
193 by Matthias Klose
* openjdk-6-jre-headless: Depend on ttf-dejavu-core instead of ttf-dejavu.
962
	      -e 's/@core_fonts@/$(core_fonts)/g' \
144 by Matthias Klose
* Make the cjk font packages configurable in the control file.
963
	      -e 's/@cjk_fonts@/$(cjk_fonts)/g' \
332 by Matthias Klose
* Update hotspot to 14.0-b10.
964
	      -e 's/@cacao_archs@/$(cacao_archs)/g' \
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
965
	      -e 's/@jamvm_archs@/$(jamvm_archs)/g' \
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
966
	      -e 's/@hotspot_archs@/$(hotspot_archs)/g' \
342 by Matthias Klose
- don't build altzero on sparc
967
	      -e 's/@altzero_archs@/$(altzero_archs)/g' \
210 by Matthias Klose
- cacao related updates
968
	      -e 's/@lib_arch@/$(p_lib_arch)/g' \
255 by Matthias Klose
* Update IcedTea build infrastructure (20081006).
969
	    debian/control.in \
363 by Matthias Klose
openjdk-6 (6b16-4) unstable; urgency=medium
970
	    $(if $(cacao_archs), debian/control.cacao-jre) \
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
971
	    $(if $(jamvm_archs), debian/control.jamvm-jre) \
363 by Matthias Klose
openjdk-6 (6b16-4) unstable; urgency=medium
972
	    $(if $(altzero_archs), debian/control.zero-jre) \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
973
	    $(if $(DEB_HOST_MULTIARCH),,| grep -v '^Multi-Arch') \
549 by Matthias Klose
* Add Built-Using: rhino attribute for the -lib package.
974
	    $(if $(rhino_source),,| grep -v '^Built-Using') \
255 by Matthias Klose
* Update IcedTea build infrastructure (20081006).
975
		> debian/control
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
976
	@if cmp -s debian/control debian/control.old; then \
977
	  rm -f debian/control.old; \
978
	else \
979
	  diff -u debian/control.old debian/control; \
980
	  echo "debian/control did change, please restart the build"; \
981
	  rm -f debian/control.old; \
982
          exit 1; \
983
	fi
984
985
packaging-files:
525 by Matthias Klose
* Use NanumMyeongjo as the preferred korean font. LP: #792471.
986
	for f in debian/*.in debian/patches/*.in; do \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
987
	  case "$$f" in debian/control.in) continue; esac; \
461 by Matthias Klose
* Update from the IcedTea6 trunk (20101126).
988
	  f2=$$(echo $$f | sed 's/JB/$(basename)/;s/\.in$$//'); \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
989
	  sed -e 's/@JRE@/$(p_jre)/g' \
990
	      -e 's/@JDK@/$(p_jdk)/g' \
991
	      -e 's/@vendor@/$(Vendor)/g' \
155 by Matthias Klose
* Replace the OpenJDK version in desktop and menu files.
992
	      -e 's/@RELEASE@/$(shortver)/g' \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
993
	      -e 's/@basename@/$(basename)/g' \
994
	      -e 's,@TOP@,$(TOP),g' \
995
	      -e 's,@basedir@,$(basedir),g' \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
996
	      -e 's,@etcdir@,$(etcdir),g' \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
997
	      -e 's,@jdiralias@,$(jdiralias),g' \
998
	      -e 's,@jdirname@,$(jdirname),g' \
999
	      -e 's/@srcname@/$(srcname)/g' \
1000
	      -e 's/@jvmarch@/$(jvmarch)/g' \
1001
	      -e 's/@archdir@/$(archdir)/g' \
1002
	      -e 's/@tag@/$(tag)/g' \
1003
	      -e 's/@priority@/$(priority)/g' \
1004
	      -e 's/@mantag@/$(mantag)/g' \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1005
	      -e 's/@multiarch@/$(DEB_HOST_MULTIARCH)/g' \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1006
	      -e 's/@jre_hl_tools@/$(jre_hl_tools_alt)/g' \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1007
	      -e 's/@jre_tools@/$(jre_tools_alt)/g' \
1008
	      -e 's/@jdk_tools@/$(jdk_tools_alt)/g' \
1009
	      -e 's/@corba_tools@/$(corba_tools)/g' \
1010
	      -e 's,@j2se_lib@,$(j2se_lib),g' \
1011
	      -e 's,@j2se_share@,$(j2se_share),g' \
405 by Matthias Klose
* Update IcedTea build infrastructure (20100114, 1.7 branch).
1012
	      -e 's,@java_launcher@,$(java_launcher),g' \
454 by Matthias Klose
openjdk-6 (6b20-1.9-1) experimental; urgency=low
1013
	      -e 's,@with_tzdata@,$(with_tzdata),g' \
132 by Matthias Klose
* Recommend the ttf-wqy-zenhei font instead of ttf-arphic-uming, if the
1014
	      -e 's/@cjk_fonts@/$(cjk_fonts)/g' \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1015
	    $$f > $$f2; \
1016
	done
1017
ifneq (,$(filter $(DEB_HOST_ARCH), i386 lpia))
10 by Matthias Klose
* New upstream snapshot (b24).
1018
# not yet in OpenJDK
157 by Matthias Klose
* Install menu files.
1019
#	cat debian/$(p_jre)-i586.menu >> $(d_jre).menu
1020
	rm -f debian/$(p_jre)-i586.menu
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1021
endif
1022
1023
icedtea-configure: stamps/icedtea-configure
1024
stamps/icedtea-configure:
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
1025
	-cat /etc/hosts
357 by Matthias Klose
openjdk-6 (6b16~pre2-0ubuntu3) karmic; urgency=low
1026
255 by Matthias Klose
* Update IcedTea build infrastructure (20081006).
1027
	mkdir -p bin
571 by Matthias Klose
openjdk-6 (6b35-1.13.7-1) unstable; urgency=medium
1028
ifeq (,$(filter $(DEB_HOST_ARCH), alpha amd64 arm64 hppa mips64 mips64el ppc64 ppc64el s390x sparc64 x32))
255 by Matthias Klose
* Update IcedTea build infrastructure (20081006).
1029
	( \
1030
	  echo '#! /bin/sh'; \
1031
	  echo 'if [ -x /usr/bin/linux32 ]; then'; \
1032
	  echo '    exec /usr/bin/linux32 /bin/uname "$$@"'; \
1033
	  echo 'else'; \
1034
	  echo '    exec /bin/uname "$$@"'; \
1035
	  echo 'fi'; \
1036
	) > bin/uname
1037
	chmod +x bin/uname
1038
	echo "UNAME checks"
1039
	uname -a
1040
	/bin/uname -a
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
1041
endif
255 by Matthias Klose
* Update IcedTea build infrastructure (20081006).
1042
422 by Matthias Klose
Build changes for building on dapper
1043
ifneq (,$(filter $(distrel),dapper))
1044
	ln -sf /bin/true bin/sha256sum
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
1045
# Needed for patches/ecj/icedtea.patch
1046
	ln -sf /usr/bin/gcj-4.4 bin/gcj
386 by Matthias Klose
* For jaunty builds, fix IcedTeaPlugin failure to start with xulrunner 1.9.1
1047
endif
1048
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1049
	mkdir -p stamps
333 by Matthias Klose
* Build in separate build directory.
1050
	mkdir -p build
196 by Matthias Klose
* debian/patches/const_strings.patch, debian/patches/issue-6659207.diff:
1051
	chmod +x configure
437 by Matthias Klose
openjdk-6 (6b18-1.8-3) UNRELEASED; urgency=low
1052
	cd build && $(EXTRA_BUILD_ENV) ../configure $(CONFIGURE_ARGS)
510 by Matthias Klose
* Make the java.policy file multi-arch installable.
1053
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1054
	touch $@
1055
333 by Matthias Klose
* Build in separate build directory.
1056
unpack: stamps/unpack
1057
stamps/unpack: stamps/icedtea-configure
531 by Matthias Klose
openjdk-6 (6b24-1.11.1-3) upload
1058
	$(MAKE) -f debian/rules packaging-files
1059
453 by Matthias Klose
openjdk-6 (6b20-1.9-0ubuntu1) maverick; urgency=low
1060
	$(MAKE) -C build \
1061
		stamps/extract.stamp
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1062
ifeq ($(STAGE1_JAVA),gcj)
453 by Matthias Klose
openjdk-6 (6b20-1.9-0ubuntu1) maverick; urgency=low
1063
	$(MAKE) -C build \
1064
		stamps/extract-ecj.stamp
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1065
endif
1066
	touch $@
1067
9 by Tom Marble
* Added build specific (b24) reference to upstream OpenJDK source
1068
dist-openjdk: $(OPENJDK_SRC_ZIP)
1069
	@echo "downloading openjdk source from hg to create zipfile: $(OPENJDK_SRC_ZIP)"
333 by Matthias Klose
* Build in separate build directory.
1070
	$(MAKE) -C build $@
35 by Matthias Klose
* Keep a backup of the `generated' directory; some files are regenerated
1071
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1072
patch: stamps/patch
558 by Matthias Klose
openjdk-6 (6b29-1.13.0-2) UNRELEASED; urgency=medium
1073
stamps/patch: stamps/unpack
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1074
ifeq ($(STAGE1_JAVA),gcj)
333 by Matthias Klose
* Build in separate build directory.
1075
	$(MAKE) -C build stamps/patch-ecj.stamp
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1076
endif
333 by Matthias Klose
* Build in separate build directory.
1077
	$(MAKE) -C build stamps/patch.stamp
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1078
	touch $@
1079
187 by Matthias Klose
* Configure cacao builds with --enable-softfloat.
1080
ifeq ($(with_check),yes)
489 by Matthias Klose
* Enable testsuite runs in s390x.
1081
    ifneq (,$(filter $(DEB_HOST_ARCH), $(filter-out i386, $(hotspot_archs)) alpha ia64 mips mipsel powerpc powerpcspe ppc64 s390 s390x sh4))
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1082
      with_mauve_check = $(default_vm)
223 by Matthias Klose
- prepare for release
1083
    endif
558 by Matthias Klose
openjdk-6 (6b29-1.13.0-2) UNRELEASED; urgency=medium
1084
    ifneq (,$(filter $(DEB_HOST_ARCH), $(hotspot_archs) alpha armel armhf arm64 ia64 mips mipsel powerpc powerpcspe ppc64 ppc64el s390 s390x sh4))
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1085
      with_jtreg_check = $(default_vm)
1086
    endif
1087
1088
    ifneq (,$(filter cacao, $(alternate_vms)))
438 by Matthias Klose
* Add powerpcspe build fixes (Sebastian Andrzej Siewior). Closes: #586359.
1089
      ifneq (,$(filter $(DEB_HOST_ARCH), amd64 i386 lpia powerpc powerpcspe sparc))
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1090
        # only activate after testing; problems on s390
1091
        with_mauve_check += cacao
1092
      endif
506 by Matthias Klose
openjdk-6 (6b24~pre3-0ubuntu1) precise; urgency=low
1093
      ifneq (,$(filter $(DEB_HOST_ARCH), alpha amd64 armel armhf i386 lpia mips mipsel powerpc powerpcspe s390))
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1094
        # only activate after testing; hangs several tests.
1095
        with_jtreg_check += cacao
1096
      endif
1097
    endif
1098
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
1099
    ifneq (,$(filter jamvm, $(alternate_vms)))
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1100
      ifneq (,$(filter $(DEB_HOST_ARCH), amd64 ))
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
1101
        # only activate after testing
1102
        with_mauve_check += jamvm
1103
      endif
507 by Matthias Klose
openjdk-6 (6b24~pre4-1ubuntu1) precise; urgency=low
1104
      ifneq (,$(filter $(DEB_HOST_ARCH), amd64 i386 lpia))
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
1105
        # only activate after testing; hangs several tests.
1106
        with_jtreg_check += jamvm
1107
      endif
1108
    endif
1109
415.1.3 by Matthias Klose
6b18~pre3-1 upload
1110
    ifneq (,$(filter shark, $(alternate_vms)))
466 by Matthias Klose
openjdk-6 (6b22-1.10-0ubuntu1) natty; urgency=low
1111
      ifneq (,$(filter $(DEB_HOST_ARCH), amd64 i386 lpia powerpc))
415.1.3 by Matthias Klose
6b18~pre3-1 upload
1112
        # only activate after testing
1113
        with_mauve_check += $(if $(filter $(DEB_HOST_ARCH),$(altshark_archs)),shark,zero)
1114
      endif
466 by Matthias Klose
openjdk-6 (6b22-1.10-0ubuntu1) natty; urgency=low
1115
      # shark hangs on ppc64
1116
      ifneq (,$(filter $(DEB_HOST_ARCH), amd64 i386 lpia powerpc))
415.1.3 by Matthias Klose
6b18~pre3-1 upload
1117
        # only activate after testing; hangs several tests.
1118
        with_jtreg_check += $(if $(filter $(DEB_HOST_ARCH),$(altshark_archs)),shark,zero)
1119
      endif
1120
    endif
1121
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1122
    ifneq (,$(filter zero, $(alternate_vms)))
1123
      ifneq (,$(filter $(DEB_HOST_ARCH), amd64 i386 lpia))
1124
        # only activate after testing
1125
        with_mauve_check += zero
1126
      endif
1127
      ifneq (,$(filter $(DEB_HOST_ARCH), amd64 i386 lpia))
1128
        # only activate after testing; hangs several tests.
1129
        with_jtreg_check += zero
1130
      endif
1131
    endif
422 by Matthias Klose
Build changes for building on dapper
1132
  ifneq (,$(filter $(distrel), dapper))
1133
    with_mauve_check =
1134
  endif
538 by Matthias Klose
openjdk-6 (6b24-1.11.4-1) unstable; urgency=high
1135
  with_mauve_check =
187 by Matthias Klose
* Configure cacao builds with --enable-softfloat.
1136
endif
1137
506 by Matthias Klose
openjdk-6 (6b24~pre3-0ubuntu1) precise; urgency=low
1138
ifneq (,$(filter $(DEB_HOST_ARCH), alpha armel armhf ia64 mips mipsel powerpc powerpcspe ppc64 s390))
367 by Matthias Klose
* Suggested by Ed Nevill:
1139
  JTREG_OPTIONS = -timeout:3
1140
endif
506 by Matthias Klose
openjdk-6 (6b24~pre3-0ubuntu1) precise; urgency=low
1141
ifneq (,$(filter $(DEB_HOST_ARCH), armel armhf))
367 by Matthias Klose
* Suggested by Ed Nevill:
1142
  JTREG_OPTIONS += -Xmx256M -vmoption:-Xmx256M
1143
endif
1144
332 by Matthias Klose
* Update hotspot to 14.0-b10.
1145
build_stamps = stamps/build
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1146
build_stamps +=  stamps/mauve-check-default stamps/jtreg-check-default
472 by Matthias Klose
openjdk-6 (6b23~pre2-0ubuntu1) oneiric; urgency=low
1147
build_stamps += $(if $(filter jamvm, $(alternate_vms)),stamps/mauve-check-jamvm stamps/jtreg-check-jamvm)
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1148
#build_stamps += $(if $(filter cacao, $(alternate_vms)),stamps/mauve-check-cacao stamps/jtreg-check-cacao)
383 by Matthias Klose
* Fix dependency on the java bridge packages.
1149
ifeq (,$(filter $(distrel),lenny hardy gutsy feisty edgy dapper))
1150
  build_stamps += $(if $(filter zero, $(alternate_vms)),stamps/mauve-check-zero stamps/jtreg-check-zero)
415.1.3 by Matthias Klose
6b18~pre3-1 upload
1151
  ifneq (,$(filter shark, $(alternate_vms)))
1152
    ifneq (,$(filter $(DEB_HOST_ARCH),$(altshark_archs)))
1153
      build_stamps += stamps/mauve-check-shark stamps/jtreg-check-shark
1154
    else
1155
      build_stamps += stamps/mauve-check-zero stamps/jtreg-check-zero
1156
    endif
1157
  endif
383 by Matthias Klose
* Fix dependency on the java bridge packages.
1158
endif
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1159
453 by Matthias Klose
openjdk-6 (6b20-1.9-0ubuntu1) maverick; urgency=low
1160
pre-build:
470 by Matthias Klose
openjdk-6 (6b23~pre1-0ubuntu2) oneiric; urgency=low
1161
#ifneq (,$(filter $(DEB_HOST_ARCH),armel))
1162
#	@echo explicitely fail the build for $(DEB_HOST_ARCH), ARM assembler interpreter not yet ported to hs19
1163
#	false
1164
#endif
453 by Matthias Klose
openjdk-6 (6b20-1.9-0ubuntu1) maverick; urgency=low
1165
507 by Matthias Klose
openjdk-6 (6b24~pre4-1ubuntu1) precise; urgency=low
1166
build-arch: build
1167
build-indep: build
453 by Matthias Klose
openjdk-6 (6b20-1.9-0ubuntu1) maverick; urgency=low
1168
build: pre-build $(build_stamps)
225 by Matthias Klose
* Include the name of the VM used in the package description.
1169
	if [ -f buildwatch.pid ]; then \
1170
	  pid=$$(cat buildwatch.pid); \
236 by Matthias Klose
- prepare for upload
1171
	  kill -1 $$pid || :; sleep 1; kill -9 $$pid || :; \
225 by Matthias Klose
* Include the name of the VM used in the package description.
1172
	fi
1173
	rm -f buildwatch.pid
1174
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1175
stamps/build: stamps/patch
558 by Matthias Klose
openjdk-6 (6b29-1.13.0-2) UNRELEASED; urgency=medium
1176
ifneq (,$(filter $(DEB_HOST_ARCH), alpha arm armel armhf arm64 hppa ia64 m68k mips mipsel powerpc powerpcspe ppc64 ppc64el s390 s390x sparc))
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1177
	sh -c 'sh debian/buildwatch.sh $(CURDIR)/build &'
7 by Matthias Klose
* On powerpc keep the build alive using buildwatch script.
1178
endif
552 by Matthias Klose
- fix fastjar b-d for hardy
1179
	$(EXTRA_BUILD_ENV) $(MAKE) -C build $(build_target)
1180
	if [ -f buildwatch.pid ]; then \
1181
	  pid=$$(cat buildwatch.pid); \
1182
	  kill -1 $$pid || :; sleep 1; kill -9 $$pid || : ; \
1183
	  rm -f buildwatch.pid; \
313 by Matthias Klose
* Fix build failure on sparc.
1184
	fi
332 by Matthias Klose
* Update hotspot to 14.0-b10.
1185
	touch $@
1186
289 by Matthias Klose
openjdk-6 (6b12-0ubuntu3) intrepid; urgency=low
1187
stamps/xvfb-check:
1188
	mkdir -p bin
428 by Matthias Klose
* Start a window manager when running the tests.
1189
	( \
1190
	  echo '#!/bin/sh'; \
460.1.1 by Matthias Klose
6b20-1.9.2-1 upload
1191
	  echo '$(with_wm_prefix) $(with_wm) $(with_wm_args) &'; \
428 by Matthias Klose
* Start a window manager when running the tests.
1192
	  echo 'pid=$$!'; \
1193
	  echo 'sleep 3'; \
1194
	  echo '"$$@"'; \
1195
	  echo 'kill -9 $$pid'; \
1196
	) > bin/my-jtreg-run
1197
	chmod 755 bin/my-jtreg-run
430 by Matthias Klose
* Start a window manager when running the tests. Prefer metacity,
1198
ifeq (,$(wildcard /usr/bin/$(with_wm)))
289 by Matthias Klose
openjdk-6 (6b12-0ubuntu3) intrepid; urgency=low
1199
	echo 'xvfb-run -a -e xvfb-run.log -s "-extension GLX" "$$@"' > bin/my-xvfb-run
428 by Matthias Klose
* Start a window manager when running the tests.
1200
else
430 by Matthias Klose
* Start a window manager when running the tests. Prefer metacity,
1201
	echo 'xvfb-run -a -e xvfb-run.log -s "-extension GLX" my-jtreg-run "$$@"' > bin/my-xvfb-run
1202
  ifeq ($(with_wm),twm)
428 by Matthias Klose
* Start a window manager when running the tests.
1203
	grep -v '^include-menu-defs' /etc/X11/twm/system.twmrc-menu > bin/jtreg.tmwrc
1204
	echo RandomPlacement >> bin/jtreg.tmwrc
430 by Matthias Klose
* Start a window manager when running the tests. Prefer metacity,
1205
  endif
428 by Matthias Klose
* Start a window manager when running the tests.
1206
endif
357 by Matthias Klose
openjdk-6 (6b16~pre2-0ubuntu3) karmic; urgency=low
1207
	if ! /bin/sh bin/my-xvfb-run true ; then \
289 by Matthias Klose
openjdk-6 (6b12-0ubuntu3) intrepid; urgency=low
1208
	  echo "error running $$(cat bin/my-xvfb-run)"; \
1209
	  cat xvfb-run.log; \
461 by Matthias Klose
* Update from the IcedTea6 trunk (20101126).
1210
	  sed -i 's/ -s *"[^"]*"//' bin/my-xvfb-run; \
357 by Matthias Klose
openjdk-6 (6b16~pre2-0ubuntu3) karmic; urgency=low
1211
	  if ! /bin/sh bin/my-xvfb-run true ; then \
289 by Matthias Klose
openjdk-6 (6b12-0ubuntu3) intrepid; urgency=low
1212
	    echo "error running $$(cat bin/my-xvfb-run)"; \
1213
	    cat xvfb-run.log; \
1214
	    rm -f bin/my-xvfb-run; \
1215
	  fi; \
1216
	fi
1217
	if [ -f bin/my-xvfb-run ]; then \
1218
	  echo "using $$(cat bin/my-xvfb-run)"; \
1219
	fi
1220
	touch $@
1221
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1222
stamps/mauve-check-default: stamps/build stamps/xvfb-check
1223
	$(MAKE) -f debian/rules mauve-run-check VMNAME=$(default_vm) VMARGS=
1224
	touch $@
1225
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
1226
stamps/mauve-check-cacao: stamps/xvfb-check
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1227
	$(MAKE) -f debian/rules mauve-run-check VMNAME=cacao VMARGS='-vmarg -cacao'
1228
	touch $@
1229
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
1230
stamps/mauve-check-jamvm: stamps/xvfb-check
1231
	$(MAKE) -f debian/rules mauve-run-check VMNAME=jamvm VMARGS='-vmarg -jamvm'
1232
	touch $@
1233
415.1.3 by Matthias Klose
6b18~pre3-1 upload
1234
stamps/mauve-check-shark: stamps/xvfb-check
1235
	$(MAKE) -f debian/rules mauve-run-check VMNAME=shark VMARGS='-vmarg -shark'
1236
	touch $@
1237
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
1238
stamps/mauve-check-zero: stamps/xvfb-check
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1239
	$(MAKE) -f debian/rules mauve-run-check VMNAME=zero VMARGS='-vmarg -zero'
1240
	touch $@
1241
34 by Matthias Klose
* Build-depend on mauve and xvfb; run some mauve tests (the list of
1242
stamps/mauve-build: stamps/build
333 by Matthias Klose
* Build in separate build directory.
1243
	rm -rf build/mauve
1244
	mkdir -p build/mauve
238 by Matthias Klose
* debian/rules (stamps/mauve-build): Configure with --host and --build.
1245
ifeq ($(with_mauve_check),yes)
333 by Matthias Klose
* Build in separate build directory.
1246
	tar -x -C build -f /usr/src/mauve.tar.gz
1247
	cd build/mauve \
34 by Matthias Klose
* Build-depend on mauve and xvfb; run some mauve tests (the list of
1248
	    && aclocal \
1249
	    && automake \
1250
	    && autoconf \
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
1251
	    && PATH=$(CURDIR)/build/$(sdkimg)/bin:$$PATH \
1252
		./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
333 by Matthias Klose
* Build in separate build directory.
1253
	PATH=$(CURDIR)/build/$(sdkimg)/bin:$$PATH $(MAKE) -C build/mauve
238 by Matthias Klose
* debian/rules (stamps/mauve-build): Configure with --host and --build.
1254
endif
34 by Matthias Klose
* Build-depend on mauve and xvfb; run some mauve tests (the list of
1255
	touch $@
1256
289 by Matthias Klose
openjdk-6 (6b12-0ubuntu3) intrepid; urgency=low
1257
stamps/mauve-check: stamps/build stamps/mauve-build stamps/xvfb-check
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1258
1259
mauve-run-check:
1260
	rm -rf build/mauve build/mauve-$(VMNAME)
1261
ifneq (,$(filter $(VMNAME), $(with_mauve_check)))
1262
	tar -x -C build -f /usr/src/mauve.tar.gz
1263
	mv build/mauve build/mauve-$(VMNAME)
1264
	cd build/mauve-$(VMNAME) \
1265
	    && aclocal \
1266
	    && automake \
1267
	    && autoconf \
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
1268
	    && PATH=$(CURDIR)/build/$(sdkimg)/bin:$$PATH ./configure \
1269
		--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1270
	PATH=$(CURDIR)/build/$(sdkimg)/bin:$$PATH $(MAKE) -C build/mauve-$(VMNAME)
1271
289 by Matthias Klose
openjdk-6 (6b12-0ubuntu3) intrepid; urgency=low
1272
	if [ -f bin/my-xvfb-run ]; then \
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1273
	  cd build/mauve-$(VMNAME) && \
333 by Matthias Klose
* Build in separate build directory.
1274
	    JAVA_HOME=$(CURDIR)/build/$(sdkimg) \
1275
	    PATH=$(CURDIR)/build/$(sdkimg)/bin:$$PATH \
415.1.3 by Matthias Klose
6b18~pre3-1 upload
1276
		time /bin/sh $(CURDIR)/bin/my-xvfb-run java Harness \
333 by Matthias Klose
* Build in separate build directory.
1277
		    -vm $(CURDIR)/build/$(sdkimg)/bin/java \
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1278
		    $(VMARGS) \
34 by Matthias Klose
* Build-depend on mauve and xvfb; run some mauve tests (the list of
1279
		    -file $(CURDIR)/debian/mauve_tests \
1280
		    -timeout 30000 2>&1 \
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1281
		| tee mauve_output-$(VMNAME); \
289 by Matthias Klose
openjdk-6 (6b12-0ubuntu3) intrepid; urgency=low
1282
	else \
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
1283
	  echo "mauve testsuite not run for this build (xvfb failures)" \
1284
	    > build/mauve-$(VMNAME)/mauve_output-$(VMNAME); \
357 by Matthias Klose
openjdk-6 (6b16~pre2-0ubuntu3) karmic; urgency=low
1285
	  cat xvfb-run.log >> build/mauve-$(VMNAME)/mauve_output-$(VMNAME); \
289 by Matthias Klose
openjdk-6 (6b12-0ubuntu3) intrepid; urgency=low
1286
	fi
244 by Matthias Klose
- wait some time between the two xvfb-run calls
1287
	@sleep 5
218 by Matthias Klose
* Fix build failure when not running the mauve testsuite.
1288
else
340 by Matthias Klose
openjdk-6 (6b14-1.5~pre1-3) unstable; urgency=low
1289
	mkdir -p build/mauve-$(VMNAME)
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
1290
	echo "mauve testsuite not run for this build" \
1291
	  > build/mauve-$(VMNAME)/mauve_output-$(VMNAME)
34 by Matthias Klose
* Build-depend on mauve and xvfb; run some mauve tests (the list of
1292
endif
1293
289 by Matthias Klose
openjdk-6 (6b12-0ubuntu3) intrepid; urgency=low
1294
jtreg_processes = ps x -ww -o pid,ppid,args \
1295
	| awk '$$2 == 1 && $$3 ~ /^$(subst /,\/,/scratch)/' \
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1296
	| sed 's,$(CURDIR)/build/$(sdkimg),<sdkimg>,g;s,$(CURDIR),<pwd>,g'
289 by Matthias Klose
openjdk-6 (6b12-0ubuntu3) intrepid; urgency=low
1297
jtreg_pids = ps x --no-headers -ww -o pid,ppid,args \
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1298
	| awk '$$2 == 1 && $$3 ~ /^$(subst /,\/,$(CURDIR)/build/$(sdkimg))/ {print $$1}'
1299
1300
stamps/jtreg-check-default: stamps/build stamps/xvfb-check
467 by Matthias Klose
openjdk-6 (6b22-1.10-3) experimental; urgency=low
1301
	$(MAKE) -f debian/rules jtreg-run-check VMNAME=$(default_vm) VMARGS= \
538 by Matthias Klose
openjdk-6 (6b24-1.11.4-1) unstable; urgency=high
1302
		$(if $(filter $(default_vm),hotspot),TEST_SUITES='hotspot langtools',TEST_SUITES='hotspot langtools')
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1303
	touch $@
1304
1305
stamps/jtreg-check-cacao: stamps/build stamps/xvfb-check
552 by Matthias Klose
- fix fastjar b-d for hardy
1306
	-$(MAKE) -f debian/rules jtreg-run-check VMNAME=cacao VMARGS='-vmoption:-cacao' \
506 by Matthias Klose
openjdk-6 (6b24~pre3-0ubuntu1) precise; urgency=low
1307
		TEST_SUITES='hotspot langtools'
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1308
	touch $@
1309
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
1310
stamps/jtreg-check-jamvm: stamps/build stamps/xvfb-check
552 by Matthias Klose
- fix fastjar b-d for hardy
1311
	-ICEDTEA_JTREG_OTHERVM=-othervm \
473 by Matthias Klose
- don't run jamvm tests in same VM
1312
	  $(MAKE) -f debian/rules jtreg-run-check VMNAME=jamvm VMARGS='-vmoption:-jamvm' \
506 by Matthias Klose
openjdk-6 (6b24~pre3-0ubuntu1) precise; urgency=low
1313
		TEST_SUITES='hotspot langtools'
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
1314
	touch $@
1315
415.1.3 by Matthias Klose
6b18~pre3-1 upload
1316
stamps/jtreg-check-shark: stamps/build stamps/xvfb-check
552 by Matthias Klose
- fix fastjar b-d for hardy
1317
	-$(MAKE) -f debian/rules jtreg-run-check VMNAME=shark VMARGS='-vmoption:-shark' \
506 by Matthias Klose
openjdk-6 (6b24~pre3-0ubuntu1) precise; urgency=low
1318
		TEST_SUITES='hotspot langtools'
415.1.3 by Matthias Klose
6b18~pre3-1 upload
1319
	touch $@
1320
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1321
stamps/jtreg-check-zero: stamps/build stamps/xvfb-check
552 by Matthias Klose
- fix fastjar b-d for hardy
1322
	-$(MAKE) -f debian/rules jtreg-run-check VMNAME=zero VMARGS='-vmoption:-zero' \
507 by Matthias Klose
openjdk-6 (6b24~pre4-1ubuntu1) precise; urgency=low
1323
		TEST_SUITES='langtools hotspot'
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1324
	touch $@
1325
1326
jtreg-run-check:
1327
ifneq (,$(filter $(VMNAME), $(with_jtreg_check)))
472 by Matthias Klose
openjdk-6 (6b23~pre2-0ubuntu1) oneiric; urgency=low
1328
	if [ ! -f build/$(sdkimg)/jre/lib/security/java.security.install ]; then \
1329
	  fgrep -v 'sun.security.pkcs11' build/$(sdkimg)/jre/lib/security/java.security \
1330
	    > build/$(sdkimg)/jre/lib/security/java.security.test; \
1331
	  mv build/$(sdkimg)/jre/lib/security/java.security \
1332
	    build/$(sdkimg)/jre/lib/security/java.security.install; \
1333
	  mv build/$(sdkimg)/jre/lib/security/java.security.test \
1334
	    build/$(sdkimg)/jre/lib/security/java.security; \
1335
	fi
1336
162 by Matthias Klose
* In fontconfig.properties, fix Korean font names and add paths to the Luxi
1337
	@echo "BEGIN jtreg"
289 by Matthias Klose
openjdk-6 (6b12-0ubuntu3) intrepid; urgency=low
1338
	if [ -f bin/my-xvfb-run ]; then \
467 by Matthias Klose
openjdk-6 (6b22-1.10-3) experimental; urgency=low
1339
	  time /bin/sh bin/my-xvfb-run $(MAKE) -C build -k jtregcheck \
506 by Matthias Klose
openjdk-6 (6b24~pre3-0ubuntu1) precise; urgency=low
1340
		$(if $(TEST_SUITES),TEST_SUITES="$(TEST_SUITES)") \
467 by Matthias Klose
openjdk-6 (6b22-1.10-3) experimental; urgency=low
1341
		ICEDTEA_JTREG_OPTIONS='$(VMARGS) $(JTREG_OPTIONS)' \
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1342
		2>&1 | tee jtreg_output-$(VMNAME); \
289 by Matthias Klose
openjdk-6 (6b12-0ubuntu3) intrepid; urgency=low
1343
	else \
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1344
	  echo "jtreg harness not run for this build" > jtreg_output-$(VMNAME); \
1345
	  cat xvfb-run.log >> jtreg_output-$(VMNAME); \
289 by Matthias Klose
openjdk-6 (6b12-0ubuntu3) intrepid; urgency=low
1346
	fi
162 by Matthias Klose
* In fontconfig.properties, fix Korean font names and add paths to the Luxi
1347
	@echo "END jtreg"
289 by Matthias Klose
openjdk-6 (6b12-0ubuntu3) intrepid; urgency=low
1348
472 by Matthias Klose
openjdk-6 (6b23~pre2-0ubuntu1) oneiric; urgency=low
1349
	if [ -f build/$(sdkimg)/jre/lib/security/java.security.install ]; then \
1350
	  mv build/$(sdkimg)/jre/lib/security/java.security.install \
1351
	    build/$(sdkimg)/jre/lib/security/java.security; \
1352
	fi
1353
507 by Matthias Klose
openjdk-6 (6b24~pre4-1ubuntu1) precise; urgency=low
1354
#	for i in check-hotspot.log check-jdk.log check-langtools.log jtreg-summary.log; do \
1355
#	  if [ -f build/test/$$i ]; then \
1356
	    mv build/test/$$i build/test/$${i%*.log}-$(VMNAME).log; \
1357
#	  else \
1358
#	    mkdir -p build/test; \
1359
#	    cp jtreg_output-$(VMNAME) build/test/$${i%*.log}-$(VMNAME).log; \
1360
#	  fi; \
1361
#	done
1362
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1363
	for i in check-hotspot.log check-jdk.log check-langtools.log jtreg-summary.log; do \
357 by Matthias Klose
openjdk-6 (6b16~pre2-0ubuntu3) karmic; urgency=low
1364
	  if [ -f build/test/$$i ]; then \
1365
	    mv build/test/$$i build/test/$${i%*.log}-$(VMNAME).log; \
1366
	  else \
358 by Matthias Klose
* Update to hotspot hs14b15.
1367
	    mkdir -p build/test; \
357 by Matthias Klose
openjdk-6 (6b16~pre2-0ubuntu3) karmic; urgency=low
1368
	  fi; \
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1369
	done
1370
1371
	@echo "BEGIN jtreg-summary-$(VMNAME)"
1372
	-cat build/test/jtreg-summary-$(VMNAME).log
1373
	@echo "END jtreg-summary-$(VMNAME)"
289 by Matthias Klose
openjdk-6 (6b12-0ubuntu3) intrepid; urgency=low
1374
1375
	: # kill testsuite processes still hanging
1376
	@pids=$$($(jtreg_pids)); \
1377
	if [ -n "$$pids" ]; then \
1378
	  echo "killing processes..."; \
1379
	  $(jtreg_processes); \
1380
	  kill -1 $$pids; \
1381
	  sleep 2; \
1382
	  pids=$$($(jtreg_pids)); \
1383
	  if [ -n "$$pids" ]; then \
1384
	    echo "trying harder..."; \
1385
	    $(jtreg_processes); \
1386
	    kill -9 $$pids; \
1387
	    sleep 2; \
1388
	  fi; \
1389
	else \
1390
	  echo "nothing to cleanup"; \
1391
	fi; \
1392
	pids=$$($(jtreg_pids)); \
1393
	if [ -n "$$pids" ]; then \
1394
	  echo "leftover processes..."; \
1395
	  $(jtreg_processes); \
1396
	fi
323 by Matthias Klose
* Include jtr files of failed tests in the -jdk package.
1397
1398
	-for i in hotspot langtools jdk; do \
355 by Matthias Klose
* Update IcedTea build infrastructure (20090510).
1399
	  for t in $$(egrep '^(FAILED|Error)' build/test/check-$$i-$(VMNAME).log | sed 's/.* \(.*\)\.[^.][^.]*$$/\1/'); do \
323 by Matthias Klose
* Include jtr files of failed tests in the -jdk package.
1400
	    echo test/$$i/JTwork/$$t.jtr; \
1401
	  done; \
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1402
	done > build/test/failed_tests-$(VMNAME).list; \
1403
	tar -C build -c -z -f build/test/failed_tests-$(VMNAME).tar.gz -T build/test/failed_tests-$(VMNAME).list
218 by Matthias Klose
* Fix build failure when not running the mauve testsuite.
1404
else
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1405
	echo "jtreg harness not run for this build" > jtreg_output-$(VMNAME)
162 by Matthias Klose
* In fontconfig.properties, fix Korean font names and add paths to the Luxi
1406
endif
1407
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1408
clean: debian-clean
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1409
	dh_testdir
1410
	dh_testroot
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1411
	rm -rf stamps build build-*
10 by Matthias Klose
* New upstream snapshot (b24).
1412
	rm -rf autom4te.cache
255 by Matthias Klose
* Update IcedTea build infrastructure (20081006).
1413
	rm -rf bin
341 by Matthias Klose
- debian/rules (clean): Remove log files.
1414
	rm -f jtreg_output* xvfb-run.log
225 by Matthias Klose
* Include the name of the VM used in the package description.
1415
	rm -f buildwatch.pid
162 by Matthias Klose
* In fontconfig.properties, fix Korean font names and add paths to the Luxi
1416
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1417
	dh_clean
1418
1419
debian-clean:
1420
	dh_testdir
1421
	dh_testroot
574 by Matthias Klose
openjdk-6 (6b39-1.13.11-1) experimental; urgency=medium
1422
	dh_prep
525 by Matthias Klose
* Use NanumMyeongjo as the preferred korean font. LP: #792471.
1423
	for f in debian/*.in debian/patches/*.in; do \
461 by Matthias Klose
* Update from the IcedTea6 trunk (20101126).
1424
	  f2=$$(echo $$f | sed 's/JB/$(basename)/;s/\.in$$//'); \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1425
	  case "$$f2" in debian/control) continue; esac; \
1426
	  rm -f $$f2; \
1427
	done
383 by Matthias Klose
* Fix dependency on the java bridge packages.
1428
	rm -f debian/*.install debian/*.links debian/*.debhelper.log
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1429
522 by Matthias Klose
openjdk-6 (6b24-1.11.1-1) unstable; urgency=medium
1430
lib_ext_dirs = common $(sort $(foreach arch,$(arch_map),$(firstword $(subst =,$(SPACE),$(arch)))))
510 by Matthias Klose
* Make the java.policy file multi-arch installable.
1431
ifeq ($(distribution),Ubuntu)
1432
  lib_ext_dirs := $(filter-out arm hppa m68k mips% powerpcspe s390% sh%, $(lib_ext_dirs))
1433
else
1434
  lib_ext_dirs := $(filter-out arm hppa lpia, $(lib_ext_dirs))
1435
endif
1436
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1437
install: packaging-files
1438
	dh_testdir
1439
	dh_testroot
1440
	dh_clean -k
1441
	rm -f debian/*.install debian/*.links
1442
	dh_installdirs
1443
1444
	: # install into temporary location
1445
	mkdir -p $(d)/$(basedir)
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1446
	cp -a build/$(sdkimg)/* $(d)/$(basedir)/
1447
	cp -a build/$(jreimg)/man $(d)/$(basedir)/jre/
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1448
	chmod -R u+w $(d)
1449
461 by Matthias Klose
* Update from the IcedTea6 trunk (20101126).
1450
	: # use javaws from icedtea-netx 
1451
	find $(d) -name 'javaws*' | xargs -r rm -f
1452
315 by Matthias Klose
* Update IcedTea build infrastructure (20081217).
1453
	: # install default jvm config file
1454
	cp debian/jvm.cfg-default $(d)/$(basedir)/jre/lib/$(archdir)/
1455
234 by Matthias Klose
* Add symlinks for header files found in JAVA_HOME/include/linux in
1456
	: # add extra symlinks for header files
1457
	ln -sf linux/jni_md.h $(d)/$(basedir)/include/jni_md.h
1458
	ln -sf linux/jawt_md.h $(d)/$(basedir)/include/jawt_md.h
1459
454 by Matthias Klose
openjdk-6 (6b20-1.9-1) experimental; urgency=low
1460
ifeq ($(with_tzdata),yes)
1461
	: # use the timezone files from tzdata-java
1462
	rm -rf $(d)/$(basedir)/jre/lib/zi
1463
endif
1464
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
1465
ifneq (,$(filter $(distrel),dapper))
1466
	: # include the freetype library for the dapper build
1467
	cp -p /usr/lib/libfreetype.so.6.* $(d)/$(basedir)/jre/lib/$(archdir)/
1468
	cd $(d)/$(basedir)/jre/lib/$(archdir) && ln -s libfreetype.so.6.* libfreetype.so.6
1469
endif
1470
116 by Matthias Klose
* Compress the man pages, fixing the slave symlinks of the alternatives.
1471
	: # compress manpages
1472
	find $(d)/$(basedir)/man $(d)/$(basedir)/jre/man -type f ! -type l \
513 by Matthias Klose
* Pass -n to gzip when compressing manpages to be Multi-Arch: same safe.
1473
	  | xargs gzip -9v -n
116 by Matthias Klose
* Compress the man pages, fixing the slave symlinks of the alternatives.
1474
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1475
	: # replace common files in jdk and jre by symlinks
1476
	@cd $(d)/$(basedir); \
1477
	  for i in `find jre -type f`; do \
1478
	    i2=$${i#jre/*}; \
458 by Matthias Klose
openjdk-6 (6b20-1.9.1-1ubuntu2) maverick-security; urgency=low
1479
	    if [ -f $$i2 ]; then \
1480
	      if cmp -s $$i $$i2; then \
1481
		: ; \
1482
	      else \
1483
		echo "XXX: differing files"; \
1484
		md5sum $$i $$i2; \
1485
	      fi; \
1486
	    else \
1487
	      continue; \
1488
	    fi; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1489
	    d=$$(echo ./$$i2 | sed -r 's,[^/]+/,../,g;s,/[^/]+$$,,;s,\.\.$$,,'); \
1490
	    echo "    symlink $$i2 -> $$d$$i"; \
1491
	    ln -sf $$d$$i $$i2; \
1492
	  done
1493
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1494
	mkdir -p $(d)/$(etcdir)/security
1495
	mkdir -p $(d)/$(etcdir)/management
1496
	mkdir -p $(d)/$(etcdir)/images/cursors
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1497
1498
	: # rename templates (comments only) to config files,
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1499
	: # and move to /$(etcdir)
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1500
	for i in \
1501
	  management/jmxremote.password \
1502
	  management/snmp.acl; \
1503
	do \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1504
	  mv $(d)/$(basedir)/jre/lib/$$i.template $(d)/$(etcdir)/$$i; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1505
	done
1506
508 by Matthias Klose
[ Luke Yelavich ]
1507
ifeq ($(with_bridge),atk)
1508
	cp -p debian/accessibility-atk.properties \
1509
		$(d)/$(basedir)/jre/lib/accessibility.properties
1510
else
27 by Matthias Klose
* Remove java-access-bridge tarball, use an externally built package.
1511
	cp -p debian/accessibility.properties $(d)/$(basedir)/jre/lib/
508 by Matthias Klose
[ Luke Yelavich ]
1512
endif
140 by Matthias Klose
* Install a config file swing.properties, allowing a user to change
1513
	cp -p debian/swing.properties $(d)/$(basedir)/jre/lib/
27 by Matthias Klose
* Remove java-access-bridge tarball, use an externally built package.
1514
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
1515
ifneq (,$(pkg_certs))
177 by Matthias Klose
- Do not include an empty cacerts file.
1516
	rm -f $(d)/$(basedir)/jre/lib/security/cacerts
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
1517
endif
177 by Matthias Klose
- Do not include an empty cacerts file.
1518
524 by Matthias Klose
openjdk-6 (6b24-1.11.1-2ubuntu2) precise; urgency=low
1519
	grep -v '^nssLibraryDirectory' $(d)/$(basedir)/jre/lib/security/nss.cfg \
1520
		> $(d)/$(basedir)/jre/lib/security/nss.cfg.new
1521
	mv -f $(d)/$(basedir)/jre/lib/security/nss.cfg.new \
1522
		$(d)/$(basedir)/jre/lib/security/nss.cfg
1523
543 by Matthias Klose
* IcedTea 1.12 release.
1524
	rm -f $(d)/$(basedir)/jre/lib/security/java.security.old
1525
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1526
	: # move config files to $(etcdir) and symlink them.
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1527
	for i in \
1528
	  accessibility.properties \
1529
	  calendars.properties \
1530
	  content-types.properties \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1531
	  images/cursors/cursors.properties \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1532
	  logging.properties \
1533
	  sound.properties \
1534
	  flavormap.properties \
1535
	  net.properties \
1536
	  psfontj2d.properties \
1537
	  psfont.properties.ja \
153 by Matthias Klose
- make swing.properties a config file
1538
	  swing.properties \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1539
	  tz.properties \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1540
	  management/jmxremote.access \
1541
	  management/management.properties \
1542
	  security/java.policy \
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
1543
	  security/java.security \
432 by Matthias Klose
* Update IcedTea6 to the icedtea6-1.8 release.
1544
	  $$([ -f $(d)/$(basedir)/jre/lib/security/nss.cfg ] && echo security/nss.cfg) \
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
1545
	  $(if $(findstring ca-cert,$(pkg_certs)),,security/cacerts); \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1546
	do \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1547
	  mv $(d)/$(basedir)/jre/lib/$$i $(d)/$(etcdir)/$$i; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1548
	done
1549
	mv $(d)/$(basedir)/jre/lib/$(archdir)/jvm.cfg \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1550
		$(d)/$(etcdir)/
479 by Matthias Klose
* Update from the IcedTea6 branch (20110802).
1551
ifneq (,$(filter $(DEB_HOST_ARCH),$(jamvm_defaults)))
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1552
	grep '^[# ]' $(d)/$(etcdir)/jvm.cfg \
1553
		> $(d)/$(etcdir)/jvm.cfg.new
1554
	grep 'jamvm' $(d)/$(etcdir)/jvm.cfg \
1555
		>> $(d)/$(etcdir)/jvm.cfg.new
1556
	egrep -v '^[# ]|jamvm' $(d)/$(etcdir)/jvm.cfg \
1557
		>> $(d)/$(etcdir)/jvm.cfg.new
1558
	mv $(d)/$(etcdir)/jvm.cfg.new $(d)/$(etcdir)/jvm.cfg
479 by Matthias Klose
* Update from the IcedTea6 branch (20110802).
1559
endif
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1560
134 by Matthias Klose
add the fontconfig changes as a patch.
1561
	mv $(d)/$(basedir)/jre/lib/fontconfig.Ubuntu.properties.src \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1562
		$(d)/$(etcdir)/fontconfig.properties
533 by Matthias Klose
* Don't install the binary fontconfig file.
1563
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1564
	: # remove files which we do not want to distribute
1565
	rm -f $(d)/$(basedir)/jre/lib/fontconfig*.properties.src
1566
	rm -f $(d)/$(basedir)/jre/lib/fontconfig*.bfc
544 by Matthias Klose
openjdk-6 (6b27-1.12.1-1) unstable; urgency=low
1567
	rm -f $(d)/$(basedir)/jre/lib/$(archdir)/*/classes.jsa
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1568
79 by Torsten Werner
* Allow executable stack in libjvm.so in lintian override.
1569
	: # remove empty directories
1570
	rmdir $(d)/$(basedir)/jre/lib/management
1571
	rmdir $(d)/$(basedir)/jre/lib/applet
1572
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1573
	: # TODO: why do we provide a custom font.properties.ja?
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1574
	: # cp -p debian/font.properties.ja $(d_jbin)/$(etcdir)/.
134 by Matthias Klose
add the fontconfig changes as a patch.
1575
#	cp debian/font.properties.wgy_zenhai \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1576
#		$(d)/$(etcdir)/font.properties.ja
134 by Matthias Klose
add the fontconfig changes as a patch.
1577
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1578
1579
	: # now move things to the packages. it is so ****** to create
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1580
	: # .install files first. dh_movefiles did do the job perfectly
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1581
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1582
	: # $(p_jrehl).install / $(p_jre).install
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1583
	( \
1584
	  echo 'etc'; \
1585
	  echo '$(basedir)/jre/lib/jexec'; \
56 by Matthias Klose
* Move rt.jar into the openjdk-6-jre-headless package; sun/awt/X11
1586
	  echo '$(basedir)/jre/lib/rt.jar'; \
571 by Matthias Klose
openjdk-6 (6b35-1.13.7-1) unstable; urgency=medium
1587
	  echo '$(basedir)/jre/lib/security/*_policy.jar'; \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1588
	  echo '$(basedir)/jre/man/ja'; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1589
	  echo '$(basedir)/man/ja'; \
103 by Torsten Werner
install README.Debian and java-rmi.cgi
1590
	  echo '$(basedir)/bin/java-rmi.cgi'; \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1591
	) > debian/$(p_jrehl).install
491 by Matthias Klose
openjdk-6 (6b23~pre9-1) unstable; urgency=low
1592
ifneq (,$(DEB_HOST_MULTIARCH))
1593
	( \
1594
	  echo '$(basedir)/jre/lib/meta-index'; \
1595
	  echo '$(basedir)/jre/lib/ext/meta-index'; \
1596
	) >> debian/$(p_jrehl).install
1597
endif
90 by Torsten Werner
Update and install the lintian override files.
1598
	$(RM) debian/$(p_jre).install
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1599
1600
	cd $(CURDIR)/$(d); \
1601
	for i in $(basedir)/jre/{bin,man/man1,man/ja_JP.eucJP/man1}/*; do \
1602
	  case "$$i" in \
461 by Matthias Klose
* Update from the IcedTea6 trunk (20101126).
1603
	    */policytool*) echo $$i >> ../$(p_jre).install;; \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1604
	    *) echo $$i >> ../$(p_jrehl).install; \
1605
	  esac; \
1606
	done
1607
1608
	cd $(CURDIR)/$(d); \
1609
	for i in $(basedir)/{bin,man/man1,man/ja_JP.eucJP/man1}/*; do \
1610
	  [ -h $$i ] || continue; \
1611
	  case "$$i" in \
461 by Matthias Klose
* Update from the IcedTea6 trunk (20101126).
1612
	    */policytool*) echo $$i >> ../$(p_jre).install;; \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1613
	    *) echo $$i >> ../$(p_jrehl).install; \
1614
	  esac; \
1615
	done; \
1616
1617
	cd $(CURDIR)/$(d); \
1618
	for i in $(basedir)/jre/lib/$(archdir)/*; do \
1619
	  case "$$i" in \
268 by Matthias Klose
* Add support to build with pulseaudio support.
1620
	    */libsplashscreen.so|*/libjsoundalsa.so|$(if $(with_pulse),*/libpulse-java.so|)*/xawt) echo $$i >> ../$(p_jre).install;; \
332 by Matthias Klose
* Update hotspot to 14.0-b10.
1621
	    */cacao) echo $$i >> ../$(p_jrec).install;; \
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
1622
	    */jamvm) echo $$i >> ../$(p_jrej).install;; \
393 by Matthias Klose
* On armel and powerpc, build an additional VM using shark in the
1623
	    */zero|*/shark) echo $$i >> ../$(p_jrez).install;; \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1624
	    *) echo $$i >> ../$(p_jrehl).install; \
1625
	  esac; \
1626
	done
1627
1628
	: # $(p_lib).install
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1629
	( \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1630
	  echo '$(basedir)/jre/ASSEMBLY_EXCEPTION $(commonbasedir)/jre/'; \
1631
	  echo '$(basedir)/jre/THIRD_PARTY_README $(commonbasedir)/jre/'; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1632
	  cd $(d); \
1633
	  for i in $(basedir)/jre/lib/*; do \
491 by Matthias Klose
openjdk-6 (6b23~pre9-1) unstable; urgency=low
1634
	    case "$$i" in \
1635
	      */$(archdir)|*/jexec|*/rt.jar|*/security$(if $(DEB_HOST_MULTIARCH),|*/meta-index)) \
1636
	        continue; \
1637
	    esac; \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1638
	    echo $$i $(commonbasedir)/jre/lib/; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1639
	  done; \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1640
	) > debian/$(p_lib).install
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1641
1642
	: # $(p_jdk).install
1643
	( \
1644
	  echo '$(basedir)/include'; \
1645
	  echo '$(basedir)/lib'; \
1646
	  echo '$(basedir)/LICENSE'; \
1647
	  echo '$(basedir)/ASSEMBLY_EXCEPTION'; \
1648
	  echo '$(basedir)/THIRD_PARTY_README'; \
1649
	  cd $(d); \
1650
	  for i in $(basedir)/{bin,man/man1,man/ja_JP.eucJP/man1}/*; do \
108 by Torsten Werner
do not install java-rmi.cgi in jdk package
1651
	    [ -h $$i -o "$$i" = $(basedir)/bin/java-rmi.cgi ] && continue; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1652
	    echo $$i; \
1653
	  done; \
1654
	) > debian/$(p_jdk).install
1655
1656
	: # $(p_src).install
1657
	( \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1658
	  echo '$(basedir)/src.zip $(commonbasedir)/'; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1659
	) > debian/$(p_src).install
1660
1661
	: # move demos and samples, create symlinks for $(p_demo)
402 by Matthias Klose
* Update IcedTea build infrastructure (20091218).
1662
	mkdir -p $(d)/usr/share/doc/$(p_jrehl)/demo
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1663
	for i in $(d)/$(basedir)/demo/*; do \
1664
	  b=$$(basename $$i); \
1665
	  case "$$i" in \
1666
	    */jvmti) \
402 by Matthias Klose
* Update IcedTea build infrastructure (20091218).
1667
	      echo $(basedir)/demo/$$b usr/share/doc/$(p_jrehl)/demo/$$b >> $(d_demo).links;; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1668
	    *) \
402 by Matthias Klose
* Update IcedTea build infrastructure (20091218).
1669
	      mv $$i $(d)/usr/share/doc/$(p_jrehl)/demo/$$b; \
1670
	      echo usr/share/doc/$(p_jrehl)/demo/$$b $(basedir)/demo/$$b >> $(d_demo).links;; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1671
	  esac; \
1672
	done
402 by Matthias Klose
* Update IcedTea build infrastructure (20091218).
1673
	mv $(d)/$(basedir)/sample $(d)/usr/share/doc/$(p_jrehl)/examples
1674
	echo usr/share/doc/$(p_jrehl)/examples $(basedir)/sample >> $(d_demo).links
96 by Torsten Werner
add symlink /usr/share/doc/$(p_demo) -> $(p_jre)
1675
	echo usr/share/doc/$(p_jre) usr/share/doc/$(p_demo) >> $(d_demo).links
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1676
1677
	: # $(p_demo).install
1678
	( \
1679
	  echo '$(basedir)/demo'; \
402 by Matthias Klose
* Update IcedTea build infrastructure (20091218).
1680
	  echo 'usr/share/doc/$(p_jrehl)/examples'; \
1681
	  echo 'usr/share/doc/$(p_jrehl)/demo'; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1682
	) > debian/$(p_demo).install
1683
72 by Torsten Werner
ignore LICENSE file when calling dh_install
1684
	dh_install --sourcedir=debian/tmp --fail-missing -XLICENSE
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1685
491 by Matthias Klose
openjdk-6 (6b23~pre9-1) unstable; urgency=low
1686
ifneq (,$(DEB_HOST_MULTIARCH))
1687
	rm -f $(d_lib)/$(commonbasedir)/jre/lib/ext/meta-index
1688
endif
1689
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1690
	: # give all permissions to cross-VM extension directory
1691
	sed -i \
1692
	    -e '/permission java\.security\.AllPermission;/,/};/c\' \
1693
	    -e '        permission java.security.AllPermission;\' \
1694
	    -e '};\' \
1695
	    -e '\' \
510 by Matthias Klose
* Make the java.policy file multi-arch installable.
1696
	    $(if $(DEB_HOST_MULTIARCH),$(foreach i, $(lib_ext_dirs), \
1697
	    -e 'grant codeBase "file:/$(TOP)/java-$(shortver)-$(origin)-$(i)/jre/lib/ext/*" {\' \
491 by Matthias Klose
openjdk-6 (6b23~pre9-1) unstable; urgency=low
1698
	    -e '        permission java.security.AllPermission;\' \
510 by Matthias Klose
* Make the java.policy file multi-arch installable.
1699
	    -e '};\')) \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1700
	    -e '\' \
1701
	    -e '// Comment this out if you want to give all permissions to the\' \
1702
	    -e '// Debian Java repository too:\' \
1703
	    -e '//grant codeBase "file:/usr/share/java/repository/-" {\' \
1704
	    -e '//        permission java.security.AllPermission;\' \
1705
	    -e '//};\' \
1706
	    -e '' \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1707
	    $(d_jrehl)/$(security)/java.policy
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1708
# 'make Emacs Makefile mode happy
1709
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1710
	dh_installdirs -p$(p_jrehl) \
402 by Matthias Klose
* Update IcedTea build infrastructure (20091218).
1711
		usr/share/doc/$(p_jrehl) \
106 by Matthias Klose
* binfmt-support: Handle /usr/share/binfmts/jar as a slave symlink of
1712
		usr/share/binfmts
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1713
1714
	dh_installdirs -p$(p_jre) \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1715
		usr/share/applications \
1716
		usr/share/application-registry \
1717
		usr/share/mime-info \
51 by Matthias Klose
* Install icons in /usr/share/pixmaps, not /usr/share/icons.
1718
		usr/share/pixmaps
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1719
1720
	: # add GNOME stuff
461 by Matthias Klose
* Update from the IcedTea6 trunk (20101126).
1721
	cp -p debian/$(basename)-policytool.desktop \
62 by Matthias Klose
openjdk-6 (6b08-0ubuntu1) hardy; urgency=low
1722
	      $(d_jre)/usr/share/applications/
77 by Torsten Werner
Install openjdk-6-java.desktop into the correct binary package.
1723
	cp -p debian/$(basename)-java.desktop \
158 by Matthias Klose
* Install openjdk-6-java.desktop in -jre, instead of -jre-headless.
1724
	      $(d_jre)/usr/share/applications/
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1725
461 by Matthias Klose
* Update from the IcedTea6 trunk (20101126).
1726
	for i in archive; do \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1727
	  cp debian/$(basename)-$$i.applications \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1728
	    $(d_jre)/usr/share/application-registry/; \
1729
	  cp debian/$(basename)-$$i.keys $(d_jre)/usr/share/mime-info/; \
1730
	  cp debian/$(basename)-$$i.mime $(d_jre)/usr/share/mime-info/; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1731
	done
1732
1733
	cp -p debian/sun_java.xpm \
51 by Matthias Klose
* Install icons in /usr/share/pixmaps, not /usr/share/icons.
1734
		$(d_jre)/usr/share/pixmaps/$(basename).xpm
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1735
51 by Matthias Klose
* Install icons in /usr/share/pixmaps, not /usr/share/icons.
1736
	mkdir -p $(d_demo)/usr/share/pixmaps
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1737
	cp -p debian/sun_java_app.xpm \
51 by Matthias Klose
* Install icons in /usr/share/pixmaps, not /usr/share/icons.
1738
		$(d_demo)/usr/share/pixmaps/$(basename)-app.xpm
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1739
284 by Matthias Klose
* Don't configure --with-alt-jar=/usr/bin/fastjar on hotspot archs
1740
	: # install icons
1741
	for i in 16 24 32 48; do \
333 by Matthias Klose
* Build in separate build directory.
1742
	  install -D -m 644 -p build/openjdk/jdk/src/solaris/classes/sun/awt/X11/java-icon$${i}.png \
284 by Matthias Klose
* Don't configure --with-alt-jar=/usr/bin/fastjar on hotspot archs
1743
	    $(d_jre)/usr/share/icons/hicolor/$${i}x$${i}/apps/$(basename).png; \
1744
	done
1745
86.1.1 by Matthias Klose
- revert r75.
1746
	: # create docdir symlinks for $(p_jrehl)
1747
	( \
402 by Matthias Klose
* Update IcedTea build infrastructure (20091218).
1748
	  echo usr/share/doc/$(p_jrehl) $(basedir)/docs; \
86.1.1 by Matthias Klose
- revert r75.
1749
	) > $(d_jrehl).links
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1750
ifneq (,$(DEB_HOST_MULTIARCH))
1751
	echo '/$(basedir) /usr/lib/jvm/$(jdirname)' >> $(d_jrehl).links
1752
endif
86.1.1 by Matthias Klose
- revert r75.
1753
402 by Matthias Klose
* Update IcedTea build infrastructure (20091218).
1754
	: # create docdir symlinks for $(p_jre)
1755
	( \
1756
	  echo usr/share/doc/$(p_jrehl) usr/share/doc/$(p_jre); \
1757
	) > $(d_jre).links
1758
390 by Matthias Klose
* Add the doc dir symlink for openjdk-6-jre-zero when the package
1759
ifneq (,$(filter shark zero, $(alternate_vms)))
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1760
	: # create docdir symlinks for $(p_jrez)
1761
	( \
402 by Matthias Klose
* Update IcedTea build infrastructure (20091218).
1762
	  echo usr/share/doc/$(p_jrehl) usr/share/doc/$(p_jrez); \
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1763
	) > $(d_jrez).links
1764
endif
1765
86.1.1 by Matthias Klose
- revert r75.
1766
	: # create docdir symlinks for $(p_src)
1767
	( \
1768
	  echo usr/share/doc/$(p_jre) usr/share/doc/$(p_src); \
1769
	) > $(d_src).links
1770
1771
	: # create docdir symlinks for $(p_jdk)
1772
	( \
1773
	  echo usr/share/doc/$(p_jre) usr/share/doc/$(p_jdk); \
1774
	) > $(d_jdk).links
501 by Matthias Klose
openjdk-6 (6b23~pre11-1) unstable; urgency=high
1775
# doesn't work, no package dependency
1776
ifneq (,$(DEB_HOST_MULTIARCH))
1777
	  echo '$(commonbasedir)/src.zip $(basedir)/src.zip' >> $(d_jdk).links
1778
endif
86.1.1 by Matthias Klose
- revert r75.
1779
1780
	: # create docdir symlinks for $(p_lib)
1781
	( \
402 by Matthias Klose
* Update IcedTea build infrastructure (20091218).
1782
	  echo usr/share/doc/$(p_jrehl) usr/share/doc/$(p_lib); \
86.1.1 by Matthias Klose
- revert r75.
1783
	) > $(d_lib).links
1784
330 by Matthias Klose
openjdk-6 (6b14-0ubuntu17) jaunty; urgency=low
1785
	: # create docdir symlinks for $(p_dbg)
178 by Matthias Klose
* Build an openjdk-6-dbg package.
1786
	( \
402 by Matthias Klose
* Update IcedTea build infrastructure (20091218).
1787
	  echo usr/share/doc/$(p_jrehl) usr/share/doc/$(p_dbg); \
178 by Matthias Klose
* Build an openjdk-6-dbg package.
1788
	) > $(d_dbg).links
1789
508 by Matthias Klose
[ Luke Yelavich ]
1790
ifeq ($(with_bridge),atk)
1791
	: # create links for the atk wrapper
1792
	echo "usr/share/java/java-atk-wrapper.jar $(basedir)/jre/lib/ext/java-atk-wrapper.jar" \
1793
	    >> $(d_jre).links
1794
	echo "usr/lib$(multiarch_dir)/jni/libatk-wrapper.so $(basedir)/jre/lib/ext/libatk-wrapper.so" \
1795
	    >> $(d_jre).links
1796
else ifeq ($(with_bridge),yes)
363 by Matthias Klose
openjdk-6 (6b16-4) unstable; urgency=medium
1797
	: # create links for the gnome accessibility bridge
1798
	echo "usr/share/java/gnome-java-bridge.jar $(basedir)/jre/lib/ext/gnome-java-bridge.jar" \
1799
	    >> $(d_jre).links
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
1800
  ifeq ($(with_jni_bridge),yes)
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1801
	  echo "usr/lib$(multiarch_dir)/jni/libjava-access-bridge-jni.so $(basedir)/jre/lib/ext/libjava-access-bridge-jni.so" \
363 by Matthias Klose
openjdk-6 (6b16-4) unstable; urgency=medium
1802
	    >> $(d_jre).links
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
1803
  endif
363 by Matthias Klose
openjdk-6 (6b16-4) unstable; urgency=medium
1804
endif
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1805
454 by Matthias Klose
openjdk-6 (6b20-1.9-1) experimental; urgency=low
1806
ifeq ($(with_tzdata),yes)
491 by Matthias Klose
openjdk-6 (6b23~pre9-1) unstable; urgency=low
1807
	echo usr/share/javazi $(basedir)/jre/lib/zi \
1808
	  >> $(if $(DEB_HOST_MULTIARCH),$(d_jrehl),$(d_lib)).links
454 by Matthias Klose
openjdk-6 (6b20-1.9-1) experimental; urgency=low
1809
endif
1810
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1811
	: # create links for the config files
512 by Matthias Klose
- don't install nss.cfg as an architecture specific file.
1812
	find $(d_jrehl)/$(etcdir) -type f ! -name jvm.cfg \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1813
	    -printf "$(etcdir)/%P $(basedir)/jre/lib/%P\n" >> $(d_jrehl).links
1814
ifneq (,$(DEB_HOST_MULTIARCH))
1815
	mv $(d_jrehl)/$(etcdir)/jvm.cfg \
1816
	  $(d_jrehl)/$(etcdir)/jvm-$(DEB_HOST_ARCH).cfg
1817
	( \
1818
	  echo "$(etcdir)/jvm-$(DEB_HOST_ARCH).cfg $(basedir)/jre/lib/$(archdir)/jvm.cfg"; \
1819
	) >> $(d_jrehl).links
1820
else
1821
	( \
1822
	  echo "$(etcdir)/jvm.cfg $(basedir)/jre/lib/$(archdir)/jvm.cfg"; \
1823
	) >> $(d_jrehl).links
1824
endif
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
1825
ifneq (,$(pkg_certs))
175 by Matthias Klose
* Fix some lintian warnings.
1826
	echo "etc/ssl/certs/java/cacerts $(basedir)/jre/lib/security/cacerts" \
171 by Matthias Klose
* Use the certificates provided by the ca-certificates-java package.
1827
	    >> $(d_jrehl).links
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
1828
endif
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1829
79.1.6 by Torsten Werner
Install /usr/bin/jexec via update-alternatives.
1830
	@echo JRE_HL_TOOLS: $(jre_hl_tools_alt) jexec
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1831
	@echo JRE_TOOLS: $(jre_tools_alt)
1832
	@echo JDK_TOOLS: $(jdk_tools_alt)
1833
	( \
1834
	  echo 'name=$(jdirname)'; \
1835
	  echo 'alias=$(jdiralias)'; \
1836
	  echo 'priority=$(priority)'; \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1837
	  echo 'section=main'; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1838
	  echo ''; \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1839
	  for i in $(jre_hl_tools_alt); do \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1840
	    echo "hl $$i /$(basedir)/jre/bin/$$i"; \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1841
	  done; \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1842
	  echo "hl jexec /$(basedir)/jre/lib/jexec"; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1843
	  for i in $(jre_tools_alt); do \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1844
	    echo "jre $$i /$(basedir)/jre/bin/$$i"; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1845
	  done; \
1846
	  for i in $(jdk_tools_alt); do \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1847
	    echo "jdk $$i /$(basedir)/bin/$$i"; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1848
	  done; \
130 by Matthias Klose
* Fix names for browser alternatives in jinfo file, set browser_plugin_dirs
1849
	  for d in $(browser_plugin_dirs); do \
504 by Matthias Klose
* Fix plugin name in jinfo file. Closes: #650928.
1850
	    echo "plugin $$d-javaplugin.so /$(basedir)/jre/lib/$(archdir)/$(plugin_name)"; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1851
	  done; \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1852
	) > $(d_jrehl)/$(TOP)/.$(jdiralias).jinfo
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1853
106 by Matthias Klose
* binfmt-support: Handle /usr/share/binfmts/jar as a slave symlink of
1854
	( \
1855
	  echo 'package $(basename)'; \
1856
	  echo 'interpreter /usr/bin/jexec'; \
1857
	  echo 'magic PK\x03\x04'; \
1858
	) > $(d_jrehl)/$(basedir)/jre/lib/jar.binfmt
1859
347 by Matthias Klose
openjdk-6 (6b16~pre1-0ubuntu1) karmic; urgency=low
1860
	: # another jvm symlink
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1861
	ln -sf $(jdirname) $(d_jrehl)/usr/lib/jvm/$(jdiralias)
347 by Matthias Klose
openjdk-6 (6b16~pre1-0ubuntu1) karmic; urgency=low
1862
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
1863
ifeq ($(with_systemtap),yes)
1864
	: # systemtap support
1865
	mkdir -p $(d_jrehl)/usr/share/systemtap/tapset
1866
	cp -p build/tapset/hotspot.stp $(d_jrehl)/usr/share/systemtap/tapset/
1867
endif
1868
204 by Matthias Klose
* Install javazic.jar in the jre-lib package.
1869
	: # Install stuff to generate font config and timezone files.
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1870
	mkdir -p $(d_lib)/$(commonbasedir)/jre/lib
443 by Matthias Klose
openjdk-6 (6b20~pre1-0ubuntu2) maverick; urgency=low
1871
	cp -p build/openjdk.build/btjars/compilefontconfig.jar \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1872
		$(d_lib)/$(commonbasedir)/jre/lib/
443 by Matthias Klose
openjdk-6 (6b20~pre1-0ubuntu2) maverick; urgency=low
1873
	cp -p build/openjdk.build/btjars/javazic.jar \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1874
		$(d_lib)/$(commonbasedir)/jre/lib/
1875
1876
ifneq (,$(DEB_HOST_MULTIARCH))
1877
	: # create symlinks for the files in $(p_lib)
491 by Matthias Klose
openjdk-6 (6b23~pre9-1) unstable; urgency=low
1878
	find $(d_lib)/$(commonbasedir) \
1879
	    ! -name zi ! -name meta-index \( -name cmm -prune -o -type f \) \
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1880
	    -printf "$(commonbasedir)/%P $(basedir)/%P\n" >> $(d_jrehl).links
1881
  ifeq ($(with_tzdata),yes)
1882
	echo usr/share/javazi $(basedir)/jre/lib/zi \
1883
	  >> $(d_jrehl).links
1884
  endif
1885
endif
163 by Matthias Klose
* Install compilefontconfig.jar in openjdk-6-jre-lib package.
1886
90 by Torsten Werner
Update and install the lintian override files.
1887
	: # install lintian overrides
1888
	for FILE in debian/*.overrides; do \
1889
	  PKG=`basename $$FILE .overrides`; \
1890
	  install -D -m644 $$FILE debian/$$PKG/usr/share/lintian/overrides/$$PKG; \
1891
	done
1892
196 by Matthias Klose
* debian/patches/const_strings.patch, debian/patches/issue-6659207.diff:
1893
nodocs = $(if $(findstring nodocs, $(DEB_BUILD_OPTIONS)),-N$(p_doc))
332 by Matthias Klose
* Update hotspot to 14.0-b10.
1894
nojrec = $(if $(filter cacao, $(alternate_vms)),,-N$(p_jrec))
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
1895
nojrej = $(if $(filter jamvm, $(alternate_vms)),,-N$(p_jrej))
363 by Matthias Klose
openjdk-6 (6b16-4) unstable; urgency=medium
1896
nojrez = $(if $(filter shark zero, $(alternate_vms)),,-N$(p_jrez))
196 by Matthias Klose
* debian/patches/const_strings.patch, debian/patches/issue-6659207.diff:
1897
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1898
# Build architecture independant packages
1899
binary-indep: build install
1900
	dh_testdir
1901
	dh_testroot
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
1902
ifeq ($(with_docs),yes)
86.1.1 by Matthias Klose
- revert r75.
1903
	dh_installchangelogs -p$(p_doc)
402 by Matthias Klose
* Update IcedTea build infrastructure (20091218).
1904
	dh_installdocs -p$(p_doc)
1905
	mkdir -p $(d_doc)/usr/share/doc/$(p_jrehl)
446 by Matthias Klose
* Include docs in the -doc package. LP: #600834.
1906
	for i in build/openjdk.build/docs/*; do \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1907
	  [ -e $$i ] || continue; \
1908
	  b=$$(basename $$i); \
402 by Matthias Klose
* Update IcedTea build infrastructure (20091218).
1909
	  cp -a $$i $(d_doc)/usr/share/doc/$(p_jrehl)/; \
1910
	  ln -sf ../$(p_jrehl)/$$b $(d_doc)/usr/share/doc/$(p_doc)/$$b; \
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1911
	done
348 by Matthias Klose
* Update IcedTea build infrastructure (20090503).
1912
endif
511 by Matthias Klose
* Don't install desktop and menu files for multiarch builds.
1913
# FIXME: desktop and menu files not ready for multiarch. #658321
1914
ifeq (,$(DEB_HOST_MULTIARCH))
196 by Matthias Klose
* debian/patches/const_strings.patch, debian/patches/issue-6659207.diff:
1915
	dh_installmenu -i $(nodocs)
511 by Matthias Klose
* Don't install desktop and menu files for multiarch builds.
1916
endif
196 by Matthias Klose
* debian/patches/const_strings.patch, debian/patches/issue-6659207.diff:
1917
	-dh_icons -i $(nodocs) || dh_iconcache -i $(nodocs)
1918
#	dh_installdebconf -i $(nodocs)
1919
	dh_link -i $(nodocs)
414 by Matthias Klose
* Update IcedTea build infrastructure (20100310).
1920
	dh_compress -i $(nodocs) -Xexamples -Xdemos -Xpackage-list
196 by Matthias Klose
* debian/patches/const_strings.patch, debian/patches/issue-6659207.diff:
1921
	dh_fixperms -i $(nodocs)
1922
	dh_installdeb -i $(nodocs)
1923
	dh_gencontrol -i $(nodocs) -- $(control_vars)
1924
	dh_md5sums -i $(nodocs)
1925
	dh_builddeb -i $(nodocs) $(bd_options)
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1926
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1927
absarchdir = $(CURDIR)/$(d_jrehl)/$(basedir)/jre/lib/$(archdir)
432 by Matthias Klose
* Update IcedTea6 to the icedtea6-1.8 release.
1928
shlibdeps_ld_path =$(absarchdir):$(absarchdir)/client:$(absarchdir)/server:$(absarchdir)/native_threads$(if $(xulrunner_depends),:$(shell pkg-config --libs-only-L libxul | sed  's/^-L//;s/-devel//;s,/lib *$$,,'))
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1929
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1930
# pass vm name as first argument
1931
define install_test_results
1932
	mkdir -p $(d_jdk)/usr/share/doc/$(p_jrehl)/test-$(DEB_HOST_ARCH)
1933
	-cp build/mauve-$(1)/mauve_output-$(1) \
1934
	  $(d_jdk)/usr/share/doc/$(p_jrehl)/test-$(DEB_HOST_ARCH)/mauve_output-$(1).log
1935
	-cp jtreg_output-$(1) \
1936
	  $(d_jdk)/usr/share/doc/$(p_jrehl)/test-$(DEB_HOST_ARCH)/jtreg_output-$(1).log
1937
	-cp build/test/jtreg-summary-$(1).log build/test/check-*-$(1).log \
1938
	  $(d_jdk)/usr/share/doc/$(p_jrehl)/test-$(DEB_HOST_ARCH)/
1939
	-cp build/test/failed_tests-$(1).tar.gz \
1940
	  $(d_jdk)/usr/share/doc/$(p_jrehl)/test-$(DEB_HOST_ARCH)/failed_tests-$(1).tar.gz
1941
endef
1942
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
1943
# Build architecture dependant packages
1944
binary-arch: build install
1945
	dh_testdir
1946
	dh_testroot
158 by Matthias Klose
* Install openjdk-6-java.desktop in -jre, instead of -jre-headless.
1947
	dh_installchangelogs -p$(p_jrehl)
1948
	dh_installdocs -p$(p_jrehl) \
86.1.1 by Matthias Klose
- revert r75.
1949
		debian/JAVA_HOME \
103 by Torsten Werner
install README.Debian and java-rmi.cgi
1950
		debian/README.alternatives \
1951
		debian/README.Debian
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1952
	for i in AUTHORS NEWS README; do \
402 by Matthias Klose
* Update IcedTea build infrastructure (20091218).
1953
	  cp -p $$i $(d_jrehl)/usr/share/doc/$(p_jrehl)/$$i.IcedTea; \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1954
	done
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1955
	$(call install_test_results,$(default_vm))
34 by Matthias Klose
* Build-depend on mauve and xvfb; run some mauve tests (the list of
1956
332 by Matthias Klose
* Update hotspot to 14.0-b10.
1957
ifneq (,$(filter cacao, $(alternate_vms)))
1958
	dh_installchangelogs -p$(p_jrec)
1959
	dh_installdocs -p$(p_jrec)
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1960
	$(call install_test_results,cacao)
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1961
endif
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
1962
ifneq (,$(filter jamvm, $(alternate_vms)))
1963
	dh_installchangelogs -p$(p_jrej)
1964
	dh_installdocs -p$(p_jrej)
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1965
	$(call install_test_results,jamvm)
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
1966
endif
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1967
ifneq (,$(filter zero, $(alternate_vms)))
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1968
	$(call install_test_results,zero)
339 by Matthias Klose
* Build the Zero/Shark VM as an additional JVM (call as `java -zero').
1969
endif
511 by Matthias Klose
* Don't install desktop and menu files for multiarch builds.
1970
# FIXME: desktop and menu files not ready for multiarch. #658321
1971
ifeq (,$(DEB_HOST_MULTIARCH))
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
1972
	dh_installmenu -s $(nodemo) $(nojrec) $(nojrej) $(nojrez)
511 by Matthias Klose
* Don't install desktop and menu files for multiarch builds.
1973
endif
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
1974
	-dh_icons -s $(nodemo) $(nojrec) $(nojrej) $(nojrez) \
1975
		|| dh_iconcache -s $(nodemo) $(nojrec) $(nojrej) $(nojrez)
1976
#	dh_installdebconf -s $(nodemo) $(nojrec) $(nojrej) $(nojrez)
1977
	dh_link -s $(nodemo) $(nojrec) $(nojrej) $(nojrez)
1978
	dh_strip -s $(nodemo) $(nojrec) $(nojrej) $(nojrez) \
446 by Matthias Klose
* Include docs in the -doc package. LP: #600834.
1979
		-Xlibjvm.so --dbg-package=$(p_dbg)
1980
ifeq (,$(findstring nostrip, $(DEB_BUILD_OPTIONS)))
1981
	set -e; \
1982
	for i in {$(d_jrehl),$(d_jrec),$(d_jrez)}/$(basedir)/jre/lib/$(archdir)/*/libjvm.so; do \
1983
	  id=$$(echo $$i | sed -r 's,debian/[^/]+,$(d_dbg)/usr/lib/debug,'); \
1984
	  [ -f $$i ] || continue; \
1985
	  echo strip $$i; \
1986
	  mkdir -p $$(dirname $$id); \
1987
	  objcopy --only-keep-debug $$i $$id; \
1988
	  chmod 644 $$id; \
1989
	  strip --remove-section=.comment --remove-section=.note \
1990
	    --strip-debug $$i; \
1991
	  objcopy --add-gnu-debuglink $$id $$i; \
1992
	done
1993
endif
1994
490 by Matthias Klose
openjdk-6 (6b23~pre8-2) unstable; urgency=low
1995
	dh_compress -s $(nodemo) $(nojrec) $(nojrej) $(nojrez) -Xexamples -Xdemos -Xpackage-list
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
1996
	dh_fixperms -s $(nodemo) $(nojrec) $(nojrej) $(nojrez)
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1997
	dh_makeshlibs -p$(p_jrehl) -p$(p_jre)
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
1998
	dh_shlibdeps -s $(nodemo) $(nojrec) $(nojrej) $(nojrez) -L $(p_jrehl) \
31 by Matthias Klose
* Split out a openjdk-6-jre-headless package, depend on java-common,
1999
		-l$(shlibdeps_ld_path) \
2000
		--
423 by Matthias Klose
* Fix builds on Ubuntu/dapper and Debian/lenny.
2001
ifneq (,$(filter $(distrel),dapper))
2002
	sed -i 's/, *libfreetype6[^,]*//' debian/$(p_jrehl).substvars
2003
endif
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
2004
	dh_installdeb -s $(nodemo) $(nojrec) $(nojrej) $(nojrez)
2005
	dh_gencontrol -s $(nodemo) $(nojrec) $(nojrej) $(nojrez) \
414 by Matthias Klose
* Update IcedTea build infrastructure (20100310).
2006
		-- $(control_vars)
465 by Matthias Klose
openjdk-6 (6b21~pre3-0ubuntu1) natty; urgency=low
2007
	dh_md5sums -s $(nodemo) $(nojrec) $(nojrej) $(nojrez)
2008
	dh_builddeb -s $(nodemo) $(nojrec) $(nojrej) $(nojrez) #$(bd_options)
1 by Matthias Klose
Initial checkin (7~b23-1.5~20071124-3 package).
2009
2010
binary: binary-arch binary-indep
528 by Matthias Klose
* Use IPAfont as the preferred japanesse font. Closes: #646054.
2011
.PHONY: build clean binary-indep binary-arch binary install packaging-files