Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126980 - www-servers/lighttpd with lfs use-flag
Summary: www-servers/lighttpd with lfs use-flag
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Elfyn McBratney (beu) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-20 09:58 UTC by Alexander 'E-Razor' Krause
Modified: 2007-01-04 16:48 UTC (History)
4 users (show)

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


Attachments
lighttpd-1.4.10-r1 with new useflag (lighttpd-1.4.10-r2.ebuild,4.88 KB, text/plain)
2006-03-20 10:02 UTC, Alexander 'E-Razor' Krause
Details
LFS patch for lighttpd 1.4.11 (lighttpd-1.4.11.ebuild.patch,293 bytes, patch)
2006-09-30 03:45 UTC, Jari-Matti Mäkelä
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander 'E-Razor' Krause 2006-03-20 09:58:46 UTC
i've to use sendfile instead of sendfile64 on unionfs, this ebuild adds a useflag for enabling/dissabling 'long file size'.
Comment 1 Alexander 'E-Razor' Krause 2006-03-20 10:02:00 UTC
Created attachment 82682 [details]
lighttpd-1.4.10-r1 with new useflag

useflag lfs (long file sizes) added
Comment 2 Jari-Matti Mäkelä 2006-09-30 03:45:35 UTC
Created attachment 98432 [details, diff]
LFS patch for lighttpd 1.4.11

lighttpd 1.4.11 already supports 'lfs' USE-flag.

I made this patch to explicitly state that we support 'lfs' and fixed the build script to use use_enable instead of hard coded --enable-lfs. (http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1)
Comment 3 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2006-09-30 03:59:25 UTC
here is the problem:

if you add the lfs useflag people updating might miss functionality, since lfs would stop working for them as they don't automatically have the lfs useflag enabled.

and nolfs useflags are prohibited by policy...

bugger... IIRC portage is going to support per package useflag defaults sometime in the future.

anyway, thats the reason why this is not an easy fix. (actually one could argue, that this is a bug in unionfs rather then lighttpd ;)

this bug stays open, because we plan on doing something about this in the future.
thanks
Comment 4 Jari-Matti Mäkelä 2006-09-30 04:58:35 UTC
(In reply to comment #3)
> this bug stays open, because we plan on doing something about this in the
> future.
> thanks

For some reason I was still using an older pre-release lighttpd ebuild from some old overlay. Now that I disabled the overlay, I noticed that the lfs useflag is always on in the current version. Sorry, my bad.

Is it possible to switch lfs on by default in the current profile and allow changing it in the ebuild? I did a recursive grep on portage tree and it seems not many packages are actually using it. A more fine grained solution would be to add per package default useflags in the profile.
Comment 5 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2007-01-04 16:48:39 UTC
Enabling the lfs USE flag by default?  Not without either sticking it in default USE for a majority of profiles (won't fly) or kicking the portage people to add support for it on a per-ebuild basis.

Resolving LATER.