<?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>ejohansson.se &#187; git</title>
	<atom:link href="http://ejohansson.se/tags/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://ejohansson.se</link>
	<description>Random bits about Linux, programming, computers and occasionally other stuff.</description>
	<lastBuildDate>Tue, 06 Mar 2012 09:02:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Getting Licq to build with&#160;pbuilder</title>
		<link>http://ejohansson.se/archives/2010/09/26/getting-licq-to-build-with-pbuilder/</link>
		<comments>http://ejohansson.se/archives/2010/09/26/getting-licq-to-build-with-pbuilder/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 18:44:53 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[licq]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=344</guid>
		<description><![CDATA[I wanted to test that I had specified the correct Build-Depends in my Debian package of Licq 1.5.0-rc2. It seemed like the simplest way to do this was to create a personal builder installation and build the package in that chroot. So I did: sudo pbuilder create --debootstrapopts --variant=buildd Building should then be as simple [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to test that I had specified the correct Build-Depends in my Debian package of <a href="http://www.licq.org/blog/Licq-1.5.0-rc2">Licq 1.5.0-rc2</a>. It seemed like the simplest way to do this was to create a personal builder installation and build the package in that chroot.</p>
<p>So I did:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pbuilder create <span style="color: #660033;">--debootstrapopts</span> <span style="color: #660033;">--variant</span>=buildd</pre></div></div>

<p>Building should then be as simple as executing:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">git-buildpackage <span style="color: #660033;">--git-builder</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/</span>git-buildpackage<span style="color: #000000; font-weight: bold;">/</span>examples<span style="color: #000000; font-weight: bold;">/</span>gbp-pbuilder <span style="color: #660033;">--git-cleaner</span>=<span style="color: #ff0000;">&quot;fakeroot debian/rules clean&quot;</span></pre></div></div>

<p>Or it should have been that simple. Unfortunately the build failed with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Fatal: no entropy gathering module detected</pre></div></div>

<p>After some googling and testing; the fix was to add two random devices to the chroot:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pbuilder <span style="color: #c20cb9; font-weight: bold;">login</span> <span style="color: #660033;">--save-after-login</span>
<span style="color: #c20cb9; font-weight: bold;">mknod</span> <span style="color: #660033;">-m</span> <span style="color: #000000;">666</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>random c <span style="color: #000000;">1</span> <span style="color: #000000;">8</span>
<span style="color: #c20cb9; font-weight: bold;">mknod</span> <span style="color: #660033;">-m</span> <span style="color: #000000;">666</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom c <span style="color: #000000;">1</span> <span style="color: #000000;">9</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">666</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
<span style="color: #7a0874; font-weight: bold;">exit</span></pre></div></div>

<p>(The change of permission for /dev/null was needed to avoid getting errors later in the build process.)</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2010/09/26/getting-licq-to-build-with-pbuilder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git is not always better than&#160;subversion</title>
		<link>http://ejohansson.se/archives/2010/09/25/git-is-not-always-better-than-subversion/</link>
		<comments>http://ejohansson.se/archives/2010/09/25/git-is-not-always-better-than-subversion/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 08:14:53 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[computers]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=341</guid>
		<description><![CDATA[Yesterday I wished I had used svn instead of git as VCS for Licq&#8217;s debian package, when I accidentally deleted my local git clone with lots of commits that I hadn&#8217;t pushed&#8230; Luckily I had all the changes in a different format so I didn&#8217;t have to redo all the work, but I had to [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I wished I had used svn instead of git as VCS for Licq&#8217;s debian package, when I accidentally deleted my local git clone with lots of commits that I hadn&#8217;t pushed&#8230;</p>
<p>Luckily I had all the changes in a different format so I didn&#8217;t have to redo all the work, but I had to spend time trying to commit the changes in a somewhat logical way.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2010/09/25/git-is-not-always-better-than-subversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>debian/licq.git mirror on&#160;Gitorious</title>
		<link>http://ejohansson.se/archives/2010/04/18/debianlicq-git-mirror-on-gitorious/</link>
		<comments>http://ejohansson.se/archives/2010/04/18/debianlicq-git-mirror-on-gitorious/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 20:23:14 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[licq]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=332</guid>
		<description><![CDATA[To get better speed and a backup I&#8217;ve set up a mirror of debian/licq.git on Gitorious.org. I don&#8217;t really know the best way to do this, but I did it by adding the following line to hooks/post-update: git push --mirror git@gitorious.org:licq/debian.git This way the mirror will always be updated when I push to the &#8220;real&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>To get better speed and a backup I&#8217;ve set up a mirror of <a href="http://git.ejohansson.se/?p=debian/licq.git;a=summary">debian/licq.git</a> on <a href="http://gitorious.org/licq/debian">Gitorious.org</a>.</p>
<p>I don&#8217;t really know the best way to do this, but I did it by adding the following line to hooks/post-update:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git</span> push <span style="color: #660033;">--mirror</span> <span style="color: #c20cb9; font-weight: bold;">git</span><span style="color: #000000; font-weight: bold;">@</span>gitorious.org:licq<span style="color: #000000; font-weight: bold;">/</span>debian.git</pre></div></div>

<p>This way the mirror will always be updated when I push to the &#8220;real&#8221; repository.</p>
<p>Get it by running</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> gbp-clone <span style="color: #660033;">--pristine-tar</span> <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>gitorious.org<span style="color: #000000; font-weight: bold;">/</span>licq<span style="color: #000000; font-weight: bold;">/</span>debian.git</pre></div></div>

<p>or clone it on Gitorious and send me merge requests <img src='http://ejohansson.se/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2010/04/18/debianlicq-git-mirror-on-gitorious/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>/me is the new Debian maintainer for&#160;Licq</title>
		<link>http://ejohansson.se/archives/2010/01/15/me-is-the-new-debian-maintainer-for-licq/</link>
		<comments>http://ejohansson.se/archives/2010/01/15/me-is-the-new-debian-maintainer-for-licq/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 23:01:01 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[licq]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=320</guid>
		<description><![CDATA[Update 2010-10-30: Changed the initial setup to use gbp-clone. I&#8217;m now officially the maintainer of Licq&#8217;s Debian packages. Since I&#8217;m not a real Debian maintainer, I&#8217;m very grateful to Joel Rosdahl who is my sponsor. Version 1.3.8-1 is coming to a mirror near you as I write this. The package source is kept in my [...]]]></description>
			<content:encoded><![CDATA[<p><b>Update 2010-10-30:</b> Changed the initial setup to use gbp-clone.</p>
<p>I&#8217;m now officially the maintainer of Licq&#8217;s Debian packages. Since I&#8217;m not a real Debian maintainer, I&#8217;m very grateful to <a href="http://joel.rosdahl.net/">Joel Rosdahl</a> who is my sponsor.</p>
<p>Version 1.3.8-1 is coming to a mirror near you as I write this.</p>
<p>The package source is kept in my <a href="http://git.ejohansson.se/">git repository</a>. To build the package from the git repository, install git-buildpackage and pristine-tar then follow the instructions below.</p>
<p>Initial setup:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> gbp-clone <span style="color: #660033;">--pristine-tar</span> <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>git.ejohansson.se<span style="color: #000000; font-weight: bold;">/</span>debian<span style="color: #000000; font-weight: bold;">/</span>licq.git</pre></div></div>

<p><strike></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">git</span> clone <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>git.ejohansson.se<span style="color: #000000; font-weight: bold;">/</span>debian<span style="color: #000000; font-weight: bold;">/</span>licq.git
licq <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #7a0874; font-weight: bold;">cd</span> licq
licq <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">git</span> checkout <span style="color: #660033;">-b</span> pristine-tar origin<span style="color: #000000; font-weight: bold;">/</span>pristine-tar
licq <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">git</span> <span style="color: #c20cb9; font-weight: bold;">co</span> master</pre></div></div>

<p></strike></p>
<p>To build the latest version:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">licq <span style="color: #000000; font-weight: bold;">%</span> git-buildpackage <span style="color: #660033;">--git-export-dir</span>=..<span style="color: #000000; font-weight: bold;">/</span>build-area</pre></div></div>

<p>To build a specific version:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">licq <span style="color: #000000; font-weight: bold;">%</span> git-buildpackage <span style="color: #660033;">--git-export-dir</span>=..<span style="color: #000000; font-weight: bold;">/</span>build-area <span style="color: #660033;">--git-export</span>=debian<span style="color: #000000; font-weight: bold;">/</span>1.3.8-<span style="color: #000000;">1</span></pre></div></div>

<p>The final packages will be available in ../build-area.</p>
<p>Later on when you wish to update:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">licq <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">git</span> pull
licq <span style="color: #000000; font-weight: bold;">%</span> git-buildpackage ...</pre></div></div>

<p>The next version will have qt4-gui.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2010/01/15/me-is-the-new-debian-maintainer-for-licq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>++git;</title>
		<link>http://ejohansson.se/archives/2007/12/31/git/</link>
		<comments>http://ejohansson.se/archives/2007/12/31/git/#comments</comments>
		<pubDate>Mon, 31 Dec 2007 12:07:41 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://ejohansson.se/archives/2007/12/31/git/</guid>
		<description><![CDATA[As all the other cool kids, I&#8217;ve also started experimenting with git, the version control system used by many, most notably the Linux kernel developers. As a test I converted my program that enables the volume knob on Dell USB keyboards. You can find it on my gitweb site. Also there is the selinux policy [...]]]></description>
			<content:encoded><![CDATA[<p>As all the other cool kids, I&#8217;ve also started experimenting with <a href="http://git.or.cz/">git</a>, the version control system used by many, most notably the Linux kernel developers.</p>
<p>As a test I converted my program that <a href="http://ejohansson.se/archives/2006/05/23/enable-dells-volume-knob-under-linux/">enables the volume knob</a> on Dell USB keyboards. You can find it on <a href="http://git.ejohansson.se/">my gitweb</a> site.</p>
<p>Also there is the selinux policy module I blogged about in my <a href="http://ejohansson.se/archives/2007/11/04/selinux-subversion-and-mod_svn/">previous post</a>, and a new one that I had to do to get gitweb to work. Getting gitweb to work also required the git repositories to be properly labelled:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">semanage fcontext <span style="color: #660033;">-a</span> <span style="color: #660033;">-t</span> httpd_sys_script_ro_t <span style="color: #ff0000;">'/home/git(/.*)?'</span>
restorecon <span style="color: #660033;">-Rv</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">git</span></pre></div></div>

<p>Some day I need to figure out the correct syntax for putting file contexts in the policy module.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2007/12/31/git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

