diff -Nru sentencepiece-0.1.94/debian/changelog sentencepiece-0.1.94/debian/changelog --- sentencepiece-0.1.94/debian/changelog 2020-10-28 12:02:07.000000000 +0000 +++ sentencepiece-0.1.94/debian/changelog 2020-12-13 09:25:55.000000000 +0000 @@ -1,3 +1,11 @@ +sentencepiece (0.1.94-1+rpi1) bullseye-staging; urgency=medium + + * Apply patch by Adrian Bunk to link with libatomic on some architectures. + (see debian bug 977235) + * Link with libatomic on armhf too. + + -- Peter Michael Green Sun, 13 Dec 2020 09:25:55 +0000 + sentencepiece (0.1.94-1) unstable; urgency=medium * New upstream version 0.1.94 diff -Nru sentencepiece-0.1.94/debian/rules sentencepiece-0.1.94/debian/rules --- sentencepiece-0.1.94/debian/rules 2020-10-25 10:55:16.000000000 +0000 +++ sentencepiece-0.1.94/debian/rules 2020-12-13 09:25:55.000000000 +0000 @@ -12,6 +12,9 @@ DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk +ifneq (,$(filter $(DEB_HOST_ARCH), armel armhf mipsel m68k powerpc sh4)) + export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed +endif %: dh $@ --with python3 --buildsystem=cmake