Opened 11 years ago

Closed 11 years ago

#39175 closed defect (fixed)

py27-pyaudio @0.2.7 fails on case-sensitive file systems

Reported by: posita (Matt Bogosian) Owned by: Jakker (Jaap Akkerhuis)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: py-pyaudio

Description

Here's the output:

% port -v install py27-pyaudio                                    --->  Computing dependencies for py27-pyaudio.
--->  Fetching distfiles for py27-pyaudio
--->  pyaudio-0.2.7.tar.gz doesn't seem to exist in /_PATH_/var/macports/distfiles/py-pyaudio
--->  Attempting to fetch pyaudio-0.2.7.tar.gz from http://distfiles.macports.org/py-pyaudio  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  178k  100  178k    0     0   165k      0  0:00:01  0:00:01 --:--:--  182k
--->  Verifying checksum(s) for py27-pyaudio
--->  Checksumming pyaudio-0.2.7.tar.gz
--->  Extracting py27-pyaudio
--->  Extracting pyaudio-0.2.7.tar.gz
Error: reinplace: couldn't read file "/_PATH_/var/macports/build/__PATH__var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyaudio/py27-pyaudio/work/pyaudio-0.2.7/setup.py": no such file or directory
Error: org.macports.patch for port py27-pyaudio returned: reinplace sed(1) failed
Warning: targets not executed for py27-pyaudio: org.macports.activate org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
Please see the log file for port py27-pyaudio for details:
    /_PATH_/var/macports/logs/__PATH__var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyaudio/py27-pyaudio/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port py27-pyaudio failed

Note the error:

...
Error: reinplace: couldn't read file "/.../py27-pyaudio/work/pyaudio-0.2.7/setup.py": no such file or directory
...

Now take a look at the "work" directory:

% ls /.../py27-pyaudio/work
PyAudio-0.2.7

Note that the build script looks for pyaudio-0.2.7 and the directory is actually named PyAudio-0.2.7. This fails on systems with case-sensitive file systems. Here's a quick hack/fix:

% ln PyAudio-0.2.7 /.../py27-pyaudio/work/pyaudio-0.2.7
% ls -Fl /.../py27-pyaudio/work
... PyAudio-0.2.7/
... pyaudio-0.2.7@ -> PyAudio-0.2.7
% port -v install py27-pyaudio
...

Change History (3)

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Owner: changed from macports-tickets@… to jaap@…
Port: py-pyaudio added

Thanks. In the future, please Cc relevant port maintainers.

The port should explicitly set worksrcdir.

worksrcdir  PyAudio-${version}

comment:2 in reply to:  1 Changed 11 years ago by Jakker (Jaap Akkerhuis)

Replying to larryv@…:

Thanks. In the future, please Cc relevant port maintainers.

The port should explicitly set worksrcdir.

worksrcdir  PyAudio-${version}

Agreed. This seems correct to me. I tested this and that works. Thanks for the suggestion.

comment:3 Changed 11 years ago by larryv (Lawrence Velázquez)

Resolution: fixed
Status: newclosed

Cool. Fixed in r106362.

Note: See TracTickets for help on using tickets.