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

python-pyQt5 fixes #22109

Closed

Conversation

fosslinux
Copy link
Contributor

@fosslinux fosslinux commented May 19, 2020

  1. It didn't build for me natively on x86_64 because qmake couldnt find qt5 on the host. Hence, I added it to hostmakedepends. LMK if this is the wrong way to do it and it should be patched out instead.

  2. There is a mv recursive move warning in pre_build that I silenced.

  3. I made xlint happy.

Letting travis run, I only tested x86_64 here.

@fosslinux
Copy link
Contributor Author

fosslinux commented May 19, 2020

Well, since travis timed out, I just attempted a build on x86_64-musl, and it succeed.

Please note that AFAICT the xlint errors are wrong.

@sgn
Copy link
Member

sgn commented May 21, 2020

Please note that AFAICT the xlint errors are wrong.

xlint is correct ;)

@fosslinux
Copy link
Contributor Author

srcpkgs/python-PyQt5/template: Place homepage= after license=

Fixed this.

srcpkgs/python-PyQt5/template:53: indent with tabs

This is cating to a file, it needs to be spaces.

srcpkgs/python-PyQt5/template:7: do not set pycompile_module, it is autodetected
srcpkgs/python-PyQt5/template:100: do not set pycompile_module, it is autodetected
srcpkgs/python-PyQt5/template:117: do not set pycompile_module, it is autodetected
srcpkgs/python-PyQt5/template:283: do not set pycompile_module, it is autodetected

It seems to me that there are a variety of different things that could be compiled in the source tree, I think that the pycompile_modules do need to be there? I sometimes get this wrong, so please do tell me if you are sure that the pycompile_module directives should be removed.

@sgn
Copy link
Member

sgn commented May 21, 2020 via email

@fosslinux
Copy link
Contributor Author

Ok, done, xlint passes without error now. The build also worked.

@fosslinux
Copy link
Contributor Author

@sgn Would you mind reviewing again?

@sgn
Copy link
Member

sgn commented May 27, 2020

My IP is still banned by their host. Sorry, I couldn't test this change.

@fosslinux
Copy link
Contributor Author

Oh, that is quite unfortunate. No pressure, but you could use sources.voidlinux.org, if all that you need to do is get the source code? No problem if you can't though.

@Piraty
Copy link
Member

Piraty commented Jul 1, 2020

please squash those commits into one

@fosslinux
Copy link
Contributor Author

Missed your message. Done

@fosslinux
Copy link
Contributor Author

@Piraty can you review when you have a moment

Copy link
Member

@Piraty Piraty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do_install() fails

make: Leaving directory '/builddir/PyQt5-5.13.2/pyqt5-2.7'
mv: cannot stat '/destdir//python-PyQt5-5.13.2/usr/bin//destdir//python-PyQt5-5.13.2/usr/bin/pylupdate5': No such file or directory
=> ERROR: python-PyQt5-5.13.2_2: do_install: 'mv ${DESTDIR}/usr/bin/{,python2-}${f}' exited with 1
=> ERROR:   in do_install() at srcpkgs/python-PyQt5/template:80

@fosslinux
Copy link
Contributor Author

Huh it used to work.

- require qt5 in hostmakedepends, otherwise it errors out with an ugly qmake cannot find qt5 error.
- hide 'error' message, which isn't really an error but looks ominous.
- fix xlint

[ci skip]
@fosslinux
Copy link
Contributor Author

I just rebased and built, WFM. Can you try again.

sgn added a commit to sgn/void-packages that referenced this pull request Aug 10, 2020
- require qt5 in hostmakedepends, otherwise it errors out with an ugly qmake cannot find qt5 error.
- hide 'error' message, which isn't really an error but looks ominous.
- fix xlint

[ci skip]

Close: void-linux#22109
Co-authored-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
@sgn sgn mentioned this pull request Aug 10, 2020
3 tasks
sgn added a commit to sgn/void-packages that referenced this pull request Aug 10, 2020
- require qt5 in hostmakedepends, otherwise it errors out with an ugly qmake cannot find qt5 error.
- hide 'error' message, which isn't really an error but looks ominous.
- fix xlint

Co-authored-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Close: void-linux#22109

pre_build() {
mkdir -p pyqt5-${py2_ver}
mv * pyqt5-${py2_ver} || true
mv * pyqt5-${py2_ver} 2>/dev/null || true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is that about? if it fails, why keep it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It fails because mv: cannot move 'a' to a subdirectory of itself, 'a/a' (something like that).

This command is necessary but the error looks like it fails, even though in fact it doesn't.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like it's trying to move the pyqt5 folder into itself. Could it be filtered from the glob, perhaps? Using find seems like overkill, but should probably work.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is endup merged into part of #24182
Actually, I've never like mv * dst || true, create_wrksrc and make a proper tree instead.

Copy link
Contributor Author

@fosslinux fosslinux Aug 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create_wrksrc is probably actually the correct way to go.

Would you like me to create a better version that you can rollup into #24182

Anyway, closing this PR

@fosslinux
Copy link
Contributor Author

Superseded by #24182

@fosslinux fosslinux closed this Aug 11, 2020
paper42 pushed a commit to paper42/void-packages that referenced this pull request Aug 11, 2020
- require qt5 in hostmakedepends, otherwise it errors out with an ugly qmake cannot find qt5 error.
- hide 'error' message, which isn't really an error but looks ominous.
- fix xlint

Co-authored-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Close: void-linux#22109
paper42 pushed a commit to paper42/void-packages that referenced this pull request Aug 12, 2020
- require qt5 in hostmakedepends, otherwise it errors out with an ugly qmake cannot find qt5 error.
- hide 'error' message, which isn't really an error but looks ominous.
- fix xlint

Co-authored-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Close: void-linux#22109
sgn added a commit that referenced this pull request Aug 13, 2020
- require qt5 in hostmakedepends, otherwise it errors out with an ugly qmake cannot find qt5 error.
- hide 'error' message, which isn't really an error but looks ominous.
- fix xlint

Co-authored-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Close: #22109
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants