Opened 8 years ago

Last modified 8 years ago

#39803 reopened defect

qt4-mac @4.8.5_0 missing dependency: qt4-mac-sqlite3-plugin

Reported by: oliver.bock@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: watsodw, cooljeanius (Eric Gallager), macports@…
Port: qt4-mac

Description

Qt Assistent fails to run due to a missing dependency:

QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
Error reading collection file '/Users/<user>/Library/Application Support/Trolltech/Assistant/qthelpcollection_4.8.5.qhc': Cannot load sqlite database driver!.

Installing qt4-mac-sqlite3-plugin solves the issue for me.

Change History (15)

comment:1 Changed 8 years ago by cooljeanius (Eric Gallager)

Unfortunately that can't be added as a dependency, because that would create a circular dependency loop. Perhaps a note telling users to install it could be added to port notes qt4-mac though...

comment:2 Changed 8 years ago by ryandesign (Ryan Schmidt)

Keywords: qt assistent sqlite dependency missing removed

comment:3 Changed 8 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to michaelld@…

comment:4 Changed 8 years ago by michaelld (Michael Dickens)

Resolution: wontfix
Status: newclosed

I'll echo what egall@ said: qt4-mac-sqlite3-plugin has qt4-mac as a dependency, and thus qt4-mac-sqlite3-plugin cannot be a dependency of qt4-mac. I'll add a note to qt4-mac about plugins, as well as update the plugins to 4.8.5.

comment:5 Changed 8 years ago by oliver.bock@…

While I do understand the reasoning, I can't consider this as a proper solution to the problem. This effectively means a primary component of the qt4-mac port, Qt Assistant, will be broken by default. Of all average/casual MacPorts users, who is going to look into those notes?

I honestly think you should reconsider the package/port structure and probably integrate the SQLite plugin since it's required mandatorily.

JM2C

Last edited 8 years ago by oliver.bock@… (previous) (diff)

comment:6 Changed 8 years ago by michaelld (Michael Dickens)

Resolution: wontfix
Status: closedreopened

I don't use QtAssistant. I just tested it both with and without qt4-mac-sqlite3-plugin (and, the other qt4-mac-*-plugin ports), and I see your point. Since Assistant is installed with qt4-mac, this plugin needs to be installed with qt4-mac as well. Or, I need to find a way to make Assistant its own port, with its own dependencies. I'm glad you found a way to make Assistant work, and pointed this issue out in more detail; it might take me some time to fix it.

comment:7 Changed 8 years ago by oliver.bock@…

Sounds good, thank you!

IMHO you should strive for getting qt4-mac-sqlite3-plugin (re)integrated into qt4-mac. Factoring out Qt Assistant doesn't feel right as it's a core component like Designer or Linguist (only Qt Creator has always been a separate product). Why did qt4-mac-sqlite3-plugin have to be separated out anyway? Granted, generally it's nice to have optional components separated from the core but in this case it's not really an optional component. So the best way to solve the issue should thus be to reintegrate it again, shouldn't it?

You could of course make Assistant its own port if all other attempts fail, but only as a measure of last resort.

Last edited 8 years ago by oliver.bock@… (previous) (diff)

comment:8 in reply to:  7 Changed 8 years ago by cooljeanius (Eric Gallager)

Replying to oliver.bock@…:

Why did qt4-mac-sqlite3-plugin have to be separated out anyway?

Because the qt4-mac port is really big and it takes forever to build it, so it doesn't make sense to force everyone to rebuild the entire thing if there's just been a small tweak to one of the sql plugins.

comment:9 Changed 8 years ago by larryv (Lawrence Velázquez)

Cc: david.w.watson@… added

Has duplicate #39933 for qt4-creator-mac. Similar issue.

Last edited 8 years ago by larryv (Lawrence Velázquez) (previous) (diff)

comment:10 Changed 8 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:11 Changed 8 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:12 Changed 8 years ago by larryv (Lawrence Velázquez)

Port: qt4-creator-mac added

comment:13 in reply to:  9 ; Changed 8 years ago by cooljeanius (Eric Gallager)

Replying to larryv@…:

Has duplicate #39933 for qt4-creator-mac. Similar issue.

Except adding a dependency for qt4-mac-sqlite3-plugin to qt4-creator-mac wouldn't create a circular dependency like it would for just-plain qt4-mac.

comment:14 in reply to:  13 Changed 8 years ago by larryv (Lawrence Velázquez)

Replying to egall@…:

Replying to larryv@…: Except adding a dependency for qt4-mac-sqlite3-plugin to qt4-creator-mac wouldn't create a circular dependency like it would for just-plain qt4-mac.

I had wanted sicherha to discuss a solution with michaelld before qt4-creator-mac was fixed, but I do suppose the added dependency could always be removed later if it were folded into qt4-mac.

comment:15 Changed 8 years ago by larryv (Lawrence Velázquez)

Port: qt4-creator-mac removed

Reopened #39933 and #39935.

Note: See TracTickets for help on using tickets.