Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223305 - www-servers/lighttpd-1.4.19-r2.ebuild (new ecopy)
Summary: www-servers/lighttpd-1.4.19-r2.ebuild (new ecopy)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-23 07:14 UTC by Qiangning Hong
Modified: 2008-05-27 20:35 UTC (History)
0 users

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


Attachments
patch to correct lib path (lighttpd-eprefix.patch,324 bytes, patch)
2008-05-23 07:15 UTC, Qiangning Hong
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Qiangning Hong 2008-05-23 07:14:34 UTC
ecopy www-servers/lighttpd to add www-servers/lighttpd-1.4.19-r2 ebuild into portage overlay.  and then copy all the subdirectories of files/ from the official portage ( or use the patched ecopy from bug #223295 ).   The emerging will fail because the ebuild install all the libraries to the hardcoded path /usr/lib/lighttpd/* .  A patch to the ebuild which will be uploaded laterly can fix this issue.

Reproducible: Always
Comment 1 Qiangning Hong 2008-05-23 07:15:12 UTC
Created attachment 154037 [details, diff]
patch to correct lib path
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-05-23 15:07:50 UTC
How do you start lighttpd?

% lighttpd
2008-05-23 10:06:55: (server.c.548) No configuration available. Try using -f option. 

Should there be a config file available somewhere or is it user generated?
Comment 3 Qiangning Hong 2008-05-24 07:02:57 UTC
(In reply to comment #2)
> How do you start lighttpd?

lighttpd needs a configure file to start up.  The official portage will install an example configure file at /etc/lighttpd/lighttpd.conf, and /etc/init.d/lighttpd uses it to start the service up.

Unfortunately, for gentoo prefix, init.d stuffs do not work, and the installed example configure file ($HOME/Gentoo/etc/lighttpd/lighttpd.conf) does not work out of box, either.  You should make some modification to the lighttpd.conf to make it work, including the path and port number, etc.
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-05-24 14:23:28 UTC
(In reply to comment #3)
> lighttpd needs a configure file to start up.  The official portage will install
> an example configure file at /etc/lighttpd/lighttpd.conf, and
> /etc/init.d/lighttpd uses it to start the service up.

I didn't see the conf file in etc/lighttpd. If it is there in gentoo-x86, we should have it there in prefix. I could be wrong though, because I am not at my prefix to double check.
 
> Unfortunately, for gentoo prefix, init.d stuffs do not work, and the installed
> example configure file ($HOME/Gentoo/etc/lighttpd/lighttpd.conf) does not work
> out of box, either.  You should make some modification to the lighttpd.conf to
> make it work, including the path and port number, etc.

Can we patch these changes in?

Comment 5 Qiangning Hong 2008-05-24 15:02:16 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > lighttpd needs a configure file to start up.  The official portage will install
> > an example configure file at /etc/lighttpd/lighttpd.conf, and
> > /etc/init.d/lighttpd uses it to start the service up.
> 
> I didn't see the conf file in etc/lighttpd. If it is there in gentoo-x86, we
> should have it there in prefix. I could be wrong though, because I am not at my
> prefix to double check.

It is in $EPREFIX/etc/lighttpd/, please check again. :)

> > Unfortunately, for gentoo prefix, init.d stuffs do not work, and the installed
> > example configure file ($HOME/Gentoo/etc/lighttpd/lighttpd.conf) does not work
> > out of box, either.  You should make some modification to the lighttpd.conf to
> > make it work, including the path and port number, etc.
> 
> Can we patch these changes in?

Yes we can, we can fix all the paths to prefix offset and change the listen port to a higher number (e.g. 8080) because we do not use root previledge.  However, I doubt if it is nessicery as the lighttpd.conf installed by portage is mainly used by the init.d service, which is unusable for now. 
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-05-27 20:34:55 UTC
(In reply to comment #5)

> It is in $EPREFIX/etc/lighttpd/, please check again. :)

I didn't have $FILESDIR/conf in my overlay, too bad the ebuild didn't die() =/

> Yes we can, we can fix all the paths to prefix offset and change the listen
> port to a higher number (e.g. 8080) because we do not use root previledge. 
> However, I doubt if it is nessicery as the lighttpd.conf installed by portage
> is mainly used by the init.d service, which is unusable for now. 

Agreed. We decided to add and mask this because a) we don't want to support a config file patch and b) users that install this should know how to configure it.

Could you please try to emerge it from what I committed (ie. move it out of your local overlay after you synced and reopen this bug if I messed something up ;)

Thanks!
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-05-27 20:35:37 UTC
r22620