<?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>Valentin's Lab &#187; automake</title>
	<atom:link href="https://vaab.blog.kal.fr/tag/automake/feed/" rel="self" type="application/rss+xml" />
	<link>https://vaab.blog.kal.fr</link>
	<description>Ratiocination of an opensource techie</description>
	<lastBuildDate>Thu, 15 Nov 2018 08:04:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=vaab&amp;popout=1&amp;url=https%3A%2F%2Fvaab.blog.kal.fr%2F&amp;language=en_US&amp;category=text&amp;title=Valentin%27s+Lab&amp;description=Ratiocination+of+an+opensource+techie&amp;tags=blog" type="text/html" />
	<item>
		<title>automake: install omitting directory</title>
		<link>https://vaab.blog.kal.fr/2011/06/26/install-omitting-directory/</link>
		<comments>https://vaab.blog.kal.fr/2011/06/26/install-omitting-directory/#comments</comments>
		<pubDate>Sun, 26 Jun 2011 09:12:55 +0000</pubDate>
		<dc:creator><![CDATA[vaab]]></dc:creator>
				<category><![CDATA[analysis]]></category>
		<category><![CDATA[comp]]></category>
		<category><![CDATA[sci]]></category>
		<category><![CDATA[automake]]></category>

		<guid isPermaLink="false">http://vaab.blog.kal.fr/?p=222</guid>
		<description><![CDATA[I have personal project using autotools. I tried to build it since a long time and at make install time, patatra: /usr/bin/install: omitting directory `./lib/myproject' The build stops in failure. It used to work flawlessly. I am not alone After &#8230;<p class="read-more"><a href="https://vaab.blog.kal.fr/2011/06/26/install-omitting-directory/">Read more &#187;</a></p>]]></description>
				<content:encoded><![CDATA[
<div class="document">


<!-- -*- mode: rst -*- -->
<p>I have personal project using <tt class="docutils literal">autotools</tt>. I tried to build it since a long time and at <tt class="docutils literal">make install</tt> time, patatra:</p>
<pre class="literal-block">
/usr/bin/install: omitting directory `./lib/myproject'
</pre>
<p>The build stops in failure. It used to work flawlessly.</p>
<div class="section" id="i-am-not-alone">
<h3>I am not alone</h3>
<p>After a quick google search, it happens to be a wide issue: <tt class="docutils literal">install</tt> command line utility is used quite broadly along with <tt class="docutils literal">autotools</tt> but also all sorts of <tt class="docutils literal">make</tt> builds.</p>
<ul class="simple">
<li><a class="reference external" href="http://forum.winehq.org/viewtopic.php?p=53501&amp;sid=748a92859e8b001fcf18473610c6d460">wine users</a> in a forum talking about non installing wine builds.</li>
<li><a class="reference external" href="https://bugs.gentoo.org/show_bug.cgi?id=330047">gentoo bug report</a></li>
<li><a class="reference external" href="http://bugs.mysql.com/bug.php?id=36646">mysql bug report</a></li>
<li><a class="reference external" href="http://code.google.com/p/pyflag/issues/detail?id=2">pyflag bug report</a></li>
<li>...</li>
</ul>
</div>
<div class="section" id="looking-for-a-culprit">
<h3>Looking for a culprit</h3>
<p>Looking at the <a class="reference external" href="http://forum.winehq.org/viewtopic.php?p=53501&amp;sid=748a92859e8b001fcf18473610c6d460">wine users</a> post we could be headed to a change in <tt class="docutils literal">/usr/bin/install</tt> from GNU <tt class="docutils literal">coreutils</tt> package. But by chance I had another older computer that somehow was able to pass this <tt class="docutils literal">make install</tt> step successfully (as mine used to). I had the same line &quot;omitting directory&quot; but <tt class="docutils literal">make</tt> wouldn't stop, as if it was more of a warning than an error. I even checked the errorlevel of <tt class="docutils literal">/usr/bin/install</tt> call and it was correctly set to &quot;1&quot; in both version.</p>
<p>I never noticed this message because the copy of this directory wasn't really important at this time, and I guess I never checked. So I did check this and it confirmed that this directory wasn't obviously copied.</p>
<p>So this seemed to be a <tt class="docutils literal">automake</tt> related change.</p>
</div>
<div class="section" id="automake-analysis">
<h3>Automake analysis</h3>
<p>This is produced by WORKING version &quot;1:1.10.1-2&quot; of automake (on Ubuntu Hardy 8.04 for example):</p>
<pre class="literal-block">
...
install-dist_LibDATA: $(dist_Lib_DATA)
      &#64;$(NORMAL_INSTALL)
      test -z &quot;$(Libdir)&quot; || $(MKDIR_P) &quot;$(DESTDIR)$(Libdir)&quot;
      &#64;list='$(dist_Lib_DATA)'; for p in $$list; do \
        if test -f &quot;$$p&quot;; then d=; else d=&quot;$(srcdir)/&quot;; fi; \
        f=$(am__strip_dir) \
        echo &quot; $(dist_LibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(Libdir)/$$f'&quot;; \
        $(dist_LibDATA_INSTALL) &quot;$$d$$p&quot; &quot;$(DESTDIR)$(Libdir)/$$f&quot;; \
      done
 ...
</pre>
<p>This is produced by FAILING version &quot;1:1.11.1-1&quot; (on Ubuntu Lucid 10.04 for example):</p>
<pre class="literal-block">
...
install-dist_LibDATA: $(dist_Lib_DATA)
      &#64;$(NORMAL_INSTALL)
      test -z &quot;$(Libdir)&quot; || $(MKDIR_P) &quot;$(DESTDIR)$(Libdir)&quot;
      &#64;list='$(dist_Lib_DATA)'; test -n &quot;$(Libdir)&quot; || list=; \
      for p in $$list; do \
        if test -f &quot;$$p&quot;; then d=; else d=&quot;$(srcdir)/&quot;; fi; \
        echo &quot;$$d$$p&quot;; \
      done | $(am__base_list) | \
      while read files; do \
        echo &quot; $(INSTALL_DATA) $$files '$(DESTDIR)$(Libdir)'&quot;; \
        $(INSTALL_DATA) $$files &quot;$(DESTDIR)$(Libdir)&quot; || exit $$?; \
      done
 ...
</pre>
<p>Notice the call to the install line that catches the errorlevel of <tt class="docutils literal">/usr/bin/install</tt> command with <tt class="docutils literal">... || exit $$?</tt>. While in the older version, errorlevel is ignored.</p>
<p>It comes out that the latter is probably the saner. Before the directory was omitted silently by <tt class="docutils literal">automake</tt> generated script. If we look at the number of results in google that are tied to a non-working <tt class="docutils literal">make install</tt> related to this issue, it gives an idea of the number of directory that were omitted silently. While obviously this wasn't breaking nothing for all these package, the introduction of a stricter version of <tt class="docutils literal">automake</tt> have broken a lot of these bogus install (as mine) by breaking on this error.</p>
</div>
<div class="section" id="conclusion">
<h3>Conclusion</h3>
<p>So finaly I'm the culprit. But how could we achieve the objective I wanted to reach ?</p>
<p>How to get a directory included in your distribution whatever it's content ?</p>
<p>This might be the subject of a next post. Note that I'm also not alone on this road (<a class="reference external" href="http://lists.gnu.org/archive/html/automake/2008-08/msg00091.html">Matej Tyc</a> and <a class="reference external" href="http://lists.gnu.org/archive/html/automake/2009-04/msg00069.html">Lorenzo Bettini</a> have the same needs).</p>
</div>
</div>
 <p><a href="https://vaab.blog.kal.fr/?flattrss_redirect&amp;id=222&amp;md5=086077926e22c7b0b5a80e2d57c0e03c" title="Flattr" target="_blank"><img src="https://vaab.blog.kal.fr/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>https://vaab.blog.kal.fr/2011/06/26/install-omitting-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=vaab&amp;popout=1&amp;url=https%3A%2F%2Fvaab.blog.kal.fr%2F2011%2F06%2F26%2Finstall-omitting-directory%2F&amp;language=en_GB&amp;category=text&amp;title=automake%3A+install+omitting+directory&amp;description=I+have+personal+project+using+autotools.+I+tried+to+build+it+since+a+long+time+and+at+make+install+time%2C+patatra%3A+%2Fusr%2Fbin%2Finstall%3A+omitting+directory+%60.%2Flib%2Fmyproject%27+The+build+stops+in+failure....&amp;tags=automake%2Cblog" type="text/html" />
	</item>
	</channel>
</rss>
