freetype: segfaults with printing/previewing on non-empty document
[Perhaps it makes sense to cc debian-ia64 so that we don't end up fixing
the same bugs multiple times. If anybody finds this objectionable, please
let me know...]
Package: freetype
Severity: grave
Tags: patch
Justification: renders package unusable
The package is apparently known to be unsafe for strict-aliasing rules
defined by ANSI (see the compiler configuration files in the package
itself). However, at present, debian/rules will build freetype with
the default compile flags (-g -O2). This will crashes on ia64 (and
probably most other platforms). The attached patch fixes the problem.
It simply forces the package to be built with -fno-strict-aliasing.
--- freetype-2.1.7/debian/rules 2004-01-06 00:17:25.832721675 -0800
+++ freetype-2.1.7-davidm/debian/rules 2004-01-06 00:11:57.930603251 -0800
@@ -14,7 +14,7 @@
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
- CFLAGS += -O2
+ CFLAGS += -O2 -fno-strict-aliasing
endif
UPACKAGE = $(shell dh_listpackages | grep -- -udeb$$)
@@ -146,8 +146,8 @@
# patch -p1 -d $(freetype_u) \
# -i $(patchdir)/050-more-rounding.diff
-# cd $(freetype_u) && ./configure --prefix=/usr CFLAGS=\"$(CFLAGS)\"
- cd $(freetype_u) && ./configure --prefix=/usr
+ cd $(freetype_u) && ./configure --prefix=/usr CFLAGS=\"$(CFLAGS)\"
+# cd $(freetype_u) && ./configure --prefix=/usr
$(MAKE) -C $(freetype_u)
$(MAKE) -C $(ft2demos_u) TOP_DIR=../$(freetype_u) X11_PATH=/usr/X11R6
-- System Information:
Debian Release: testing/unstable
Architecture: ia64
Kernel: Linux panda.mostang.com 2.6.0 #15 Sun Dec 21 10:27:08 PST 2003 ia64
Locale: LANG=C, LC_CTYPE=C
Reply to: