upgrading octave from 6.4.0 to 6.4.0-r1 fails with the message in the title. After digging a bit, I found that the uic bin packed with the new qt version misses the option "-qt=$qtver", and tried a patch (I'll try to attach it) to the configure script. It has compiled and octave --gui starts ok. Reproducible: Always Steps to Reproduce: 1. emerge octave 2. 3. Actual Results: /usr/lib64/qt5/bin/uic -qt=5 -o libgui/src/ui-settings-dialog.h libgui/src/settings-dialog.ui /usr/lib64/qt5/bin/uic -qt=5 -o libgui/graphics/ui-annotation-dialog.h libgui/graphics/annotation-dialog.ui uic: Unknown option 'qt'. uic: Unknown option 'qt'. make: *** [Makefile:30854: libgui/src/ui-settings-dialog.h] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Makefile:30854: libgui/graphics/ui-annotation-dialog.h] Error 1 * ERROR: sci-mathematics/octave-6.4.0-r1::gentoo failed (compile phase): * emake failed Expected Results: should have installed This happens with use flag "gui" and qt-core-5.15.3 installed
Created attachment 771638 [details, diff] proposed patch
Created attachment 771641 [details] emerge --info
Thanks for the patch which fixes the problem. Still, since configure is generated I had to do - patch configure after a failed emerge - look up the full configure command in build.log - do touch /var/tmp/portage/sci-mathematics/octave-6.4.0/.configured - invoking ebuild /usr/portage/sci-mathematics/octave/octave-6.4.0-r1.ebuild merge It's not clear to me where these UICFLAGS="-qt=$qt_version" line comes from.
Created attachment 771965 [details, diff] octave-omit-qtchooser-qtver.patch Updated patch taking care moc and other utils on top of uic.
Created attachment 771968 [details] octave-6.4.0-r2.ebuild Ebuild applies the updated patch after the configure script was generated by autotools, since placing it in the user patches directory gets it applied too early.
Same issue here. Thank you all for sharing the proper solutions.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9f89fde98fbb42678f1e168be438f99fe651473 commit c9f89fde98fbb42678f1e168be438f99fe651473 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-05-05 00:10:45 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-05-05 00:11:12 +0000 sci-mathematics/octave: use configure.ac patch More resilient and doesn't get blown away by subsequent autoreconf. Bug: https://bugs.gentoo.org/839285 Signed-off-by: Sam James <sam@gentoo.org> .../files/octave-7.1.0-omit-qtchooser-qtver.patch | 77 +++++----------------- 1 file changed, 18 insertions(+), 59 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92866628bc2358685c29fc8bef7bc1121929b103 commit 92866628bc2358685c29fc8bef7bc1121929b103 Author: Thamognya Kodi <contact@thamognya.com> AuthorDate: 2022-04-21 12:28:19 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-05-05 00:11:10 +0000 sci-mathematics/octave: version bump to 7.1.0 Bug: https://bugs.gentoo.org/839285 Closes: https://github.com/gentoo/gentoo/pull/25143 Signed-off-by: Thamognya Kodi <contact@thamognya.com> Signed-off-by: Sam James <sam@gentoo.org> sci-mathematics/octave/Manifest | 1 + .../files/octave-6.4.0-omit-qtchooser-qtver.patch | 63 ++++++ sci-mathematics/octave/octave-7.1.0.ebuild | 213 +++++++++++++++++++++ 3 files changed, 277 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e9174d66023f9bcff9eb80758243ae781860689 commit 7e9174d66023f9bcff9eb80758243ae781860689 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-05-05 00:39:23 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-05-05 00:39:28 +0000 sci-mathematics/octave: unkeyword 7.1.0 Doesn't build with SSL. Bug: https://bugs.gentoo.org/839285 Signed-off-by: Sam James <sam@gentoo.org> sci-mathematics/octave/octave-7.1.0.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cefa83cc9eafe62faf7785efaafe4d0b2640c7cf commit cefa83cc9eafe62faf7785efaafe4d0b2640c7cf Author: Sam James <sam@gentoo.org> AuthorDate: 2022-05-05 00:38:40 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-05-05 00:39:06 +0000 sci-mathematics/octave: patch 6.4.0 for Qt as well ... given 7 doesn't seem to build with SSL? Bug: https://bugs.gentoo.org/839285 Signed-off-by: Sam James <sam@gentoo.org> ...-qtchooser-qtver.patch => octave-6.4.0-omit-qtchooser-qtver.patch} | 0 .../octave/{octave-6.4.0-r1.ebuild => octave-6.4.0-r2.ebuild} | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-)