Rebuilding the archive with dash as /bin/sh

January 5th, 2008 by lucas

I rebuilt all Debian packages twice. The first time with bash as /bin/sh, and the second time with dash as /bin/sh.

About 120 packages built fine with bash, but failed to build with dash. I filed all the bugs that weren’t filed already.

Then I debdiff’d the resulting binary packages, and found about 40 packages that built fine with bash and dash, but produced different binary packages (mostly files missing/being added)!

All the bugs (including those that were already filed) have been usertagged. Most of those bugs are quite easy to reproduce and fix, so, if you are bored, send patches!

I was a bit surprised by the high number of problems I found, since Ubuntu has been using dash as /bin/sh for more than a year, even on their buildds. Some packages have been fixed in Ubuntu, but the Debian maintainers didn’t include the fix. But many packages were simply broken in Ubuntu.

Now I’ll try to find time to work on the Build Daemon From Hell idea, and on rebuilds inside qemu.

3 Responses to “Rebuilding the archive with dash as /bin/sh”

  1. Torsten Werner wrote on 01/5/08 at 12:59 am :

    I am very astonished that

    PATH=$PATH:

    makes a difference in dash compared to bash when it comes to constructs like

    . $file

    Cheers,
    Torsten

  2. Linux Development Corner » Cominciare bene il 2008 wrote on 01/7/08 at 11:54 am :

    [...] FTBFS legati a /bin/dash Approfittando dell’eccellente attività svolta da Lucas Nussbaum, ho iniziato a caricare qualche pacchetto negli archivi per risolvere gli errori di compilazione derivanti dalla transizione a /bin/dash come shell di default (la transizione è avvenuta in Edgy e ancora siamo qui a parlarne…). Questa attività richiede il coordinamento con i maintainer Debian per mezzo del BTS, con la speranza che le modifiche segnalate vengano in seguito introdotte per ridurre le differenze tra le due distribuzioni. Se qualcuno fosse interessato, sarò felice di sponsorizzare gli upload [...]

  3. Marco Rodrigues wrote on 01/8/08 at 4:31 pm :

    Keep up the good work =)

    That’s really awesome to have packages synced.