On Sat, Nov 21, 2015 at 05:40:44PM +0100, Julien Cristau wrote: > We like to see a tested source package debdiff in the bug, please > provide it instead of a link.
Sure, here is the debdiff. Unfortunately, it's not very readable: debian/patches/debian-changes is auto-generated, and the generation process doesn't have a stable ordering, so most of the diff is not really meaningful: diff -Nru mongrel2-1.9.1/debian/changelog mongrel2-1.9.1/debian/changelog --- mongrel2-1.9.1/debian/changelog 2014-07-28 11:57:52.000000000 +0200 +++ mongrel2-1.9.1/debian/changelog 2015-11-07 15:46:43.000000000 +0100 @@ -1,3 +1,10 @@ +mongrel2 (1.9.1-7) UNRELEASED; urgency=medium + + * Comment out failing test caused by an expired certificate. + (Closes: Bug#804331) + + -- Jan Niehusmann <j...@debian.org> Sat, 07 Nov 2015 15:45:05 +0100 + mongrel2 (1.9.1-6) unstable; urgency=low * Update Vcs URL diff -Nru mongrel2-1.9.1/debian/patches/debian-changes mongrel2-1.9.1/debian/patches/debian-changes --- mongrel2-1.9.1/debian/patches/debian-changes 2014-07-28 11:58:32.000000000 +0200 +++ mongrel2-1.9.1/debian/patches/debian-changes 2015-11-07 15:48:04.000000000 +0100 @@ -64,77 +64,29 @@ rm -f tools/lemon/lemon rm -f tools/m2sh/tests/tests.log find . -name "*.gc*" -exec rm {} \; ---- mongrel2-1.9.1.orig/tools/procer/Makefile -+++ mongrel2-1.9.1/tools/procer/Makefile -@@ -1,4 +1,4 @@ --CFLAGS=-DNDEBUG -pthread -g -I../../src -Wall $(OPTFLAGS) -+CFLAGS+=-DNDEBUG -pthread -g -I../../src -Wall $(OPTFLAGS) - PREFIX?=/usr/local - LIBS?=-lzmq - SOURCES=$(wildcard *.c) -@@ -8,7 +8,7 @@ all: procer - - - procer: ../../build/libm2.a ${OBJECTS} -- gcc $(OPTFLAGS) $(OPTLIBS) -o $@ ${OBJECTS} ../../build/libm2.a ${LIBS} -+ gcc $(LDFLAGS) $(OPTFLAGS) $(OPTLIBS) -o $@ ${OBJECTS} ../../build/libm2.a ${LIBS} - - clean: - rm -f *.o procer ---- mongrel2-1.9.1.orig/tools/filters/Makefile -+++ mongrel2-1.9.1/tools/filters/Makefile -@@ -1,6 +1,6 @@ - PREFIX?=/usr/local --CFLAGS=-I../../src -I../../src/polarssl/include $(OPTFLAGS) -g -fPIC -shared -nostartfiles -L../../build --LDFLAGS=$(OPTLIBS) -+CFLAGS+=-idirafter ../../src $(OPTFLAGS) -g -fPIC -shared -nostartfiles -L../../build -+LDFLAGS+=$(OPTLIBS) - - all: null.so rewrite.so sendfile.so - ---- mongrel2-1.9.1.orig/tools/m2sh/Makefile -+++ mongrel2-1.9.1/tools/m2sh/Makefile -@@ -1,4 +1,4 @@ --CFLAGS=-DNDEBUG -DNO_LINENOS -pthread -g -I../../src -Isrc -Wall $(OPTFLAGS) -+CFLAGS+=-DNDEBUG -DNO_LINENOS -pthread -g -I../../src -Isrc -Wall $(OPTFLAGS) - LIBS=-lzmq -lsqlite3 ../../build/libm2.a $(OPTLIBS) - - PREFIX?=/usr/local -@@ -24,10 +24,10 @@ build/libm2sh.a: ${LIB_OBJ} - - build/m2sh: ../lemon/lemon ../../build/libm2.a ${OBJECTS} - mkdir -p build -- $(CC) $(CFLAGS) -o build/m2sh ${OBJECTS} ../../build/libm2.a $(LIBS) -+ $(CC) $(CFLAGS) $(LDFLAGS) -o build/m2sh ${OBJECTS} ../../build/libm2.a $(LIBS) - - ../lemon/lemon: ../lemon/lemon.c -- $(CC) -O2 ../lemon/lemon.c -o ../lemon/lemon -+ $(CC) $(CFLAGS) $(LDFLAGS) ../lemon/lemon.c -o ../lemon/lemon - - tests: build/libm2sh.a ${TESTS} - sh ./tests/runtests.sh ---- mongrel2-1.9.1.orig/tools/config_modules/Makefile -+++ mongrel2-1.9.1/tools/config_modules/Makefile -@@ -1,6 +1,6 @@ - PREFIX?=/usr/local --CFLAGS=-I../../src -I../../src/polarssl/include $(OPTFLAGS) -fPIC -shared -nostartfiles -L../../build --LDFLAGS=$(OPTLIBS) -+CFLAGS+=-idirafter ../../src $(OPTFLAGS) -fPIC -shared -nostartfiles -L../../build -+LDFLAGS+=$(OPTLIBS) +--- mongrel2-1.9.1.orig/src/adt/radixmap.c ++++ mongrel2-1.9.1/src/adt/radixmap.c +@@ -6,13 +6,20 @@ + #include <stdlib.h> + #include <assert.h> + #include <mem/halloc.h> ++#include <endian.h> + #include "adt/radixmap.h" + #include "dbg.h" - MONGO_SRC = mongo-c-driver/src/bson.c \ - mongo-c-driver/src/encoding.c \ ---- mongrel2-1.9.1.orig/tests/filters/Makefile -+++ mongrel2-1.9.1/tests/filters/Makefile -@@ -1,6 +1,6 @@ - PREFIX?=/usr/local --CFLAGS=-I../../src -I../../src/polarssl/include $(OPTFLAGS) -fPIC -shared -nostartfiles -L../../build --LDFLAGS=$(OPTLIBS) -+CFLAGS+=-idirafter ../../src $(OPTFLAGS) -fPIC -shared -nostartfiles -L../../build -+LDFLAGS+=$(OPTLIBS) + // undefine this to run the more correct but slower sort + #define FAST_OPS - all: test_filter.so test_filter_a.so test_filter_b.so test_filter_c.so ++#if __BYTE_ORDER == __LITTLE_ENDIAN + #define ByteOf(x,y) (((uint8_t *)x)[(y)]) ++#elif __BYTE_ORDER == __BIG_ENDIAN ++#define ByteOf(x,y) (((uint8_t *)x)[3-(y)]) ++#else ++#error unknown byte order ++#endif + static inline void radix_sort(short offset, uint64_t N, uint64_t *source, uint64_t *dest) + { --- mongrel2-1.9.1.orig/src/bsd_specific.c +++ mongrel2-1.9.1/src/bsd_specific.c @@ -45,7 +45,7 @@ @@ -179,17 +131,6 @@ #else #define IOBuf_sendfile sendfile #endif ---- mongrel2-1.9.1.orig/src/task/taskimpl.h -+++ mongrel2-1.9.1/src/task/taskimpl.h -@@ -104,7 +104,7 @@ extern pid_t rfork_thread(int, void*, in - # include "sparc-ucontext.h" - #endif - --#if defined(__arm__) -+#if 0 && defined(__arm__) - int getmcontext(mcontext_t*); - void setmcontext(const mcontext_t*); - #define setcontext(u) setmcontext((void *)&((u)->uc_mcontext.arm_r0)) --- mongrel2-1.9.1.orig/src/task/asm.S +++ mongrel2-1.9.1/src/task/asm.S @@ -34,7 +34,7 @@ @@ -217,26 +158,96 @@ } #endif - ---- mongrel2-1.9.1.orig/src/adt/radixmap.c -+++ mongrel2-1.9.1/src/adt/radixmap.c -@@ -6,13 +6,20 @@ - #include <stdlib.h> - #include <assert.h> - #include <mem/halloc.h> -+#include <endian.h> - #include "adt/radixmap.h" - #include "dbg.h" +--- mongrel2-1.9.1.orig/src/task/taskimpl.h ++++ mongrel2-1.9.1/src/task/taskimpl.h +@@ -104,7 +104,7 @@ extern pid_t rfork_thread(int, void*, in + # include "sparc-ucontext.h" + #endif - // undefine this to run the more correct but slower sort - #define FAST_OPS +-#if defined(__arm__) ++#if 0 && defined(__arm__) + int getmcontext(mcontext_t*); + void setmcontext(const mcontext_t*); + #define setcontext(u) setmcontext((void *)&((u)->uc_mcontext.arm_r0)) +--- mongrel2-1.9.1.orig/tests/cert_tests.c ++++ mongrel2-1.9.1/tests/cert_tests.c +@@ -35,7 +35,7 @@ char *test_SSL_verify_cert() + int flags = 0; + ret =x509_crt_verify( &crt, &ca_crt, NULL, NULL, &flags, NULL, NULL); -+#if __BYTE_ORDER == __LITTLE_ENDIAN - #define ByteOf(x,y) (((uint8_t *)x)[(y)]) -+#elif __BYTE_ORDER == __BIG_ENDIAN -+#define ByteOf(x,y) (((uint8_t *)x)[3-(y)]) -+#else -+#error unknown byte order -+#endif +- mu_assert(ret == 0, "failed to verify cert m2-cert.pem"); ++ //mu_assert(ret == 0, "failed to verify cert m2-cert.pem"); - static inline void radix_sort(short offset, uint64_t N, uint64_t *source, uint64_t *dest) - { + x509_crt_free( &crt ); + x509_crt_free( &ca_crt ); +--- mongrel2-1.9.1.orig/tests/filters/Makefile ++++ mongrel2-1.9.1/tests/filters/Makefile +@@ -1,6 +1,6 @@ + PREFIX?=/usr/local +-CFLAGS=-I../../src -I../../src/polarssl/include $(OPTFLAGS) -fPIC -shared -nostartfiles -L../../build +-LDFLAGS=$(OPTLIBS) ++CFLAGS+=-idirafter ../../src $(OPTFLAGS) -fPIC -shared -nostartfiles -L../../build ++LDFLAGS+=$(OPTLIBS) + + all: test_filter.so test_filter_a.so test_filter_b.so test_filter_c.so + +--- mongrel2-1.9.1.orig/tools/config_modules/Makefile ++++ mongrel2-1.9.1/tools/config_modules/Makefile +@@ -1,6 +1,6 @@ + PREFIX?=/usr/local +-CFLAGS=-I../../src -I../../src/polarssl/include $(OPTFLAGS) -fPIC -shared -nostartfiles -L../../build +-LDFLAGS=$(OPTLIBS) ++CFLAGS+=-idirafter ../../src $(OPTFLAGS) -fPIC -shared -nostartfiles -L../../build ++LDFLAGS+=$(OPTLIBS) + + MONGO_SRC = mongo-c-driver/src/bson.c \ + mongo-c-driver/src/encoding.c \ +--- mongrel2-1.9.1.orig/tools/filters/Makefile ++++ mongrel2-1.9.1/tools/filters/Makefile +@@ -1,6 +1,6 @@ + PREFIX?=/usr/local +-CFLAGS=-I../../src -I../../src/polarssl/include $(OPTFLAGS) -g -fPIC -shared -nostartfiles -L../../build +-LDFLAGS=$(OPTLIBS) ++CFLAGS+=-idirafter ../../src $(OPTFLAGS) -g -fPIC -shared -nostartfiles -L../../build ++LDFLAGS+=$(OPTLIBS) + + all: null.so rewrite.so sendfile.so + +--- mongrel2-1.9.1.orig/tools/m2sh/Makefile ++++ mongrel2-1.9.1/tools/m2sh/Makefile +@@ -1,4 +1,4 @@ +-CFLAGS=-DNDEBUG -DNO_LINENOS -pthread -g -I../../src -Isrc -Wall $(OPTFLAGS) ++CFLAGS+=-DNDEBUG -DNO_LINENOS -pthread -g -I../../src -Isrc -Wall $(OPTFLAGS) + LIBS=-lzmq -lsqlite3 ../../build/libm2.a $(OPTLIBS) + + PREFIX?=/usr/local +@@ -24,10 +24,10 @@ build/libm2sh.a: ${LIB_OBJ} + + build/m2sh: ../lemon/lemon ../../build/libm2.a ${OBJECTS} + mkdir -p build +- $(CC) $(CFLAGS) -o build/m2sh ${OBJECTS} ../../build/libm2.a $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o build/m2sh ${OBJECTS} ../../build/libm2.a $(LIBS) + + ../lemon/lemon: ../lemon/lemon.c +- $(CC) -O2 ../lemon/lemon.c -o ../lemon/lemon ++ $(CC) $(CFLAGS) $(LDFLAGS) ../lemon/lemon.c -o ../lemon/lemon + + tests: build/libm2sh.a ${TESTS} + sh ./tests/runtests.sh +--- mongrel2-1.9.1.orig/tools/procer/Makefile ++++ mongrel2-1.9.1/tools/procer/Makefile +@@ -1,4 +1,4 @@ +-CFLAGS=-DNDEBUG -pthread -g -I../../src -Wall $(OPTFLAGS) ++CFLAGS+=-DNDEBUG -pthread -g -I../../src -Wall $(OPTFLAGS) + PREFIX?=/usr/local + LIBS?=-lzmq + SOURCES=$(wildcard *.c) +@@ -8,7 +8,7 @@ all: procer + + + procer: ../../build/libm2.a ${OBJECTS} +- gcc $(OPTFLAGS) $(OPTLIBS) -o $@ ${OBJECTS} ../../build/libm2.a ${LIBS} ++ gcc $(LDFLAGS) $(OPTFLAGS) $(OPTLIBS) -o $@ ${OBJECTS} ../../build/libm2.a ${LIBS} + + clean: + rm -f *.o procer