Skip to content

installation fails with DESTDIR set #102172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
doko42 opened this issue Feb 23, 2023 · 2 comments
Closed

installation fails with DESTDIR set #102172

doko42 opened this issue Feb 23, 2023 · 2 comments
Labels
build The build process and cross-build type-bug An unexpected behavior, bug, or error

Comments

@doko42
Copy link
Member

doko42 commented Feb 23, 2023

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.

@doko42 doko42 added the type-bug An unexpected behavior, bug, or error label Feb 23, 2023
@zware
Copy link
Member

zware commented Feb 23, 2023

I believe this was already fixed in gh-100221; can you reproduce with current main?

@arhadthedev arhadthedev added the build The build process and cross-build label Feb 24, 2023
@zware zware added the pending The issue will be closed if no feedback is provided label Feb 27, 2023
@zware
Copy link
Member

zware commented Mar 15, 2023

Closing as duplicate of gh-100221.

@zware zware closed this as not planned Won't fix, can't repro, duplicate, stale Mar 15, 2023
@zware zware removed the pending The issue will be closed if no feedback is provided label Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants