[Bug 242905] misc/qtchooser symlinks break users tools and qt5 deps

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Dec 27 11:10:21 GMT 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242905

            Bug ID: 242905
           Summary: misc/qtchooser symlinks break users tools and qt5 deps
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde at FreeBSD.org
          Reporter: grarpamp at gmail.com
          Assignee: kde at FreeBSD.org
                CC:
             Flags: maintainer-feedback?(kde at FreeBSD.org)

qtchooser seems to be less than ideal model...

It installs a bunch of symlinks that confuse
users other apps/tools into thinking that the
particular symlinked binary/module exists or
may do something useful, when in fact it does not.
That causes variety of problems with those apps...
commonly configure builders detecting optional
things, etc.

Repeat:

Install qtchooser...
ls /usr/local/lib/qt?/bin
Diff that list to all the qtchooser symlinks in...
ls -l /usr/local/bin | grep qtchooser
Pick and exec any unneeded or not present app from there and see the confusion
ensue...
qmake: could not exec '/usr/local/lib/qt5/bin/qmake': No such file or directory
moc: could not exec '/usr/local/lib/qt5/bin/moc': No such file or directory
etc...


Fix options:

1) qtchooser should not install any symlinks at all.
Instead, whatever ports that want to use qtchooser should
install themselves into their respective /usr/local/lib/qt hiers,
then install their own respective symlinks to qtchooser in /usr/local/bin,
and then depend on qtchooser (now just offering its bin and config).

2) qtchooser could be deprecated from the dependency list
of all current ports since qt4 is gone... only qt5 exists.

3) Force users to manually install and maintain a bunch
of unneeded ports, dependencies, qt modules... just to
satisfy qtchooser's symlinks. This can cause more problems
when those ports get out of date, conflict, etc. This
option seems not an elegant minimal prospect.

4) The qt5 meta port should probably be made available as
a package anyway. This might make pulling in (3) above easier.

?) ?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the kde-freebsd mailing list