Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206973 - prefix support for trac
Summary: prefix support for trac
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on: 195771
Blocks:
  Show dependency tree
 
Reported: 2008-01-22 01:30 UTC by Daniel LaMotte
Modified: 2008-05-20 21:16 UTC (History)
0 users

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


Attachments
fix for trac preferring sqlite2 to sqlite3... (trac-0.10.4-sqlite-backend.patch,595 bytes, patch)
2008-01-22 01:31 UTC, Daniel LaMotte
Details | Diff
attempt at a fix to make webapp-config work in prefix (webapp-config-1.50.16-gentoo-prefix.patch,9.08 KB, patch)
2008-01-22 01:34 UTC, Daniel LaMotte
Details | Diff
patch rooted between the original overlay and the fixed overlay (trac-works.patch,9.84 KB, patch)
2008-01-22 01:39 UTC, Daniel LaMotte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel LaMotte 2008-01-22 01:30:22 UTC
It took quite a bit of work, but trac works in prefix.

ebuilds to add:
app-text/silvercity-0.9.7
app-admin/webapp-config-1.50.16-r2
www-apps/trac-10.4

webapp-config took _alot_ of work to get it working in prefix.  Whether or not its all correct, I am not sure.  It might be something for the team working with it closer to take a look at.  I feel like its only a build/install time dependency though.
Comment 1 Daniel LaMotte 2008-01-22 01:31:44 UTC
Created attachment 141544 [details, diff]
fix for trac preferring sqlite2 to sqlite3...
Comment 2 Daniel LaMotte 2008-01-22 01:34:28 UTC
Created attachment 141548 [details, diff]
attempt at a fix to make webapp-config work in prefix

The reason I say "attempt" is because I attempted to find all places where a reference to the root filesystem and replaced it with @GENTOO_PORTAGE_EPREFIX@ so that it would get written into the prefix.  It seems to make webapp-config work, but I'm not sure if I caught all the references to the root filesystem.  It would probably be better if the team that works on webapp-config looked into this, but this patch should do for now.
Comment 3 Daniel LaMotte 2008-01-22 01:39:24 UTC
Created attachment 141550 [details, diff]
patch rooted between the original overlay and the fixed overlay

this patch consists of the changes needed for the webapp-config ebuild, trac ebuild, and webapp eclass.
ie:
trac-current is the directory with the code just created by ecopy ( eapify,... )
trac-fixes is the patched directory of ebuilds and eclasses

hopefully this makes sense, if not, I can resubmit as seperate patches for each ebuild and eclass.
Comment 4 Daniel LaMotte 2008-01-22 01:51:04 UTC
BTW, I think I got all the ebuild's trac tries to pull in, but if I didn't, they should be a simple ecopy away from working.  If not, just post which one didn't work and I can work on it.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-01-22 03:49:42 UTC
FWIW, I have tested his fixes as well. 
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-01-23 21:46:49 UTC
(In reply to comment #0)
> webapp-config took _alot_ of work to get it working in prefix.  Whether or not
> its all correct, I am not sure.

I found this bug today: Bug 195771 where webapp-config has already been worked on for prefix. That doesn't mean your work is invalid, but rather..maybe it is more complete now?
Comment 7 Daniel LaMotte 2008-01-23 21:55:32 UTC
Just found out someone was already working on making webapp-config work for prefix... I have some patches that may be of use... but looks like the other bug is working on that also.
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-05-20 14:05:34 UTC
> ebuilds to add:
> app-text/silvercity-0.9.7
> app-admin/webapp-config-1.50.16-r2
> www-apps/trac-10.4

silvercity already in prefix, looking at the rest now.
Comment 9 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-05-20 15:04:58 UTC
webapp-config in tree: Committed revision 22211.

I will look at trac and webapp.eclass at a later time.
Comment 10 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-05-20 21:16:25 UTC
www-apps/trac: Committed revision 22254.

webapp.eclass fixed up.

I imported a newer version, you will have to unmask this one to use. Tested on x86-linux, works fine. (I won't add a older version). 

Thanks for the initial porting! It helped me figure out what needed to be done..