Skip to content

installation fails with DESTDIR set #102172

Closed as not planned
Closed as not planned
@doko42

Description

@doko42

seen with 3.12 alpha5,

a make install DESTDIR= fails with

/usr/bin/install -c build/scripts-3.12/pydoc3.12 /home/packages/python/3.12/python3.12-3.12.0~a5/debian/tmp/usr/bin/pydoc3.12
/usr/bin/install -c -m 755 Modules/_asyncio.cpython-312-x86_64-linux-gnu.so /usr/lib/python3.12/lib-dynload/_asyncio.cpython-312-x86_64-linux-gnu.so
/usr/bin/install: cannot create regular file '/home/packages/python/3.12/python3.12-3.12.0~a5/debian/tmp/usr/lib/python3.12/lib-dynload/_asyncio.cpython-312-x86_64-linux-gnu.so': No such file or directory

if the directories for the "final" installation (/usr/lib/python3.12/lib-dynload/) already exist.

The sharedinstall target depends on $(DESTSHARED), which unconditionally depends on some directories without any DESTDIR prefix, and therefore the directories are not created in the temporary install location, and the installation fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions