Self-hosting clang; building DragonFly with it too

clang, which many people look to as a gcc replacement, is now able to build itself.  (Thanks John Marino for the heads-up, some time ago)  It can also build world and kernel on DragonFly, going on the work of Sascha Wildner!

Using the pkgsrc package,  put

clang_CC=/usr/pkg/bin/clang

in /etc/compilers.conf and then set $CCVER to “clang” when building:

env WORLD_CCVER=clang make -DNO_GCC44 buildworld

I haven’t tried this, so any errors in description are mine, not Sascha’s – can someone verify? I don’t have a test system to run it on right now.

Edit: see Sascha’s comment for the definitive method.

Obligatory iPad mention

The iPad is BSD-based, which is neat.  I like the notion of covering more BSD devices and products here on the Digest.

But: do you like even the vague concept of open source?  The iPad is expressly designed to limit your choices, especially with media consumption and the programs you run.  It’s sort of like owning a TV circa 1975 – you get what large media groups and the network (Apple) want you to see. I don’t want to come across as someone who’s complaining because it’s different – I’m complaining because it’s not different.

There’s other people arguing the same idea, with even more reasons.  This is one of the most specific.  Plus, there’s the natural progression…

(b)make install change in pkgsrc

Joerg Sonnenberger announced new behavior in pkgsrc: Performing “bmake install” in pkgsrc with a package that supports DESTDIR will build a binary package and then install from that package.  This means a package will be successfully build before the installation process is started, and I assume is to assist further work down the road.

Details: The old behavior was to build and install directly, which “bmake stage-install” can reproduce.  DESTDIR support means that the software can be installed as non-root.

A week’s worth of posts for you

I can’t keep up with all the things to post.  I desperately want to clear my inbox, so here’s a week’s worth of posts all smushed together.  Enjoy!

Phew.