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

Relative --outputdir path makes broken symlinks (Linux, 5.14.1) #88

Closed
altendky opened this issue Feb 9, 2020 · 4 comments
Closed

Relative --outputdir path makes broken symlinks (Linux, 5.14.1) #88

altendky opened this issue Feb 9, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@altendky
Copy link
Contributor

altendky commented Feb 9, 2020

I may get to take a stab at this tomorrow, but I like to put tickets in sooner than later in case someone sees them and already knows something useful.

I don't know where the error lies but even if it's with Qt it might be worth just resolving the path before giving it to the Qt installer. And that vague theory may even give away some complete lack of understanding of aqtinstall as I haven't looked at the code yet. :]

After running with a relative path specified:

$ venv/bin/aqt install --outputdir qt 5.14.1 linux desktop gcc_64

The symlinks use relative paths and are broken:

$ ll qt/5.14.1/gcc_64/lib/libQt5Desi*
-rw-r--r-- 1 altendky altendky  881 Jan 23 12:32 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.la
-rw-r--r-- 1 altendky altendky 1.6K Jan 24 02:20 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.prl
lrwxrwxrwx 1 altendky altendky   55 Feb  8 23:31 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so -> qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14.1
lrwxrwxrwx 1 altendky altendky   55 Feb  8 23:31 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5 -> qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14.1
lrwxrwxrwx 1 altendky altendky   55 Feb  8 23:31 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14 -> qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14.1
-rwxr-xr-x 1 altendky altendky 3.5M Jan 23 12:29 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14.1*
-rw-r--r-- 1 altendky altendky  768 Jan 23 12:32 qt/5.14.1/gcc_64/lib/libQt5Designer.la
-rw-r--r-- 1 altendky altendky 1.5K Jan 24 02:20 qt/5.14.1/gcc_64/lib/libQt5Designer.prl
lrwxrwxrwx 1 altendky altendky   45 Feb  8 23:31 qt/5.14.1/gcc_64/lib/libQt5Designer.so -> qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14.1
lrwxrwxrwx 1 altendky altendky   45 Feb  8 23:31 qt/5.14.1/gcc_64/lib/libQt5Designer.so.5 -> qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14.1
lrwxrwxrwx 1 altendky altendky   45 Feb  8 23:31 qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14 -> qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14.1
-rwxr-xr-x 1 altendky altendky 5.9M Jan 23 12:25 qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14.1*

After running with the full path specified:

$ rm -rf qt; venv/bin/aqt install --outputdir $PWD/qt 5.14.1 linux desktop gcc_64

The symlinks use full paths and work:

$ ll qt/5.14.1/gcc_64/lib/libQt5Desi*
-rw-r--r-- 1 altendky altendky  881 Jan 23 12:32 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.la
-rw-r--r-- 1 altendky altendky 1.6K Jan 24 02:20 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.prl
lrwxrwxrwx 1 altendky altendky   88 Feb  8 23:30 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so -> /home/altendky/repos/pyqt5-tools/qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14.1*
lrwxrwxrwx 1 altendky altendky   88 Feb  8 23:30 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5 -> /home/altendky/repos/pyqt5-tools/qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14.1*
lrwxrwxrwx 1 altendky altendky   88 Feb  8 23:30 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14 -> /home/altendky/repos/pyqt5-tools/qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14.1*
-rwxr-xr-x 1 altendky altendky 3.5M Jan 23 12:29 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14.1*
-rw-r--r-- 1 altendky altendky  768 Jan 23 12:32 qt/5.14.1/gcc_64/lib/libQt5Designer.la
-rw-r--r-- 1 altendky altendky 1.5K Jan 24 02:20 qt/5.14.1/gcc_64/lib/libQt5Designer.prl
lrwxrwxrwx 1 altendky altendky   78 Feb  8 23:30 qt/5.14.1/gcc_64/lib/libQt5Designer.so -> /home/altendky/repos/pyqt5-tools/qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14.1*
lrwxrwxrwx 1 altendky altendky   78 Feb  8 23:30 qt/5.14.1/gcc_64/lib/libQt5Designer.so.5 -> /home/altendky/repos/pyqt5-tools/qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14.1*
lrwxrwxrwx 1 altendky altendky   78 Feb  8 23:30 qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14 -> /home/altendky/repos/pyqt5-tools/qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14.1*
-rwxr-xr-x 1 altendky altendky 5.9M Jan 23 12:25 qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14.1*
@miurahr
Copy link
Owner

miurahr commented Feb 11, 2020

This is a bug in a library to extract 7zip archive.

You can do work-around with '-E <7zip command full path>' with aqtinstall v0.7.2.

@altendky
Copy link
Contributor Author

I don't need to move these around (temp install while building pyqt5-tools) so adding $PWD is fine. But thanks for pointing out the -E option and reporting the issue upstream.

@miurahr
Copy link
Owner

miurahr commented Feb 20, 2020

Fix released

@miurahr miurahr closed this as completed Feb 20, 2020
@altendky
Copy link
Contributor Author

Great, thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants