Bug#1017360: src:sentencepiece: fails to migrate to testing for too long: FTBFS on s390x

Steve Langasek steve.langasek at canonical.com
Sun Aug 28 03:38:16 BST 2022


Package: sentencepiece
Version: 0.1.97-1
Followup-For: Bug #1017360
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu kinetic ubuntu-patch
Control: tags -1 patch

Please find attached a patch for this build failure.  It has been uploaded
to Ubuntu where it fixes the build failure.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
diff -Nru sentencepiece-0.1.97/debian/patches/header-dependencies.patch sentencepiece-0.1.97/debian/patches/header-dependencies.patch
--- sentencepiece-0.1.97/debian/patches/header-dependencies.patch	1969-12-31 16:00:00.000000000 -0800
+++ sentencepiece-0.1.97/debian/patches/header-dependencies.patch	2022-08-27 19:34:02.000000000 -0700
@@ -0,0 +1,20 @@
+Description: include necessary headers to ensure IS_BIG_ENDIAN is defined
+ normalizer.h uses IS_BIG_ENDIAN, which is defined in util.h.  Include
+ util.h here.
+Author: Steve Langasek <steve.langasek at ubuntu.com>
+Last-Update: 2022-08-27
+Forwarded: no
+Bug-Debian: https://bugs.debian.org/1017360
+
+Index: sentencepiece-0.1.97/src/normalizer.h
+===================================================================
+--- sentencepiece-0.1.97.orig/src/normalizer.h
++++ sentencepiece-0.1.97/src/normalizer.h
+@@ -22,6 +22,7 @@
+ #include <vector>
+ 
+ #include "common.h"
++#include "util.h"
+ #include "sentencepiece_model.pb.h"
+ #include "sentencepiece_processor.h"
+ #include "third_party/absl/strings/string_view.h"
diff -Nru sentencepiece-0.1.97/debian/patches/series sentencepiece-0.1.97/debian/patches/series
--- sentencepiece-0.1.97/debian/patches/series	2022-06-14 04:51:23.000000000 -0700
+++ sentencepiece-0.1.97/debian/patches/series	2022-08-27 19:32:13.000000000 -0700
@@ -1,2 +1,3 @@
 support-python-module-in-place.patch
 disable-static-library.patch
+header-dependencies.patch


More information about the debian-science-maintainers mailing list