Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 692226 - app-editors/vim-8.1.1846 seems to build against the wrong python version
Summary: app-editors/vim-8.1.1846 seems to build against the wrong python version
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-15 16:41 UTC by Albert W. Hopkins
Modified: 2020-01-20 06:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Albert W. Hopkins 2019-08-15 16:41:04 UTC
From what I understand I have my flags set up such that vim build build against Python 3.6, however when I run vim it seems to be built agains Python 3.7:


```

# equery u vim
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for app-editors/vim-8.1.1846:
 U I
 - - X                              : Link console vim against X11 libraries to
                                      enable title and clipboard features in
                                      xterm
 + + acl                            : Add support for Access Control Lists
 - - cscope                         : Enable cscope interface
 - - debug                          : Enable extra debug codepaths, like asserts
                                      and extra output. If you want to get
                                      meaningful backtraces see https://wiki.gent
                                      oo.org/wiki/Project:Quality_Assurance/Backt
                                      races
 - - gpm                            : Add support for sys-libs/gpm (Console-based
                                      mouse driver)
 - - lua                            : Enable Lua scripting support
 - - luajit                         : Use dev-lang/luajit instead of dev-lang/lua
                                      (ineffective with USE=-lua)
 - - minimal                        : Install a very minimal build (disables, for
                                      example, plugins, fonts, most drivers,
                                      non-critical features)
 + + nls                            : Add Native Language Support (using gettext
                                      - GNU locale utilities)
 - - perl                           : Add optional support/bindings for the Perl
                                      language
 + + python                         : Add optional support/bindings for the
                                      Python language
 - - python_single_target_python2_7 : Build for Python 2.7 only
 - - python_single_target_python3_5 : Build for Python 3.5 only
 + + python_single_target_python3_6 : Build for Python 3.6 only
 - - python_single_target_python3_7 : Build for Python 3.7 only
 - - python_targets_python2_7       : Build with Python 2.7
 - - python_targets_python3_5       : Build with Python 3.5
 + + python_targets_python3_6       : Build with Python 3.6
 - - python_targets_python3_7       : Build with Python 3.7
 - - racket                         : Enable support for Scheme using
                                      dev-scheme/racket
 + + ruby                           : Add support/bindings for the Ruby language
 - - sound                          : Enable sound support
 - - tcl                            : Add support the Tcl language
 - - terminal                       : Enable terminal emulation support
 - - vim-pager                      : Install vimpager and vimmanpager links
```

```
# vim -c ':py3 import sys; print(sys.version)'
3.7.4 (default, Jul 15 2019, 11:13:52)
[GCC 9.1.0]
```

This is particularly an issue for me because I have a BINHOST that has *both* 3.6 and 3.7 installed but other systems that only have 3.6 installed, and so ":py3" on those systems fail.

```
# vim -c ':py3 import sys; print(sys.version)'
Error detected while processing /home/marduk/.vimrc:
line   20:
E370: Could not load library libpython3.7m.so.1.0
E263: Sorry, this command is disabled, the Python library could not be loaded.
```