[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#645003: libppl-swi: Disable SWI-Prolog support for stage1 architecture bootstrap



Source: ppl
Version: 0.11.2-4
Severity: wishlist
Tags: patch

The most time-consuming part of bootstrapping a new Debian architecture
is cross-compiling all of the initial "Essential: yes" packages and the
dependencies of "build-essential".

Since ppl is now a dependency of GCC, its dependencies are now also a
part of that process.  Since the libppl-swi is unnecessary for the
bootstrap, please consider applying the following package to allow
libppl to omit the SWI-Prolog dependency and build for stage1 builds.

I tested this with a cross-compile for the "powerpcspe" architecture:

  $ sudo apt-get build-dep ppl=0.11.2-4
  $ apt-get source ppl=0.11.2-4
  $ patch -d ppl-0.11.2 -p1 <ppl-stage1-support.patch
  $ cd ppl-0.11.2
  $ DEB_STAGE=stage1 dpkg-buildpackage -apowerpcspe -b -us -uc

Additionally, a native build without DEB_STAGE set also still works.

Thanks!

Cheers,
Kyle Moffett

--
Curious about my work on the Debian powerpcspe port?
I'm keeping a blog here: http://pureperl.blogspot.com/


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (700, 'testing'), (700, 'stable'), (600, 'unstable'), (500, 'stable-updates'), (500, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff -ru ppl-0.11.2/debian/rules ppl-0.11.2.new/debian/rules
--- ppl-0.11.2/debian/rules	2011-07-10 14:00:23.000000000 -0400
+++ ppl-0.11.2.new/debian/rules	2011-10-11 12:33:06.000000000 -0400
@@ -29,8 +29,16 @@
 
 # FOR AUTOCONF 2.52 AND NEWER ONLY
 confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
-# only build the C,C++,SWI-Prolog interfaces
-confflags += --enable-interfaces=c,cxx,swi_prolog --disable-ppl_lpsol --disable-ppl_lcdd
+confflags += --disable-ppl_lpsol --disable-ppl_lcdd
+
+## Disable the SWI-Prolog interface during architecture bootstrap
+ifeq ($(DEB_STAGE),stage1)
+confflags += --enable-interfaces=c,cxx
+DH_OPTIONS += -Nlibppl-swi
+export DH_OPTIONS
+else
+confflags += --enable-interfaces=c,cxx,swi_prolog
+endif
 
 ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
   with_check := disabled by DEB_BUILD_OPTIONS.

Reply to: