diff -Nru ck-0.7.1/debian/changelog ck-0.7.1/debian/changelog --- ck-0.7.1/debian/changelog 2022-04-13 06:50:08.000000000 +0000 +++ ck-0.7.1/debian/changelog 2022-06-20 02:10:46.000000000 +0000 @@ -1,3 +1,10 @@ +ck (0.7.1-7+rpi1) bookworm-staging; urgency=medium + + * Remove inappropriate compiler flags. + * Fix clean target. + + -- Peter Michael Green Mon, 20 Jun 2022 02:10:46 +0000 + ck (0.7.1-7) sid; urgency=medium * Uploading to sid. diff -Nru ck-0.7.1/debian/patches/remove-inappropriate-march.patch ck-0.7.1/debian/patches/remove-inappropriate-march.patch --- ck-0.7.1/debian/patches/remove-inappropriate-march.patch 1970-01-01 00:00:00.000000000 +0000 +++ ck-0.7.1/debian/patches/remove-inappropriate-march.patch 2022-06-20 02:10:46.000000000 +0000 @@ -0,0 +1,20 @@ +Description: remove inappropriate -march +Author: Peter Michael Green + +--- ck-0.7.1.orig/configure ++++ ck-0.7.1/configure +@@ -506,14 +506,6 @@ case $PLATFORM in + ENVIRONMENT=64 + ;; + arm|armv6|armv6l|armv7|armv7l) +- case "$PLATFORM" in +- "armv6"|"armv6l") +- CFLAGS="$CFLAGS -march=armv6k"; +- ;; +- "armv7"|"armv7l") +- CFLAGS="$CFLAGS -march=armv7-a"; +- ;; +- esac + RTM_ENABLE="CK_MD_RTM_DISABLE" + LSE_ENABLE="CK_MD_LSE_DISABLE" + MM="${MM:-"CK_MD_RMO"}" diff -Nru ck-0.7.1/debian/patches/series ck-0.7.1/debian/patches/series --- ck-0.7.1/debian/patches/series 2022-04-13 06:47:48.000000000 +0000 +++ ck-0.7.1/debian/patches/series 2022-06-20 02:10:46.000000000 +0000 @@ -1,2 +1,3 @@ debian/0001-cc-builtins.patch debian/0002-disable-sse.patch +remove-inappropriate-march.patch diff -Nru ck-0.7.1/debian/rules ck-0.7.1/debian/rules --- ck-0.7.1/debian/rules 2022-04-13 06:47:58.000000000 +0000 +++ ck-0.7.1/debian/rules 2022-06-20 02:10:46.000000000 +0000 @@ -6,11 +6,6 @@ PLATFORM = --platform=unknown endif -ifeq ($(DEB_HOST_ARCH),armhf) - DEB_CFLAGS_MAINT_APPEND = -march=armv7-a+fp - export DEB_CFLAGS_MAINT_APPEND -endif - ifeq ($(DEB_HOST_ARCH), i386) PLATFORM = --disable-sse endif @@ -31,3 +26,6 @@ ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 i386)) $(MAKE) -j1 check endif + +execute_after_dh_auto_clean: + rm -f build/ck.spec include/freebsd/ck_md.h src/Makefile