[Pkg-cmake-team] Bug#916487: cmake: Please add small workaround for m68k

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Fri Dec 14 22:55:15 GMT 2018


Source: cmake
Version: 3.13.2-1
Severity: normal
User: debian-68k at lists.debian.org
Usertags: m68k

Hello!

We are currently having issues with cmake on m68k locking up, most
likely related to a bug in libuv as the problem first showed up
with cmake 3.11.0 which integrated more libuv code in cmake.

After long debug sessions, I have come up with a temporary workaround
which addresses the issue by using the embedded copy of libuv and
dropping the Debian-specific build flags.

This is considered a workaround and therefor esupposed to be used
temporarily once we have hunted down the actual bug, most likely
in libuv.

Could you apply the attached patch for the next cmake upload so we
can remove the "Not-for-us" flag for cmake on m68k?

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
-------------- next part --------------
--- debian/rules.orig	2018-11-29 20:24:50.000000000 +0100
+++ debian/rules	2018-12-14 23:47:04.932357164 +0100
@@ -2,6 +2,15 @@
 
 include /usr/share/dpkg/pkg-info.mk
 
+# Temporary workaround due to libuv issues on m68k
+ifeq ($(DEB_HOST_ARCH), m68k)
+        export DEB_CFLAGS_MAINT_SET :=
+        export DEB_CXXFLAGS_MAINT_SET :=
+        SYSTEM_LIBS := --system-libs --no-system-libuv
+else
+        SYSTEM_LIBS := --system-libs
+endif
+
 export DEB_CXXFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS)
 export DEB_CFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS)
 export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
@@ -45,7 +54,7 @@
 override_dh_auto_configure: $(BUILD_FLAGS_FILE)
 	rm -rf Build && mkdir -p Build
 	cd Build && ../bootstrap --prefix=/usr --docdir=/share/doc/cmake --mandir=/share/man \
-	                         --init=../$(BUILD_FLAGS_FILE) --system-libs \
+	                         --init=../$(BUILD_FLAGS_FILE) $(SYSTEM_LIBS) \
 	                         --sphinx-man --sphinx-html --sphinx-flags="-D today=\"$(BUILD_DATE)\"" \
 	                         $(BOOTSTRAP_PARALLEL) --verbose
 


More information about the Pkg-cmake-team mailing list