tags 496730 + patch thanks Thanks for reporting the bug Yaroslav.
I attached a patch for debian/rules so that specifying "debug", "noopt" in DEB_BUILD_OPTIONS will configure the source code with --enable-debug, --disable-optimize respectively. Commands such as DEB_BUILD_OPTIONS="debug" dpkg-buildpackage -us -uc DEB_BUILD_OPTIONS="noopt" dpkg-buildpackage -us -uc DEB_BUILD_OPTIONS="debug noopt" dpkg-buildpackage -us -uc should now work as expected. raju On Tue, Aug 26, 2008 at 10:15 PM, Yaroslav Halchenko<deb...@onerussian.com> wrote: > Package: texmacs > Version: 1:1.0.6.14-1 > Severity: normal > > > it seems that I am experiencing the same segfault as > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=470567 > thus wanted to get a bt, and since there is no -dbg package for texmacs > I have to rebuild it with DEB_BUILD_OPTIONS=nostrip > > also I usually add noopt in such situations since it helps to get > cleaner idea of WTF, but build processes with -O3 in g++ cmdline > arguments, ie noopt is of no effect > >
--- debian/rules 2009-07-12 12:37:25.000000000 -0400 +++ debian/rules.new 2009-07-12 12:38:21.000000000 -0400 @@ -7,6 +7,16 @@ DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/usr/ --libexecdir=/usr/lib/texmacs --datadir=/usr/share/texmacs --mandir=/usr/share/man +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + DEB_CONFIGURE_EXTRA_FLAGS += --disable-optimize +else + DEB_CONFIGURE_EXTRA_FLAGS += --enable-optimize +endif + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + DEB_CONFIGURE_EXTRA_FLAGS += --enable-debug +endif + clean:: rm -rf TeXmacs/misc/pixmacs/.xvpics rm -f config.log misc/admin/admin.makefile