Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 323523 - redmine should install to /var/lib/redmine-version
Summary: redmine should install to /var/lib/redmine-version
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: MATSUU Takuto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-11 08:20 UTC by Benjamin Schindler
Modified: 2013-05-11 07:14 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Schindler 2010-06-11 08:20:50 UTC
I've just switched to redmine as installed in portage. Since this is a server, I find it a bad thing that redmine is installed to /var/lib/redmine without a version string. 

In case a upgrade fails, it's very important to keep an old working copy around. Upgrades have to be done manually anyway, so I'd favor a solution where redmine gets installed into /var/lib/redmine-0.9.4 (or whatever your version is) and have the user upgrade whenever he sees fir

Reproducible: Always
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-06-11 13:10:16 UTC
Hello Benjamin,

the files in the / tree get replaced only after the emerge completed w/o errors.
You can preserve the old version of the package by using `quickpg <atom>`, this stores a tarball to /usr/portage/packages and can be reinstalled later with `emerge -av -K <atom>` (watch `eix` output, there is a "{tbz2}" after these packages).

Can you live with that options?

Michael
Comment 2 Benjamin Schindler 2010-06-11 13:21:51 UTC
Well, I'm not sure... the thing I have problems with the most. Say the update to 1.0 happens. The database layout will change. If anybody accesses redmine before the upgrade procudure has been complete, the outcome might be disastrous - corrupted db, whatever. And this will happen - when you get 200 updates it's likely you miss the redmine one. 

That's why I think installing into separate directories makes more sense. Move files, run migration script and once that's done, switch the entry in the vhost and that's it. I think that's a lot more safe!
Comment 3 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-02 15:05:52 UTC
So you suggest slotting every version of redmine?
Comment 4 Benjamin Schindler 2012-03-06 10:33:41 UTC
What I'd like to prevent is the following: 

- The user has a redmine server running
- he runs a world update which updates redmine
- redmine breaks until its fixed by running emerge --config

I don't know whether this is easily possible. I started using /var/lib/redmine and I do see the convenience in using this

Cheers
Benjamin
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2013-05-11 07:13:50 UTC
Benjamin, as far as I understand what you want can be solved with specific portage configuration (see bashrc section):

http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=3&chap=6#doc_chap3

So just configure your system and it'll run emerge --config every time package is upgraded. 

Note in general not everybody want this. For example, on build server (where I create packages) I don't want any database initialization/upgrade steps happen.

Until I miss anything, closing this bug as INVALID (not a bug). Fell free to reopen if you disagree.