Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 302012

Summary: www-servers/bozohttpd - another 32 bit problem and new version
Product: Gentoo Linux Reporter: ta2002 <throw_away_2002>
Component: New packagesAssignee: Michele Noberasco (RETIRED) <s4t4n>
Status: RESOLVED FIXED    
Severity: normal CC: www-servers+disabled
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.eterna.com.au/bozohttpd/
Whiteboard:
Package list:
Runtime testing required: ---

Description ta2002 2010-01-24 05:43:56 UTC
The latest version of bozohttpd in portage is 20060517.

There have been several releases since then. The current version is 20090522.

Even the latest version has an overflow with files larger than 2 GiB.

I contacted the maintainer, and he replied:

"run "getconf -a | grep LFS" and add the flags meantioning "64" to
the CFLAGS in Makefile.boot.  i don't have easy access to a 32 bit
linux system to test right now, but i'll make sure that this gets
handle by default in the future."

This leads to the following patch (which is probably just as easily done via sed):

--- Makefile.boot  2009-05-23 02:16:22.000000000 +0000
+++ Makefile.boot  2010-01-25 00:00:00.000000000 +0000
@@ -4,7 +4,7 @@
 # see Makefile for a list of compile options that may be placed in CFLAGS.

 CC=    cc
-CFLAGS=        -O
+CFLAGS=        -O -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE

 GROFF= groff -Tascii
 CRYPTOLIBDIR=  # -L/usr/local/lib

This works (using 20090522 at least) on a 32 bit machine I have. I don't know if you will need to alter the patch for other architectures.
Comment 1 Michele Noberasco (RETIRED) gentoo-dev 2010-09-03 10:03:08 UTC
Just added latest version (20100621) which apparently already includes the fix.