also add -fwrapv to CFLAGS (addresses #698908)
[alioth/cvs.git] / debian / rules
index f79c70e..49cbde5 100755 (executable)
@@ -1,9 +1,11 @@
 #!/usr/bin/make -f
-# $MirOS: contrib/hosted/tg/deb/cvs/debian/rules,v 1.19 2013/04/26 17:18:52 tg Exp $
+# $MirOS: contrib/hosted/tg/deb/cvs/debian/rules,v 1.22 2013/06/26 17:54:04 tg Exp $
 
 CC?=                   gcc
 CONFIGURE_ENV:=                CC='${CC}'
 EXTRA_CFLAGS=          -Wall -fno-strict-aliasing -Wformat
+# addresses part of #698908
+EXTRA_CFLAGS+=         -fwrapv
 # for now. uses are mostly checked.
 EXTRA_CFLAGS+=         -Wno-unused-result
 EXTRA_CPPFLAGS=                -D_GNU_SOURCE -DUSE_LIBBSD
@@ -35,9 +37,6 @@ LIBS+=                        -lbsd
 CONFIGURE_ENV+=                LIBS='${LIBS}'
 CONFIGURE_ENV+=                CSH=/bin/csh
 
-# check takes forever, so assume the safe choice
-CONFIGURE_ENV+=                ac_cv_func_working_mktime=no
-
 CONFIGURE_ARGS:=       --prefix=/usr \
                        --infodir=/usr/share/info \
                        --mandir=/usr/share/man \
@@ -53,7 +52,7 @@ CONFIGURE_ARGS:=      --prefix=/usr \
                        --enable-case-sensitivity \
                        --enable-encryption \
                        --disable-lock-compatibility \
-                       --disable-rootcommit \
+                       --enable-rootcommit \
                        --disable-old-info-format-support \
                        --enable-config-override=no \
                        --without-krb4 \
@@ -73,13 +72,13 @@ CLEANFILES:=                autom4te.cache debian/CVSTEMP debian/.*_stamp \
                        build-aux/config.guess build-aux/config.sub \
                        doc/cvs.1 doc/cvs.info* doc/cvsclient.info* \
                        doc/cvs.pdf doc/cvsclient.pdf \
-                       doc/getdate-cvs.texi \
+                       doc/getdate-cvs.texi m4/mktime.m4 \
                        vms/config.h windows-NT/config.h
 
 debian/.configure_stamp:
        dh_testdir
        -rm -rf ${CLEANFILES}
-       cp /usr/share/misc/config.guess /usr/share/misc/config.sub build-aux/
+       dh_autoreconf
        mkdir debian/builddir debian/stagedir
        cd debian/builddir && \
            env ${CONFIGURE_ENV} sh ../../configure ${CONFIGURE_ARGS}
@@ -95,6 +94,7 @@ debian/.build_stamp: debian/.configure_stamp
 
 clean:
        dh_testdir
+       dh_autoreconf_clean
        -rm -rf ${CLEANFILES}
        dh_clean