diff -Nru fastp-0.23.2+dfsg/debian/changelog fastp-0.23.2+dfsg/debian/changelog --- fastp-0.23.2+dfsg/debian/changelog 2021-12-07 21:34:23.000000000 +0000 +++ fastp-0.23.2+dfsg/debian/changelog 2021-12-11 15:48:03.000000000 +0000 @@ -1,3 +1,13 @@ +fastp (0.23.2+dfsg-2) unstable; urgency=medium + + * Team upload. + + [ Aurelien Jarno ] + * Fix build on riscv64. + Closes: #1001520 + + -- Andreas Tille Sat, 11 Dec 2021 16:48:03 +0100 + fastp (0.23.2+dfsg-1) unstable; urgency=medium * New upstream version diff -Nru fastp-0.23.2+dfsg/debian/patches/fix-riscv64.patch fastp-0.23.2+dfsg/debian/patches/fix-riscv64.patch --- fastp-0.23.2+dfsg/debian/patches/fix-riscv64.patch 1970-01-01 00:00:00.000000000 +0000 +++ fastp-0.23.2+dfsg/debian/patches/fix-riscv64.patch 2021-12-11 15:48:03.000000000 +0000 @@ -0,0 +1,18 @@ +Description: Correctly link the binary with -pthread, to include -latomic when needed. +Author: Aurelien Jarno +Last-Update: 2021-12-11 + +--- fastp-0.23.2+dfsg.orig/Makefile ++++ fastp-0.23.2+dfsg/Makefile +@@ -16,9 +16,9 @@ BIN_TARGET := ${TARGET} + + CXX ?= g++ + CXXFLAGS += -std=c++11 -pthread -g -O3 -I${DIR_INC} $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir)) +-LIBS := -lisal -ldeflate -lpthread ++LIBS := -lisal -ldeflate + STATIC_FLAGS := -static -Wl,--no-as-needed -pthread +-LDFLAGS += $(foreach librarydir,$(LIBRARY_DIRS),-L$(librarydir)) $(LIBS) ++LDFLAGS += $(foreach librarydir,$(LIBRARY_DIRS),-L$(librarydir)) $(LIBS) -pthread + STATIC_LD_FLAGS := $(foreach librarydir,$(LIBRARY_DIRS),-L$(librarydir)) $(STATIC_FLAGS) $(LIBS) $(STATIC_LD_FLAGS) + + diff -Nru fastp-0.23.2+dfsg/debian/patches/series fastp-0.23.2+dfsg/debian/patches/series --- fastp-0.23.2+dfsg/debian/patches/series 2021-12-07 21:34:23.000000000 +0000 +++ fastp-0.23.2+dfsg/debian/patches/series 2021-12-11 15:48:03.000000000 +0000 @@ -1,2 +1,3 @@ makefile.patch fix-i386.patch +fix-riscv64.patch