<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - "make check" doesn't pass when using a separate build directory"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=62908">62908</a>
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>love
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"make check" doesn't pass when using a separate build directory
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tanuk@iki.fi
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>alsa
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This should work:

git clone git://anongit.freedesktop.org/pulseaudio/pulseaudio
cd pulseaudio
NOCONFIGURE=1 ./bootstrap.sh
mkdir build
cd build
../configure
make check

It doesn't currently work, because src/tests/alsa-mixer-path-test.c has this
buggy function:

static const char *get_default_paths_dir(void) {
    if (pa_run_from_build_tree())
        return PA_BUILDDIR "/modules/alsa/mixer/paths/";
    else
        return PA_ALSA_PATHS_DIR;
}

It's wrong to use PA_BUILDDIR, because the path files are in the source tree,
not in the build tree. The suggested solution is to define PA_SRCDIR and use it
instead of PA_BUILDDIR.

src/modules/alsa/alsa-mixer.c has the same function and the same bug, so the
same fix should be applied there too.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>