Note that there are some explanatory texts on larger screens.

plurals
  1. PODebian package creation error
    text
    copied!<p>I'm trying to build a Debian package, but I've got this weird pseudo-directory problem. I run:</p> <pre><code>$ fakeroot debian/rules binary </code></pre> <p>I've built the binary before, but something must have changed on my system. Now dh_md5sums errors out and returns:</p> <pre><code>md5sum: include: Is a directory dh_md5sums: command returned error code make: *** [binary-arch] Error 1 </code></pre> <p>Indeed, <code>include</code> is a directory. So, I added some debugging statements to dh_md5sums, to figure out why <code>include</code> was being hashed despite the line that was supposed to filter out directories. Adding:</p> <pre><code>doit("ls", "-l", "$tmp"); </code></pre> <p>shows that, indeed, <code>include</code> is not a directory when dh_md5sums is run:</p> <pre><code>total 28 drwxr-xr-x 2 root root 4096 2009-06-18 13:36 bin -rwxr-xr-x 3 root root 4096 2009-06-18 13:36 include drwxr-xr-x 3 root root 4096 2009-06-18 13:36 var # some directories removed for brevity's sake </code></pre> <p>So, can I remove it? I added:</p> <pre><code>doit("rm", "$tmp/include"); </code></pre> <p>and got:</p> <pre><code>rm: cannot remove `debian/myproject/include': Is a directory </code></pre> <p>maybe it... turned into a directory? I added another <code>ls -l</code> below the <code>rm</code> and got:</p> <pre><code>total 28 drwxr-xr-x 2 root root 4096 2009-06-18 13:36 bin -rwxr-xr-x 3 root root 4096 2009-06-18 13:36 include drwxr-xr-x 3 root root 4096 2009-06-18 13:36 var </code></pre> <p>and when the scripts are done running, I can do:</p> <pre><code>$ ls -l drwxr-xr-x 2 x x 4096 2009-06-18 13:48 bin drwxr-xr-x 3 x x 4096 2009-06-18 13:48 include drwxr-xr-x 3 x x 4096 2009-06-18 13:48 var </code></pre> <p>...which is weird, as <code>include</code> becomes a directory and the ownership changes (<code>x</code> is my username). <code>include</code> even contains all the header files it's supposed to.</p> <p>Does anyone know what's going on?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload