Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 325411 - www-apps/cgit-0.9 version bump
Summary: www-apps/cgit-0.9 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Lance Albertson (RETIRED)
URL: http://hjemli.net/git/cgit/tag/?id=v0.9
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks:
 
Reported: 2010-06-24 21:26 UTC by Nikoli
Modified: 2011-04-29 19:00 UTC (History)
4 users (show)

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


Attachments
ebuild, works fine for me (cgit-0.8.3.2.ebuild,1.57 KB, text/plain)
2010-06-24 21:27 UTC, Nikoli
Details
cgit-0.8.3.2.ebuild.patch (cgit-0.8.3.2.ebuild.patch,2.10 KB, patch)
2010-06-25 14:28 UTC, Peter Volkov (RETIRED)
Details | Diff
new version, fixed cache perms, added ewarn (cgit-0.8.3.3.ebuild,1.55 KB, text/plain)
2010-08-29 11:41 UTC, Nikoli
Details
fix doc use flag (cgit-0.8.3.3.ebuild,1.66 KB, text/plain)
2010-09-14 20:03 UTC, Nikoli
Details
new version (cgit-0.8.3.4.ebuild,1.66 KB, text/plain)
2010-09-27 13:37 UTC, Nikoli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2010-06-24 21:26:15 UTC
Also fixes bug #310961

Reproducible: Always
Comment 1 Nikoli 2010-06-24 21:27:16 UTC
Created attachment 236445 [details]
ebuild, works fine for me
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2010-06-25 14:28:16 UTC
Created attachment 236511 [details, diff]
cgit-0.8.3.2.ebuild.patch

Practically same as above but with changes as we discussed at IRC (dropped ebegin...eend and dodir before keepdir is redundant).
Comment 3 parafin 2010-08-02 17:10:07 UTC
What's the point of cgit user? Also you changed owner of /var/cache/cgit to cgit:apache, which is going in the right direction, but you haven't given write permissions to apache (chmod g+w /var/cache/cgit/). Or did you have in mind suexec? Then what does apache group has to do with it? In a word, I don't see the logic.
Comment 4 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2010-08-13 12:20:34 UTC
http://hjemli.net/git/cgit/tag/?id=v0.8.3.3

0.8.3.3 has been released
Comment 5 Nikoli 2010-08-27 23:01:48 UTC
Renaming ebuild works. Builds and runs fine for amd64 and x86.

>What's the point of cgit user?
Each daemon has it's own user for better security.

>but you haven't given write permissions to apache

Why should I? http server (I use nginx) does not need to write to or read from this dir. cgit makes files in cache readable only for it's user and works fine.

Do you have any problems with your http servers and my ebuild?
Comment 6 parafin 2010-08-28 12:33:05 UTC
Well, apache by default runs CGI scripts without changing uid. I don't know any web app in portage that requires to use its own user.
Anyway, there are 2 options:
1). run cgit using web server's user, then web server must have write access to /var/cache/cgit and no "cgit" user is required;
2). run it using "cgit" user, then we should print some notice about that and/or provide example of configuring web servers.
Or, better yet, we should allow user to choose. Then we should add smth like this to ebuild:
pkg_postinst() {
elog "If you intend to run cgit using web server's user (that's default) you should run chmod g+w /var/cache/cgit/ for caching feature of cgit to work."
elog "Or you can use provided 'cgit' user."
}
Comment 7 Nikoli 2010-08-29 11:41:55 UTC
Created attachment 245209 [details]
new version, fixed cache perms, added ewarn
Comment 8 parafin 2010-08-29 11:59:31 UTC
Looks OK. I suggest committing it to portage ASAP, because current ebuild there is flawed.
Comment 9 Lance Albertson (RETIRED) gentoo-dev 2010-08-30 17:02:16 UTC
(In reply to comment #8)
> Looks OK. I suggest committing it to portage ASAP, because current ebuild there
> is flawed.
> 

I will take a look as soon as I can. $REALJOB is keeping me busy unfortunately. Thanks for all the feedback!
Comment 10 Maciej Mrozowski gentoo-dev 2010-09-01 17:49:33 UTC
cgit user is silly idea imho.
Comment 11 Maciej Mrozowski gentoo-dev 2010-09-01 17:56:23 UTC
Alos this ebuild is flawed even more as it doesn't support webapp-config properly (pkg_setup was removed) - please take care of those before it's considered to tree.
Comment 12 parafin 2010-09-01 18:01:55 UTC
No, it wasn't, it's the first function in ebuild.
Comment 13 Nikoli 2010-09-14 20:03:17 UTC
Created attachment 247337 [details]
fix doc use flag
Comment 14 Nikoli 2010-09-14 20:15:09 UTC
Maciej, please read ebuilds carefully and avoid doing mistaken comments:
grep -e webapp_ -e setup cgit-0.8.3.2.ebuild -A1
pkg_setup() {
        webapp_pkg_setup
        enewuser "${PN}"
--

Ebuild in portage is broken for 6 months almost as much as possible, it also does not support upgrading or downgrading cgit (/usr/share/man/man5/cgitrc.5 collision).
Comment 15 Peter Volkov (RETIRED) gentoo-dev 2010-09-16 20:42:23 UTC
Lance, are you ok with suggested ebuild by Nikoli? Could you commit or give me ok, please.
Comment 16 Nikoli 2010-09-27 13:37:05 UTC
Created attachment 248794 [details]
new version
Comment 17 Nikoli 2010-10-18 10:09:24 UTC
Added to rion overlay:
http://code.google.com/p/rion-overlay/source/browse/www-apps/cgit
Comment 18 ScytheMan 2011-03-22 12:57:01 UTC
v0.8.3.5 and v0.9 have been released
Comment 19 Nikoli 2011-03-22 19:44:51 UTC
0.8.3.5 and 0.9 are in overlay now.

ebuild in portage is broken for 13 months, Lance, if you have no time for it, why you do not change metadata to maintainer-wanted?
Comment 20 Robert R. Richter 2011-04-29 15:41:35 UTC
Would be nice to have it in the portage tree without having to use overlay!
Comment 21 Peter Volkov (RETIRED) gentoo-dev 2011-04-29 19:00:12 UTC
Another half of year. Lance I've commited ebuilds by Nikoli. If there are any problems with them, please, contact me.

New version is in the tree. Thank you Nikoli!