Comment 25 for bug 62748

Revision history for this message
TJ (tj) wrote :

If you're confused on how to correctly apply the patch, and simply want it to work, you can make the change manually in about 30 seconds.

After you've got the source-code downloaded and extracted, simply open the debian/rules file with any text editor and make the change.

Assuming the source is extracted to your home directory:

gedit ~/apache2-2.0.55/debian/rules

Edit > Preferences > View: "Display line numbers" = TICK

Scroll to line 60, and add the new option " -D_XOPEN_SOURCE=500" to the end (don't forget to put a space to separate it from the preceding option) so it reads:

AP2_CONFLAGS = $(CFLAGS) -pipe -I/usr/include/xmltok -I/usr/include/openssl -Wall -g -D_XOPEN_SOURCE=500

Save the file, and you're done and ready to build.

The change to the changelog isn't strictly necessary but again, you can simply add that to the beginning of debian/changelog using any text editor.

gedit ~/apache2-2.0.55/debian/changelog

Insert at the top, pushing the rest of the document down. DO NOT include the double-quotes (") I've used here to make clear where the text starts and ends.

"apache2 (2.0.55-4ubuntu4.0.maxb.1) edgy; urgency=low

  * Rebuild with -D_XOPEN_SOURCE=500.

 -- Max Bowsher <email address hidden> Tue, 31 Oct 2006 16:15:55 +0000

"

Don't forget its TWO spaces in front of "* Rebuild" and TWO spaces between "ukf.net>" and "Tue, 31".