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

Remove static libraries? #42

Open
hmaarrfk opened this issue Aug 12, 2022 · 5 comments · May be fixed by #223
Open

Remove static libraries? #42

hmaarrfk opened this issue Aug 12, 2022 · 5 comments · May be fixed by #223
Labels
question Further information is requested

Comments

@hmaarrfk
Copy link
Contributor

Comment:

I see a few static libraries being shipped with the qt-main package

$ ls -lah ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/*.a
-rw-rw-r-- 2 mark mark 8.5K Jun 11 16:40 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5AccessibilitySupport.a
-rw-rw-r-- 2 mark mark 4.3M Jun 11 16:27 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5Bootstrap.a
-rw-rw-r-- 2 mark mark  33K Jun 11 16:38 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5DeviceDiscoverySupport.a
-rw-rw-r-- 2 mark mark 195K Jun 11 16:38 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5EdidSupport.a
-rw-rw-r-- 2 mark mark  73K Jun 11 16:40 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5EglSupport.a
-rw-rw-r-- 2 mark mark  34K Jun 11 16:38 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5EventDispatcherSupport.a
-rw-rw-r-- 2 mark mark  98K Jun 11 16:38 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5FbSupport.a
-rw-rw-r-- 2 mark mark 173K Jun 11 16:39 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5FontDatabaseSupport.a
-rw-rw-r-- 2 mark mark  20K Jun 11 16:40 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5GlxSupport.a
-rw-rw-r-- 2 mark mark 273K Jun 11 16:40 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5InputSupport.a
-rw-rw-r-- 2 mark mark 135K Jun 11 16:40 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5KmsSupport.a
-rw-rw-r-- 2 mark mark 945K Jun 11 16:38 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5OpenGLExtensions.a
-rw-rw-r-- 2 mark mark  30K Jun 11 17:04 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5PacketProtocol.a
-rw-rw-r-- 2 mark mark  43K Jun 11 16:40 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5PlatformCompositorSupport.a
-rw-rw-r-- 2 mark mark 447K Jun 11 17:08 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5QmlDebug.a
-rw-rw-r-- 2 mark mark 1.9M Jun 11 17:08 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5QmlDevTools.a
-rw-rw-r-- 2 mark mark  63K Jun 11 16:40 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5ServiceSupport.a
-rw-rw-r-- 2 mark mark 781K Jun 11 16:39 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5ThemeSupport.a
-rw-rw-r-- 2 mark mark 1.1M Jun 11 17:30 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5UiTools.a
-rw-rw-r-- 2 mark mark  28K Jun 11 16:39 ./pkgs/qt-main-5.15.4-ha5833f6_2/lib/libQt5XkbCommonSupport.a

They seem like they are about 7-10MB in size (total). Do we think it is appropriate to remove them? or do we expect to have to create a split package for this?

@hmaarrfk hmaarrfk added the question Further information is requested label Aug 12, 2022
@andfoy
Copy link
Contributor

andfoy commented Aug 15, 2022

Do all Qt libraries have their static counterpart available? Or are they just this handful? In this case, I don't know if they provide any value and should be removed? I'm all in to remove them if you want

@hmaarrfk
Copy link
Contributor Author

Oddly enough. I don't think many (if any) had shared library counterparts. I can do a more thorough study

@hmaarrfk
Copy link
Contributor Author

It seems non of these static libraries have dynamic library counterparts:

$ for f in $(ls *.a); do ls ${f%.a}*; done
libQt5AccessibilitySupport.a  libQt5AccessibilitySupport.prl
libQt5Bootstrap.a  libQt5Bootstrap.prl
libQt5DeviceDiscoverySupport.a  libQt5DeviceDiscoverySupport.prl
libQt5EdidSupport.a  libQt5EdidSupport.prl
libQt5EglSupport.a  libQt5EglSupport.prl
libQt5EventDispatcherSupport.a  libQt5EventDispatcherSupport.prl
libQt5FbSupport.a  libQt5FbSupport.prl
libQt5FontDatabaseSupport.a  libQt5FontDatabaseSupport.prl
libQt5GlxSupport.a  libQt5GlxSupport.prl
libQt5InputSupport.a  libQt5InputSupport.prl
libQt5KmsSupport.a  libQt5KmsSupport.prl
libQt5OpenGLExtensions.a  libQt5OpenGLExtensions.prl
libQt5PacketProtocol.a  libQt5PacketProtocol.prl
libQt5PlatformCompositorSupport.a  libQt5PlatformCompositorSupport.prl
libQt5QmlDebug.a  libQt5QmlDebug.prl
libQt5QmlDevTools.a  libQt5QmlDevTools.prl
libQt5ServiceSupport.a  libQt5ServiceSupport.prl
libQt5ThemeSupport.a  libQt5ThemeSupport.prl
libQt5UiTools.a  libQt5UiTools.prl
libQt5XkbCommonSupport.a  libQt5XkbCommonSupport.prl

@andfoy
Copy link
Contributor

andfoy commented Aug 15, 2022

Maybe they are needed to compile Qt-compatible binaries? I'm not sure, we need to check

@hmaarrfk
Copy link
Contributor Author

right. now i'm somewhat worried about just removing them.

@carterbox carterbox linked a pull request Jan 3, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants