Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 839285 - sci-mathematics/octave-6.4.0-r1 uic: Unknown option 'qt'
Summary: sci-mathematics/octave-6.4.0-r1 uic: Unknown option 'qt'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: qt-5.15.3-stable
  Show dependency tree
 
Reported: 2022-04-18 17:02 UTC by disperato
Modified: 2022-05-05 00:41 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed patch (UIC.patch,391 bytes, patch)
2022-04-18 17:05 UTC, disperato
Details | Diff
emerge --info (emerge_info.txt,7.44 KB, text/plain)
2022-04-18 17:08 UTC, disperato
Details
octave-omit-qtchooser-qtver.patch (octave-omit-qtchooser-qtver.patch,1.83 KB, patch)
2022-04-19 19:38 UTC, Attila Tóth
Details | Diff
octave-6.4.0-r2.ebuild (octave-6.4.0-r2.ebuild,5.85 KB, text/plain)
2022-04-19 19:40 UTC, Attila Tóth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description disperato 2022-04-18 17:02:31 UTC
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
Comment 1 disperato 2022-04-18 17:05:23 UTC
Created attachment 771638 [details, diff]
proposed patch
Comment 2 disperato 2022-04-18 17:08:13 UTC
Created attachment 771641 [details]
emerge --info
Comment 3 Helmut Jarausch 2022-04-19 11:28:34 UTC
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.
Comment 4 Attila Tóth 2022-04-19 19:38:12 UTC
Created attachment 771965 [details, diff]
octave-omit-qtchooser-qtver.patch

Updated patch taking care moc and other utils on top of uic.
Comment 5 Attila Tóth 2022-04-19 19:40:06 UTC
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.
Comment 6 Samuel Bernardo 2022-04-27 23:27:53 UTC
Same issue here.
Thank you all for sharing the proper solutions.
Comment 7 Larry the Git Cow gentoo-dev 2022-05-05 00:11:20 UTC
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(+)
Comment 8 Larry the Git Cow gentoo-dev 2022-05-05 00:39:43 UTC
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(-)