At this weekend I finally had some time to work on something that I was in debt for a while, a gentoo overlay for Mamona.
If you’re a Gentoo user and want to test and run Mamona at your favorite distribuition, you now just need to install Mamona overlay and emerge mamona-installer.
For installation procedure just access Mamona Gentoo Overlay wiki page.
List of ebuilds at the moment:
- libdebian-installer (required by cdebootstrap)
Code at http://rsalveti.net/git/?p=mamona-overlay;a=summary
In case you’re using Network Manager at Gentoo, with a wireless driver using phy80211, you’ll probably notice that with a more recent kernel version your wireless device started showing itself as a wired one at Network Manager.
This happens basically because hal 0.5.11 has a bug that it shows the wrong information about the device, and Network Manager believes in hal.
To fix this just apply the patch showed at bug #246026. I made a backport of 2 patches from latest hal version so I could still use hal 0.5.11 with my ath9k driver.
Hopes that this gets into Gentoo soon.
Now that I’m currently working with OpenEmbedded at Mamona, I often have to edit and create new ‘bb’ files (the definition and instructions to build packages or define configurations, like ebuilds for Gentoo).
After working with ebuilds to build a few packages, I was really comfortable with the syntax highlighting and new ebuild templates that I have with Vim, but didn’t found anything like that for Bitbake and OpenEmbedded.
First searching for syntax highlighting for Bitbake, I found that Chris Larson already created a Vim syntax file that covered almost everything I need, but was a little bit different from what we have with ebuilds, so I decided to create my own syntax (based on Chris’) and template plugin.
Here’s the code, I just released the version 0.1, it’s quite easy to install, just like any other vim syntax and plugins, just copy the directories at your ~/.vim (sorry emacs users, but this is only for Vim 😉
I’m probably not covering everything from the OpenEmbedded/Bitbake syntax, but it’s quite good for now. If you see any red text around at your code just email me and I’ll try to fix it (patches are also welcome).
It was quite fun to develop for Vim, it’s not that different from any other language and it has many good help files where you can find every allowed syntax that you can use in your script.
Here are some screenshots from bb files and the template plugin:
* Syntax Highlighting:
* Template for new bb files (just open a new file that ends with ‘.bb’):
The template plugin will try to find your user name and email by your global git conf.
Thanks Chris for his syntax file and for the gentoo developers, who created the gentoo-syntax package.