This is the way I have found fairly reliably builds KDE packages on
Debian.  It's ugly, but it should fix the FTBFS.  Works fine here in a
pbuilder chroot.
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        [EMAIL PROTECTED] |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------
diff -Nru krusader-1.60.0.old/debian/rules krusader-1.60.0/debian/rules
--- krusader-1.60.0.old/debian/rules    2005-05-01 14:55:52.853542136 -0400
+++ krusader-1.60.0/debian/rules    2005-05-01 14:39:53.000000000 -0400
@@ -28,15 +28,41 @@
    INSTALL_PROGRAM += -s
 endif

-config.status: configure
+-include debian/debiandirs
+
+debian/debiandirs: admin/debianrules
+   perl -w admin/debianrules echodirs > debian/debiandirs
+
+config: config-stamp
+
+config-stamp:
    dh_testdir
-   # Add here commands to configure the package.
-   ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) 
--prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info 
--with-qt-includes=/usr/include/qt3 --disable-rpath
+
+        ## Update config.{sub,guess}
+   -test -r /usr/share/misc/config.sub && \
+   cp -f /usr/share/misc/config.sub admin/config.sub
+   -test -r /usr/share/misc/config.guess && \
+   cp -f /usr/share/misc/config.guess admin/config.guess
+
+   # Going to remove this in clean
+   if test ! -f configure; then \
+     $(MAKE) -f admin/Makefile.common ;\
+   fi
+
+   chmod +x configure
+
+   ./configure $(confflags) $(configkde)
+   touch config-stamp
+
+#config.status: configure
+#  dh_testdir
+#  # Add here commands to configure the package.
+#  ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) 
--prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info 
--with-qt-includes=/usr/include/qt3 --disable-rpath


 build: build-stamp

-build-stamp:  config.status
+build-stamp:  config
    dh_testdir

    # Add here commands to compile the package.
diff -Nru krusader-1.60.0.old/debian/control krusader-1.60.0/debian/control
--- krusader-1.60.0.old/debian/control  2005-05-01 14:55:52.854541721 -0400
+++ krusader-1.60.0/debian/control  2005-05-01 14:48:30.000000000 -0400
@@ -2,7 +2,7 @@
 Section: kde
 Priority: optional
 Maintainer: Angel Ramos <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>> 4.0.0), xlibs-dev, zlib1g-dev, libjpeg62-dev, 
libqt3-mt-dev, kdelibs4-dev
+Build-Depends: autotools-dev, autoconf, automake1.6, debhelper (>> 4.0.0), 
xlibs-dev, zlib1g-dev, libjpeg62-dev, libqt3-mt-dev, kdelibs4-dev
 Standards-Version: 3.6.1

 Package: krusader

Attachment: signature.asc
Description: Digital signature

Reply via email to