Merge lp:~ebourg/openjdk/icedtea-web into lp:~openjdk/openjdk/icedtea-web
- icedtea-web
- Merge into icedtea-web
Proposed by
Emmanuel Bourg
Status: | Needs review |
---|---|
Proposed branch: | lp:~ebourg/openjdk/icedtea-web |
Merge into: | lp:~openjdk/openjdk/icedtea-web |
Diff against target: |
456 lines (+212/-8) 8 files modified
PLUGIN8.overrides.in (+2/-0) PLUGIN8.postinst.in (+54/-0) PLUGIN8.prerm.in (+18/-0) changelog (+6/-0) control (+15/-0) control.8 (+15/-0) icedtea-netx.postinst.in (+31/-0) rules (+71/-8) |
To merge this branch: | bzr merge lp:~ebourg/openjdk/icedtea-web |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Matthias Klose | Pending | ||
Review via email: mp+225908@code.launchpad.net |
Commit message
Description of the change
Added icedtea-8-plugin for OpenJDK 8 (Closes: #751173)
To post a comment you must log in.
Unmerged revisions
- 33. By Emmanuel Bourg
-
Added icedtea-8-plugin for OpenJDK 8 (Closes: #751173)
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added file 'PLUGIN8.overrides.in' | |||
2 | --- PLUGIN8.overrides.in 1970-01-01 00:00:00 +0000 | |||
3 | +++ PLUGIN8.overrides.in 2014-07-07 23:02:04 +0000 | |||
4 | @@ -0,0 +1,2 @@ | |||
5 | 1 | # empty directories for plugin alternatives | ||
6 | 2 | @pkg_plugin8@ binary: package-contains-empty-directory | ||
7 | 0 | 3 | ||
8 | === added file 'PLUGIN8.postinst.in' | |||
9 | --- PLUGIN8.postinst.in 1970-01-01 00:00:00 +0000 | |||
10 | +++ PLUGIN8.postinst.in 2014-07-07 23:02:04 +0000 | |||
11 | @@ -0,0 +1,54 @@ | |||
12 | 1 | #!/bin/sh -e | ||
13 | 2 | |||
14 | 3 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
15 | 4 | |||
16 | 5 | multiarch=@multiarch@ | ||
17 | 6 | priority=@priority8@ | ||
18 | 7 | browser_dirs="@browser_dirs@" | ||
19 | 8 | PLUGIN=@plugin_name@ | ||
20 | 9 | basedir=/@base8dir@ | ||
21 | 10 | old_basedir=/usr/lib/jvm/java-8/openjdk | ||
22 | 11 | PLUGINPTH=$basedir/jre/lib/@archdir@/$PLUGIN | ||
23 | 12 | OLD_PLUGINPTH=$old_basedir/jre/lib/@archdir@/$PLUGIN | ||
24 | 13 | |||
25 | 14 | case "$1" in | ||
26 | 15 | configure) | ||
27 | 16 | for browser_dir in $browser_dirs; do | ||
28 | 17 | if [ $browser_dir = xulrunner-addons ]; then | ||
29 | 18 | browser=xulrunner-1.9 | ||
30 | 19 | else | ||
31 | 20 | browser=$browser_dir | ||
32 | 21 | fi | ||
33 | 22 | |||
34 | 23 | if [ -n "$multiarch" ] && [ "$DPKG_MAINTSCRIPT_ARCH" != $(dpkg --print-architecture) ]; then | ||
35 | 24 | priority=$(expr $priority - 1) | ||
36 | 25 | fi | ||
37 | 26 | |||
38 | 27 | if [ -n "$multiarch" ] && [ -n "$2" ]; then | ||
39 | 28 | if [ -n "$(update-alternatives --list $browser-javaplugin.so 2>/dev/null | grep ^$old_basedir/)" ]; then | ||
40 | 29 | update-alternatives --remove $browser-javaplugin.so $OLD_PLUGINPTH || true | ||
41 | 30 | fi | ||
42 | 31 | fi | ||
43 | 32 | |||
44 | 33 | if [ -z "$(update-alternatives --list $browser-javaplugin.so 2>/dev/null | grep ^$basedir/)" ]; then | ||
45 | 34 | update-alternatives --quiet --install \ | ||
46 | 35 | /usr/lib/$browser_dir/plugins/libjavaplugin.so \ | ||
47 | 36 | $browser-javaplugin.so \ | ||
48 | 37 | $PLUGINPTH \ | ||
49 | 38 | $priority | ||
50 | 39 | elif [ $priority -gt 1070 ]; then | ||
51 | 40 | oldp=$(update-alternatives --query $browser-javaplugin.so | awk -v b=$basedir '/^Alternative:/ && $2~b {p=1} /^Priority:/ && p {print $2; exit}') | ||
52 | 41 | if [ -n "$oldp" ] && [ "$oldp" -le 1070 ]; then | ||
53 | 42 | update-alternatives --quiet --install \ | ||
54 | 43 | /usr/lib/$browser_dir/plugins/libjavaplugin.so \ | ||
55 | 44 | $browser-javaplugin.so \ | ||
56 | 45 | $PLUGINPTH \ | ||
57 | 46 | $priority | ||
58 | 47 | fi | ||
59 | 48 | fi | ||
60 | 49 | done | ||
61 | 50 | esac | ||
62 | 51 | |||
63 | 52 | #DEBHELPER# | ||
64 | 53 | |||
65 | 54 | exit 0 | ||
66 | 0 | 55 | ||
67 | === added file 'PLUGIN8.prerm.in' | |||
68 | --- PLUGIN8.prerm.in 1970-01-01 00:00:00 +0000 | |||
69 | +++ PLUGIN8.prerm.in 2014-07-07 23:02:04 +0000 | |||
70 | @@ -0,0 +1,18 @@ | |||
71 | 1 | #!/bin/sh -e | ||
72 | 2 | |||
73 | 3 | browser_dirs="@browser_dirs@" | ||
74 | 4 | PLUGIN=@plugin_name@ | ||
75 | 5 | PLUGINPTH=/@base8dir@/jre/lib/@archdir@/$PLUGIN | ||
76 | 6 | |||
77 | 7 | for browser_dir in $browser_dirs; do | ||
78 | 8 | if [ $browser_dir = xulrunner-addons ]; then | ||
79 | 9 | browser=xulrunner-1.9 | ||
80 | 10 | else | ||
81 | 11 | browser=$browser_dir | ||
82 | 12 | fi | ||
83 | 13 | update-alternatives --quiet --remove \ | ||
84 | 14 | $browser-javaplugin.so \ | ||
85 | 15 | $PLUGINPTH | ||
86 | 16 | done | ||
87 | 17 | |||
88 | 18 | #DEBHELPER# | ||
89 | 0 | 19 | ||
90 | === modified file 'changelog' | |||
91 | --- changelog 2014-06-30 13:26:14 +0000 | |||
92 | +++ changelog 2014-07-07 23:02:04 +0000 | |||
93 | @@ -1,3 +1,9 @@ | |||
94 | 1 | icedtea-web (1.5-3) UNRELEASED; urgency=medium | ||
95 | 2 | |||
96 | 3 | * Added icedtea-8-plugin for OpenJDK 8 (Closes: #751173) | ||
97 | 4 | |||
98 | 5 | -- Emmanuel Bourg <ebourg@apache.org> Mon, 07 Jul 2014 22:09:27 +0200 | ||
99 | 6 | |||
100 | 1 | icedtea-web (1.5-2) unstable; urgency=medium | 7 | icedtea-web (1.5-2) unstable; urgency=medium |
101 | 2 | 8 | ||
102 | 3 | * Build-depend on iceweasel-dev. Closes: #752838. | 9 | * Build-depend on iceweasel-dev. Closes: #752838. |
103 | 4 | 10 | ||
104 | === modified file 'control' | |||
105 | --- control 2014-06-30 13:26:14 +0000 | |||
106 | +++ control 2014-07-07 23:02:04 +0000 | |||
107 | @@ -63,3 +63,18 @@ | |||
108 | 63 | IcedTeaPlugin is a web browser plugin to execute Java applets, supporting | 63 | IcedTeaPlugin is a web browser plugin to execute Java applets, supporting |
109 | 64 | LiveConnect/JavaScript. It is targeted for xulrunner-1.9 and compatible | 64 | LiveConnect/JavaScript. It is targeted for xulrunner-1.9 and compatible |
110 | 65 | browsers that support the NPAPI. | 65 | browsers that support the NPAPI. |
111 | 66 | |||
112 | 67 | Package: icedtea-8-plugin | ||
113 | 68 | Section: web | ||
114 | 69 | Architecture: amd64 armel armhf arm64 hurd-i386 i386 ia64 kfreebsd-amd64 kfreebsd-i386 powerpc s390 s390x sparc | ||
115 | 70 | Multi-Arch: same | ||
116 | 71 | Depends: openjdk-8-jre, icedtea-netx (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} | ||
117 | 72 | Conflicts: icedtea-gcjwebplugin (<< 1.0-1ubuntu4), icedtea6-plugin (<< 6b21.2~pre1-1~), icedtea-plugin (<< 1.2~pre1-1~) | ||
118 | 73 | Xb-Npp-Description: IcedTea Java Web Browser Plugin for OpenJDK 8 (execution of applets on web pages) | ||
119 | 74 | Xb-Npp-Applications: ec8030f7-c20a-464f-9b0e-13a3a9e97384, 92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a, aa5ca914-c309-495d-91cf-3141bbb04115 | ||
120 | 75 | Xb-Npp-Name: The IcedTea Web Browser Plugin | ||
121 | 76 | Xb-Npp-MimeType: application/x-java-vm, application/x-java-applet, application/x-java-applet;version=1.1, application/x-java-applet;version=1.1.1, application/x-java-applet;version=1.1.2, application/x-java-applet;version=1.1.3, application/x-java-applet;version=1.2, application/x-java-applet;version=1.2.1, application/x-java-applet;version=1.2.2, application/x-java-applet;version=1.3, application/x-java-applet;version=1.3.1, application/x-java-applet;version=1.4, application/x-java-applet;version=1.4.1, application/x-java-applet;version=1.4.2, application/x-java-applet;version=1.5, application/x-java-applet;version=1.6, application/x-java-applet;version=1.8, application/x-java-applet;jpi-version=1.8.0_00, application/x-java-bean, application/x-java-bean;version=1.1, application/x-java-bean;version=1.1.1, application/x-java-bean;version=1.1.2, application/x-java-bean;version=1.1.3, application/x-java-bean;version=1.2, application/x-java-bean;version=1.2.1, application/x-java-bean;version=1.2.2, application/x-java-bean;version=1.3, application/x-java-bean;version=1.3.1, application/x-java-bean;version=1.4, application/x-java-bean;version=1.4.1, application/x-java-bean;version=1.4.2, application/x-java-bean;version=1.5, application/x-java-bean;version=1.6, application/x-java-bean;version=1.8, application/x-java-bean;jpi-version=1.8.0_00 | ||
122 | 77 | Description: web browser plugin based on OpenJDK and IcedTea to execute Java applets | ||
123 | 78 | IcedTeaPlugin is a web browser plugin to execute Java applets, supporting | ||
124 | 79 | LiveConnect/JavaScript. It is targeted for xulrunner-1.9 and compatible | ||
125 | 80 | browsers that support the NPAPI. | ||
126 | 66 | 81 | ||
127 | === added file 'control.8' | |||
128 | --- control.8 1970-01-01 00:00:00 +0000 | |||
129 | +++ control.8 2014-07-07 23:02:04 +0000 | |||
130 | @@ -0,0 +1,15 @@ | |||
131 | 1 | |||
132 | 2 | Package: icedtea-8-plugin | ||
133 | 3 | Section: web | ||
134 | 4 | Architecture: amd64 armel armhf arm64 hurd-i386 i386 ia64 kfreebsd-amd64 kfreebsd-i386 powerpc s390 s390x sparc | ||
135 | 5 | Multi-Arch: same | ||
136 | 6 | Depends: openjdk-8-jre, icedtea-netx (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} | ||
137 | 7 | Conflicts: icedtea-gcjwebplugin (<< 1.0-1ubuntu4), icedtea6-plugin (<< 6b21.2~pre1-1~), icedtea-plugin (<< 1.2~pre1-1~) | ||
138 | 8 | Xb-Npp-Description: IcedTea Java Web Browser Plugin for OpenJDK 8 (execution of applets on web pages) | ||
139 | 9 | Xb-Npp-Applications: ec8030f7-c20a-464f-9b0e-13a3a9e97384, 92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a, aa5ca914-c309-495d-91cf-3141bbb04115 | ||
140 | 10 | Xb-Npp-Name: The IcedTea Web Browser Plugin | ||
141 | 11 | Xb-Npp-MimeType: application/x-java-vm, application/x-java-applet, application/x-java-applet;version=1.1, application/x-java-applet;version=1.1.1, application/x-java-applet;version=1.1.2, application/x-java-applet;version=1.1.3, application/x-java-applet;version=1.2, application/x-java-applet;version=1.2.1, application/x-java-applet;version=1.2.2, application/x-java-applet;version=1.3, application/x-java-applet;version=1.3.1, application/x-java-applet;version=1.4, application/x-java-applet;version=1.4.1, application/x-java-applet;version=1.4.2, application/x-java-applet;version=1.5, application/x-java-applet;version=1.6, application/x-java-applet;version=1.8, application/x-java-applet;jpi-version=1.8.0_00, application/x-java-bean, application/x-java-bean;version=1.1, application/x-java-bean;version=1.1.1, application/x-java-bean;version=1.1.2, application/x-java-bean;version=1.1.3, application/x-java-bean;version=1.2, application/x-java-bean;version=1.2.1, application/x-java-bean;version=1.2.2, application/x-java-bean;version=1.3, application/x-java-bean;version=1.3.1, application/x-java-bean;version=1.4, application/x-java-bean;version=1.4.1, application/x-java-bean;version=1.4.2, application/x-java-bean;version=1.5, application/x-java-bean;version=1.6, application/x-java-bean;version=1.8, application/x-java-bean;jpi-version=1.8.0_00 | ||
142 | 12 | Description: web browser plugin based on OpenJDK and IcedTea to execute Java applets | ||
143 | 13 | IcedTeaPlugin is a web browser plugin to execute Java applets, supporting | ||
144 | 14 | LiveConnect/JavaScript. It is targeted for xulrunner-1.9 and compatible | ||
145 | 15 | browsers that support the NPAPI. | ||
146 | 0 | 16 | ||
147 | === modified file 'icedtea-netx.postinst.in' | |||
148 | --- icedtea-netx.postinst.in 2012-09-06 14:00:47 +0000 | |||
149 | +++ icedtea-netx.postinst.in 2014-07-07 23:02:04 +0000 | |||
150 | @@ -9,6 +9,9 @@ | |||
151 | 9 | priority7=@priority7@ | 9 | priority7=@priority7@ |
152 | 10 | base7dir=/@base7dir@ | 10 | base7dir=/@base7dir@ |
153 | 11 | man7dir=$base7dir/jre/man | 11 | man7dir=$base7dir/jre/man |
154 | 12 | priority8=@priority8@ | ||
155 | 13 | base8dir=/@base8dir@ | ||
156 | 14 | man8dir=$base8dir/jre/man | ||
157 | 12 | tools='javaws itweb-settings' | 15 | tools='javaws itweb-settings' |
158 | 13 | srcext=1.gz | 16 | srcext=1.gz |
159 | 14 | dstext=1.gz | 17 | dstext=1.gz |
160 | @@ -40,6 +43,7 @@ | |||
161 | 40 | if [ -n "$multiarch" ] && [ "$DPKG_MAINTSCRIPT_ARCH" != $(dpkg --print-architecture) ]; then | 43 | if [ -n "$multiarch" ] && [ "$DPKG_MAINTSCRIPT_ARCH" != $(dpkg --print-architecture) ]; then |
162 | 41 | priority=$(expr $priority - 1) | 44 | priority=$(expr $priority - 1) |
163 | 42 | priority7=$(expr $priority7 - 1) | 45 | priority7=$(expr $priority7 - 1) |
164 | 46 | priority8=$(expr $priority8 - 1) | ||
165 | 43 | fi | 47 | fi |
166 | 44 | 48 | ||
167 | 45 | for i in $tools; do | 49 | for i in $tools; do |
168 | @@ -85,6 +89,33 @@ | |||
169 | 85 | update-alternatives --set $i $basedir/jre/bin/$i | 89 | update-alternatives --set $i $basedir/jre/bin/$i |
170 | 86 | fi | 90 | fi |
171 | 87 | done | 91 | done |
172 | 92 | |||
173 | 93 | for i in $tools; do | ||
174 | 94 | unset slave1 || true | ||
175 | 95 | if [ -e $man8dir/man1/$i.$srcext ]; then | ||
176 | 96 | slave1="--slave \ | ||
177 | 97 | /usr/share/man/man1/$i.$dstext \ | ||
178 | 98 | $i.$dstext \ | ||
179 | 99 | $man8dir/man1/$i.$srcext" | ||
180 | 100 | fi | ||
181 | 101 | update-alternatives \ | ||
182 | 102 | --install \ | ||
183 | 103 | /usr/bin/$i \ | ||
184 | 104 | $i \ | ||
185 | 105 | $base8dir/jre/bin/$i \ | ||
186 | 106 | $priority8 \ | ||
187 | 107 | $slave1 | ||
188 | 108 | |||
189 | 109 | # 7's priority is higher, but 7 is not installed, set it to 8 | ||
190 | 110 | if [ $priority7 -gt $priority8 ] && [ ! -f $base8dir/jre/bin/$i ]; then | ||
191 | 111 | update-alternatives --set $i $base8dir/jre/bin/$i | ||
192 | 112 | fi | ||
193 | 113 | |||
194 | 114 | # 8's priority is higher, but 8 is not installed, set it to 7 | ||
195 | 115 | if [ $priority8 -gt $priority7 ] && [ ! -f $base7dir/jre/bin/$i ]; then | ||
196 | 116 | update-alternatives --set $i $base7dir/jre/bin/$i | ||
197 | 117 | fi | ||
198 | 118 | done | ||
199 | 88 | fi | 119 | fi |
200 | 89 | esac | 120 | esac |
201 | 90 | 121 | ||
202 | 91 | 122 | ||
203 | === modified file 'rules' | |||
204 | --- rules 2014-06-30 13:26:14 +0000 | |||
205 | +++ rules 2014-07-07 23:02:04 +0000 | |||
206 | @@ -32,7 +32,7 @@ | |||
207 | 32 | # for simplicity build the plugin for 7 for multiarch setup only, | 32 | # for simplicity build the plugin for 7 for multiarch setup only, |
208 | 33 | # anything else requires backports. | 33 | # anything else requires backports. |
209 | 34 | ifneq (,$(DEB_HOST_MULTIARCH)) | 34 | ifneq (,$(DEB_HOST_MULTIARCH)) |
211 | 35 | jre_versions += 7 | 35 | jre_versions += 7 8 |
212 | 36 | endif | 36 | endif |
213 | 37 | 37 | ||
214 | 38 | ifneq (,$(wildcard /usr/bin/dpkg-buildflags)) | 38 | ifneq (,$(wildcard /usr/bin/dpkg-buildflags)) |
215 | @@ -62,6 +62,7 @@ | |||
216 | 62 | default_plugin_version = 7 | 62 | default_plugin_version = 7 |
217 | 63 | endif | 63 | endif |
218 | 64 | endif | 64 | endif |
219 | 65 | is8_default = no | ||
220 | 65 | 66 | ||
221 | 66 | # dependency package for older releases | 67 | # dependency package for older releases |
222 | 67 | ifeq (,$(filter $(distrel),hardy intrepid jaunty karmic lucid maverick natty oneiric precise quantal raring lenny etch squeeze wheezy)) | 68 | ifeq (,$(filter $(distrel),hardy intrepid jaunty karmic lucid maverick natty oneiric precise quantal raring lenny etch squeeze wheezy)) |
223 | @@ -75,18 +76,21 @@ | |||
224 | 75 | ifneq (,$(DEB_HOST_MULTIARCH)) | 76 | ifneq (,$(DEB_HOST_MULTIARCH)) |
225 | 76 | jdk_home = $(TOP)/java-6-openjdk-$(DEB_HOST_ARCH) | 77 | jdk_home = $(TOP)/java-6-openjdk-$(DEB_HOST_ARCH) |
226 | 77 | jdk7_home = $(TOP)/java-7-openjdk-$(DEB_HOST_ARCH) | 78 | jdk7_home = $(TOP)/java-7-openjdk-$(DEB_HOST_ARCH) |
227 | 79 | jdk8_home = $(TOP)/java-8-openjdk-$(DEB_HOST_ARCH) | ||
228 | 78 | else | 80 | else |
229 | 79 | jdk_home = $(TOP)/java-6-openjdk | 81 | jdk_home = $(TOP)/java-6-openjdk |
230 | 80 | jdk7_home = $(TOP)/java-7-openjdk | 82 | jdk7_home = $(TOP)/java-7-openjdk |
231 | 81 | endif | 83 | endif |
232 | 82 | basedir = $(jdk_home) | 84 | basedir = $(jdk_home) |
233 | 83 | base7dir = $(jdk7_home) | 85 | base7dir = $(jdk7_home) |
234 | 86 | base8dir = $(jdk8_home) | ||
235 | 84 | vendor = IcedTea | 87 | vendor = IcedTea |
236 | 85 | shortver = 6 | 88 | shortver = 6 |
237 | 86 | last_npp_version = 6b18~pre2-2 | 89 | last_npp_version = 6b18~pre2-2 |
238 | 87 | priority = 1061 | 90 | priority = 1061 |
239 | 88 | # not yet higher than for 6 | 91 | # not yet higher than for 6 |
240 | 89 | priority7 = $(if $(filter yes, $(is7_default)),1071,1060) | 92 | priority7 = $(if $(filter yes, $(is7_default)),1071,1060) |
241 | 93 | priority8 = $(if $(filter yes, $(is8_default)),1081,1070) | ||
242 | 90 | plugin_name = IcedTeaPlugin.so | 94 | plugin_name = IcedTeaPlugin.so |
243 | 91 | 95 | ||
244 | 92 | ifneq (,$(filter $(DEB_HOST_ARCH), alpha hppa sparc64)$(filter $(distrel), dapper)) | 96 | ifneq (,$(filter $(DEB_HOST_ARCH), alpha hppa sparc64)$(filter $(distrel), dapper)) |
245 | @@ -125,7 +129,10 @@ | |||
246 | 125 | endif | 129 | endif |
247 | 126 | 130 | ||
248 | 127 | 131 | ||
250 | 128 | ifeq ($(is7_default),yes) | 132 | ifeq ($(is8_default),yes) |
251 | 133 | bd_openjdk = openjdk-8-jdk, | ||
252 | 134 | jdk_default_home = $(jdk8_home) | ||
253 | 135 | else ifeq ($(is7_default),yes) | ||
254 | 129 | bd_openjdk = openjdk-7-jdk, | 136 | bd_openjdk = openjdk-7-jdk, |
255 | 130 | jdk_default_home = $(jdk7_home) | 137 | jdk_default_home = $(jdk7_home) |
256 | 131 | else | 138 | else |
257 | @@ -133,10 +140,12 @@ | |||
258 | 133 | jdk_default_home = $(jdk_home) | 140 | jdk_default_home = $(jdk_home) |
259 | 134 | endif | 141 | endif |
260 | 135 | 142 | ||
263 | 136 | ifeq ($(default_plugin_version),7) | 143 | ifeq ($(default_plugin_version),8) |
264 | 137 | netx_depends = openjdk-7-jre | openjdk-6-jre (>= 6b23~pre10~) | 144 | netx_depends = openjdk-8-jre | openjdk-7-jre | openjdk-6-jre (>= 6b23~pre10~) |
265 | 145 | else ifeq ($(default_plugin_version),7) | ||
266 | 146 | netx_depends = openjdk-7-jre | openjdk-8-jre | openjdk-6-jre (>= 6b23~pre10~) | ||
267 | 138 | else | 147 | else |
269 | 139 | netx_depends = openjdk-6-jre (>= 6b23~pre10~) | openjdk-7-jre | 148 | netx_depends = openjdk-6-jre (>= 6b23~pre10~) | openjdk-7-jre | openjdk-8-jre |
270 | 140 | endif | 149 | endif |
271 | 141 | 150 | ||
272 | 142 | ifneq (,$(DEB_HOST_MULTIARCH)) | 151 | ifneq (,$(DEB_HOST_MULTIARCH)) |
273 | @@ -156,6 +165,7 @@ | |||
274 | 156 | 165 | ||
275 | 157 | java_launcher = /$(basedir)/bin/java | 166 | java_launcher = /$(basedir)/bin/java |
276 | 158 | java7_launcher = /$(base7dir)/bin/java | 167 | java7_launcher = /$(base7dir)/bin/java |
277 | 168 | java8_launcher = /$(base8dir)/bin/java | ||
278 | 159 | ifeq ($(distribution),Ubuntu) | 169 | ifeq ($(distribution),Ubuntu) |
279 | 160 | ifeq (,$(filter $(distrel),karmic jaunty intrepid hardy gutsy feisty edgy dapper)) | 170 | ifeq (,$(filter $(distrel),karmic jaunty intrepid hardy gutsy feisty edgy dapper)) |
280 | 161 | java_launcher = cautious-launcher %f /$(basedir)/bin/java | 171 | java_launcher = cautious-launcher %f /$(basedir)/bin/java |
281 | @@ -181,10 +191,12 @@ | |||
282 | 181 | p_comm = icedtea-netx-common | 191 | p_comm = icedtea-netx-common |
283 | 182 | p_plug = icedtea-6-plugin | 192 | p_plug = icedtea-6-plugin |
284 | 183 | p_plug7 = icedtea-7-plugin | 193 | p_plug7 = icedtea-7-plugin |
285 | 194 | p_plug8 = icedtea-8-plugin | ||
286 | 184 | d_netx = debian/$(p_netx) | 195 | d_netx = debian/$(p_netx) |
287 | 185 | d_comm = debian/$(p_comm) | 196 | d_comm = debian/$(p_comm) |
288 | 186 | d_plug = debian/$(p_plug) | 197 | d_plug = debian/$(p_plug) |
289 | 187 | d_plug7 = debian/$(p_plug7) | 198 | d_plug7 = debian/$(p_plug7) |
290 | 199 | d_plug8 = debian/$(p_plug8) | ||
291 | 188 | 200 | ||
292 | 189 | debian/control: debian/control.in debian/rules | 201 | debian/control: debian/control.in debian/rules |
293 | 190 | @cp -p debian/control debian/control.old | 202 | @cp -p debian/control debian/control.old |
294 | @@ -197,6 +209,7 @@ | |||
295 | 197 | $(if $(DEB_HOST_MULTIARCH),debian/control.common) \ | 209 | $(if $(DEB_HOST_MULTIARCH),debian/control.common) \ |
296 | 198 | $(if $(filter 6, $(jre_versions)),debian/control.6) \ | 210 | $(if $(filter 6, $(jre_versions)),debian/control.6) \ |
297 | 199 | $(if $(filter 7, $(jre_versions)),debian/control.7) \ | 211 | $(if $(filter 7, $(jre_versions)),debian/control.7) \ |
298 | 212 | $(if $(filter 8, $(jre_versions)),debian/control.8) \ | ||
299 | 200 | $(if $(nopkgs),,debian/control.compat) \ | 213 | $(if $(nopkgs),,debian/control.compat) \ |
300 | 201 | $(if $(DEB_HOST_MULTIARCH),,| grep -v '^Multi-Arch:') \ | 214 | $(if $(DEB_HOST_MULTIARCH),,| grep -v '^Multi-Arch:') \ |
301 | 202 | > debian/control | 215 | > debian/control |
302 | @@ -215,6 +228,7 @@ | |||
303 | 215 | case "$$f" in \ | 228 | case "$$f" in \ |
304 | 216 | debian/PLUGIN.*.in) f2=$$(echo $$f | sed 's/PLUGIN/$(p_plug)/;s/\.in$$//');; \ | 229 | debian/PLUGIN.*.in) f2=$$(echo $$f | sed 's/PLUGIN/$(p_plug)/;s/\.in$$//');; \ |
305 | 217 | debian/PLUGIN7.*.in) f2=$$(echo $$f | sed 's/PLUGIN7/$(p_plug7)/;s/\.in$$//');; \ | 230 | debian/PLUGIN7.*.in) f2=$$(echo $$f | sed 's/PLUGIN7/$(p_plug7)/;s/\.in$$//');; \ |
306 | 231 | debian/PLUGIN8.*.in) f2=$$(echo $$f | sed 's/PLUGIN8/$(p_plug8)/;s/\.in$$//');; \ | ||
307 | 218 | *) f2=$$(echo $$f | sed 's/JB/$(basename)/;s/\.in$$//'); \ | 232 | *) f2=$$(echo $$f | sed 's/JB/$(basename)/;s/\.in$$//'); \ |
308 | 219 | esac; \ | 233 | esac; \ |
309 | 220 | sed \ | 234 | sed \ |
310 | @@ -224,6 +238,7 @@ | |||
311 | 224 | -e 's,@TOP@,$(TOP),g' \ | 238 | -e 's,@TOP@,$(TOP),g' \ |
312 | 225 | -e 's,@basedir@,$(basedir),g' \ | 239 | -e 's,@basedir@,$(basedir),g' \ |
313 | 226 | -e 's,@base7dir@,$(base7dir),g' \ | 240 | -e 's,@base7dir@,$(base7dir),g' \ |
314 | 241 | -e 's,@base8dir@,$(base8dir),g' \ | ||
315 | 227 | -e 's,@jdirname@,$(jdirname),g' \ | 242 | -e 's,@jdirname@,$(jdirname),g' \ |
316 | 228 | -e 's/@srcname@/$(srcname)/g' \ | 243 | -e 's/@srcname@/$(srcname)/g' \ |
317 | 229 | -e 's/@jvmarch@/$(jvmarch)/g' \ | 244 | -e 's/@jvmarch@/$(jvmarch)/g' \ |
318 | @@ -231,14 +246,17 @@ | |||
319 | 231 | -e 's/@tag@/$(tag)/g' \ | 246 | -e 's/@tag@/$(tag)/g' \ |
320 | 232 | -e 's/@priority@/$(priority)/g' \ | 247 | -e 's/@priority@/$(priority)/g' \ |
321 | 233 | -e 's/@priority7@/$(priority7)/g' \ | 248 | -e 's/@priority7@/$(priority7)/g' \ |
322 | 249 | -e 's/@priority8@/$(priority8)/g' \ | ||
323 | 234 | -e 's/@mantag@/$(mantag)/g' \ | 250 | -e 's/@mantag@/$(mantag)/g' \ |
324 | 235 | -e 's/@multiarch@/$(DEB_HOST_MULTIARCH)/g' \ | 251 | -e 's/@multiarch@/$(DEB_HOST_MULTIARCH)/g' \ |
325 | 236 | -e 's,@plugin_name@,$(plugin_name),g' \ | 252 | -e 's,@plugin_name@,$(plugin_name),g' \ |
326 | 237 | -e 's/@pkg_plugin7@/$(p_plug7)/g' \ | 253 | -e 's/@pkg_plugin7@/$(p_plug7)/g' \ |
327 | 254 | -e 's/@pkg_plugin8@/$(p_plug8)/g' \ | ||
328 | 238 | -e 's,@browser_dirs@,$(browser_plugin_dirs),g' \ | 255 | -e 's,@browser_dirs@,$(browser_plugin_dirs),g' \ |
329 | 239 | -e 's,@last_npp_version@,$(last_npp_version),g' \ | 256 | -e 's,@last_npp_version@,$(last_npp_version),g' \ |
330 | 240 | -e 's,@java_launcher@,$(java_launcher),g' \ | 257 | -e 's,@java_launcher@,$(java_launcher),g' \ |
331 | 241 | -e 's,@java7_launcher@,$(java7_launcher),g' \ | 258 | -e 's,@java7_launcher@,$(java7_launcher),g' \ |
332 | 259 | -e 's,@java8_launcher@,$(java8_launcher),g' \ | ||
333 | 242 | $$f > $$f2; \ | 260 | $$f > $$f2; \ |
334 | 243 | done | 261 | done |
335 | 244 | 262 | ||
336 | @@ -262,10 +280,17 @@ | |||
337 | 262 | cd build7 \ | 280 | cd build7 \ |
338 | 263 | && $(buildflags) ../configure $(CONFIGURE_ARGS) --with-jdk-home=/$(jdk_default_home) | 281 | && $(buildflags) ../configure $(CONFIGURE_ARGS) --with-jdk-home=/$(jdk_default_home) |
339 | 264 | touch $@ | 282 | touch $@ |
340 | 283 | configure8-stamp: | ||
341 | 284 | dh_testdir | ||
342 | 285 | rm -rf build8 | ||
343 | 286 | mkdir -p build8 | ||
344 | 287 | cd build8 \ | ||
345 | 288 | && $(buildflags) ../configure $(CONFIGURE_ARGS) --with-jdk-home=/$(jdk_default_home) | ||
346 | 289 | touch $@ | ||
347 | 265 | 290 | ||
348 | 266 | build-arch: build-stamp | 291 | build-arch: build-stamp |
349 | 267 | build-indep: build-stamp | 292 | build-indep: build-stamp |
351 | 268 | build: build-stamp $(if $(filter 7,$(jre_versions)),build7-stamp) | 293 | build: build-stamp $(if $(filter 7,$(jre_versions)),build7-stamp) $(if $(filter 8,$(jre_versions)),build8-stamp) |
352 | 269 | build-stamp: configure-stamp | 294 | build-stamp: configure-stamp |
353 | 270 | dh_testdir | 295 | dh_testdir |
354 | 271 | $(MAKE) -C build VERSION_DEFS='-DICEDTEA_WEB_JRE="\"/$(jdk_home)\""' | 296 | $(MAKE) -C build VERSION_DEFS='-DICEDTEA_WEB_JRE="\"/$(jdk_home)\""' |
355 | @@ -274,22 +299,27 @@ | |||
356 | 274 | dh_testdir | 299 | dh_testdir |
357 | 275 | $(MAKE) -C build7 VERSION_DEFS='-DHAVE_JAVA7 -DICEDTEA_WEB_JRE="\"/$(jdk7_home)\""' | 300 | $(MAKE) -C build7 VERSION_DEFS='-DHAVE_JAVA7 -DICEDTEA_WEB_JRE="\"/$(jdk7_home)\""' |
358 | 276 | touch $@ | 301 | touch $@ |
359 | 302 | build8-stamp: configure8-stamp | ||
360 | 303 | dh_testdir | ||
361 | 304 | $(MAKE) -C build8 VERSION_DEFS='-DHAVE_JAVA8 -DICEDTEA_WEB_JRE="\"/$(jdk8_home)\""' | ||
362 | 305 | touch $@ | ||
363 | 277 | 306 | ||
364 | 278 | clean: | 307 | clean: |
365 | 279 | dh_testdir | 308 | dh_testdir |
366 | 280 | dh_testroot | 309 | dh_testroot |
367 | 281 | rm -f *-stamp | 310 | rm -f *-stamp |
369 | 282 | rm -rf build build7 | 311 | rm -rf build build7 build8 |
370 | 283 | for f in debian/*.in; do \ | 312 | for f in debian/*.in; do \ |
371 | 284 | case "$$f" in \ | 313 | case "$$f" in \ |
372 | 285 | debian/PLUGIN.*.in) f2=$$(echo $$f | sed 's/PLUGIN/$(p_plug)/;s/\.in$$//');; \ | 314 | debian/PLUGIN.*.in) f2=$$(echo $$f | sed 's/PLUGIN/$(p_plug)/;s/\.in$$//');; \ |
373 | 286 | debian/PLUGIN7.*.in) f2=$$(echo $$f | sed 's/PLUGIN7/$(p_plug7)/;s/\.in$$//');; \ | 315 | debian/PLUGIN7.*.in) f2=$$(echo $$f | sed 's/PLUGIN7/$(p_plug7)/;s/\.in$$//');; \ |
374 | 316 | debian/PLUGIN8.*.in) f2=$$(echo $$f | sed 's/PLUGIN8/$(p_plug8)/;s/\.in$$//');; \ | ||
375 | 287 | *) f2=$$(echo $$f | sed 's/JB/$(basename)/;s/\.in$$//'); \ | 317 | *) f2=$$(echo $$f | sed 's/JB/$(basename)/;s/\.in$$//'); \ |
376 | 288 | esac; \ | 318 | esac; \ |
377 | 289 | case "$$f2" in debian/control) continue; esac; \ | 319 | case "$$f2" in debian/control) continue; esac; \ |
378 | 290 | rm -f $$f2; \ | 320 | rm -f $$f2; \ |
379 | 291 | done | 321 | done |
381 | 292 | rm -rf debian/tmp7 | 322 | rm -rf debian/tmp7 debian/tmp8 |
382 | 293 | dh_autoreconf_clean | 323 | dh_autoreconf_clean |
383 | 294 | dh_clean | 324 | dh_clean |
384 | 295 | 325 | ||
385 | @@ -309,6 +339,13 @@ | |||
386 | 309 | $(jdk7_home)/jre/bin \ | 339 | $(jdk7_home)/jre/bin \ |
387 | 310 | $(jdk7_home)/jre/man/man1 | 340 | $(jdk7_home)/jre/man/man1 |
388 | 311 | endif | 341 | endif |
389 | 342 | ifneq (,$(filter 8, $(jre_versions))) | ||
390 | 343 | dh_installdirs -p$(p_netx) \ | ||
391 | 344 | $(jdk8_home)/bin \ | ||
392 | 345 | $(jdk8_home)/man/man1 \ | ||
393 | 346 | $(jdk8_home)/jre/bin \ | ||
394 | 347 | $(jdk8_home)/jre/man/man1 | ||
395 | 348 | endif | ||
396 | 312 | ifneq (,$(DEB_HOST_MULTIARCH)) | 349 | ifneq (,$(DEB_HOST_MULTIARCH)) |
397 | 313 | dh_installdirs -p$(p_comm) \ | 350 | dh_installdirs -p$(p_comm) \ |
398 | 314 | usr/share/applications \ | 351 | usr/share/applications \ |
399 | @@ -328,6 +365,7 @@ | |||
400 | 328 | $(foreach d, $(browser_plugin_dirs), usr/lib/$(d)/plugins) | 365 | $(foreach d, $(browser_plugin_dirs), usr/lib/$(d)/plugins) |
401 | 329 | $(MAKE) -C build install DESTDIR=$(CURDIR)/$(d_netx) | 366 | $(MAKE) -C build install DESTDIR=$(CURDIR)/$(d_netx) |
402 | 330 | sed -i 's/java-7-openjdk/java-6-openjdk/g' $(d_netx)/usr/bin/* | 367 | sed -i 's/java-7-openjdk/java-6-openjdk/g' $(d_netx)/usr/bin/* |
403 | 368 | sed -i 's/java-8-openjdk/java-6-openjdk/g' $(d_netx)/usr/bin/* | ||
404 | 331 | 369 | ||
405 | 332 | ifneq (,$(filter 7, $(jre_versions))) | 370 | ifneq (,$(filter 7, $(jre_versions))) |
406 | 333 | dh_installdirs -p$(p_plug7) \ | 371 | dh_installdirs -p$(p_plug7) \ |
407 | @@ -337,10 +375,20 @@ | |||
408 | 337 | $(MAKE) -C build7 install DESTDIR=$(CURDIR)/debian/tmp7 | 375 | $(MAKE) -C build7 install DESTDIR=$(CURDIR)/debian/tmp7 |
409 | 338 | sed -i 's/java-6-openjdk/java-7-openjdk/g' debian/tmp7/usr/bin/* | 376 | sed -i 's/java-6-openjdk/java-7-openjdk/g' debian/tmp7/usr/bin/* |
410 | 339 | endif | 377 | endif |
411 | 378 | ifneq (,$(filter 8, $(jre_versions))) | ||
412 | 379 | dh_installdirs -p$(p_plug8) \ | ||
413 | 380 | $(jdk8_home)/jre/lib/$(archdir) \ | ||
414 | 381 | usr/share/icedtea-web \ | ||
415 | 382 | $(foreach d, $(browser_plugin_dirs), usr/lib/$(d)/plugins) | ||
416 | 383 | $(MAKE) -C build8 install DESTDIR=$(CURDIR)/debian/tmp8 | ||
417 | 384 | sed -i 's/java-6-openjdk/java-8-openjdk/g' debian/tmp8/usr/bin/* | ||
418 | 385 | sed -i 's/java-7-openjdk/java-8-openjdk/g' debian/tmp8/usr/bin/* | ||
419 | 386 | endif | ||
420 | 340 | 387 | ||
421 | 341 | # FIXME: split out an icedtea-netx-doc package? | 388 | # FIXME: split out an icedtea-netx-doc package? |
422 | 342 | rm -rf $(d_netx)/usr/share/doc/icedtea-web | 389 | rm -rf $(d_netx)/usr/share/doc/icedtea-web |
423 | 343 | rm -rf debian/tmp7/usr/share/doc/icedtea-web | 390 | rm -rf debian/tmp7/usr/share/doc/icedtea-web |
424 | 391 | rm -rf debian/tmp8/usr/share/doc/icedtea-web | ||
425 | 344 | 392 | ||
426 | 345 | mv $(d_netx)/usr/bin/javaws $(d_netx)/$(jdk_home)/jre/bin/ | 393 | mv $(d_netx)/usr/bin/javaws $(d_netx)/$(jdk_home)/jre/bin/ |
427 | 346 | mv $(d_netx)/usr/share/man/man1/javaws.1 $(d_netx)/$(jdk_home)/jre/man/man1/ | 394 | mv $(d_netx)/usr/share/man/man1/javaws.1 $(d_netx)/$(jdk_home)/jre/man/man1/ |
428 | @@ -357,6 +405,14 @@ | |||
429 | 357 | mv debian/tmp7/usr/lib/IcedTeaPlugin.so \ | 405 | mv debian/tmp7/usr/lib/IcedTeaPlugin.so \ |
430 | 358 | $(d_plug7)/$(jdk7_home)/jre/lib/$(archdir)/ | 406 | $(d_plug7)/$(jdk7_home)/jre/lib/$(archdir)/ |
431 | 359 | endif | 407 | endif |
432 | 408 | ifneq (,$(filter 8, $(jre_versions))) | ||
433 | 409 | mv debian/tmp8/usr/bin/javaws $(d_netx)/$(jdk8_home)/jre/bin/ | ||
434 | 410 | mv debian/tmp8/usr/share/man/man1/javaws.1 $(d_netx)/$(jdk8_home)/jre/man/man1/ | ||
435 | 411 | mv debian/tmp8/usr/bin/itweb-settings $(d_netx)/$(jdk8_home)/jre/bin/ | ||
436 | 412 | cp debian/itweb-settings.1 $(d_netx)/$(jdk8_home)/jre/man/man1/ | ||
437 | 413 | mv debian/tmp8/usr/lib/IcedTeaPlugin.so \ | ||
438 | 414 | $(d_plug8)/$(jdk8_home)/jre/lib/$(archdir)/ | ||
439 | 415 | endif | ||
440 | 360 | 416 | ||
441 | 361 | # compress manpages | 417 | # compress manpages |
442 | 362 | find $(d_netx)/$(jdk_home)/jre/man/man1/ -type f ! -type l | xargs gzip -9v -n | 418 | find $(d_netx)/$(jdk_home)/jre/man/man1/ -type f ! -type l | xargs gzip -9v -n |
443 | @@ -373,6 +429,13 @@ | |||
444 | 373 | /$(jdk7_home)/jre/man/man1/javaws.1.gz /$(jdk7_home)/man/man1/javaws.1.gz \ | 429 | /$(jdk7_home)/jre/man/man1/javaws.1.gz /$(jdk7_home)/man/man1/javaws.1.gz \ |
445 | 374 | /$(jdk7_home)/jre/man/man1/itweb-settings.1.gz /$(jdk7_home)/man/man1/itweb-settings.gz | 430 | /$(jdk7_home)/jre/man/man1/itweb-settings.1.gz /$(jdk7_home)/man/man1/itweb-settings.gz |
446 | 375 | endif | 431 | endif |
447 | 432 | ifneq (,$(filter 8, $(jre_versions))) | ||
448 | 433 | find $(d_netx)/$(jdk8_home)/jre/man/man1/ -type f ! -type l | xargs gzip -9v -n | ||
449 | 434 | dh_link -p$(p_netx) \ | ||
450 | 435 | /$(jdk8_home)/jre/bin/javaws /$(jdk8_home)/bin/javaws \ | ||
451 | 436 | /$(jdk8_home)/jre/man/man1/javaws.1.gz /$(jdk8_home)/man/man1/javaws.1.gz \ | ||
452 | 437 | /$(jdk8_home)/jre/man/man1/itweb-settings.1.gz /$(jdk8_home)/man/man1/itweb-settings.gz | ||
453 | 438 | endif | ||
454 | 376 | 439 | ||
455 | 377 | ifneq (,$(DEB_HOST_MULTIARCH)) | 440 | ifneq (,$(DEB_HOST_MULTIARCH)) |
456 | 378 | mv $(d_netx)/usr/share/icedtea-web $(d_comm)/usr/share/ | 441 | mv $(d_netx)/usr/share/icedtea-web $(d_comm)/usr/share/ |