<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Blogospheric Refraction &#187; Gentoo Development</title>
	<atom:link href="http://stuartl.longlandclan.yi.org/blog/category/linux-development/gentoo-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://stuartl.longlandclan.yi.org/blog</link>
	<description>The life and times of Stuart Longland (VK4MSL)</description>
	<lastBuildDate>Tue, 20 Dec 2011 07:29:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<copyright>2006-2007 </copyright>
	<managingEditor>me@vk4msl.yi.org (Blogospheric Refraction)</managingEditor>
	<webMaster>me@vk4msl.yi.org (Blogospheric Refraction)</webMaster>
	<image>
		<url>http://stuartl.longlandclan.yi.org/blog/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>Blogospheric Refraction</title>
		<link>http://stuartl.longlandclan.yi.org/blog</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>The life and times of Stuart Longland (VK4MSL)</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &#38; Culture" />
	<itunes:author>Blogospheric Refraction</itunes:author>
	<itunes:owner>
		<itunes:name>Blogospheric Refraction</itunes:name>
		<itunes:email>me@vk4msl.yi.org</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://stuartl.longlandclan.yi.org/blog/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>Broadcom Wireless related ebuilds</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/09/13/broadcom-wireless-related-ebuilds/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/09/13/broadcom-wireless-related-ebuilds/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 09:31:21 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Gentoo Development]]></category>
		<category><![CDATA[Linux Development]]></category>
		<category><![CDATA[Public Syndication]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=865</guid>
		<description><![CDATA[Hi all… I got fed up of restoring my firmware for the Broadcom wireless chip in my late-2008 model MacBook.  Anyone who has one of these might find the current in-tree versions of net-wireless/b43-firmware is missing files needed by the modern b43 driver (namely ucode16_mimo.fw), and net-wireless/b43-fwcutter doesn&#8217;t well, cut it, for extracting the newer [...]]]></description>
			<content:encoded><![CDATA[<p>Hi all…</p>
<p>I got fed up of restoring my firmware for the Broadcom wireless chip in my late-2008 model MacBook.  Anyone who has one of these might find the current in-tree versions of <tt>net-wireless/b43-firmware</tt> is missing files needed by the modern b43 driver (namely <tt>ucode16_mimo.fw</tt>), and <tt>net-wireless/b43-fwcutter</tt> doesn&#8217;t well, cut it, for extracting the newer files.</p>
<p>If you&#8217;ve got a newer 802.11n-based Broadcom chip, you might find the following ebuilds handy:</p>
<ul>
<li><tt>net-wireless/b43-firmware-5.10.56.27.3</tt></li>
<li><tt>net-wireless/b43-fwcutter-015</tt> and <tt>net-wireless/b43-fwcutter-9999</tt></li>
</ul>
<p>The first is the firmware mentioned in <a href="http://article.gmane.org/gmane.linux.drivers.bcm54xx.devel/11583">this post</a>.  It needs a newer <tt>fwcutter</tt> binary than is provided in Portage.  You&#8217;ve got the choice of the latest version, or the bleeding edge via git.  Both work at time of writing, although neither are guaranteed.</p>
<p>The ebuilds are not in-tree, I&#8217;ll leave that for the <em>actual</em> maintainer for these ebuilds to pick them up if desired, I&#8217;ve put them in an overlay accessed via the following command:</p>
<pre>git clone git://git.longlandclan.yi.org/overlays/b43.git</pre>
<p>Or you can take a squiz via <a href="http://git.longlandclan.yi.org/?p=overlays/b43.git;a=summary">gitweb</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/09/13/broadcom-wireless-related-ebuilds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To whoever came up with this feature&#8230;</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/06/20/portage-featur/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/06/20/portage-featur/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 08:59:56 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Gentoo Development]]></category>
		<category><![CDATA[Linux Development]]></category>
		<category><![CDATA[Public Syndication]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=822</guid>
		<description><![CDATA[To whoever were responsible for developing this new feature in the latest Portage releases&#8230; zhouman portage # FEATURES=-test USE=-handbook\ -doc emerge -eukDN --keep-going system kde-meta vim poppler =xulrunner-2.0.1-r1 =vim-core-7.3.189 =gvim-7.3.189 gst-plugins-base vim =gst-plugins-theora-0.10.32 =firefox-4.0.1-r1 Calculating dependencies... done! !!! One or more updates have been skipped due to a dependency conflict: app-editors/vim-core:0 (app-editors/vim-core-7.3.219::gentoo, ebuild scheduled for [...]]]></description>
			<content:encoded><![CDATA[<p>To whoever were responsible for developing this new feature in the latest Portage releases&#8230;</p>
<p><code>zhouman portage # FEATURES=-test USE=-handbook\ -doc emerge -eukDN --keep-going system kde-meta vim poppler =xulrunner-2.0.1-r1 =vim-core-7.3.189 =gvim-7.3.189 gst-plugins-base vim =gst-plugins-theora-0.10.32 =firefox-4.0.1-r1<br />
Calculating dependencies... done!</code></p>
<p><code>!!! One or more updates have been skipped due to a dependency conflict:</p>
<p>app-editors/vim-core:0</p>
<p>(app-editors/vim-core-7.3.219::gentoo, ebuild scheduled for merge) conflicts with<br />
~app-editors/vim-core-7.3.189 required by (app-editors/gvim-7.3.189::gentoo, binary scheduled for merge)<br />
(app-editors/vim-core-7.3.219::gentoo, ebuild scheduled for merge) conflicts with<br />
=vim-core-7.3.189</p>
<p>!!! The following update(s) have been skipped due to unsatisfied dependencies<br />
!!! triggered by backtracking:</p>
<p>app-editors/vim:0<br />
[binary   R    ] x11-proto/xf86vidmodeproto-2.3.1<br />
[binary   R    ] sys-libs/zlib-1.2.5-r2<br />
[binary   R    ] sys-libs/ncurses-5.9<br />
[binary   R    ] x11-proto/xproto-7.0.21<br />
[binary   R    ] virtual/libintl-0<br />
[binary   R   *] sci-visualization/gnuplot-4.4.2-r1<br />
[ ... ]<br />
[ebuild  N    *] kde-base/kdebase-meta-4.6.4  USE="(-aqua)"<br />
[binary   R   *] media-libs/mediastreamer-2.7.3-r3<br />
[ebuild  N    *] kde-base/kopete-4.6.4  USE="addbookmarks autoreplace contactnotes highlight history jingle nowlistening pipes privacy sms ssl statistics texteffect translator urlpicpreview v4l2 xmpp zeroconf (-aqua) -debug -gadu -groupwise -handbook (-kdeenablefinal) -latex -meanwhile -msn -oscar -otr -qq -skype -testbed -webpresence -winpopup -yahoo"<br />
[binary   R   *] media-plugins/mediastreamer-ilbc-2.0.3<br />
[ebuild  N    *] kde-base/kdenetwork-meta-4.6.4  USE="(-aqua) -ppp"<br />
[ebuild  N    *] kde-base/kde-meta-4.6.4  USE="accessibility nls (-aqua) -sdk -semantic-desktop"</p>
<p>The following keyword changes are necessary to proceed:<br />
#required by kde-base/kdebase-runtime-meta-4.6.4, required by kde-base/kdebase-meta-4.6.4, required by kde-base/kde-meta-4.6.4, required by kde-meta (argument)<br />
&gt;=kde-base/kglobalaccel-4.6.4 **<br />
#required by kde-base/kdemultimedia-meta-4.6.4[mplayer], required by kde-base/kde-meta-4.6.4, required by kde-meta (argument)<br />
&gt;=kde-base/mplayerthumbs-4.6.4 **<br />
#required by kde-base/kdeedu-meta-4.6.4, required by kde-base/kde-meta-4.6.4, required by kde-meta (argument)<br />
&gt;=kde-base/rocs-4.6.4 **<br />
#required by kde-base/kdegames-meta-4.6.4, required by kde-base/kde-meta-4.6.4, required by kde-meta (argument)<br />
&gt;=kde-base/kigo-4.6.4 **<br />
#required by kde-base/kajongg-4.6.4, required by kde-base/kdegames-meta-4.6.4[python], required by kde-base/kde-meta-4.6.4, required by kde-meta (argument)<br />
&gt;=kde-base/oxygen-icons-4.6.4 **<br />
#required by kde-base/kdebase-runtime-meta-4.6.4, required by kde-base/kdebase-meta-4.6.4, required by kde-base/kde-meta-4.6.4, required by kde-meta (argument)<br />
&gt;=kde-base/kdebase-menu-4.6.4 **<br />
#required by kde-base/kdeutils-meta-4.6.4, required by kde-base/kde-meta-4.6.4, required by kde-meta (argument)</p>
<p>[...]</p>
<p>NOTE: This --autounmask behavior can be disabled by setting<br />
EMERGE_DEFAULT_OPTS="--autounmask=n" in make.conf.</p>
<p></code></p>
<p><code>Use --autounmask-write to write changes to config files (honoring CONFIG_PROTECT).<br />
zhouman portage #</code></p>
<h2 style="text-align: center;">THANK-YOU</h2>
<p>You&#8217;ve just made my life trying to install and test big collections of software in Gentoo/MIPS much easier. <img src='http://stuartl.longlandclan.yi.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/06/20/portage-featur/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>svxlink status</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/06/19/svxlink-status/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/06/19/svxlink-status/#comments</comments>
		<pubDate>Sun, 19 Jun 2011 05:45:24 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Amateur Radio]]></category>
		<category><![CDATA[Gentoo Development]]></category>
		<category><![CDATA[Linux Development]]></category>
		<category><![CDATA[Public Syndication]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=816</guid>
		<description><![CDATA[Well, I&#8217;ve been meaning to get around to fixing up svxlink in Gentoo for a long time now. For those who don&#8217;t know, svxlink is a client and server for the EchoLink amateur radio linking system. We had to stop releasing the Qtel client, as it relied on Qt3 which we no longer ship in [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I&#8217;ve been meaning to get around to fixing up svxlink in Gentoo for a long time now.  For those who don&#8217;t know, <a href="http://svxlink.sourceforge.net" target="_blank">svxlink</a> is a client and server for the <a href="http://www.echolink.org" target="_blank">EchoLink</a> amateur radio linking system.</p>
<p>We had to stop releasing the Qtel client, as it relied on Qt3 which we no longer ship in Gentoo.  On top of this, the ebuild installed non-Gentoo init scripts, fails to build with gcc-4.6 and fails due to underlinking.  (My thanks go to Diego for pointing these flaws out.)</p>
<p>At the moment I&#8217;m working on the first problem, which is that the builds that were in-tree are crusty and old.  svxlink did release version 11.05 not long back, and ohh yes, they&#8217;ve changed their versioning scheme too to match Ubuntu.  However, their trunk branch is still dependent on Qt3 if you want Qtel.  There is an experimental Qt4 branch, which is what I&#8217;ve been working with.</p>
<p>One irritation I had was trying to make it possible to install the client component or the server component.  svxlink has its own, very custom, build system based on recursive makefiles.  (Yes, I know, <a href="http://miller.emu.id.au/pmiller/books/rmch/" target="_blank">considered harmful</a> and all that.)  The build system first builds the core libraries, then it starts looking at Qtel and svxlink&#8217;s server components.  The first thing was to try and split these up.</p>
<p>The new ebuilds will introduce a svxlink-libs package.  This is relatively straightforward, and it just builds &amp; installs the libasync, libechlib and liblocationinfo libraries.  The catch is when building qtel and svxlink, the build system looks for the built binaries <em>inside the source tree</em>.</p>
<p>I have submitted a <a href="http://sourceforge.net/mailarchive/forum.php?thread_name=1308458193-13994-1-git-send-email-redhatter%40gentoo.org&amp;forum_name=svxlink-devel" target="_blank">patch</a> upstream that remedies this.  Eventually I&#8217;ll look at how we can fix some of the other flaws in the build system.  So far I&#8217;m still battling svxlink itself, but I soon will have svxlink-libs and qtel packages available for testing in the Portage tree.  svxlink itself will also need to wait until I can set up a test node on simplex somewhere&#8230; my O2 looks like a likely possibility.</p>
<p>I&#8217;ll keep you all informed as this progresses.  Qtel appears to be working (although I&#8217;m battling some funnies with the sound device on the Apple MacBook)&#8230; just a matter of fixing some issues with the build system for svxlink and I should be able to have svxlink back in the tree once again.</p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/06/19/svxlink-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Experiments with AX.25</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/05/16/experiments-with-ax-25/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/05/16/experiments-with-ax-25/#comments</comments>
		<pubDate>Mon, 16 May 2011 08:21:34 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Amateur Radio]]></category>
		<category><![CDATA[Gentoo Development]]></category>
		<category><![CDATA[Linux Development]]></category>
		<category><![CDATA[Public Syndication]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=773</guid>
		<description><![CDATA[This weekend just gone I was at Imbil helping out with the International Rally of Queensland, reporting scores for the car rally there.  This was my first look at packet radio in action.  Prior to this I had enabled the amateur radio options in the kernels I built, but never tried actually hooking radio to [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend just gone I was at Imbil helping out with the International Rally of Queensland, reporting scores for the car rally there.  This was my first look at packet radio in action.  Prior to this I had enabled the amateur radio options in the kernels I built, but never tried actually hooking radio to computer.  I shall be posting some notes on how I got this working&#8230;</p>
<p><code>zhouman ~ # uname -a<br />
Linux zhouman 2.6.35.7-lm2f-nb #2 Wed Oct 13 00:42:58 EST 2010 mips64 ICT Loongson-2 V0.3 FPU V0.1 lemote-yeeloong-2f-8.9inches GNU/Linux<br />
zhouman ~ # ifconfig sm0<br />
sm0       Link encap:AMPR AX.25  HWaddr VK4MSL<br />
inet addr:172.31.32.1  Bcast:172.31.32.255  Mask:255.255.255.0<br />
UP BROADCAST RUNNING MULTICAST  MTU:256  Metric:1<br />
RX packets:365 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:10<br />
RX bytes:24236 (23.6 KiB)  TX bytes:6850 (6.6 KiB)</code></p>
<p><code>zhouman ~ # mheard<br />
Callsign  Port Packets   Last Heard<br />
VK4EA-9    sm0       6   Mon May 16 17:59:12<br />
VK4NRL-9   sm0       1   Mon May 16 17:58:40<br />
VK4VP-1    sm0       8   Mon May 16 17:58:38<br />
VK4RAI-3   sm0       9   Mon May 16 17:57:58<br />
VK4TIM-9   sm0      14   Mon May 16 17:57:56<br />
VK4TDI-1   sm0       2   Mon May 16 17:57:39<br />
VK4DC-1    sm0      15   Mon May 16 17:57:07<br />
VK4TEC-9   sm0     120   Mon May 16 17:56:08<br />
VK4FY-1    sm0      18   Mon May 16 17:54:38<br />
VK4RMO-3   sm0       1   Mon May 16 17:54:33<br />
VK4RGC-3   sm0       3   Mon May 16 17:52:48<br />
VK4RC-1    sm0       8   Mon May 16 17:51:29<br />
VK4FIL-1   sm0       4   Mon May 16 17:46:44<br />
VK4RIL-13  sm0       4   Mon May 16 17:45:43<br />
VK4RBR-3   sm0       5   Mon May 16 17:42:59<br />
VK2RDO-3   sm0       2   Mon May 16 17:41:19<br />
VK4RRC-13  sm0       3   Mon May 16 17:36:39<br />
VK2JUB-1   sm0       2   Mon May 16 17:34:44<br />
VK4BNQ-1   sm0       1   Mon May 16 17:26:58<br />
VK4LDA-9   sm0       2   Mon May 16 17:24:59<br />
VK2POO-9   sm0       9   Mon May 16 17:21:24<br />
VK2XFL-9   sm0       1   Mon May 16 17:21:09<br />
VK4RSR-3   sm0       1   Mon May 16 17:20:04<br />
VK4IE      sm0       1   Mon May 16 17:15:04<br />
VK4ALJ-3   sm0       1   Mon May 16 17:15:00<br />
VK4HPW-9   sm0       5   Mon May 16 17:13:23<br />
zhouman ~ # </code></p>
<p>Set-up consisted of:<br />
Linux kernel on Lemote Yeeloong, latest soundmodem driver, Yaesu FT-897D, homebrew interface cable plugged into Yeeloong&#8217;s onboard sound card, USB serial driving BC547 in interface cable for PTT.</p>
<p><code>zhouman ~ # cat /etc/ax25/soundmodem.conf<br />
&lt;?xml version="1.0"?&gt;<br />
&lt;modem&gt;<br />
&lt;configuration name="FT897-D"&gt;<br />
&lt;chaccess txdelay="150" slottime="100" ppersist="40" fulldup="0" txtail="10"/&gt;<br />
&lt;audio type="alsa" device="plughw:0,0" halfdup="0" capturechannelmode="Mono"/&gt;<br />
&lt;ptt file="/dev/ttyUSB0"/&gt;<br />
&lt;channel name="Channel 0"&gt;<br />
&lt;mod mode="afsk" bps="1200" f0="1200" f1="2200" diffenc="1"/&gt;<br />
&lt;demod mode="afsk" bps="1200" f0="1200" f1="2200" diffdec="1"/&gt;<br />
&lt;pkt mode="MKISS" ifname="sm0" hwaddr="VK4MSL" ip="172.31.32.1" netmask="255.255.255.0" broadcast="172.31.32.255"/&gt;<br />
&lt;/channel&gt;<br />
&lt;/configuration&gt;<br />
&lt;/modem&gt;<br />
zhouman ~ #</code></p>
<p>I&#8217;ve shut it down for now, but I&#8217;ll give it a bit more work on 145.175MHz tomorrow.  Once I get something working, I might set something up using the O2 or one of the Fulongs (probably the latter) and see about getting soundmodem back into Gentoo.</p>
<p><strong>Update:</strong> After hand-editing the ebuild to enable APRS support, I can successfully report that not only is soundmodem working, but so is Xastir on my Yeeloong, as can be seen on <a href="http://aprs.fi/info/a/VK4MSL">aprs.fi</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/05/16/experiments-with-ax-25/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Gentoo/MIPS Status Update</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/04/23/gentoomips-status-update-2/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/04/23/gentoomips-status-update-2/#comments</comments>
		<pubDate>Sat, 23 Apr 2011 01:45:22 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Gentoo Development]]></category>
		<category><![CDATA[Linux Development]]></category>
		<category><![CDATA[Public Syndication]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=744</guid>
		<description><![CDATA[Well, been some time now since I announced the start of some µClibc stages.  So far, not much has happened there other than the fact that I&#8217;ve successfully hard-locked the Fulong 2E system that I tried compiling on.  This is despite compiling with binutils-2.21 and using -Wa,-mfix-loongson2f-nop&#8230; which is usually enough to prevent lockups.  Clearly [...]]]></description>
			<content:encoded><![CDATA[<p>Well, been some time now since I announced the start of some µClibc stages.  So far, not much has happened there other than the fact that I&#8217;ve successfully hard-locked the Fulong 2E system that I tried compiling on.  This is despite compiling with binutils-2.21 and using -Wa,-mfix-loongson2f-nop&#8230; which is usually enough to prevent lockups.  Clearly there&#8217;s further erratum that I&#8217;m hitting, I might try later on the Qube and see where that gets us, agonisingly slow might be better than the current pace.</p>
<p>Generic N32 MIPS-III little endian continues to remain unavailable due to an issue compiling Python 2.7, and unfortunately my N32 chroot on the Yeeloong broke when I upgraded glibc (the primary reason why I began doing a generic MIPS3 build on the Qube using Matt&#8217;s MIPS4 build).  I will get back onto this eventually.</p>
<p>On other news since the purchase of the MacBook I&#8217;ve been able to leave my Yeeloong sit at home running continuously to update the entire system.  Qt 4.7.2 gave me some grief &#8212; it seems at least on mipsel, qmake segfaults during the initial build of qt-core &#8230;</p>
<pre>mipsel-unknown-linux-gnu-g++ -o "/tmp/portage/x11-libs/qt-core-4.7.2-r1
/work/qt-everywhere-opensource-src-4.7.2/bin/qmake" project.o property.
o main.o makefile.o unixmake2.o unixmake.o mingw_make.o option.o winmak
efile.o projectgenerator.o meta.o makefiledeps.o metamakefile.o xmloutp
ut.o pbuilder_pbx.o borland_bmake.o msvc_vcproj.o msvc_vcxproj.o msvc_n
make.o msvc_objectmodel.o msbuild_objectmodel.o symmake.o initprojectde
ploy_symbian.o symmake_abld.o symmake_sbsv2.o symbiancommon.o registry.
o epocroot.o qtextcodec.o qutfcodec.o qstring.o qtextstream.o qiodevice
.o qmalloc.o qglobal.o qbytearray.o qbytearraymatcher.o qdatastream.o q
buffer.o qlist.o qfile.o qfsfileengine_unix.o qfsfileengine_iterator_un
ix.o qfsfileengine.o qfsfileengine_iterator.o qregexp.o qvector.o qbita
rray.o qdir.o qdiriterator.o quuid.o qhash.o qfileinfo.o qdatetime.o qs
tringlist.o qabstractfileengine.o qtemporaryfile.o qmap.o qmetatype.o q
settings.o qlibraryinfo.o qvariant.o qvsnprintf.o qlocale.o qlinkedlist
.o qurl.o qnumeric.o qcryptographichash.o qxmlstream.o qxmlutils.o  -Wl
,-O1 -Wl,--as-needed
floatmath auto-detection... ()
/tmp/portage/x11-libs/qt-core-4.7.2-r1/work/qt-everywhere-opensource-sr
c-4.7.2/config.tests/unix/compile.test: line 71: 25542 Segmentation fau
lt      "$OUTDIR/bin/qmake" -nocache -spec "$QMKSPEC" "CONFIG+=$QMAKE_C
ONFIG" "CONFIG-=debug_and_release" "LIBS*=$LFLAGS" "LIBS+=$MAC_ARCH_LFL
AGS" "INCLUDEPATH*=$INCLUDEPATH" "QMAKE_CXXFLAGS*=$CXXFLAGS" "QMAKE_CXX
FLAGS+=$MAC_ARCH_CXXFLAGS" "QT_BUILD_TREE=$OUTDIR" "$SRCDIR/$TEST/$EXE.
pro" -o "$OUTDIR/$TEST/Makefile"
gmake: *** No targets.  Stop.
floatmath disabled.
... etc for numerous other modules.</pre>
<p>qt-4.6.3 builds without issues, but this is not sufficient for KDE 4.6.  I&#8217;m still investigating.  hyperestraier also fails to build, but only if you have USE=debug set, disable that USE flag and it builds without issues.</p>
<p>Fingers crossed, I can get Qt 4.7 and KDE 4.6 to build, and that there aren&#8217;t any issues.  Previously libkjs used to be quite unstable which is one of the main reasons I have not keyworded any release of KDE 4 for MIPS.  Yes, you could dodge around it and have a usable desktop, but I didn&#8217;t consider it working well enough for keywording.</p>
<p>Mozilla stuff will need some loving too.  I hope to upgrade to Firefox 4.0 on MIPS, see how that goes.  One of these days I&#8217;ll get onto tackling Thunderbird.  Sadly my life away from Gentoo intervenes and thus my plans frequently get put on the backburner as work demands my attention elsewhere.</p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/04/23/gentoomips-status-update-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bootstrapping Gentoo/MacOS X (Prefix) – automatically</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/04/10/bootstrapping-gentoomacos-x-prefix-%e2%80%93-automatically/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/04/10/bootstrapping-gentoomacos-x-prefix-%e2%80%93-automatically/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 21:33:58 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Gentoo Development]]></category>
		<category><![CDATA[Linux Development]]></category>
		<category><![CDATA[Public Syndication]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=727</guid>
		<description><![CDATA[Well, I&#8217;ve done some tinkering with Gentoo/Prefix on MacOS X.  Not bad so far, although there&#8217;s a lot of packages not keyworded&#8230; (a bit like MIPS) and some packages I miss from regular Gentoo (e.g. crossdev).  However, we can work on sorting this out over time. For those of you who aren&#8217;t particularly fond of [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I&#8217;ve done some tinkering with Gentoo/Prefix on MacOS X.  Not bad so far, although there&#8217;s a lot of packages not keyworded&#8230; (a bit like MIPS) and some packages I miss from regular Gentoo (e.g. crossdev).  However, we can work on sorting this out over time.</p>
<p>For those of you who aren&#8217;t particularly fond of going on a copy/paste fest from <a href="http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml">the documentation</a>, I decided rather than sit there all night and manually do it, I&#8217;d code up a script to do it for me.  Behold: <a href="http://stuartl.longlandclan.yi.org/blog/wp-content/uploads/2011/04/do-bootstrap.txt">Gentoo MacOS X bootstrap script</a>.</p>
<p>Usage:</p>
<pre>$ export EPREFIX="${HOME}/.gentoo/amd64"
$ export CHOST="x86_64-apple-darwin10"
$ mkdir -pv "${EPREFIX}"
$ sh do-bootstrap.sh</pre>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/04/10/bootstrapping-gentoomacos-x-prefix-%e2%80%93-automatically/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>uclibc-0.9.31 + Loongson 2E + bzip2 + -Os CFLAGS = crash</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/03/15/uclibc-loongson-2e-bzip2-os-cflags-crash/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/03/15/uclibc-loongson-2e-bzip2-os-cflags-crash/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 08:58:27 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Gentoo Development]]></category>
		<category><![CDATA[Linux Development]]></category>
		<category><![CDATA[Public Syndication]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=710</guid>
		<description><![CDATA[Well, one thing I&#8217;ll need to investigate… I&#8217;ve been battling a slightly broken bzip2 which when compressing some files, would cause the whole machine to lock up.  Environment is µClibc-0.9.31 based, using gcc-4.5.2. Everything compiled with the CFLAGS: &#8220;-Os -pipe -mips1 -Wa,-mfix-loongson2f-nop&#8221;.  The latter flag is really for Loongson 2F but I find it helpful [...]]]></description>
			<content:encoded><![CDATA[<p>Well, one thing I&#8217;ll need to investigate… I&#8217;ve been battling a slightly broken bzip2 which when compressing some files, would cause the whole machine to lock up.  Environment is µClibc-0.9.31 based, using gcc-4.5.2.</p>
<p>Everything compiled with the CFLAGS: &#8220;-Os -pipe -mips1 -Wa,-mfix-loongson2f-nop&#8221;.  The latter flag is really for Loongson 2F but I find it helpful on 2E as well.  Things seemed to go well, except that I had no end of problems with the machine locking up when running bzip2 on some files.  I found it reproduceable while building autoconf within Catalyst stage 1.</p>
<p>It would appear it&#8217;s a compiler issue, as when I rebuilt bzip2 using the CFLAGS: &#8220;-O2 -march=loongson2e -Wa,-mfix-loongson2f-nop&#8221;, it worked fine.  I will have to investigate this further.  I don&#8217;t <em>think</em> it&#8217;s a MIPS-I vs Loongson 2E issue, my hypothesis is that -Os generates some instructions that Loongson 2E doesn&#8217;t like, as I normally don&#8217;t have any problems running MIPS I binaries… the thing that&#8217;s significantly different is -Os vs -O2.</p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/03/15/uclibc-loongson-2e-bzip2-os-cflags-crash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Gentoo/MIPS µClibc stages</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/03/12/uclibc/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/03/12/uclibc/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 23:53:42 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Gentoo Development]]></category>
		<category><![CDATA[Linux Development]]></category>
		<category><![CDATA[Public Syndication]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=706</guid>
		<description><![CDATA[Well, it seems I might have µClibc stages going again, at least for little endian initially, then I might fire up one of the SGI boxes and see about a big-endian version.  For a long while, Gentoo/MIPS support for this lightweight C library was all but missing ever since an ABI change broke the µClibc [...]]]></description>
			<content:encoded><![CDATA[<p>Well, it seems I might have µClibc stages going again, at least for little endian initially, then I might fire up one of the SGI boxes and see about a big-endian version.  For a long while, Gentoo/MIPS support for this lightweight C library was all but missing ever since an ABI change broke the µClibc port back around 2006.</p>
<p>I&#8217;ve tried on several occasions to build a new environment, and often I was met with technical difficulties which prevented me from producing a working environment.  Recently, I downloaded Rob Landley&#8217;s Aboriginal Linux distribution, both big and little endian variants, and took it for a spin.  Having done that, I&#8217;m pleased to report that I now have a µClibc chroot that&#8217;s merrily compiling various components of the Gentoo system, and will soon be sufficient to make a seed stage for bootstrapping the port once again.</p>
<p>This should mean new netboot images in the medium term for all little-endian ports (and proper ones too, not glibc-based hacks) and new images for SGI Indy (R4000) and O2.  In theory, support for Octane and Indigo2 R10000 is possible, however the systems I have are no longer functional, only my Indy and O2 still work, thus it&#8217;s impossible for me to test media for other systems.  Fingers crossed this initial build will go to plan, and we&#8217;ll have shiny new stages shortly.</p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/03/12/uclibc/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>YubiKey ebuilds and patches for Gentoo</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/02/17/yubikey-ebuilds-and-patches-for-gentoo/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/02/17/yubikey-ebuilds-and-patches-for-gentoo/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 01:00:48 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[2011]]></category>
		<category><![CDATA[Gentoo Development]]></category>
		<category><![CDATA[Linux Development]]></category>
		<category><![CDATA[linux.conf.au]]></category>
		<category><![CDATA[Public Syndication]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=681</guid>
		<description><![CDATA[Hi all, As promised I&#8217;ve put up some of the ebuilds needed to use the YubiKey in Gentoo.   This includes a PAM module for stand-alone authentication with the YubiKey, which I have patched to support concatenated two-factor authentication.  These are in a new overlay: git://git.longlandclan.yi.org/overlays/yubikey.git http://git.longlandclan.yi.org/git/overlays/yubikey.git Stand-alone two factor authentication: Password + YubiKey with YubiPAM [...]]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>As promised I&#8217;ve put up some of the ebuilds needed to use the YubiKey in Gentoo.   This includes a PAM module for stand-alone authentication with the YubiKey, which I have patched to support concatenated two-factor authentication.  These are in a new overlay:</p>
<ul>
<li><tt>git://git.longlandclan.yi.org/overlays/yubikey.git</tt></li>
<li><tt>http://git.longlandclan.yi.org/git/overlays/yubikey.git</tt></li>
</ul>
<h2>Stand-alone two factor authentication: Password + YubiKey with YubiPAM</h2>
<p>The procedure for setting this up is pretty simple.  First, grab the overlay:</p>
<pre>stuartl@beast /home/portage/overlays $ git clone git://git.longlandclan.yi.org/overlays/yubikey.git
Cloning into yubikey...
remote: Counting objects: 16, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 16 (delta 2), reused 16 (delta 2)
Receiving objects: 100% (16/16), 4.15 KiB, done.
Resolving deltas: 100% (2/2), done.
</pre>
<p>Now add it to your make.conf as per usual procedure, then unmask and install YubiPAM and ykpers ebuilds.  At last check, you need the live git ebuild for ykpers and libyubikey if you use the latest revision (2.2) keys like those handed out at linux.conf.au.  For the PAM module, I recommend using the non-live version, although a live ebuild is there for the adventurous (I had buffer overflow glitches).</p>
<pre># ( echo =sys-auth/yubipam-1.1_beta1
&gt; echo =sys-auth/ykpers-99999999
&gt; echo =sys-auth/libyubikey-99999999 ) &gt;&gt; /etc/portage/package.keywords
# emerge ykpers yubipam
</pre>
<p>This will install some tools to personalise the YubiKey and the PAM module.  At this step it&#8217;s now time to program the YubiKey.  This will break its ability to be used on the Yubico servers until you upload a copy of your new AES key to their site (see below).</p>
<p>Choose your public and private IDs, then program with the following command.  The fixed parameter should be 6-8 bytes long in hexadecimal.  If you intend to use this on Yubico servers later, it <em>must</em> be 6 bytes long, and <em>must</em> begin with <tt>ff</tt>.</p>
<pre># ykpersonalize -ofixed=$( modhex -h ffeeddccbbaa ) -ouid=112233445566
Firmware version 2.2.2 Touch level 1283 Program sequence 3
Passphrase to create AES key:
<em>     Type in a long string of gobbledegook with lots of random letters,
     numbers and punctuation (not like this!) to keep people guessing.
     This will seed the AES keygen.</em>
fixed: m:vvuuttrrnnll
uid: h:112233445566
key: h:afaaaa6021303d90740579cd7fc4e87f
acc_code: h:000000000000
ticket_flags: APPEND_CR
config_flags:
extended_flags:
</pre>
<p>At the bottom it asks whether you wish to program the key.  It didn&#8217;t here because in fact I had snuck in a little parameter which I haven&#8217;t shown here.  You&#8217;ll want to make a note of the parameters it tells you though, especially the generated key.</p>
<p>Once complete, you then need to tell YubiPAM about it:</p>
<pre># ykpasswd -a -c -f ffeeddccbbaa -k afaaaa6021303d90740579cd7fc4e87f  -p 112233445566 \
        --user stuartl -o vvuuttrrnnlllrgjglvnicujhnhhecfeitjureidlcer
Adding Yubikey entry for stuartl
Using public UID: ff ee dd cc bb aa
Using private UID: 11 22 33 44 55 66
Passcode: Completed successfully.
</pre>
<p>The last bit should be generated from the YubiKey itself, just type the rest in then press the button and it should add you after asking for a passcode (which can be different to your regular system password).  The final step is to set it up with PAM.  This I&#8217;m not 100% sure of, but I achieved working authentication by configuring my /etc/pam.d/system-auth as follows:</p>
<pre>vk4mslp2 yubikey # cat /etc/pam.d/system-auth
auth            required        pam_env.so
auth            sufficient      pam_yubikey.so concat_two_factor
auth            required        pam_unix.so try_first_pass likeauth nullok
</pre>
<p>It should be noted; test the configuration in a new console session, <em>do not log out</em> or else you may lock yourself out.  There is a ykvalidate tool for testing, but it doesn&#8217;t seem to work properly with two-factor authentication.</p>
<p>The concat_two_factor parameter to pam_yubikey relies on a patch present in the ebuild, which I have sent up-stream, and is a work-around for (some would say, broken) PAM clients that do not support multiple Password fields such as KDM.</p>
<p>To log-in, type in your username.  In the password field, enter the passcode followed by a space, then tap the YubiKey to enter the OTP.  It should log you in.</p>
<h2>Uploading the key to Yubico</h2>
<h3>First, a warning</h3>
<p>The whole point of one-time password generators such as this, is to prevent someone intercepting your password and logging in to your systems.  If a one-time-password is captured, it&#8217;s useless because in the ideal case, all systems know it has already been used.  I say in the ideal case.  In this scenario, if you use the key on a public server, it is possible for someone to capture that OTP, and re-play it to the stand-alone system using YubiPAM to gain access.  They of course can only do this once, but that may be enough for them to make themselves at home.</p>
<p>With some care, you can reduce the risk of this … for instance making a point of gratuitously logging in to each system using the key immediately after using it on any of the systems is one way to try and manually synchronise the OTPs.  I&#8217;m giving this problem some thought, for my needs it isn&#8217;t such a big deal as it&#8217;s mostly for fun anyway, but this is a factor that must be considered when using the YubiKey (or any OTP device) in this manner.</p>
<h3>How to</h3>
<p>Go to <a href="https://upload.yubico.com/">https://upload.yubico.com/</a>.  Enter the data as follows.</p>
<ul>
<li>Your email address (needs no explanation)</li>
<li>The YubiKey&#8217;s serial number: printed on the back, 6 digit decimal code</li>
<li>YubiKey Prefix: This is also called the &#8220;fixed UID&#8221; and appears as the first 12 characters of the OTP.  It should be in modhex format.  In the above example, the prefix would be <tt>vvuuttrrnnll</tt>.</li>
<li>Internal identity: This is also called the &#8220;private UID&#8221;.  It should be in hexadecimal format.  In the above example, the internal identity would be <tt>112233445566</tt></li>
<li>AES Key: Again in hexadecimal&#8230; the key used in this example was <tt>afaaaa6021303d90740579cd7fc4e87f</tt></li>
<li>Finally, an OTP from the device. Don&#8217;t fill this in yet.</li>
</ul>
<p>Below this form there is a Capcha field to stop spambots.  Fill in the challenge and click the &#8220;I&#8217;m a human&#8221; button, and copy the text into the other box as it asks.  <em>Now</em> go back to the other form, click on the OTP field and press the YubiKey button.  You should then be able to test it on their demo server and use the key simultaneously on the web and your local systems.</p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/02/17/yubikey-ebuilds-and-patches-for-gentoo/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Gentoo and DHCPv6</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/02/15/gentoo-and-dhcpv6/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/02/15/gentoo-and-dhcpv6/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 11:15:34 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Gentoo Development]]></category>
		<category><![CDATA[Linux Development]]></category>
		<category><![CDATA[Public Syndication]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=678</guid>
		<description><![CDATA[Amongst playing with the YubiKey, I also had a look at DHCPv6.  As people well know, IPv4&#8242;s days are numbered, and given we&#8217;re all going to have to jump across to IPv6 fairly soon, I figured I had better get acquainted with the newer protocols that come with it. I&#8217;ve had my network running dual-stack [...]]]></description>
			<content:encoded><![CDATA[<p>Amongst playing with the YubiKey, I also had a look at DHCPv6.  As people well know, IPv4&#8242;s days are numbered, and given we&#8217;re all going to have to jump across to IPv6 fairly soon, I figured I had better get acquainted with the newer protocols that come with it.</p>
<p>I&#8217;ve had my network running dual-stack for some time now.  This has been achieved using stateless autoconfiguration and router advertisments, which work fairly well.  Today though I decided I&#8217;d give DHCPv6 a crack.  For this, you will need <em>the latest</em> ISC dhcp package, <tt>net-misc/dhcp-4.1.0</tt>, which is hard-masked.</p>
<p>I hope to get something more mature going, but here are some notes who may wish to try this at home.</p>
<h2>Setting up DHCPv6</h2>
<p>Start by installing the <tt>net-misc/dhcp-4.1.0</tt>, on both server and clients…you will need to unmask it first:</p>
<pre># echo =net-misc/dhcp-4.1.0 | tee -a /etc/portage/package.unmask &gt;&gt; /etc/portage/package.keywords
# emerge -a dhcp
</pre>
<h3>The -4 and -6 flags</h3>
<p>Now, that will install the DHCP server and client.  The catch that initially caught me is that ISC dhcpd <em>cannot</em> run on IPv6 and IPv4 simultaneously. Neither can the client, but we&#8217;ll get to that.  Both server and client are put into IPv4 mode by running with <tt>-4</tt> in the options, or <tt>-6</tt> for IPv6 mode.  Documentation says it defaults to IPv6 mode, but my experience has been the opposite (maybe a Gentoo patch does this).</p>
<h3>Server set-up</h3>
<p>Needless to say, if you&#8217;ve got your network running IPv4, at most you might have to edit /etc/conf.d/dhcpd to add <tt>-4</tt> to the start-up options (<tt>DHCPD_OPTS</tt> to be exact).  Easy.  It&#8217;ll work as before.  If you want IPv6, okay, make that <tt>-6</tt> in <tt>DHCPD_OPTS</tt>, no sweat.  But what if you want both?  Ohh fun, we need a second dhcpd instance.</p>
<p>My solution; copy each /etc/init.d/dhcpd and /etc/conf.d/dhcpd to /etc/init.d/dhcpd-v6 and /etc/conf.d/dhcpd-v6 respectively.  Make the necessary changes to /etc/init.d/dhcpd-v6 and /etc/conf.d/dhcpd-v6.  So that the two don&#8217;t clash, I thought it wise to substitute DHCPD with DHCPDV6 using a text-editor (replace all).</p>
<p>You&#8217;ll also want to rename the leases file (dhcpd.leases, I chose dhcpd-v6.leases) and the PID file.  In addition the init script calls dhcpd to check the configuration in checkconfig(), so add -6 there too.  To save you going back and adding it in /etc/conf.d/dhcpd-v6, you can also add the -6 flag to the start-stop-daemon call in in start().  Do similar manipulations to /etc/conf.d/dhcpd-v6.</p>
<p>As for the server configuration file itself, I called my IPv6 config file /etc/dhcp/dhcpd-v6.conf to differentiate it from v4.  The two will need separate configuration files.  At the top of the v6 configuration file, you&#8217;ll want to point it to new PID and leases files:</p>
<pre>pid-file-name "/var/run/dhcp/dhcpd-v6.pid";
lease-file-name "/var/lib/dhcp/dhcpd-v6.leases";
</pre>
<p>Adding that to the top of dhcpd-v6.conf will take care of this.  If you&#8217;ve done everything right, you should be able to start the DHCPv6 daemon, and add it to your runlevels as per normal.  DHCPv6 listens on port 547/UDP &#8212; look for it in netstat.</p>
<h3>Client set-up</h3>
<p>Client set-up isn&#8217;t too difficult, the fun bit is integrating dhclient into the init scripts.  OpenRC knows how to drive dhclient in v4-mode, but not v6.  It too, cannot run in both v4 and v6 mode simultaneously.  The solution: a new net module.  Copy /lib/rc/net/dhclient.sh to /lib/rc/net/dhclientv6.sh.</p>
<p>Rename all the functions changing dhclient to dhclientv6 (don&#8217;t use replace-all this time), and change the &#8220;provide&#8221; line in dhclientv6_depend to dhcpv6.  In dhcpclientv6_expose, do likewise, rename the variables dhclientv6 and dhcpv6.  Finally,  in each  call to the dhclient binary itself, add -6 to it to put it in IPv6 mode, and rename the PID file to add -v6 to the file name.</p>
<p>Save the new file.  Now in /etc/conf.d/net, use the following:</p>
<pre>config_eth0=( "dhcp" "dhcpv6" )
</pre>
<h3>Things that I have not yet figured out</h3>
<h4>Dynamic DNS</h4>
<p>This is one of the reasons why I wanted DHCPv6 in the first place.  Remembering IPv4 addresses is bad enough.  IPv6 is a pain.  I have more success citing Pi than remembering the IPv6 address of all my computers.  The statically assigned ones aren&#8217;t too bad since the prefixes are all the same, it&#8217;s the autoconfigured ones that are a nuisance.</p>
<p>It should be doable, but I haven&#8217;t yet worked out how to make dhcp update the nameserver with AAAA records.  This is still in its infancy though.  Lots of rough edges.  I note dhclient doesn&#8217;t seem to be passing on the hostname of the computer, which could be part of the problem.</p>
<h4>Address pools and class-based assignment</h4>
<p>Address pools are handy things.  In ISC dhcpd, I can classify each of the computers I have by their MAC address and assign each class an address pool.  Or at least I could when it&#8217;s in IPv4 mode.</p>
<p>I have a nice set-up on IPv4 where if the DHCP server knows the MAC address, it&#8217;ll put that computer on the right subnet.  We have three IPv4 subnets here; one for my computers, one for my father&#8217;s and a &#8220;de-militarised zone&#8221; where any foreign computers get put (along with the web server, well actually it exists on all three).  Below is an example:</p>
<pre>subnet 192.168.64.0 netmask 255.255.255.0 {
  pool {
    range dynamic-bootp 192.168.64.32 192.168.64.254;
    allow members of "stuartslan";
  }

  ddns-domainname "redhatters.yi.org.";
  ddns-rev-domainname "in-addr.arpa.";
  ddns-updates on;
  update-conflict-detection off;
  allow client-updates;

  /* ... */
}
/* ... */
subclass "stuartslan" 1:6c:f0:49:ef:84:7c; # beast eth0
subclass "stuartslan" 1:6c:f0:49:ef:84:7e; # beast eth1
subclass "stuartslan" 1:08:00:27:ab:7c:b9; # Win2K VirtualBox
subclass "stuartslan" 1:08:00:27:27:bf:55; # uClibc VirtualBox
subclass "stuartslan" 1:00:08:0d:5c:08:51; # Laptop "vk4mslp2" ethernet
subclass "stuartslan" 1:00:12:f0:bd:de:06; # Laptop "vk4mslp2" wireless
/* ... */
</pre>
<p>I haven&#8217;t figured out how to replicate this in DHCPv6.  The following does <em>not</em> work:</p>
<pre>subnet6 2001:388:d000:1153::/64 {
  pool {
    allow members of "stuartslan";
    range6 2001:388:d000:1153::1000 2001:388:d000:1153::ffff:ffff;
  }

  ddns-domainname "redhatters.yi.org.";
  ddns-rev-domainname "ip6.arpa.";
  ddns-updates on;
  allow client-updates;
  /* ... */</pre>
<p>I plan to keep researching these things, and I&#8217;ll see what I can do about getting the updates into Gentoo&#8217;s init scripts so that DHCPv6 is handled.  A lot of what I did today were quick hacks that will likely make people shudder, but it&#8217;s working for now, we&#8217;ll see how it goes.</p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/02/15/gentoo-and-dhcpv6/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

