-
Notifications
You must be signed in to change notification settings - Fork 36
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
error: Symlink points to BuildRoot #66
Comments
This would appear to be related to a By default, the If it's not the flags then there are also a number of bugs related to this topic in the |
Yeah I forgot to mention that I'm not using the virtualenv that comes with the OS. I installed it straight with pip. $ rpm -qa | grep virtualenv | wc -l and I know for a fact that it is only using the virtualenv module from /usr/local/lib (from pip). $ ls -lah /tmp/rpmvenv_EVcg_/BUILDROOT/some-rpm-package-name-1.2.3-1.x86_64/path/where/to/install/venv/name_of_venv_dir_to_create/ Also added the --always-copy to the configuration.
|
Ahh... this might be related to pypa/virtualenv#1248 - Will try to use the previous version. |
Ah yes that was it. However with the previous version (1.16.0) I shouldn't use --always-copy since seems it is a bit odd/broken with Centos7 per: pypa/virtualenv#565 |
It's funny that you mention 565 because it was also mentioned in #56 . The interesting thing about #56 was that it could be resolved by rebuilding Python rather than using the system Python. I still don't fully understand what makes the system Pythons for Centos, Fedora, and RedHat so different from whatever assumption virtualenv is making that they don't work out of the box. This issue doesn't appear to affect Debian based distributions. It can also be frustrating that the nature of the I'm happy you were able to find a version of virtualenv that works for you. If it continues to be problematic, rebuilding Python from source appears to be a more holistic fix for folks experiencing |
@pfischermx Do you mean 16.0.0? virtualenv==16.0.0 works for me. |
I tried to see if this was reported but couldn't. Also already tried with QA_SKIP_BUILD_ROOT=1 and strip_binaries: false
Config:
{
"extensions": {
"enabled": [
"python_venv",
"blocks"
]
},
"core": {
"group": "Application/System",
"license": "MIT",
"name": "some-rpm-package-name",
"summary": "short package summary",
"version": "1.2.3"
},
"python_venv": {
"require_setup_py": false,
"name": "name_of_venv_dir_to_create",
"path": "/path/where/to/install/venv",
"strip_binaries": false
},
"blocks": {
"desc": [
"some long package description",
"each array element is a new line"
]
}
}
Error:
...
Successfully installed PyYAML-3.13 certifi-2018.10.15 chardet-3.0.4 gevent-1.3.7 greenlet-0.4.15 grequests-0.3.0 idna-2.7 pprint-0.1 requests-2.20.1 urllib3-1.24.1
/tmp/rpmvenv4y1Ddb/BUILD
Processing files: some-rpm-package-name-1.2.3-1.x86_64
error: Symlink points to BuildRoot: /path/where/to/install/venv/name_of_venv_dir_to_create/lib64 -> /tmp/rpmvenv4y1Ddb/BUILDROOT/some-rpm-package-name-1.2.3-1.x86_64/path/where/to/install/venv/name_of_venv_dir_to_create/lib
RPM build errors:
Symlink points to BuildRoot: /path/where/to/install/venv/name_of_venv_dir_to_create/lib64 -> /tmp/rpmvenv4y1Ddb/BUILDROOT/some-rpm-package-name-1.2.3-1.x86_64/path/where/to/install/venv/name_of_venv_dir_to_create/lib
There was an error generating the RPM.
The exit code was: 1.
The rpmbuild command was: rpmbuild -ba --define='_topdir /tmp/rpmvenv4y1Ddb' /tmp/rpmvenv4y1Ddb/SOURCES/package.spec.
This is on Centos7
$ rpmbuild --version
RPM version 4.11.3
The command I'm using is:
QA_SKIP_BUILD_ROOT=1 rpmvenv ./foo.config.json --verbose
Any ideas?
The text was updated successfully, but these errors were encountered: