• Self compiling entire Bookworm DVD-1

    From Nils@21:1/5 to All on Wed Apr 23 13:00:01 2025
    Hey!

    I'd like to compile all of DVD-1 myself but using `-Oz` to optimize for binary size rather than speed. How do I do that? Where do I start? I could only find infos on how to build DVD-1 yourself using existing binary packages...

    Thank you!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Joe@21:1/5 to Nils on Wed Apr 23 14:30:01 2025
    On Wed, 23 Apr 2025 10:58:52 +0000
    Nils <tuxifan@posteo.de> wrote:

    Hey!

    I'd like to compile all of DVD-1 myself but using `-Oz` to optimize
    for binary size rather than speed. How do I do that? Where do I
    start? I could only find infos on how to build DVD-1 yourself using
    existing binary packages...


    How else can you do it? A working compiler is binary code, as are its
    auxiliary packages. To compile anything you must use pre-compiled
    binaries.

    It's a bootstrap job. You start by using a running system to compile a
    compiler and the other bits it needs from source code, and eventually, a kernel. You finally reach a position where you can switch to using
    your compiler and your new kernel to recompile what you've done so far,
    and then you can go on with all newly-compiled binaries and build a
    complete system. It's not a trivial job.

    See here for details of such a process:
    https://www.linuxfromscratch.org/

    This may also help:
    https://jamesbrind.uk/posts/linux-from-scratch/

    I did this a couple of times soon after the project began, and learned
    quite a lot. The automation systems were just being talked about then,
    and of course my computer was quite slow. A couple of scripts that I
    still use date from that time.

    --
    Joe

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tomas@tuxteam.de@21:1/5 to Joe on Wed Apr 23 14:40:01 2025
    On Wed, Apr 23, 2025 at 01:26:44PM +0100, Joe wrote:
    On Wed, 23 Apr 2025 10:58:52 +0000
    Nils <tuxifan@posteo.de> wrote:

    Hey!

    I'd like to compile all of DVD-1 myself but using `-Oz` to optimize
    for binary size rather than speed. How do I do that? Where do I
    start? I could only find infos on how to build DVD-1 yourself using existing binary packages...


    How else can you do it? A working compiler is binary code, as are its auxiliary packages. To compile anything you must use pre-compiled
    binaries.

    It's a bootstrap job [...]

    For a more Debian specific link, see

    https://wiki.debian.org/DebianBootstrap

    Cheers
    --
    t

    -----BEGIN PGP SIGNATURE-----

    iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCaAjdbgAKCRAFyCz1etHa RgMhAJ0Vv9QaGDWw0Tw0eHadag1vB5oAOwCdGSlYlIXlqijVSkLiyLMpaLR1tv8=
    =v1cB
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Tim Woodall@21:1/5 to Joe on Wed Apr 23 23:20:01 2025
    On Wed, 23 Apr 2025, Joe wrote:

    On Wed, 23 Apr 2025 10:58:52 +0000
    Nils <tuxifan@posteo.de> wrote:

    Hey!

    I'd like to compile all of DVD-1 myself but using `-Oz` to optimize
    for binary size rather than speed. How do I do that? Where do I
    start? I could only find infos on how to build DVD-1 yourself using
    existing binary packages...


    How else can you do it? A working compiler is binary code, as are its auxiliary packages. To compile anything you must use pre-compiled
    binaries.

    It's a bootstrap job. You start by using a running system to compile a

    That's not how I read it.

    Off the top of my head I don't know how to change the compile options, DEB_BUILD_OPTIONS perhaps?

    But the OP should start with dpkg-buildpackage to rebuild individual
    oackages.

    Once everything is rebuilt, assemble the DVD as normal

    There are some possible complications, I'd be inclined to build each
    package in a container and only install the build deps fir that package
    - some configure scripts might otherwise detect things they shouldn't
    which might then mess with install depends.

    Hope the op has a lot of computing resources...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tuxifan@posteo.de@21:1/5 to Marjal on Fri Apr 25 20:00:01 2025
    On Wednesday, April 23, 2025 8:48:01 PM Central European Summer Time Darac Marjal wrote:
    Do you need the DVD creation, or are you just looking for the
    re-compiled packages? If the latter, perhaps apt-build (https://manpages.debian.org/testing/apt-build/apt-build.1.en.html)
    might be of interest to you?


    Does this apply to Debian like that as well?Does this apply to Debian like that as well? This looks a bit Gentoo specific, but I am not too well with kernel building. I've never done it myself.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tuxifan@posteo.de@21:1/5 to Woodall on Fri Apr 25 20:00:01 2025
    On Wednesday, April 23, 2025 11:10:29 PM Central European Summer Time Tim Woodall wrote:
    Hope the op has a lot of computing resources...

    Well, only a single computer, but do you think this would suffice?

    Processors: 32 × AMD Ryzen 9 7950X 16-Core Processor
    Memory: 62.5 GiB of RAM

    Thank you

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tuxifan@posteo.de@21:1/5 to tomas@tuxteam.de on Fri Apr 25 20:00:01 2025
    On Wednesday, April 23, 2025 2:30:45 PM Central European Summer Time tomas@tuxteam.de wrote:
    For a more Debian specific link, see

    https://wiki.debian.org/DebianBootstrap

    Cheers

    Yes! This is exactly what I was looking for! Thank you :-)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)