Control: tags -1 patch

On Sat, Sep 17, 2022 at 09:43:49PM +0300, Dmitry Shachnev wrote:
>...
> make  -C ../uim uim-module-manager && \
> LIBUIM_SYSTEM_SCM_FILES=/home/mitya57/uim-1.8.8/sigscheme/lib 
> LIBUIM_SCM_FILES=/home/mitya57/uim-1.8.8/scm 
> LIBUIM_PLUGIN_LIB_DIR=/home/mitya57/uim-1.8.8/uim/.libs UIM_DISABLE_NOTIFY=1 
> ../uim/uim-module-manager \
>     --path ../scm --register "anthy" "anthy-utf8"      "skk" "tutcode" 
> "byeoru" "latin" "elatin" "m17nlib" "xmload" "pyload" "viqr" "ipa-x-sampa" 
> "look" "ajax-ime" "google-cgiapi-jp" "baidu-olime-jp" "yahoo-jp"
> make[3]: Entering directory '/home/mitya57/uim-1.8.8/uim'
> make[3]: 'uim-module-manager' is up to date.
> make[3]: Leaving directory '/home/mitya57/uim-1.8.8/uim'
> make[2]: *** [Makefile:871: installed-modules.scm] Segmentation fault
> 
> Full build log is attached.
> 
> This can also be seen on reproducible builds server:
> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/armhf/uim.html
> 
> Also attached is valgrind output of the failed command.

The workaround below fixes the build.

I looked through the backtrace in gdb, but debugging a Scheme 
interpreter is outside of what I am feeling comfortable doing.

> Dmitry Shachnev

cu
Adrian

--- debian/rules.old    2022-10-03 08:32:51.572032357 +0000
+++ debian/rules        2022-10-03 08:34:11.469273120 +0000
@@ -8,6 +8,12 @@
 
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
+# workaround for #1019974
+ifneq (,$(filter $(DEB_HOST_ARCH), armel armhf x32))
+  export DEB_CFLAGS_MAINT_APPEND += -O1
+endif
+
+
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 

Reply via email to