[pulseaudio-tickets] [Bug 62908] New: "make check" doesn't pass when using a separate build directory

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 29 08:06:22 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=62908

          Priority: medium
            Bug ID: 62908
          Keywords: love
                CC: lennart at poettering.net
          Assignee: pulseaudio-bugs at lists.freedesktop.org
           Summary: "make check" doesn't pass when using a separate build
                    directory
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: tanuk at iki.fi
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: alsa
           Product: PulseAudio

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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20130329/eb43fc00/attachment.html>


More information about the pulseaudio-bugs mailing list