Hello. The attached patch contains the fix for build problems on archs other than i386 and amd64.
Best regards, Mateusz Skowroński
--- ZoneMinder-1.22.3/debian/rules 2007-03-26 16:31:35.000000000 +0200 +++ ZoneMinder-1.22.3.fix/debian/rules 2007-03-26 16:34:45.000000000 +0200 @@ -13,10 +13,30 @@ # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) CFLAGS = -Wall -g CXXFLAGS = -DZM_FFMPEG_CVS +CONFIGURE_OPTS = \ + --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --sysconfdir=/etc/zm \ + --prefix=/usr \ + --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info \ + --with-mysql=/usr \ + --with-webdir=/usr/share/zoneminder \ + --with-cgidir=/usr/lib/cgi-bin \ + --with-webuser=www-data \ + --with-webgroup=www-data + +ifneq ($(DEB_BUILD_ARCH), i386) +ifneq ($(DEB_BUILD_ARCH), amd64) + CONFIGURE_OPTS += --disable-crashtrace +endif +endif + ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else @@ -26,7 +46,7 @@ config.status: patch configure dh_testdir # Add here commands to configure the package. - CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --sysconfdir=/etc/zm --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-mysql=/usr --with-webdir=/usr/share/zoneminder --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data + CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" ./configure $(CONFIGURE_OPTS) #perl zmconfig.pl -noi build: build-stamp