Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian GCC (http://www.linux-archive.org/debian-gcc/)
-   -   Bug#645003: libppl-swi: Disable SWI-Prolog support for stage1 architecture bootstrap (http://www.linux-archive.org/debian-gcc/586320-bug-645003-libppl-swi-disable-swi-prolog-support-stage1-architecture-bootstrap.html)

Kyle Moffett 10-11-2011 04:50 PM

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

Matthias Klose 10-11-2011 06:24 PM

Bug#645003: libppl-swi: Disable SWI-Prolog support for stage1 architecture bootstrap
 
why use graphite at all for the stage1 build?



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4E9489F9.4040706@debian.org">http://lists.debian.org/4E9489F9.4040706@debian.org

"Moffett, Kyle D" 10-12-2011 04:03 PM

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

On Oct 11, 2011, at 14:24, Matthias Klose wrote:
> why use graphite at all for the stage1 build?

Well, this isn't really the stage1 build of GCC. When bootstrapping an
architecture I want to avoid rebuilding packages as much as possible,
which means that I want a "final-stage" GCC that runs on my target as
soon as possible.

So by this point, I have already built:

cross-binutils
linux-libc-headers
cross-gcc-stage1
cross-eglibc-stage1 (headers and fake libc.so)
cross-gcc-stage2
cross-eglibc-stage2 (without libssp support)
cross-gcc-final

Then I need to cross-compile all of the Essential:yes packages, as well
as the build-essential dependencies, which includes GCC, plus enough
other packages to break build-dependency loops:
base-files, base-passwd, ncurses, binutils, gzip, zlib, gmp, mpfr4...

Unfortunately I can't rebuild GCC on the target system until I have all
of its build-dependencies, which is a *lot*. To minimize the amount
that needs to be rebuilt again afterwards, the GCC needs to be totally
complete for the purposes of compiling other packages.

Since graphite is technically necessary for a fully-featured GCC, but
the SWI-Prolog support for ppl is not, that's where I chose to break
the dependency chain. Unfortunately I don't know GCC well enough to
determine how graphite support affects the builds of any other Debian
package builds.

Any additional insight is much appreciated, thanks!

Cheers,
Kyle Moffett

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




--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 88408CA6-74B5-4DCF-A88B-A9FF694F0808@boeing.com">http://lists.debian.org/88408CA6-74B5-4DCF-A88B-A9FF694F0808@boeing.com


All times are GMT. The time now is 09:20 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.