Debian Planet










Welcome to Debian Planet

Search

All your woody are belong to us.
Main Menu

  • Home

  • Topics

  • Web Links

  • Your Account

  • Submit News

  • Stats

  • Top 10

  • Debian

    These are important Debian sites one should not be without!

  • Official Debian site

  • Package search

  • Mailing list archives

  • Bug reports

  • Debian on CD

  • Unofficial woody CD ISOs

  • Unofficial APT sources

  • Developers' Corner

    Other great Debian news sources:

  • Debian Weekly News

  • Kernel Cousin Debian

    (Debian mailing lists digested)
  • Community Groups

    Need help? You're not alone on this planet.

  • debianHELP

    (User support site)

  • Debian International

  • DebianForum.de

    (Deutsch)

  • EsDebian

    (español)

  • DebianWorld

    (français)

  • MaximumDebian

    (Italiano)

  • DebianUsers

    (Korean)

  • Debian-BR

    (Português)

  • IRC

    The place to get help on a Debian problem (after reading docs) or to just chat and chill is #debian on irc.debian.org.

    Many of the Debian Planet staff live there so pop by and say hello.

    Wanna write?

    Got that latest or greatest scoop? Perhaps you have some important news for the Debian community? Submit a news item!

    Or perhaps you've written a rather ground breaking insight into some aspect of Debian and you feel compelled to share it with others? Knock up a longer editorial article and send it to the editors.

    Sponsorship

    DP is sponsored by Xinit Systems and kieser.net.

    Domains paid for and hosted by uklinux.net.

    Buy your Debian merchandise at DebianShop.com.

    Who's Online

    There are currently, 77 guest(s) and 4 member(s) that are online.

    You are Anonymous user. You can register for free by clicking here.

      
    Tips 'n' Tricks: Debian from source
    Contributed by Anonymous on Thursday, October 18 @ 19:29:08 BST

    Debian
    Just thought I'd let you know something I was trying out... building Debian completely from source! Instructions follow...


    #create a list of installed pkg

    dpkg --get-selections | grep install | grep -v deinstall | cut -f1 > installed

    #create a map file for reference: package -> source

    for i in `cat installed` ; do s=`dpkg -s $i | grep ^Source: | cut -f2 -d ' '` ; test -z "$s" && s=$i ; echo -e "$it->t$s" >> map

    #create list of sources

    cut -f3 map | sort | uniq > sources

    #get the source

    for i in `cat sources` ; do mkdir $i ; pushd $i ; apt-get source $i ; popd $i ; done

    #build it all - need to be root here (for build-dep)

    for i in `cat sources` ; do pushd$i ; apt-get build-dep $i ; fakeroot apt-get build $i ; popd ; done

     
    Related Links

  • Debian Homepage
  • SPI Inc.
  • More about Debian
  • News by rob

    Most read story about Debian:
    Xpdf and PDF copy-control

    Last news about Debian:

    Printer Friendly Page  Send this Story to a Friend
  • "Tips 'n' Tricks: Debian from source" | Login/Create Account | 34 comments
    Threshold


    The comments are owned by the poster. We aren't responsible for their content.

    Re: Debian from source (Score: 0)
    by Anonymous on Thursday, October 18 @ 19:42:12 BST

    The line where you build the map file is slightly messed up. The echo statement has a 't' where it should be ' ' to produce a tab character. I guess I missed this while previewing; sorry.

    [ Reply ]


    Re: Debian from source (Score: 1)
    by arcterex on Thursday, October 18 @ 19:58:28 BST
    (User Info)

    Isn't this something that "apt-get source -b" would be good for? What is the difference of doing this and downloading the source and building it in a fakeroot jail?

    Sorry if this is a really silly question 🙂

    [ Reply ]


    Re: Debian from source (Score: 3, Interesting)
    by Anonymous on Thursday, October 18 @ 20:36:57 BST

    Now what would be really badass is if you could do apt-get source-dist-upgrade or apt-get source-dselect-upgrade and have apt automagically download and compile source, and install the resulting debs once everything's compiled. apt-get source-clean could then go through and remove source and debs.

    [ Reply ]


    Why do this anyway? (Score: 3, Informative)
    by carlos (claviola at debian dot org) on Friday, October 19 @ 02:15:29 BST
    (User Info) http://laviola.org

    What's the point? The performance gain is minimal, compared to the trouble of recompiling everything on your system. If you want to optimize stuff, tune your kernel and recompile stuff that really needs it, like mplayer, or mozilla, if you wanna wait a week or so. 😀

    [ Reply ]


    I wonder wonder wonder why... (Score: 1, Interesting)
    by Anonymous on Friday, October 19 @ 09:30:19 BST

    Why gcc doesn't do a:

    if (P4)

    optimize_this_this_way()

    elseif (K7)

    optimize_this_this_way()

    When it finds a piece of code that would be much faster if optimized.

    I don't think the size would be much greater and we all would be so happy....

    [ Reply ]


    Re: Debian from source (Score: 0)
    by Anonymous on Friday, October 19 @ 12:47:42 BST

    or use Lars' dbuild... much easier.

    http://liw.iki.fi/liw/programs/index.html

    [ Reply ]


    Re: Debian from source (Score: 0)
    by Anonymous on Friday, October 19 @ 17:49:09 BST

    Why not just get everything from cvs. Then you can do a cvsup, make buildworld; make install world. Just like *BSD! The only problem is that it takes forever and a day to upgrade your box. With FreeBSD it take me around 4 hours each time I want to do a full upgrade. I dont do that anymore.

    [ Reply ]


    Re: Debian from source (Score: 0)
    by Anonymous on Friday, April 05 @ 01:21:21 BST

    URGH! I only get "shell: line X: syntax error: unexpected end of file" however I do!

    [ Reply ]


    Based on: PHP-Nuke

    All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2000 by Debian Planet

    You can syndicate our news using the file backend.php.