<?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/"
	>

<channel>
	<title>BenV&#039;s notes &#187; udev</title>
	<atom:link href="http://notes.benv.junerules.com/tag/udev/feed/" rel="self" type="application/rss+xml" />
	<link>http://notes.benv.junerules.com</link>
	<description>Rants and notes</description>
	<lastBuildDate>Sun, 29 Aug 2010 14:36:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Missing /dev/sd* in slackware 13</title>
		<link>http://notes.benv.junerules.com/all/software/missing-devsd-in-slackware-13/</link>
		<comments>http://notes.benv.junerules.com/all/software/missing-devsd-in-slackware-13/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 13:09:49 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[udev]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=825</guid>
		<description><![CDATA[I&#8217;ve bashed my head into this problem at least three times now, so after finally running to google &#8230;. it made me search more than I liked. The problem descriptions: * Your system boots fine (maybe because it&#8217;s running on software raid), but your /dev/sd* files are gone. * Your system doesn&#8217;t boot anymore, complaining [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve bashed my head into this problem at least three times now, so after finally running to google &#8230;. it made me search more than I liked.</p>
<p>The problem descriptions:<br />
 * Your system boots fine (maybe because it&#8217;s running on software raid), but your <span style="color:#F00">/dev/sd*</span> files are gone.<br />
 * Your system doesn&#8217;t boot anymore, complaining about not finding your boot device when booting your custom kernel, but the stock kernel does work.<br />
 * Mounting partitions doesn&#8217;t work anymore, saying stuff like <code class="codecolorer text vibrant"><span class="text">mount: special device /dev/sda does not exist</span></code></p>
<p>Reason:<br />
 * Your custom kernel has CONFIG_SYSFS_DEPRECATED enabled. To find out:</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">benv@uil$ zcat /proc/config.gz | grep CONFIG_SYSFS_DEPRECATED<br />
CONFIG_SYSFS_DEPRECATED=y</div></div>
<p>Since udev version 151 (or something close to that) this will sparsely populate /dev. Yay.</p>
<p>If you don&#8217;t believe it, check out <span style="color:#FF0">/usr/share/doc/udev-*/README</span>:</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; - Udev will not work with the CONFIG_SYSFS_DEPRECATED* option.</div></div>
<p>Another problem solved.</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/missing-devsd-in-slackware-13/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pulseaudio, slackware and udev</title>
		<link>http://notes.benv.junerules.com/all/software/pulseaudio-slackware-and-udev/</link>
		<comments>http://notes.benv.junerules.com/all/software/pulseaudio-slackware-and-udev/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 14:42:30 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[pulseaudio]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[udev]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=367</guid>
		<description><![CDATA[Yesterday I found a release notice in the pulseaudio mailinglist announcing version 0.9.16. Today, I found another release note in the mailinglist that announced pulseaudio version 0.9.17. Gee, another fuckup? (but that&#8217;s part of the release process I guess ) Anyway, I decided to upgrade my 0.9.15 installation since it still glitches every now and [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I found a release notice in the <span style="color:#FF00FF">pulseaudio</span> mailinglist announcing version 0.9.16.<br />
Today, I found another release note in the mailinglist that announced pulseaudio version 0.9.17. Gee, another fuckup? (but that&#8217;s part of the release process I guess <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p>
<p>Anyway, I decided to upgrade my 0.9.15 installation since it still glitches every now and then.<span id="more-367"></span><br />
With glitches I mean &#8220;The music played by mpd suddenly sounds as if you have quad damage in quake 3 arena and filter out most of the music frequencies&#8221;. You know, when you shoot a quad damage rocket through a hallway, that kind of sound. Restarting pulseaudio always fixes this. (I&#8217;ve been running into this glitch ever since I started using pulse). Seems to occur randomly though&#8230; sometimes when the server is busy, sometimes when switching from a .mod file to a .mp3 file, sometimes just when the lights turn on. You know the kind of glitch.<br />
Other than I kind of enjoy pulseaudio, even though it&#8217;s a struggle to get going. It does allow our server to stream to other servers and stuff like that, which is very cute. Oh, and per application volume levels and mixing etc&#8230; also good.<br />
This pulseaudio installation runs on our local server &#8212; in daemon/server mode &#8212; btw, on which we have connected our amplifier and speakers as to enlighten our office/game room/throne chamber.</p>
<p>So for compiling version 0.9.16 the first thing I ran into was <span style="color:#00FFFF">libsndfile</span> that was outdated. Version 1.0.17 was too old, so I ran slackbuild on the new <a href="http://www.mega-nerd.com/libsndfile/libsndfile-1.0.20.tar.gz">libsndfile v1.0.20.tar.gz</a>. Out came a package, upgrade, voila.<br />
Next, I noticed the pulseaudio configure output telling me:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; Enable udev: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; no<br />
&nbsp; &nbsp; Enable HAL-<span style="color: #000000; font-weight: bold;">&gt;</span>udev compat: &nbsp; &nbsp; &nbsp; no</div></div>
<p>I kinda wondered why, since my system definately runs udev. In <span style="color:#F00FFF">config.log</span> we find:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">configure:<span style="color: #000000;">26464</span>: checking <span style="color: #000000; font-weight: bold;">for</span> UDEV<br />
configure:<span style="color: #000000;">26471</span>: <span style="color: #007800;">$PKG_CONFIG</span> <span style="color: #660033;">--exists</span> <span style="color: #660033;">--print-errors</span> <span style="color: #ff0000;">&quot; libudev &gt;= 143 &quot;</span><br />
Requested <span style="color: #ff0000;">'libudev &gt;= 143'</span> but version of libudev is <span style="color: #000000;">141</span><br />
configure:<span style="color: #000000;">26474</span>: <span style="color: #007800;">$?</span> = <span style="color: #000000;">1</span><br />
configure:<span style="color: #000000;">26487</span>: <span style="color: #007800;">$PKG_CONFIG</span> <span style="color: #660033;">--exists</span> <span style="color: #660033;">--print-errors</span> <span style="color: #ff0000;">&quot; libudev &gt;= 143 &quot;</span><br />
Requested <span style="color: #ff0000;">'libudev &gt;= 143'</span> but version of libudev is <span style="color: #000000;">141</span><br />
configure:<span style="color: #000000;">26490</span>: <span style="color: #007800;">$?</span> = <span style="color: #000000;">1</span><br />
Requested <span style="color: #ff0000;">'libudev &gt;= 143'</span> but version of libudev is <span style="color: #000000;">141</span><br />
configure:<span style="color: #000000;">26517</span>: result: no</div></div>
<p>Aha.<br />
New challenge!<br />
Let&#8217;s see if we can grab the <a href="ftp://ftp.slackware.com:/pub/slackware/slackware-current/source/a/udev">official slackware udev sources</a> and get them to run a newer package! Today the latest udev is <a href="http://www.us.kernel.org/pub/linux/utils/kernel/hotplug/udev-146.tar.bz2">udev version 1.4.6</a>.<br />
So I changed the udev.Slackbuild to pick version 1.4.6</p>
<div class="codecolorer-container diff vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="diff codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #888822;">--- udev.SlackBuild.org &nbsp; &nbsp; 2009-09-11 14:55:14.000000000 +0200</span><br />
<span style="color: #888822;">+++ udev.SlackBuild &nbsp; &nbsp;2009-07-15 06:08:30.000000000 +0200</span><br />
<span style="color: #440088;">@@ -21,9 +21,9 @@</span><br />
&nbsp;# &nbsp;ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.<br />
&nbsp;<br />
&nbsp;<br />
<span style="color: #991111;">-VERSION=$<span style="">&#123;</span>VERSION:-146<span style="">&#125;</span></span><br />
<span style="color: #00b000;">+VERSION=$<span style="">&#123;</span>VERSION:-141<span style="">&#125;</span></span><br />
&nbsp;ARCH=$<span style="">&#123;</span>ARCH:-i486<span style="">&#125;</span><br />
<span style="color: #991111;">-BUILD=$<span style="">&#123;</span>BUILD:-1<span style="">&#125;</span></span><br />
<span style="color: #00b000;">+BUILD=$<span style="">&#123;</span>BUILD:-3<span style="">&#125;</span></span><br />
&nbsp;<br />
&nbsp;NUMJOBS=$<span style="">&#123;</span>NUMJOBS:-&quot; -j7 &quot;<span style="">&#125;</span></div></div>
<p>Running udev.Slackbuild now soon brought another set of issues to my attention. The first being that the slackware patch for the rule generator breaks.<br />
Without looking too much at the script I simply manually patched it and created a new diff. Here it is:<br />
<a href="http://notes.benv.junerules.com/wp-content/plugins/download-monitor/download.php?id=rule_generator.diff.gz" title="Downloaded 58 times">rule_generator.diff.gz</a> - Version 0.1 - SHA: cf73f104543ce989fd11b383c440405110e915a2</p>
<p>Running the slackbuild now gave me a new error:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">In <span style="color: #c20cb9; font-weight: bold;">file</span> included from extras<span style="color: #000000; font-weight: bold;">/</span>scsi_id<span style="color: #000000; font-weight: bold;">/</span>scsi_serial.c:<span style="color: #000000;">27</span>:<br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>scsi<span style="color: #000000; font-weight: bold;">/</span>scsi.h:<span style="color: #000000;">145</span>: error: expected specifier-qualifier-list before <span style="color: #ff0000;">'u8'</span><br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>scsi<span style="color: #000000; font-weight: bold;">/</span>scsi.h: In <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #ff0000;">'scsi_varlen_cdb_length'</span>:<br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>scsi<span style="color: #000000; font-weight: bold;">/</span>scsi.h:<span style="color: #000000;">156</span>: error: <span style="color: #ff0000;">'struct scsi_varlen_cdb_hdr'</span> has no member named <span style="color: #ff0000;">'additional_cdb_length'</span><br />
<span style="color: #c20cb9; font-weight: bold;">make</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">***</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>extras<span style="color: #000000; font-weight: bold;">/</span>scsi_id<span style="color: #000000; font-weight: bold;">/</span>scsi_serial.o<span style="color: #7a0874; font-weight: bold;">&#93;</span> Error <span style="color: #000000;">1</span><br />
<span style="color: #c20cb9; font-weight: bold;">make</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">***</span> Waiting <span style="color: #000000; font-weight: bold;">for</span> unfinished jobs....<br />
<span style="color: #c20cb9; font-weight: bold;">make</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">***</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>all-recursive<span style="color: #7a0874; font-weight: bold;">&#93;</span> Error <span style="color: #000000;">1</span><br />
<span style="color: #c20cb9; font-weight: bold;">make</span>: <span style="color: #000000; font-weight: bold;">***</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>all<span style="color: #7a0874; font-weight: bold;">&#93;</span> Error <span style="color: #000000;">2</span></div></div>
<p>It never takes me long to realize that this error stems from the new kernel I installed earlier. (did I mention that <a href="ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.tar.bz2">linux 2.6.31</a> is released? <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ).<br />
Google brought me <a href="http://patchwork.kernel.org/patch/38102/">this</a>, which informs us about something that should have been in 2.6.31 if you ask me. Fine, we&#8217;ll fix it ourselves.<br />
Another slackbuild run takes us past this error and gives us a new udev package. Inspecting the new package I noticed a <span style="color:#F00FFF">/libexec</span> directory that shouldn&#8217;t be in the root of the package. Meh, probably explains the <code class="codecolorer text vibrant"><span class="text">configure: WARNING: unrecognized options: --with-libdir-name</span></code>.<br />
So we change the <span style="color:#F00FFF">udev.Slackbuild</span> again with some new configure options (stolen from their own INSTALL file):</p>
<div class="codecolorer-container diff vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="diff codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #888822;">--- udev.SlackBuild.org &nbsp; &nbsp;2009-07-15 06:08:30.000000000 +0200</span><br />
<span style="color: #888822;">+++ udev.SlackBuild &nbsp; &nbsp; 2009-09-11 16:07:19.000000000 +0200</span><br />
<span style="color: #440088;">@@ -55,9 +55,12 @@</span><br />
&nbsp;./configure \<br />
&nbsp; &nbsp;--prefix=/usr \<br />
&nbsp; &nbsp;--exec-prefix=/ \<br />
<span style="color: #00b000;">+ &nbsp;--sbindir=/sbin \</span><br />
<span style="color: #00b000;">+ &nbsp;--libdir=/lib$<span style="">&#123;</span>LIBDIRSUFFIX<span style="">&#125;</span> \</span><br />
<span style="color: #00b000;">+ &nbsp;--with-rootlibdir=/lib$<span style="">&#123;</span>LIBDIRSUFFIX<span style="">&#125;</span> \</span><br />
&nbsp; &nbsp;--sysconfdir=/etc \<br />
&nbsp; &nbsp;--mandir=/usr/man \<br />
<span style="color: #991111;">- &nbsp;--with-libdir-name=lib$<span style="">&#123;</span>LIBDIRSUFFIX<span style="">&#125;</span> \</span><br />
<span style="color: #00b000;">+ &nbsp;--libexecdir=/lib/udev \</span><br />
&nbsp; &nbsp;--build=$ARCH-slackware-linux<br />
&nbsp;<br />
&nbsp;make $NUMJOBS || make || exit <span style="">1</span></div></div>
<p>Btw, can someone explain to me why I always manage to fuck up the file order to diff? (my patches normally come out reversed <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )<br />
Here&#8217;s the complete file if you want it:<br />
<a href="http://notes.benv.junerules.com/wp-content/plugins/download-monitor/download.php?id=udev.SlackBuild" title="Downloaded 106 times">udev.Slackbuild</a> - Version 1.4.6 - SHA: d550e146bdf34d1ad0e256936a94b7f9b7d62fd2</p>
<p>So after building and upgrading the package, it even restarted without glitches. Woei.<br />
Back to pulseaudio!</p>
<p>Running configure now correctly informs us about udev being YES. HAL->udev compat still said &#8220;no&#8221; though. I don&#8217;t care for now, let&#8217;s see if it works.<br />
My slackbuild.pl ran the make part and showed a ton of &#8220;leer coden, mongool&#8221; warnings (people should simply disable warnings if they don&#8217;t handle them if you ask me).<br />
Regardless of the warnings the compilation completed and I now have a shiny new package.<br />
After upgrading and restarting pulseaudio, there&#8217;s even sound coming out of my speakers when I hinted mpd to play. Woei.</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/pulseaudio-slackware-and-udev/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
