Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133943 - post-config for amarok
Summary: post-config for amarok
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-21 05:19 UTC by Voltron Rex
Modified: 2006-05-24 04:08 UTC (History)
1 user (show)

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


Attachments
inform user of post-config for mysql (amarok-1.4.0a-r1.diff,471 bytes, patch)
2006-05-21 05:51 UTC, Voltron Rex
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Voltron Rex 2006-05-21 05:19:33 UTC
Hi

Amarok can use different database backends (sqllite and mysql). This is properly handled in the ebuild. But there are manual steps necessary to get the mysql backend to work. If the user doesn't do these their song-database will not be successfully saved (and much frustration will be experienced).

The steps are described at http://amarok.kde.org/amarokwiki/index.php/MySQL_HowTo#MySQL_Setup
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-21 05:28:19 UTC
Feel free to submit a patch...
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-21 05:39:10 UTC
Really I can't pretend to know what the user wants, so he's on its own to follow the documentation. By the way, by default amaroK will continue use sqlite, and making it use another database requires following the guide.
Comment 3 Voltron Rex 2006-05-21 05:50:02 UTC
I don't agree.

I'm not asking you to know exactly what the user wants. I just want to be informed. It's true, sqllite is the default. But switching to mysql happens easily--in the wizard it asks, and there's a configuration item at runtime that the user can change at any time. When I do this, *I get no warning that something is wrong*. When I exit amarok and I didn't follow these extra instructions, suddenly my collection is strangely gone.

I, the dumb user, assume that telling the wizard to do something will mean it happens, without any additional steps. The documentation that comes with amarok doesn't say "read the wiki". In fact, I don't even know the wiki exists, until I get on to IRC and find out about it.

If portage just tells me, when it sees the mysql flag, that I ought to read the mysql howto, then I'll be a *much* happier user :)

In a second I'll post a patch that does what I want.
Comment 4 Voltron Rex 2006-05-21 05:51:43 UTC
Created attachment 87191 [details, diff]
inform user of post-config for mysql
Comment 5 Ian Monroe 2006-05-21 16:54:20 UTC
This is a problem that would make more sense for amaroK itself to solve. The error messages for mysql could be accompanied by a button that would switch the user to sqlite.
Comment 6 Voltron Rex 2006-05-22 00:16:06 UTC
(In reply to comment #5)
> This is a problem that would make more sense for amaroK itself to solve. The
> error messages for mysql could be accompanied by a button that would switch the
> user to sqlite.
> 

Indeed, fixing amarok eventually is the right way to solve this. But at the moment, the error says, "Received Error from MySql: _blank line_>".
So until amarok fixes this an other bugs, we dumb users are stuck!

Portage manages the *install and configuration* of packages. You've got messages like this for dev-db/mysql and other packages; why not amarok too?
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-22 03:58:43 UTC
I would say, because amaroK is an user application rather than a system service like MySQL, and can't be configured on system level. BTW I should put also instructions for PostgreSQL if I put the ones for MySQL.

I think Ian is correct and that has to be fixed in amaroK, rather than postinst'd in Gentoo. I try to avoid postinsts as they are more noise often.
Reading the documentation is something needed anyway.

(Also, Ian is one of amaroK developers, so you can say that it is his call :))
Comment 8 Voltron Rex 2006-05-22 10:47:01 UTC
ok, if the consensus is, "it's an amarok problem" then I hope you dev's have time to follow through and post a bug on the amarok buglist. On their end, I see two bugs

-- the wizard doesn't set up the database, nor is there a hint in the delivered documentation that something needs to be done
-- the mysql error shouldn't be an empty string

Thanks for your time!

-VR
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-24 04:08:07 UTC
Can you please open a but for this on KDE's bugzilla at http://bugs.kde.org/ ?
They would prefer if the users open the bug reports as indirection through distributions' maintainers might lose information along the way (and I agree with them, I never used MySQL support so I can't be sure to know what you want to say exactly).