finalize.sh 2.27 KB
Newer Older
1
2
3
4
5
#!/bin/bash
set -e
source /pd_build/buildconfig
set -x

6
apt-get remove -y --purge \
7
  autoconf \
8
  dpkg-dev \
9
10
11
12
13
14
  file \
  flex \
  krb5-multidev \
  libapparmor-dev \
  libapr1-dev \
  libaprutil1-dev \
15
  libaspell-dev \
16
  libbsd-dev \
17
18
19
  libbz2-dev \
  libc-client2007e-dev \
  libcurl4-openssl-dev \
20
21
22
23
  libdb-dev \
  libdb5.3-dev \
  libexpat1-dev \
  libfontconfig1-dev \
24
  libfreetype6-dev \
25
26
27
28
29
  libgcrypt11-dev \
  libgcrypt20-dev \
  libgd-dev \
  libglib2.0-dev \
  libgmp3-dev \
30
  libgnutls-dev \
31
32
  libgpg-error-dev \
  libice-dev \
33
  libidn11-dev \
34
35
36
37
38
39
40
41
42
  libjbig-dev \
  libjpeg-dev \
  libjpeg-turbo8-dev \
  libjpeg8-dev \
  libkrb5-dev \
  libldap2-dev \
  libltdl-dev \
  liblzma-dev \
  libmagic-dev \
43
  libmcrypt-dev \
44
45
46
47
  libmhash-dev \
  libmysqlclient-dev \
  libonig-dev \
  libpcre3-dev \
48
  libpng12-dev \
49
  libpq-dev \
50
  libpspell-dev \
51
  libqdbm-dev \
52
  libreadline-dev \
53
  librecode-dev \
54
  libsasl2-dev \
55
56
57
  libsctp-dev \
  libsm-dev \
  libsqlite3-dev \
58
  libssl-dev \
59
  libsystemd-dev \
60
  libtidy-dev \
61
  libtiff5-dev \
62
  libtool \
63
64
  libvpx-dev \
  libwebp-dev \
65
  libxml2-dev \
66
67
  libxmlrpc-epi-dev \
  libxmltok1-dev \
68
69
  libxpm-dev \
  libxslt1-dev \
70
  libxt-dev \
71
72
73
  libzip-dev \
  pkg-config \
  re2c \
74
75
  unixodbc-dev \
  uuid-dev \
76
  zlib1g-dev \
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
  autotools-dev \
  comerr-dev \
  icu-devtools \
  libc-client2007e \
  libdpkg-perl \
  libfl-dev \
  libgmp-dev \
  libgmpxx4ldbl \
  libgnutls-openssl27 \
  libgnutlsxx28 \
  libgssrpc4 \
  libicu-dev \
  libisl15 \
  libitm1 \
  libkadm5clnt-mit9 \
  libkadm5srv-mit9 \
  libkdb5-8 \
  liblsan0 \
  libmagic1 \
  libmpc3 \
  libmpfr4 \
  libmpx0 \
  libp11-kit-dev \
  libpam0g-dev \
  libpthread-stubs0-dev \
  libquadmath0 \
  libreadline6-dev \
  libsigsegv2 \
  libstdc++-5-dev \
  libtasn1-6-dev \
  libtinfo-dev \
  libtsan0 \
  libubsan0 \
  libx11-dev \
  libxau-dev \
  libxcb1-dev \
  libxdmcp-dev \
  linux-libc-dev \
  m4 \
  mlock \
  nettle-dev \
  x11proto-core-dev \
  x11proto-input-dev \
  x11proto-kb-dev \
  xorg-sgml-doctools \
  xtrans-dev \
123
124
  #

125
126
127
128
# but keep make and g++ ... to not confuse with above list, just install again if needed
minimal_apt_get_install \
  make \
  g++
129

130

131
132
133
134
135
136
137
138
139
140
apt-get clean
rm -rf \
	/var/lib/apt/lists/* \
	/tmp/* \
	/var/tmp/* \
	/usr/local/src/* \
	/usr/include/php/20151012/ext/apcu/ \
	#

rm -rf /pd_build