~knielsen/ourdelta/bug_484127_484120_2

« back to all changes in this revision

Viewing changes to bakery/debian-5.0/dist/Debian/rules

  • Committer: Arjen Lentz
  • Date: 2009-10-01 11:15:22 UTC
  • mfrom: (54.1.31 ourdelta-5.0.86)
  • Revision ID: arjen@openquery.com-20091001111522-3qbkgich9qfmzhyo
Tags: mysql-5.0.86-d9
Merge from ourdelta-5.0.86 work tree, preparing 5.0.86-d9 ourdelta build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
endif
29
29
 
30
30
MAKE_TEST_TARGET=test-force
31
 
ifneq ($(findstring $(DEB_BUILD_OPTIONS),fulltest),)
 
31
ifneq ($(findstring fulltest,$(DEB_BUILD_OPTIONS)),)
32
32
# make test-bt is the testsuite run by the MySQL build team 
33
33
# before a release, but it is long
34
34
    MAKE_TEST_TARGET=test-bt
35
35
endif
36
36
 
37
 
ifeq ($(findstring $(ARCH),i386 sparc,lpia),$(ARCH))
 
37
ifeq ($(findstring $(ARCH),i386 sparc lpia),$(ARCH))
38
38
    USE_ASSEMBLER=--enable-assembler 
39
39
endif
40
40
 
41
 
ifneq ($(findstring $(ARCH), alpha arm armel hppa mipsel powerpc sparc),)
 
41
ifneq ($(findstring $(ARCH),alpha arm armel hppa mipsel powerpc sparc),)
42
42
   TESTSUITE_FAIL_CMD=true
43
43
else
44
44
   TESTSUITE_FAIL_CMD=exit 1
50
50
ifeq ($(STATIC_MYSQLD), 1)
51
51
    USE_STATIC_MYSQLD=--with-mysqld-ldflags=-all-static
52
52
endif
53
 
                
 
53
        
54
54
configure: patch configure-stamp
55
55
configure-stamp:
56
56
        @echo "RULES.configure-stamp"
73
73
                --host=${DEB_HOST_GNU_TYPE} \
74
74
                \
75
75
                --prefix=/usr \
76
 
                        --sysconfdir=/etc/mysql \
77
76
                --exec-prefix=/usr \
78
77
                --libexecdir=/usr/sbin \
79
78
                --datadir=/usr/share \
100
99
                --without-openssl \
101
100
                --with-yassl \
102
101
                --without-docs \
 
102
                --with-bench \
103
103
                --without-readline \
104
104
                --with-extra-charsets=all \
105
105
                --with-innodb \
110
110
                --with-blackhole-storage-engine \
111
111
                --with-sphinx-storage-engine \
112
112
                --without-embedded-server \
113
 
                --with-ndbcluster \
114
 
                --with-ndb-ccflags="-fPIC" \
115
 
                --with-ndb-shm \
116
 
                --without-ndb-sci \
117
 
                --without-ndb-test \
118
 
                --without-ndb-docs'
 
113
                --without-ndbcluster'
 
114
 
 
115
        #       --sysconfdir=/etc/mysql         -- Appends /etc/mysql after ~/ in the my.cnf search path!
 
116
        #       disabled for ourdelta: embedded server doesn't work with google patches
 
117
        #       --with-embedded-server \
 
118
        #       --with-embedded-privilege-control \
 
119
        #       --with-debug \
 
120
        #       --with-mysqlfs   # does not build, no toplevel fs/ directory! Needs CORBA.
119
121
        
120
122
        touch configure-stamp
121
123
 
126
128
 
127
129
        $(MAKE) $(MAKE_J)
128
130
 
129
 
        # ifeq ($(findstring $(DEB_BUILD_OPTIONS),nocheck),)
130
 
        #       if [ ! -f testsuite-stamp ] ; then \
131
 
        #               $(MAKE) $(MAKE_TEST_TARGET) || $(TESTSUITE_FAIL_CMD) ; \
132
 
        #       fi
133
 
        # endif
134
 
 
135
 
        echo "Skipping tests. Half are commented out for no apparent reason"
136
 
        echo "and the other half test NDB, which *you* should not use anyway."
137
 
        sleep 5
 
131
# can't be indented
 
132
ifeq ($(findstring nocheck,$(DEB_BUILD_OPTIONS)),)
 
133
        if [ ! -f testsuite-stamp ] ; then \
 
134
                $(MAKE) $(MAKE_TEST_TARGET) || $(TESTSUITE_FAIL_CMD) ; \
 
135
        fi
 
136
endif
138
137
 
139
138
        touch testsuite-stamp
140
139
 
152
151
        rm -f testsuite-stamp
153
152
        
154
153
        [ ! -f Makefile ] || $(MAKE) clean
 
154
        [ ! -d mysql-test/var ] || rm -rf mysql-test/var
155
155
 
156
156
        # We like to see how long this is neccessary
157
157
        @echo "CRUFT BEGIN" 
158
158
        @find -type l -print0 | xargs --no-run-if-empty -0 rm -v
159
159
        @find -name .deps -type d -print0 | xargs --no-run-if-empty -0 rm -rfv
160
 
        @rm -vrf ndb/docs/.doxy* ndb/docs/*html ndb/docs/*pdf innobase/autom4te.cache
 
160
        @rm -vrf innobase/autom4te.cache
161
161
        @for i in \
162
162
          readline/Makefile \
163
163
          sql-bench/Makefile \
240
240
               $(TMP)/usr/share/mysql/mysql.server \
241
241
               $(TMP)/usr/share/mysql/binary-configure
242
242
        nm -n sql/mysqld |gzip -9 > $(TMP)/usr/share/doc/mysql-server-5.0/mysqld.sym.gz
243
 
        install -m 0644 debian/additions/ndb_mgmd.cnf $(TMP)/usr/share/doc/mysql-server-5.0/examples/
244
243
        install -m 0755 debian/additions/echo_stderr $(TMP)/usr/share/mysql/
245
244
        install -m 0755 debian/additions/debian-start $(TMP)/etc/mysql/
246
245
        install -m 0755 debian/additions/debian-start.inc.sh $(TMP)/usr/share/mysql/
247
 
        sed "s#filename => 'ndb_size.tmpl#filename => '/usr/share/mysql/ndb_size.tmpl#" < $(TMP)/usr/bin/ndb_size.pl > $(TMP)/usr/bin/ndb_size
248
 
        mv $(TMP)/usr/mysql-test $(TMP)/usr/share/mysql/
 
246
        mv $(TMP)/usr/mysql-test $(TMP)/usr/share/
249
247
        mv $(TMP)/usr/sql-bench $(TMP)/usr/share/mysql/
250
248
        # lintian overrides
251
249
        mkdir -p $(TMP)/usr/share/lintian/overrides/
260
258
        cp debian/mysql-server-5.0.mysql-server.logrotate $$d/_etc_logrotate.d_mysql-server; \
261
259
        cp debian/additions/debian-start $$d/_etc_mysql_debian-start
262
260
 
263
 
        # install AppArmor profile
264
 
        install -D -m 644 debian/apparmor-profile $(TMP)/etc/apparmor.d/usr.sbin.mysqld
265
 
 
266
261
        dh_movefiles
267
262
        
268
263
# Build architecture-independent files here.
301
296
        dh_installexamples -a
302
297
        dh_installmenu -a
303
298
        dh_installlogrotate -a --name mysql-server
304
 
        # NDB needs to start before MySQL if they share a machine
305
 
        # Neither should automatically restart on package install. There
306
 
        # is a rolling order in which nodes in a cluster should be 
307
 
        # restarted that is not possible to manage here.
308
 
        dh_installinit -a -r --no-start --name=mysql-ndb-mgm -- defaults 17 23
309
 
        dh_installinit -a -r --no-start --name=mysql-ndb -- defaults 18 22
310
299
        # Start mysql in runlevel 19 before 20 where apache, proftpd etc gets
311
300
        # started which might depend on a running database server.
312
301
        dh_installinit -a --name=mysql -- defaults 19 21