Junichi Uekawa: Bought NetGear N300.
Bought NetGear N300.
It is supposed to run linux on it.
Bought NetGear N300.
It is supposed to run linux on it.
yaboot bootloader consists of, among other things, one binary that is
understandable by OpenFirmware. That binary is a file called yaboot, after
the name of the booloader.
As an aside, you have to indicate to OF what is the file that you want it to
load during the boot process, so that it knows what to do. The way to
indicate this is to "bless" the file (and the folder that contains it).
Some ways to bless a file are to, for example, use the bless command in
MacOS X or the hattrib -b command from hfsutils.
Files in an HFS filesystem have two attributes that many other filesystems
don't: a creator ID (the "application" that created the file) and the type
ID (which determines what kind of file it is).
OpenFirmware, in particular, looks for files with the type tbxi for the
bootstrap process.
The yaboot binary is loaded by OF into memory and, then, control is passed
to the yaboot program, which then reads its configuration file
(yaboot.conf) from the same folder where the binary was in. The file
yaboot.conf contains instructions for yaboot to do its job. The file
yaboot.conf is very similar in construction to configurations of an older
bootloader for x86 computers, lilo.conf.
Also, in a way similar to what LILO requires, after you install some new
kernel, change some parameter in the configuration file, etc., you have to
run a program that will set up everything so that the boot process can know
of your new configuration. With LILO, this command was called lilo, while
with yaboot the command is called ybin (which, essentially, takes care of
putting yaboot.conf in the bootstrap/HFS partition and blesses the
yaboot binary).
ybin.
GRUB2 (and its older sibling, GRUB legacy) do away with that: during
boot-time, it can understand the filesystems that you have in your computer
and interactively load whatever you want from there, also from a
command-line like OF, before any (regular) operating system has even been
started.
But how do you start GRUB2? Well, the way that this is performed is
copying a binary to that special HFS partition. Here things start to be
hairy, because GRUB2 has a lot of functionality, but it comes at the price
of it consuming a lot of space (especially if you are using encrypted
partitions or some kind of logical volume managements with some journalling
filesystem that allows files to be compressed etc. on top of it). The list
goes on.
Usually, that special HFS partition only has 800KB, which, BTW, is the size
of an old 3.5" floppy used with older Macs (note: due to some contraints on
partitions and aligments of such partitions on cylinders, it is not uncommon
for disk partitioning software to create partitions slighly larger than
800KB, but not much larger than that).
A full-featured binary of GRUB2 to be placed on that HFS partition can have
much more than those 800KB. But how do you get that binary, in the first
place? And how do you fit that in the HFS partition?
grub-ieee1275 package (I'm assuming here that you are using Debian or
Ubuntu, but similar instructions may apply to other distributions). Then, a
first step would be to create such binary with:
mkdir /tmp/foo
cd /tmp/foo
cp -a /usr/lib/grub/powerpc-ieee1275/* .
grub-mkimage -O powerpc-ieee1275 -o ../grub.img *.mod
The last command of these create an executable named grub.img that is
callable from OF and which contains every module from grub-ieee1275. This
executable that I call here grub.img is called, in GRUB2 parlance,
the core image and it it seems to be named core.img in many systems.
On my system, with those commands, the binary grub.img is about 1208KB,
which is 50% larger than that 800KB partition. And you would like it to be
much smaller, becase you want to still have your yaboot bootloader by
default while you are evaluating your bootloaders (or using it as a backup
plan).
As GRUB2 follow a modular design, you can mix and match the features that
you want. This already hints you to the way we can fit it in the HFS
partition, and it is always the same story: just trim the fat.
/dev/hda2 here);/ filesystem resides (denoted by /dev/hda3
here);/boot (I don't have one of these, but let's say
that it is /dev/hda7 for our discussion purposes), usually containing
your kernels and initial ramdisks./dev/hda3 (as is the case of this author), and optionally a
partition where your Linux kernel resides (people usually use it to store
the /boot subtree of a Linux filesystem). Let's say that this last one is
/dev/hda7.
Then, you would compose something like the following as a configuration file
for GRUB2 (named grub.cfg):
insmod part_apple
insmod ext2
set root='(hd,apple7)'
menuentry "Linux"
linux /vmlinux root=/dev/hda3
initrd /initrd
There are one two important points here that deserve more comments:
root, we have
(hd,apple7), while in a "common PC" we would have the (hd part
replaced with (hd0.
That's something that you should make your distribution aware of, if they
aren't yet.
As an addendum, I don't know how it works with systems with more than one
HD, as I only have (PowerPC) Macs that are notebooks. If you can share any
experiences, please do.root is not necessarily the
root of your filesystem (i.e., the partition that holds /), but the
device that everything that is "not fully qualified" is interpreted as
being relative to.
The "not fully qualified" above means anything that is not prefixed with
GRUB's device notation.
As an example, (hd,apple2)/boot/vmlinux if fully qualified for GRUB's
purpose, while /boot/vmlinux is not.grub.img and grub.cfg to the
special HFS partition. You can do that using hmount, hcopy, and
humount or you can use the regular Linux hfs module to copy to that
partition.
Then, boot your system, get into the OF prompt and execute:
boot hd:2,grub.img
Here, the 2 above is a reference to my HFS partition. Substitute that with
yours, appropriately. You will then see the common (familiar?) GRUB prompt
and, from there, everything else that you know will (hopefully) work.
grub-ieee1275 to create my grub.img binary. Here is the list of modules
that I use and that gives me a reasonably sized bootloader:
bitmap.mod datehook.mod gzio.mod lsmmap.mod reboot.mod terminal.mod
bitmap_scale.mod datetime.mod halt.mod memdisk.mod regexp.mod test.mod
blocklist.mod echo.mod help.mod memrw.mod relocator.mod trig.mod
boot.mod elf.mod hexdump.mod minicmd.mod scsi.mod true.mod
bufio.mod ext2.mod hfs.mod msdospart.mod search.mod video.mod
cat.mod fat.mod hfsplus.mod normal.mod search_fs_file.mod video_fb.mod
cmp.mod font.mod ieee1275_fb.mod part_apple.mod search_fs_uuid.mod videoinfo.mod
configfile.mod fshelp.mod linux.mod part_msdos.mod search_label.mod
cpio.mod gettext.mod loadenv.mod parttool.mod setjmp.mod
crypto.mod gfxmenu.mod loopback.mod probe.mod sleep.mod
date.mod gfxterm.mod ls.mod read.mod suspend.mod
Just for the record, my grub.img file has 624KB, and that can certainly be
shrunk.
grub.img file, because I'm lazy and I don't want to type the .img
extension. I also embed my configuration file in the binary that I create
with GRUB2, so that I don't have two files to copy to my HFS partition, but
only one. I do that with:
grub-mkimage -c grub.cfg -o ../grub -O powerpc-ieee1275 -d . *.mod
OK. No more lies here.
The nice aspect of GRUB is that one you install that image, you don't have
to touch that HFS partition anymore: you simply update your regular
filesystem's /boot/grub/grub.cfg file (which is usually performed when you
install a new kernel, at least with Debian) and you're ready to go.
The good way to do that is to use a minimal configuration file embedded in
your grub binary in your HFS partition that will hook into the system's
/boot/grub/grub.cfg to read newer kernels and leave the HFS partition (and
your system's NVRAM) alone.
Here is what I am using right now:
search --no-floppy --fs-uuid --set=root 35d26869-f7c9-4852-a9b8-100314560c34
set prefix=($root)/boot/grub
configfile /boot/grub/grub.cfg
You will, of course, want to modify the file above as you install newer
kernels (perhaps even that unsupported operating system from that fruity
company, who knows?). Don't forget to change the UUID's, and partition
numbers to fit your needs.
Well, that's it. I hope that it helps somebody out there, as the information
that I got otherwise was way outdated, incomplete, etc. to keep up with
GRUB2 from these days. Now, let's go patch the tools that we have so that
not everybody who wants to use GRUB2 have to learn about its workings.
Oh, of course, you can now have your kernels in ext4, btrfs, xfs
etc. partitions without the fear that your bootloader won't load them.
This is the eighth Debian XSF News issue. For a change, I m going to
use a numbered list, which should help telling people which item to
look for when pointing to a given URL. Feel free to let me know if
that seems like a nice idea or whether that hurts readability.
Also, it was prepared several days ago already, so I m publishing it
(with the needed bits of polishing it still needed) without mentioning
what happened in the last few days (see you in the next DXN issue!).
XFS) issue as
reported upstream in
FDO#31501
or in Debian as #616578. The
easy fix is to get rid of FontPath in xorg.conf, or to remove
the xfs package. It s deprecated anyway.libxt to find
the
guilty commit
was quite easy. After a quick upload with this commit reverted, a
real fix
was pushed upstream; a new upstream was released, packaged, and
uploaded right after that.upowerd s polling every 30 seconds:
#613745.6.0.1 squeeze point release, leading to cursor
issues with Intel graphics:
#618665.CurrentProblemsInUnstable page on the wiki, which is long
unmaintained (and that s why I m not linking to it). I m not
exactly sure what to do at this point, but I think having a similar
page on http://pkg-xorg.alioth.debian.org/, linked from the
how to report bugs
page would make sense. Common issues as well as their solutions or
workarounds for stable should probably go to the FAQ
instead.wheezy. The 2.6.38 upstream release was
quickly
pushed to unstable,
which is great news, even if it s not really ready yet (since it s
still failing to build on armel and mips).lenny-backports was quickly installed and the website should
look fine.wkhtmltopdf (WebKit-based HTML
to PDF converter), since the table of contents gets pixelated in
the generated PDF documents. We could use a2x to generate
documents through the DocBook way, but that means dealing with
XSL stylesheets as far as I can tell; that looks time-consuming
and a rather low-priority task. But of course, contributions are
welcome.squeeze, I didn t
notice the 1.9 packages were forked right before that, so were
affected too. I fixed it in sid since then (and in git for
experimental). I noticed that when
Ian reported a crash with large
timeouts in xauth calls, which I couldn t reproduce since
untrusted cookies without XSecurity don t trigger this issue. I
reported that upstream as
FDO#35066,
which got marked as a duplicate of (currently restricted)
FDO#27134. My patch
is currently still waiting for a review.experimental, unless 7.10 migrates to testing first, in
which case that update will target unstable..so symlinks
for a while, and I finally gave it a quick look. It seems one is
supposed to put e.g. libI810XvMC.so.1 in
/etc/X11/XvMCConfig to use that library, so the symlinks are
indeed not needed at all, and I removed them.libxt: to unstable, as mentioned above, with a hot fix,
then with a real fix.synaptics input driver: to unstable and experimental,
fixing the FTBFS on GNU/kFreeBSD.xterm: new upstream, to unstable.libdrm: new upstream, to experimental. A few patches to
hide private symbols were sent upstream, but I ve seen no
reactions yet (and that apparently happened in the past already).xorg-server 1.9.5rc1 then 1.9.5, to unstable.xutils-dev to unstable: the
bootstrap issue goes away,
thanks to Steve s report.libxp to unstable, nothing fancy, that s libxp keyboard input driver: mostly documentation update, to
unstable and experimental.mouse input driver: fixes BSD issues, to unstable and
experimental.intel video driver: to experimental, but the
debian-unstable branch can be used to build the driver against
unstable s server.xfixes: protocol to unstable, and library to experimental
(just in case); this brings support for pointer barriers.openchrome video driver: Julien introduced a debugging
package, and got rid of the (old!) via transitional package. He
also performed his first upload as
a Debian Maintainer. Yay!siliconmotion video driver: to unstable.pixman: new upstream release candidate, to experimentalcompiz packages to experimental.
For the past couple years I had been reading very little, two or three books a year.
This is not the number of kilometers I ran today.
I managed to play 3 pranks on myself today.
My third submission to the Archive of Formal Proof has been published yesterday: A proof that there exists exactly one general triangle. Given that yesterday was the first of April, this is obviously not meant too be taken too serious; nevertheless it is not a prank either: The math is sound and now even formally verified using Isabelle.
While trying the new
Meego Tablet preview today the cat of some of my friends was
nice enough to provide support for the ExoPC during the initial
installation..
I can recommend some feline assistance whenever installing
things on an ExoPC.
Today we gathered the representatives of different distributions that are present at GNOME.Asia to discuss what GNOME could do to improve its support for distributions that distribute it, especially in matters of long-term support.
It is kind of sad that there weren t any representatives from Canonical nor Red Hat, but the discussion turned out really interesting and we learned a lot about the packaging habits of each other. Furthermore, there were several concrete leads that were explored, which will lead to proposals from the GNOME foundation to all distributions.
Helping with long-term support
The most widespread GNOME version in the LTS releases that happened recently is 2.30, which is used by Debian squeeze, Ubuntu LTS 10.04, RHEL 6, and Solaris 11. It looks like an accident, but on the other hand:
I'm sure you already heard the news about the new
joined
Canterbury
Distribution,
and are eager about details.
While our teams are struggling to integrate all the existing
infrastructure, it's my pleasure to announce that the first pieces of the
collaboration are already available for our users.
As a first measurement, a common Canterbury Package Manager, called
cant will be made available in all distributions. It is already
available for the distribution formerly known as Archlinux, and
with the next mirror push will also be available for those used to run
Debian.
You'll be pleased to know, that the command line syntax isn't much of a
change, you can still run cant search, cant install or
cant remove, but future version will also introduce all the
features known from the other distributions.
Stay tuned for further updates of Canterbury Linux!
For the whole week, I ve been in Bangalore for the GNOME.Asia 2011 hackfest. I ve been delegated by Stefano to represent Debian here, and my employer EDF has agreed to cover for travel costs since they are very interested in first-hand information the future of the Linux desktop and sharing our work on scientific computing.
It s been a really exciting week; I ve spent quite some time packaging missing pieces of GNOME 3.0 (well, the release candidate versions of course) in experimental, together with Fred Peters. I think it s reaching a usable state now, so we ll probably soon provide metapackages to make it easily installable.
The latest developments of the Shell make it a very exciting piece of software, with a strong focus on usability. Many things were written about it, but in the end my main criticism would be that it lacks some functionality - for example, the combined clock/weather/locations applet will be greatly missed. The good news is that it is extremely customizable, and with all the libraries being made accessible through GObject introspection, there are many features that are accessible from it. If you know how to write JavaScript, now is the time to write your favorite extension.
On the good news front, Vincent Untz also spent a lot of time improving the so-called legacy mode , which is more and more starting to look like the Shell without special effects, and with all the features from gnome-panel 2.x that are still here. We will try in Debian to cover all uses cases that there were for GNOME 2 with GNOME 3 technology, so that panel lovers are not left behind.
I ve also proposed an update to the dh_gsettings proposal, which will provide the same functionality as dh_gconf and allow to easily set distribution-specific overrides. It is still missing a way to set mandatory settings, which might come as a problem for some corporate users, but this is planned for a future version of GSettings.
Today, we re having a business track where I and representatives of other companies (Oracle, Lanedo, Dexxa) are sharing experiences about making money with free software. Unfortunately the local organizers didn t manage to gather many people, despite our being in a city with an incredible number of IT industries.
Tomorrow, the public conference starts, and this should be the opposite: we re expecting around 1000 people, which is a great achievement for a free software conference.
For an unrelated topic, being around so many GNOME hackers has some interesting side effects; I ve been added to Planet GNOME. So, hey, hello Planet GNOME readers!
Warning, this post is COMPANY CONFIDENTIAL, do not spread outside of authorized corporate internal communication channels.
Today Nokia will announce that in order to increase investor confidence and foster brand loyalty all Nokia Symbian phones in the world will receive two free Nokia-themed games.
The first game will be Angry Nokias Nokias have discovered that other phones are taking their market share away and now they are very, very angry! Fling cool and shiny Nokia phone and destroy the competition. Complete all free 30 levels and be first to collect all golden Ovi s by gathering MeeGo and Windows Phone 7 logos in the levels!
The other game that is sure to be an instant hit among true Nokia fans will be the Nokia Ninja you are a humble user and sales people are throwing phones at you all kinds of phones. But beware most of those phones are not Nokias! Use your finger to slice trough the competition, rake up combos and achievements! But be careful you do not want to slice trough a Nokia phone! Only trough instant brand recognition you can rake up truly great scores in this game.
Nokia connecting people.
(P.S. Check the date)
The student application period for applying to GSoC opened last Monday and we already have a couple of very good applications from students. We are still missing yours!
The list of Debian projects includes a nice variety of projects:
In one of the corners of what is now know as Europa, there was a rich,
prosperous and beautiful kingdom known as Trist nia. In the past, not
that long ago, it had been a number of smaller kingdoms and
caliphates, all with their own cultures, religions and ways of life. Wars,
and series of marriages of convenience eventually configured what ended up
being the united kingdom of Trist nia. Throughout the years, some of the
unified cultures grew and flourished, while others struggled to survive in
their ever-shrinking areas of influence.
A required introduction
Sometimes, the minor cultures would suffer due to oppression coming
from the delegates of the King, who would ban any expression of these
cultures, as they were seen as a potential threat to the kingdom's
stability and unity. For example, just a few decades before the main
subject of this tale, the predecessor of the incumbent King took power by
force, after crushing everyone who opposed his uprise during a bloody and
hard civil war. His reign was ruthless and he imposed draconian laws
uppon his people: usage and teaching of the minor languages was banned,
and everyone was forced to use the language of the Centr lia region, in
public or private.
After four decades, the majority of the Tristanian people were sick enough
of the situation to consider standing against their fear of the regime and
demand freedom, but repression prevailed until the old general died. His
place was taken by the King's grandson even if the people had expressed,
just before the Great War, that they had had enough kings and demanded a
ruler they could choose directly. Of course, the new King seemed a lot
nicer than who they had been suffering for ages, so when asked if they
accepted the new situation, an overwhelming majority said yes .
However, there was a region, Verd lia, where the majority said no .
Things were actually more complicated. Verdalians formed a traditional,
proud society, and while the years of oppression had undoubtedly weakened
it, they had managed to preserve their very unique culture, language and
traditions healthy. The Verdal language was really weird to the
ears of Centr lians and even other minor cultures of the Kingdom, and
erudites struggled to find its real origins, not being able to reach
plausible conclusions.
Verdanians, as we already know, were a traditional society, living in a
land of deep and poorly connected valleys. Little they knew or cared about
the complicated matters of Centr lia and other regions. What made them
happy was to take care their sheep and cows, keep a good fire in their
living room and, every now and then, enjoy one of their log cutting
contests. The impositions of the former dictator were too much for them,
and some of them started sabotaging, assaulting and killing some of the
dictator's soldiers, agents and officers. This was a huge risk at the
time; getting caught meant death penalty for sure, and at first, even
people from other regions were in favour of these actions. However, this
popular support greatly diminished when the new King took the throne, as
these minority continued with the killings, while most of the people saw
it was no longer justified.
The Royal Ball
One of the very first measures the young King introduced was to organise
the Royal Ball of Trist nia , a major event through which the people of the
different regions would be able to elect their delegates to the Crown.
Every four years, a Great Ball contest would happen in Centr lia, and the
winners would be able to decide by their own on some of the matters that
affected their region. Verdanians would send a few teams of dancers, each
of which came from different towns or areas. Some Verdanian teams were
happy about the King and the new political situation, but other teams
weren't so much. And some others, while being simple non-violent dancers,
were known to be supporters of the violent minority who kept on harassing,
assaulting and even killing in their struggle for freedom of Verd nia .
The Verdanian groups aligned with the different culture of Verd nia
(including those who were said to support the violent) tended to get a lot
more points in the dancing contest, and a majority of the elected delegates
were appointed by them, making it easier to pass laws and edicts that
favoured protection of their ways, traditions and language.
No matter how hard they tried, the dancing groups closer to Centr lia
kept losing to the majority. After many years of dance contests, these
groups used their closeness to the King's court to pass the Ball Law of
Tristanian, that would ban any dancing group which didn't condemn the assaults
and killings that kept happening in Verd nia. The unsurprising result was
that, with less dancing groups participating in the following Royal Ball, the
Verdanian majority was broken and new delegates, friendly of the
Centralian officers, were elected.
Many people who had been in favour of assaults and killings began to
question this strategy, and this political movement's unity started to
break. In the end, the dancers decided to part ways with the violent; they
wanted to dance in the next ball, and to do so, they wrote a letter to the
King, in which they explicitly expressed their rejection of violent ways,
and their embracing of dancing as the only means to drive their political
agenda. An objective reading of the new Ball Law clearly showed that this
was enough: the text only said the requisite for a dancing group was to
disavow all kinds of violence.
This wasn't really expected in Centr lia, so they started to add new
requirements in an attempt to keep this group from the contest: their
decisive majority in Verd nia was at stake.
The Royal Ball was nearing and registrations for the contest would soon
close. The Centralian government first argued that the dancing group
should reject the violence coming from the Verdanian extremists in
particular. The dancers did it. Then they argued that the dancers were the
same people who had been supporting violence in Verd nia for years, and
obviously their violence rejection statement was a lie. The dancers
struggled to find new dancers who had not been involved in past dances.
But it was not enough. They then claimed that this dance group should be
quarantined for four years, until they could prove they really were
serious about their new non-violent ideas.
The dance group made a plea to the Trist nian Supreme Counsel, a group
of sixteen experts in law of the Kingdom, and argued that all of these
draconian requirements were not part of the law that was being enforced by
the King. Their appeal to the elder counselors was in vain, though. They
ruled this dancing group was as criminal as the violent minority they had
once supported, and should by no means take part in the Royal Ball.
As a last, desperate measure, the dancing group reached an agreement
with other Verdanian dancers to join forces. They would adopt a new name
and new dancing costume colours. Many feared this would only end up in the
ban of the other dancing group.
Unfortunately, the end of this story has not been written yet, but it
will be completed very soon. Only time will tell if things continue being very
sad and unfair in Trist nia, or if the dance contest will once again be
impartial, with legitimate results.
Este post tambi n est escrito en espa ol.
At work, I'm dealing with lots of different database setups, luckily mostly
PostgreSQL running on Debian. At the same time, a fair amount of the tools in
the PostgreSQL ecosystem (not the PostgreSQL server packages itself) are not in
the best shape in the Debian archive.
I'm trying to change that by adopting some of the packages. So far, I have
fixed a few RC bugs where packages where suddenly trying to build against
PostgreSQL 9.0 while expecting 8.4. To my surprise, there are no packages yet
in the archive that support multiple PostgreSQL versions in parallel. There is
even a package ready to help doing this -
postgresql-server-dev-all,
but apparently nobody has used it yet. It turned out that after working around
a few trivial problems and adding just a few lines of sh code, it was pretty
straightforward
to port skytools and
postgresql-pllua
to 9.0 while keeping 8.4 support. The latter has no version-specific code left
in debian/ except for a list of supported versions in debian/pgversions, so a
future port to 9.1 will be trivial. (Fun fact: the old postgresql-pllua version
0.8.1 was actually a typoed 0.3.1 version.)
Most PostgreSQL tools use a common
subversion repository on Alioth,
but there is no common mailing list address that is put into the Uploaders
fields, so it is hard to get an overview over the state of all packages. I've
compiled a list of all packages in svn, git, bzr (the server packages), and a
few others
in DDPO
to fix that for now.
Other packages I've updated so far are
pgtune,
pgbouncer, and
pgpool2.
There have been a lot of web browsers embedding the Gecko engine, especially through the gtkmozembed library (it was not really a proper library but let s call it like that). I remember being a happy user of galeon, which went on as epiphany, but there were also all these small applications that just need a good HTML renderer in one of their widgets, like yelp, or several Python applications using python-gtkmozembed.
Anyone having had to deal with these applications, especially the most complex ones, could tell you a few things:
It's the first World Backup Day today.
As the Obnam author, I can wholly agree.
See source at backup-poster.svg.
(Sorry, I didn't have the right font, so it doesn't look quite right.)
A while ago I said Koen from Emweb made an interesting proposal at FOSDEM about emerge, the KDE Windows build tool.
Yesterday, Jaros aw Staniek and I reaffirmed our commitment to emerge . Today, I d like to go a bit further: let s bring more developers to emerge by opening it up to other projects. Keep reading!
What is emerge, why is it important and what was Koen s proposal?
Fact: Microsoft Windows is very different to Unix in regards to development.
On Unix platforms -that includes Linux and Mac OS X-, software is usually installed to /usr: applications in /usr/bin and /usr/sbin, libraries in /usr/lib, headers in /usr/include, common resources in /usr/share, etc. Also, dependency management is usually something you can count on: when you install kdelibs5-dev in Ubuntu, it will automatically install libqt4-dev, kdelibs5-data, libfreetype (runtime), etc That makes setting up a development environment a very easy task: look for shared libraries, header files, etc in the common places and you will probably find them.
On Windows there is nothing like that. When you want to compile an application, you need to provide (build and install) all its dependencies, and you need to tell Visual Studio where to find everything. Even CMake usually needs some help in the form of a hint for CMAKE_PREFIX_PATH. As you may imagine, building KDE, which has more than 200 third party dependencies and tens of modules (and with the move + split to git, many more) becomes an almost insurmountable task.
Emerge to the rescue: inspired by Gentoo s emerge, Ralf Habacker, Christian Ehrlicher, Patrick Spendrin and others (yours faithfully included) developed a tool which downloads the source, configures, builds, installs and packages KDE and its dependencies. It makes a world of difference when building KDE. Actually, it makes building KDE on Windows possible. Once more: thank you very much guys, impressive tool.
There are two well-differentiated parts in emerge, the engine and the recipes .
The engine takes care of downloading the sources (tarballs, checkouts from Subversion and git clones, etc) , configuring and building for the usual build systems (QMake, CMake, NMake makefiles, etc), installing, bundling packages together and much more. All that for four compilers (MSVC2008, MSVC2010, MinGW32 and MinGW-W64). It s the equivalent to Gentoo s emerge, Debian s dpkg + debhelper/cdbs or Homebrew and MacPorts for Macintosh.
The recipes are the package-specific instructions a particular piece of software needs to build: what s the name of the tarball? URL to download from? What versions are available? What build system to use to configure and build? Does it need any Windows-specific patch? They are written in Python using some helper modules emerge provides (the debhelper-like part I mentioned above).
Currently, there are about 70 recipes in emerge, organized in our portage tree (bear in mind the names are taken from Gentoo but the internals of the tool are completely different). With those 70 recipes, we are able to build most KDE modules. Problem is to provide all the optional features, we are missing probably 200 to 250 more recipes. Given that KDE on Windows is quite short on developers, we have to decide: either we fix bugs and improve the integration of KDE on Windows, or we keep track of the dependencies. I won t lie: for KDE on Windows, I d rather focus on development than on packaging.
Given that writing and maintaining recipes does not strictly require programming skills (although they help Next.