Skip to content
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

altinstall should not install libpython3.so (conflict between multiple $VERSIONs) #62175

Closed
prlw1 mannequin opened this issue May 14, 2013 · 13 comments
Closed

altinstall should not install libpython3.so (conflict between multiple $VERSIONs) #62175

prlw1 mannequin opened this issue May 14, 2013 · 13 comments
Labels
build The build process and cross-build type-bug An unexpected behavior, bug, or error

Comments

@prlw1
Copy link
Mannequin

prlw1 mannequin commented May 14, 2013

BPO 17975
Nosy @loewis, @warsaw, @pitrou, @davidmalcolm, @koobs, @iritkatriel

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2021-12-15.12:52:41.962>
created_at = <Date 2013-05-14.14:43:59.173>
labels = ['type-bug', 'build']
title = 'altinstall should not install libpython3.so (conflict between multiple $VERSIONs)'
updated_at = <Date 2021-12-15.12:52:41.961>
user = 'https://bugs.python.org/prlw1'

bugs.python.org fields:

activity = <Date 2021-12-15.12:52:41.961>
actor = 'iritkatriel'
assignee = 'none'
closed = True
closed_date = <Date 2021-12-15.12:52:41.962>
closer = 'iritkatriel'
components = ['Build']
creation = <Date 2013-05-14.14:43:59.173>
creator = 'prlw1'
dependencies = []
files = []
hgrepos = []
issue_num = 17975
keywords = []
message_count = 13.0
messages = ['189223', '189501', '189503', '189508', '189531', '189532', '189546', '189548', '214686', '214687', '214721', '234426', '407968']
nosy_count = 8.0
nosy_names = ['loewis', 'barry', 'pitrou', 'Arfrever', 'dmalcolm', 'koobs', 'prlw1', 'iritkatriel']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue17975'
versions = ['Python 3.2', 'Python 3.3']

@prlw1
Copy link
Mannequin Author

prlw1 mannequin commented May 14, 2013

I currently have python 2.7 and 3.2 installed concurrently. I just tried to install 3.3 as well, but a file conflicts between 3.2 and 3.3. It is libpython3.so.

Given that we go out of our way e.g. with

$(INSTALL_DATA) Misc/python.pc $(DESTDIR)$(LIBPC)/python-$(VERSION).pc

to avoid clashes, what should be done about PY3LIBRARY?

@prlw1 prlw1 mannequin added build The build process and cross-build type-bug An unexpected behavior, bug, or error labels May 14, 2013
@prlw1
Copy link
Mannequin Author

prlw1 mannequin commented May 18, 2013

I see that this was introduced in

http://www.python.org/dev/peps/pep-0384/

Would a configure option to make it easy not to install the conflicting file be acceptable?

@Arfrever
Copy link
Mannequin

Arfrever mannequin commented May 18, 2013

See issue bpo-11347. (Python ebuilds in Gentoo manually delete libpython3.so.)

@pitrou
Copy link
Member

pitrou commented May 18, 2013

Did you use "make altinstall"?

@pitrou
Copy link
Member

pitrou commented May 18, 2013

According to Martin on the bug linked to:

« Having the soname be libpython3 is the whole point of the library, it serves no other reason.

It is intentional that there are file collisions with that file, and either the local admin or the distributor must make an explicit choice which libpython3 should be installed; it should be the one that corresponds to /usr/bin/python (if you install it into /usr/lib). »

Should we close this issue as won't fix?

@pitrou
Copy link
Member

pitrou commented May 18, 2013

(on the bug Arfrever linked to, sorry)

@prlw1
Copy link
Mannequin Author

prlw1 mannequin commented May 18, 2013

No, I don't think you should close this, as you haven't explained what it is that you won't do.

I think that a sensible plan is to introduce a configure flag whose effect is to not install the files which cause the conflict. You set the default to always install the conflicting files, so the standard install of python gets to be the PY3LIBRARY. What this buys you, is that then you can also install another version of python 3 concurrently and easily.

I just need to find a round tuit to write it...

@prlw1
Copy link
Mannequin Author

prlw1 mannequin commented May 18, 2013

To quote the README:

Installing multiple versions
----------------------------
...
For example, if you want to install Python 2.6, 2.7 and 3.4 with 2.7 being the
primary version, you would execute "make install" in your 2.7 build directory
and "make altinstall" in the others.

This makes perfect sense, but now it is impossible to make 3.2 and 3.3 python packages which can be installed simultaneously.

@loewis
Copy link
Mannequin

loewis mannequin commented Mar 24, 2014

Patrick: it is very difficult to track an issue with shifting focus, since it is never clear what the actual issue is.

Please confirm that it is consensus that

  1. It is desired and correct behavior that python3.so is a conflicting file
  2. It is possible to avoid the conflict by making "make alt install"

If so, can you please restate what you think the issue is that you want to see resolved?

Why do you say it is impossible to install packages for both python 3.2 and python 3.3? Works perfectly fine for me.

@Arfrever
Copy link
Mannequin

Arfrever mannequin commented Mar 24, 2014

'make altinstall' installs libpython3.so.

@koobs
Copy link

koobs commented Mar 24, 2014

Confirming that altinstall installs libpython3.so

@koobs koobs changed the title libpython3.so conflicts between $VERSIONs altinstall should not install libpython3.so (conflict between multiple $VERSIONs) Jan 21, 2015
@koobs
Copy link

koobs commented Jan 21, 2015

Adding 3.2 so I (and other downstream packagers) don't forget to backport the fix.

@iritkatriel
Copy link
Member

The discussion here seems to have been abandoned 7 years ago after Martin asked Patrick to clarify the issue. I will close this soon if nobody will explain what is left to be done.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
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