--- apr-1.2.12.orig/debian/control +++ apr-1.2.12/debian/control @@ -0,0 +1,43 @@ +Source: apr +Section: libs +Priority: optional +Maintainer: Debian Apache Maintainers +Uploaders: Tollef Fog Heen , Peter Samuelson , Stefan Fritsch +Build-Depends: debhelper (>> 5.0.0), autoconf, autotools-dev, dpatch, mawk, uuid-dev, doxygen +Standards-Version: 3.7.3 +Vcs-Browser: http://svn.debian.org/wsvn/pkg-apache/trunk/apr +Vcs-svn: svn://svn.debian.org/pkg-apache/trunk/apr + +Package: libapr1 +Architecture: any +Depends: ${shlibs:Depends} +Conflicts: libapr1.0 +Description: The Apache Portable Runtime Library + APR is Apache's Portable Runtime Library, designed to be a support library + that provides a predictable and consistent interface to underlying + platform-specific implementations. + +Package: libapr1-dev +Architecture: any +Section: libdevel +Depends: libapr1 (= ${binary:Version}), uuid-dev +Suggests: python +Conflicts: libapr1.0-dev, libapr0-dev +Description: The Apache Portable Runtime Library - Development Headers + APR is Apache's Portable Runtime Library, designed to be a support library + that provides a predictable and consistent interface to underlying + platform-specific implementations. + . + This package contains development headers for APR. + +Package: libapr1-dbg +Architecture: any +Section: libdevel +Priority: extra +Depends: libapr1 (= ${binary:Version}) +Description: The Apache Portable Runtime Library - Development Headers + APR is Apache's Portable Runtime Library, designed to be a support library + that provides a predictable and consistent interface to underlying + platform-specific implementations. + . + This package contains the debugging symbols for APR. --- apr-1.2.12.orig/debian/libapr1-dev.links +++ apr-1.2.12/debian/libapr1-dev.links @@ -0,0 +1,2 @@ +usr/bin/apr-1-config usr/bin/apr-config +usr/share/man/man1/apr-1-config.1 usr/share/man/man1/apr-config.1 --- apr-1.2.12.orig/debian/rules +++ apr-1.2.12/debian/rules @@ -0,0 +1,118 @@ +#!/usr/bin/make -f + +# Turn on VERBOSE output +#export DH_VERBOSE=1 + +#enable dpatch +include /usr/share/dpatch/dpatch.make + +# These are used for cross-compiling and for saving the configure script +# # from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +BUILDDIR := build-$(DEB_HOST_GNU_TYPE) + +CFLAGS := $(CFLAGS) -pipe -Wall -g + +# hardening options +CFLAGS := $(CFLAGS) -Wformat-security +CPPFLAGS := $(CPPFLAGS) -D_FORTIFY_SOURCE=2 +LDFLAGS := $(LDFLAGS) -Wl,-z,relro +# do not enable -fstack-protector on arm and armel, see #477772, #469517 +ifeq (,$(findstring arm,$(DEB_HOST_GNU_TYPE))) + CFLAGS += -fstack-protector +endif + +CONFFLAGS += ac_cv_prog_AWK=mawk apr_cv_sctp=no + +# Enable debug builds +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +# avoid having to recreate configure at build time by setting +# -D_REENTRANT manually on kfreebsd +ifneq (,$(findstring bsd,$(DEB_HOST_GNU_TYPE))) + CPPFLAGS += -D_REENTRANT +endif + +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +ifeq (,$(findstring notest,$(DEB_BUILD_OPTIONS))) + TEST_TARGET = test +else + TEST_TARGET = +endif + +SHELL=/bin/bash + +$(BUILDDIR)/config.status: configure + dh_testdir + mkdir -p $(BUILDDIR)/docs + cd $(BUILDDIR) && CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" $(CONFFLAGS) ../configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --enable-layout=Debian --includedir=\$${prefix}/usr/include/apr-1.0 --with-installbuilddir=\$${prefix}/usr/share/apr-1.0/build --enable-nonportable-atomics + # Determine whether upstream's configure gives the same definition of apr_ino_t as we had until 1.2.11-1 + rm -f debian/ino_t_test + gcc -I$(CURDIR)/include -I$(BUILDDIR)/include `$(BUILDDIR)/apr-1-config --cppflags` -o debian/ino_t_test debian/ino_t_test.c + debian/ino_t_test + rm -f debian/ino_t_test + +build: patch-stamp build-stamp + +build-stamp: $(BUILDDIR)/config.status + dh_testdir + + $(MAKE) -C $(BUILDDIR) + $(MAKE) -C $(BUILDDIR) dox + + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp test-stamp debian/ino_t_test + rm -rf $(BUILDDIR) + + dh_clean + +test: test-stamp + +test-stamp: build + dh_testdir + $(MAKE) -C $(BUILDDIR) check + touch $@ + +install: build $(TEST_TARGET) + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs -a + + $(MAKE) -C $(BUILDDIR) install DESTDIR=$(CURDIR)/debian/tmp + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs CHANGES + dh_installdocs + dh_install -a + dh_installman -plibapr1-dev debian/apr-1-config.1 + dh_link + dh_strip --dbg-package=libapr1-dbg + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- apr-1.2.12.orig/debian/watch +++ apr-1.2.12/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.eu.apache.org/dist/apr/apr-(1\.[24]\..*)\.tar\.gz --- apr-1.2.12.orig/debian/libapr1.install +++ apr-1.2.12/debian/libapr1.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/libapr-1.so.* usr/lib/ --- apr-1.2.12.orig/debian/changelog +++ apr-1.2.12/debian/changelog @@ -0,0 +1,186 @@ +apr (1.2.12-2) unstable; urgency=high + + * Urgency high for RC bug fix. + * Do not use -fstack-protector on arm and armel, since it is completely + broken (see #469517). Closes: #477772 + * Remove unneded libtool build dependency. + + -- Stefan Fritsch Wed, 30 Apr 2008 20:46:17 +0200 + +apr (1.2.12-1) unstable; urgency=low + + * New upstream version. + - Remove 020_lfs_ino_t.dpatch now done by upstream configure. Adjust + ino_t_test.c to check that this is the same definition of apr_ino_t as + we had before. + * Enable hardening options: -fstack-protector -Wformat-security + -D_FORTIFY_SOURCE=2 -Wl,-z,relro + * Disable SCTP for now, in order to get a consistent build result in unclean + build environments. + * Remove Thom May, Fabio M. Di Nitto, Daniel Stone, and Adam Conrad from the + uploaders field (thanks for your work). + * Fix some lintian warnings: + - Bump Standards-Version to 3.7.3 (no changes). + - Remove obsolete XS- from VCS tags. + - Remove empty /usr/share/doc/libapr1.0 directory. + - Provide patch description. + * Point VCS tags in debian control to trunk, to make them useful with + debcheckout. + + -- Stefan Fritsch Tue, 01 Apr 2008 22:17:47 +0200 + +apr (1.2.11-1) unstable; urgency=low + + * New upstream version (Closes: #441969) + * Enable epoll (Closes: #441635). This means we don't support Linux 2.4 + kernels anymore. Therefore we can also enable tcp_nodelay_with_cork. + * Fix generation of docs (Closes: #413684, #442794) + * Don't ship LaTeX source files in .deb + * Build with -D_REENTRANT on kfreebsd (Closes: #301417) + * Fix FTBFS on hurd because of missing PATH_MAX (Closes: #349418) + * Do not build everything twice by using the correct path to config.status + in debian/rules + * Add myself to Uploaders + * Add svn repository information to debian/control + + -- Stefan Fritsch Thu, 20 Sep 2007 20:56:37 +0200 + +apr (1.2.9-1) unstable; urgency=low + + * Acknowledge NMUs - thanks, Andi. + + [ Peter Samuelson ] + * New upstream version. Minor bugfixes, no new features. + - Update 015_sendfile_lfs.dpatch + - Remove obsolete 099_config_guess_sub_update.dpatch + * 020_lfs_ino_t.dpatch: update to support kfreebsd-amd64. + Thanks to Petr Salinger. (Closes: #405564) + * Standards-Version: 3.7.2 (from 3.6.2.2) - no changes. + * Rename Source-Version substvar to binary:Version, for great justice. + * libapr1-dev Suggests: python, in case someone wants to use the + application build infrastructure in /usr/share/apr-1.0/build. + * debian/rules: small cleanups. + * Add watch file. + * Add myself to Uploaders. + + -- Peter Samuelson Fri, 22 Jun 2007 14:03:20 -0500 + +apr (1.2.7-8.2) unstable; urgency=high + + * Non-maintainer upload. + * Apply better working 015_sendfile_lfs.dpatch this time. + Again Closes: #396631 + + -- Andreas Barth Wed, 20 Dec 2006 08:19:19 +0000 + +apr (1.2.7-8.1) unstable; urgency=high + + * Non-maintainer upload. + * Fix 0-lenght files. Take 015_sendfile_lfs.dpatch from svn for this. + Closes: #396631 + + -- Andreas Barth Sat, 9 Dec 2006 20:39:59 +0000 + +apr (1.2.7-8) unstable; urgency=low + + [ Peter Samuelson ] + * Small kludge^Wtweak to apr_file_info.h to make the ABI stable across + LFS/non-LFS preprocessor flags. (See: #397402) + + -- Tollef Fog Heen Wed, 15 Nov 2006 00:17:02 +0100 + +apr (1.2.7-7) unstable; urgency=low + + * Update rules to ensure we don't turn on features that aren't available on + 2.4 kernels for !amd64 kernels. Closes: #392049 + + -- Tollef Fog Heen Tue, 7 Nov 2006 01:21:27 +0100 + +apr (1.2.7-6) unstable; urgency=low + + * Update 011_fix_apr-config to give out the libtool used to build apr + with. Fixes Apache 2.2 FTBFS when we remove all the evil libtool + hacks there too. + * Make -dbg package Priority: extra as per overrides. + + -- Tollef Fog Heen Wed, 27 Sep 2006 22:16:51 +0200 + +apr (1.2.7-5) unstable; urgency=low + + * Add doxygen to build-deps. + * Add sendfile hurd patch. Closes: #349416 + + -- Tollef Fog Heen Wed, 27 Sep 2006 19:32:10 +0200 + +apr (1.2.7-4) unstable; urgency=low + + * No longer force apr_lock_method. Closes: #384117 + * Use srcdir != builddir. + * Add docs to -dev package. Closes: #388146 + + -- Tollef Fog Heen Wed, 27 Sep 2006 17:26:56 +0200 + +apr (1.2.7-3) unstable; urgency=low + + * Fix override disparity + * Backport of patch to work around kernel problems with sendfile on 64bit + platforms + * Update config.{guess,sub} to make libtool happier. This fixes the + problem reported in #369881. Closes: #369881. + * Remove some of the libtool hacks since they're no longer needed with + the newer config.{guess,sub} + + -- Tollef Fog Heen Mon, 1 May 2006 17:06:37 +0200 + +apr (1.2.7-2) unstable; urgency=low + + * Ship get-version.sh too, needed by apr-util. + + -- Tollef Fog Heen Fri, 28 Apr 2006 22:57:43 +0200 + +apr (1.2.7-1) unstable; urgency=low + + * New upstream release. + * Add apr-1-config man page. Closes: #357174, thanks to Vincent Danjean + for the conversion job. + + -- Tollef Fog Heen Fri, 28 Apr 2006 19:45:08 +0000 + +apr (1.2.2-3) unstable; urgency=low + + * Rename source package to match upstream. + * Rename binary packages to libapr1 etc. + * Add conflicts for old packages. + * libapr1-dev Depends: uuid-dev. + * Add uuid-dev to Build-Dep: + * Enable non-portable atomics. + * Update Standards-Version: no changes. + * Add apr-config compatibility symlink. + + -- Tollef Fog Heen Thu, 26 Jan 2006 12:42:30 +0100 + +apr1.0 (1.2.2-2) unstable; urgency=low + + * Up to debhelper v5 + * Add call to dh_installdocs; not sure why I was not doing this already. + + -- Thom May Tue, 3 Jan 2006 13:01:56 +0000 + +apr1.0 (1.2.2-1) unstable; urgency=low + + * New upstream release + + -- Thom May Thu, 29 Dec 2005 17:05:42 +0000 + +apr1.0 (1.1.1-1) unstable; urgency=low + + * New upstream release + + -- Thom May Sun, 8 May 2005 17:12:09 +0100 + +apr1.0 (1.1.0-1) unstable; urgency=low + + * New Upstream Release + * First Package Release + + -- Thom May Wed, 17 Nov 2004 11:51:32 -0800 --- apr-1.2.12.orig/debian/libapr1-dev.install +++ apr-1.2.12/debian/libapr1-dev.install @@ -0,0 +1,7 @@ +debian/tmp/usr/include/apr-1.0 +debian/tmp/usr/lib/libapr*a +debian/tmp/usr/lib/libapr-1.so +debian/tmp/usr/lib/pkgconfig +debian/tmp/usr/bin +debian/tmp/usr/share/apr-1.0/ +build-*/docs/dox/html usr/share/doc/libapr1-dev --- apr-1.2.12.orig/debian/compat +++ apr-1.2.12/debian/compat @@ -0,0 +1 @@ +5 --- apr-1.2.12.orig/debian/apr-1-config.1 +++ apr-1.2.12/debian/apr-1-config.1 @@ -0,0 +1,92 @@ +.TH APR-1-CONFIG "1" "March 2006" "apr-1-config 1.2.2" "User Commands" +.SH NAME +apr-1-config \- Return metainformation about apr library +.SH SYNOPSIS +.B apr-1-config +[\fIOPTION\fR] +.SH DESCRIPTION +The +.I apr-1-config +program is used to retrieve information about the +.I apr +library in the system. It is typically used to compile +and link against the library. +.PP +When linking with libtool, an application should do something like: +.IP +APR_LIBS="`apr\-1\-config \fB\-\-link\-libtool\fR \fB\-\-libs\fR`" +.PP +or when linking directly: +.IP +APR_LIBS="`apr\-1\-config \fB\-\-link\-ld\fR \fB\-\-libs\fR`" +.PP +An application should use the results of \fB\-\-cflags\fR, \fB\-\-cppflags\fR, \fB\-\-includes\fR, +and \fB\-\-ldflags\fR in their build process. +.SH OPTIONS +Known values for OPTION are: +.TP +\fB\-\-prefix\fR[=\fIDIR\fR] +change prefix to DIR +.TP +\fB\-\-bindir\fR +print location where binaries are installed +.TP +\fB\-\-includedir\fR +print location where headers are installed +.TP +\fB\-\-cc\fR +print C compiler name +.TP +\fB\-\-cpp\fR +print C preprocessor name and any required options +.TP +\fB\-\-cflags\fR +print C compiler flags +.TP +\fB\-\-cppflags\fR +print C preprocessor flags +.TP +\fB\-\-includes\fR +print include information +.TP +\fB\-\-ldflags\fR +print linker flags +.TP +\fB\-\-libs\fR +print additional libraries to link against +.TP +\fB\-\-srcdir\fR +print APR source directory +.HP +\fB\-\-installbuilddir\fR print APR build helper directory +.TP +\fB\-\-link\-ld\fR +print link switch(es) for linking to APR +.TP +\fB\-\-link\-libtool\fR +print the libtool inputs for linking to APR +.TP +\fB\-\-shlib\-path\-var\fR +print the name of the shared library path env var +.TP +\fB\-\-apr\-la\-file\fR +print the path to the .la file, if available +.TP +\fB\-\-apr\-so\-ext\fR +print the extensions of shared objects on this platform +.TP +\fB\-\-apr\-lib\-target\fR +print the libtool target information +.TP +\fB\-\-apr\-libtool\fR +print the path to APR's libtool +.TP +\fB\-\-version\fR +print the APR's version as a dotted triple +.TP +\fB\-\-help\fR +print the help +.SH AUTHOR +This manual page was written by Vincent Danjean + for the Debian project (but may be used +by others). --- apr-1.2.12.orig/debian/copyright +++ apr-1.2.12/debian/copyright @@ -0,0 +1,334 @@ +This package was debianized by Thom May on +Wed, 17 Nov 2004 11:27:14 -0800 + +It was downloaded from http://httpd.apache.org/download.cgi + +Upstream Authors: The Apache Software Foundation - http://apr.apache.org/ + +Copyright: + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +APACHE PORTABLE RUNTIME SUBCOMPONENTS: + +The Apache Portable Runtime includes a number of subcomponents with +separate copyright notices and license terms. Your use of the source +code for the these subcomponents is subject to the terms and +conditions of the following licenses. + +From strings/apr_fnmatch.c, include/apr_fnmatch.h, misc/unix/getopt.c, +file_io/unix/mktemp.c, strings/apr_strings.c: + +/* + * Copyright (c) 1987, 1993, 1994 + * The Regents of the University of California. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the University of + * California, Berkeley and its contributors. + * 4. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + +From network_io/unix/inet_ntop.c, network_io/unix/inet_pton.c: + +/* Copyright (c) 1996 by Internet Software Consortium. + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS + * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE + * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL + * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR + * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + * SOFTWARE. + +From dso/aix/dso.c: + + * Based on libdl (dlfcn.c/dlfcn.h) which is + * Copyright (c) 1992,1993,1995,1996,1997,1988 + * Jens-Uwe Mager, Helios Software GmbH, Hannover, Germany. + * + * Not derived from licensed software. + * + * Permission is granted to freely use, copy, modify, and redistribute + * this software, provided that the author is not construed to be liable + * for any results of using the software, alterations are clearly marked + * as such, and this notice is not modified. + +From strings/apr_strnatcmp.c, include/apr_strings.h: + + strnatcmp.c -- Perform 'natural order' comparisons of strings in C. + Copyright (C) 2000 by Martin Pool + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + +From test/CuTest.c, test/CuTest.h: + + * Copyright (c) 2002-2006 Asim Jalis + * + * This library is released under the zlib/libpng license as described at + * + * http://www.opensource.org/licenses/zlib-license.html + * + * Here is the statement of the license: + * + * This software is provided 'as-is', without any express or implied warranty. + * In no event will the authors be held liable for any damages arising from + * the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software in a + * product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * + * 3. This notice may not be removed or altered from any source distribution. --- apr-1.2.12.orig/debian/libapr1-dev.dirs +++ apr-1.2.12/debian/libapr1-dev.dirs @@ -0,0 +1,4 @@ +usr/include/apr-1.0 +usr/lib +usr/lib/pkgconfig +usr/bin --- apr-1.2.12.orig/debian/ino_t_test.c +++ apr-1.2.12/debian/ino_t_test.c @@ -0,0 +1,22 @@ +#include +#include +#include "apr_file_info.h" + +/* this was the old definition of apr_ino_t until 1.2.11-1 */ +#if defined(__alpha__) || defined(__FreeBSD_kernel__) +typedef unsigned int old_apr_ino_t; +#else +typedef unsigned long int old_apr_ino_t; +#endif + +int main (void) +{ + size_t s0 = sizeof(apr_ino_t), s1 = sizeof(old_apr_ino_t); + if (s0 == s1) + return 0; + fprintf(stderr, "***\n" + "*** 'apr_ino_t' size is %zu, expected %zu\n" + "*** Please report this to the Debian Apache maintainers\n" + "***\n", s0, s1); + return 1; +} --- apr-1.2.12.orig/debian/libapr1.dirs +++ apr-1.2.12/debian/libapr1.dirs @@ -0,0 +1 @@ +usr/lib --- apr-1.2.12.orig/debian/patches/015_sendfile_lfs.dpatch +++ apr-1.2.12/debian/patches/015_sendfile_lfs.dpatch @@ -0,0 +1,140 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 015_sendfile_lfs.dpatch by +## +## DP: Detect sendfile64() at runtime (not present on 2.4 kernels.) + +@DPATCH@ +Index: network_io/unix/sendrecv.c +--- a/network_io/unix/sendrecv.c ++++ b/network_io/unix/sendrecv.c +@@ -243,39 +243,77 @@ + + #if defined(__linux__) && defined(HAVE_WRITEV) + +-apr_status_t apr_socket_sendfile(apr_socket_t *sock, apr_file_t *file, +- apr_hdtr_t *hdtr, apr_off_t *offset, +- apr_size_t *len, apr_int32_t flags) ++/* Helper function for apr_socket_sendfile. ++ * Takes care of sendfile vs. sendfile64 (must be detected at runtime), ++ * EINTR restarting, and other details. NOTE: does not necessarily ++ * update 'off', as callers don't need this. ++ */ ++static ++ssize_t do_sendfile(int out, int in, apr_off_t *off, apr_size_t len) + { +- int rv, nbytes = 0, total_hdrbytes, i; +- apr_status_t arv; ++#if !APR_HAS_LARGE_FILES ++ ssize_t ret; ++ do ++ ret = sendfile(out, in, off, len); ++ while (ret == -1 && errno == EINTR); ++ return ret; ++#else + +-#if APR_HAS_LARGE_FILES && defined(HAVE_SENDFILE64) +- apr_off_t off = *offset; +-#define sendfile sendfile64 ++#ifdef HAVE_SENDFILE64 ++ static int sendfile64_enosys; /* sendfile64() syscall not found */ ++#endif ++ off_t offtmp; ++ ssize_t ret; + +-#elif APR_HAS_LARGE_FILES && SIZEOF_OFF_T == 4 +- /* 64-bit apr_off_t but no sendfile64(): fail if trying to send +- * past the 2Gb limit. */ +- off_t off; +- +- if ((apr_int64_t)*offset + *len > INT_MAX) { +- return EINVAL; ++ /* Multiple reports have shown sendfile failing with EINVAL if ++ * passed a >=2Gb count value on some 64-bit kernels. It won't ++ * noticably hurt performance to limit each call to <2Gb at a time, ++ * so avoid that issue here. (Round down to a common page size.) */ ++ if (sizeof(off_t) == 8 && len > INT_MAX) ++ len = INT_MAX - 8191; ++ ++ /* The simple and common case: we don't cross the LFS barrier */ ++ if (sizeof(off_t) == 8 || (apr_int64_t)*off + len <= INT_MAX) { ++ offtmp = *off; ++ do ++ ret = sendfile(out, in, &offtmp, len); ++ while (ret == -1 && errno == EINTR); ++ return ret; + } +- +- off = *offset; + +-#else +- off_t off = *offset; ++ /* From here down we know it's a 32-bit runtime */ ++#ifdef HAVE_SENDFILE64 ++ if (!sendfile64_enosys) { ++ do ++ ret = sendfile64(out, in, off, len); ++ while (ret == -1 && errno == EINTR); + +- /* Multiple reports have shown sendfile failing with EINVAL if +- * passed a >=2Gb count value on some 64-bit kernels. It won't +- * noticably hurt performance to limit each call to <2Gb at a +- * time, so avoid that issue here: */ +- if (sizeof(off_t) == 8 && *len > INT_MAX) { +- *len = INT_MAX; ++ if (ret != -1 || errno != ENOSYS) ++ return ret; ++ ++ sendfile64_enosys = 1; + } + #endif ++ if (*off > INT_MAX) { ++ errno = EINVAL; ++ return -1; ++ } ++ offtmp = *off; ++ do ++ ret = sendfile(out, in, &offtmp, len); ++ while (ret == -1 && errno == EINTR); ++ return ret; ++#endif /* APR_HAS_LARGE_FILES */ ++} ++ ++ ++apr_status_t apr_socket_sendfile(apr_socket_t *sock, apr_file_t *file, ++ apr_hdtr_t *hdtr, apr_off_t *offset, ++ apr_size_t *len, apr_int32_t flags) ++{ ++ int rv, nbytes = 0, total_hdrbytes, i; ++ apr_status_t arv; ++ apr_off_t off = *offset; + + if (!hdtr) { + hdtr = &no_hdtr; +@@ -321,12 +359,10 @@ + goto do_select; + } + +- do { +- rv = sendfile(sock->socketdes, /* socket */ ++ rv = do_sendfile(sock->socketdes, /* socket */ + file->filedes, /* open file descriptor of the file to be sent */ + &off, /* where in the file to start */ + *len); /* number of bytes to send */ +- } while (rv == -1 && errno == EINTR); + + while ((rv == -1) && (errno == EAGAIN || errno == EWOULDBLOCK) + && (sock->timeout > 0)) { +@@ -337,12 +373,10 @@ + return arv; + } + else { +- do { +- rv = sendfile(sock->socketdes, /* socket */ ++ rv = do_sendfile(sock->socketdes, /* socket */ + file->filedes, /* open file descriptor of the file to be sent */ + &off, /* where in the file to start */ + *len); /* number of bytes to send */ +- } while (rv == -1 && errno == EINTR); + } + } + --- apr-1.2.12.orig/debian/patches/022_hurd_path_max.dpatch +++ apr-1.2.12/debian/patches/022_hurd_path_max.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 022_hurd_path_max.dpatch by Stefan Fritsch +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: #349418 + +@DPATCH@ +diff -urNad apr-1.2.11~/include/apr.h.in apr-1.2.11/include/apr.h.in +--- apr-1.2.11~/include/apr.h.in 2007-07-25 05:12:02.000000000 +0200 ++++ apr-1.2.11/include/apr.h.in 2007-09-12 22:08:30.464437530 +0200 +@@ -389,7 +389,8 @@ + #elif defined(_POSIX_PATH_MAX) + #define APR_PATH_MAX _POSIX_PATH_MAX + #else +-#error no decision has been made on APR_PATH_MAX for your platform ++#warning no decision has been made on APR_PATH_MAX for your platform ++#define APR_PATH_MAX 4096 + #endif + + /** @} */ --- apr-1.2.12.orig/debian/patches/011_fix_apr-config.dpatch +++ apr-1.2.12/debian/patches/011_fix_apr-config.dpatch @@ -0,0 +1,32 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 011_fix_apr-config.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +Index: apr-config.in +--- a/apr-config.in ++++ b/apr-config.in +@@ -38,7 +38,7 @@ + LIBS="@EXTRA_LIBS@" + EXTRA_INCLUDES="@EXTRA_INCLUDES@" + SHLIBPATH_VAR="@shlibpath_var@" +-APR_SOURCE_DIR="@apr_srcdir@" ++APR_SOURCE_DIR="$(cd @installbuilddir@/.. ; pwd)" + APR_BUILD_DIR="@apr_builddir@" + APR_SO_EXT="@so_ext@" + APR_LIB_TARGET="@export_lib_target@" +@@ -222,11 +222,7 @@ + exit 0 + ;; + --apr-libtool) +- if test "$location" = "installed"; then +- echo "${installbuilddir}/libtool" +- else +- echo "$APR_BUILD_DIR/libtool" +- fi ++ echo "$installbuilddir/libtool" + exit 0 + ;; + --help) --- apr-1.2.12.orig/debian/patches/023_fix_doxygen.dpatch +++ apr-1.2.12/debian/patches/023_fix_doxygen.dpatch @@ -0,0 +1,99 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 023_fix_doxygen.dpatch by Stefan Fritsch +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix generation of docs for out-of-tree builds and newer doxygen versions + +@DPATCH@ +diff -urNad apr-1.2.11~/docs/doxygen.conf apr-1.2.11/docs/doxygen.conf +--- apr-1.2.11~/docs/doxygen.conf 2007-09-13 00:19:20.000000000 +0200 ++++ apr-1.2.11/docs/doxygen.conf 2007-09-13 00:19:23.411951505 +0200 +@@ -1,6 +1,6 @@ + PROJECT_NAME="Apache Portable Runtime" + +-INPUT=. ++INPUT=../include include + QUIET=YES + RECURSIVE=YES + FILE_PATTERNS=*.h +diff -urNad apr-1.2.11~/include/apr.h.in apr-1.2.11/include/apr.h.in +--- apr-1.2.11~/include/apr.h.in 2007-09-13 00:19:23.411951505 +0200 ++++ apr-1.2.11/include/apr.h.in 2007-09-13 00:20:15.914943480 +0200 +@@ -287,9 +287,11 @@ + /** + * Thread callbacks from APR functions must be declared with APR_THREAD_FUNC, + * so that they follow the platform's calling convention. +- * @example + */ +-/** void* APR_THREAD_FUNC my_thread_entry_fn(apr_thread_t *thd, void *data); ++/** ++ * @code ++ * void* APR_THREAD_FUNC my_thread_entry_fn(apr_thread_t *thd, void *data); ++ * @endcode + */ + #define APR_THREAD_FUNC + +@@ -299,7 +301,6 @@ + * variable arguments must use APR_DECLARE_NONSTD(). + * + * @remark Both the declaration and implementations must use the same macro. +- * @example + */ + /** APR_DECLARE(rettype) apr_func(args) + * @see APR_DECLARE_NONSTD @see APR_DECLARE_DATA +@@ -320,9 +321,12 @@ + * APR_DECLARE_NONSTD(), as they must follow the C language calling convention. + * @see APR_DECLARE @see APR_DECLARE_DATA + * @remark Both the declaration and implementations must use the same macro. +- * @example ++ * + */ +-/** APR_DECLARE_NONSTD(rettype) apr_func(args, ...); ++/** ++ * @code ++ * APR_DECLARE_NONSTD(rettype) apr_func(args, ...); ++ * @endcode + */ + #define APR_DECLARE_NONSTD(type) type + +@@ -332,10 +336,12 @@ + * @see APR_DECLARE @see APR_DECLARE_NONSTD + * @remark Note that the declaration and implementations use different forms, + * but both must include the macro. +- * @example + */ +-/** extern APR_DECLARE_DATA type apr_variable;\n ++/** ++ * @code ++ * extern APR_DECLARE_DATA type apr_variable;\n + * APR_DECLARE_DATA type apr_variable = value; ++ * @endcode + */ + #define APR_DECLARE_DATA + +diff -urNad apr-1.2.11~/include/apr_hash.h apr-1.2.11/include/apr_hash.h +--- apr-1.2.11~/include/apr_hash.h 2007-09-13 00:19:20.000000000 +0200 ++++ apr-1.2.11/include/apr_hash.h 2007-09-13 00:20:30.415769835 +0200 +@@ -126,12 +126,9 @@ + * an iteration (although the results may be unpredictable unless all you do + * is delete the current entry) and multiple iterations can be in + * progress at the same time. +- +- * @example + */ + /** +- *
+- * 
++ * @code
+  * int sum_values(apr_pool_t *p, apr_hash_t *ht)
+  * {
+  *     apr_hash_index_t *hi;
+@@ -143,7 +140,7 @@
+  *     }
+  *     return sum;
+  * }
+- * 
++ * @endcode + */ + APR_DECLARE(apr_hash_index_t *) apr_hash_first(apr_pool_t *p, apr_hash_t *ht); + --- apr-1.2.12.orig/debian/patches/016_sendfile_hurd.dpatch +++ apr-1.2.12/debian/patches/016_sendfile_hurd.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 016_sendfile_hurd.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +Index: network_io/unix/sendrecv.c +--- a/network_io/unix/sendrecv.c ++++ b/network_io/unix/sendrecv.c +@@ -238,7 +238,7 @@ + /* Define a structure to pass in when we have a NULL header value */ + static apr_hdtr_t no_hdtr; + +-#if defined(__linux__) && defined(HAVE_WRITEV) ++#if (defined(__linux__) || defined(__GNU__)) && defined(HAVE_WRITEV) + + /* Helper function for apr_socket_sendfile. + * Takes care of sendfile vs. sendfile64 (must be detected at runtime), --- apr-1.2.12.orig/debian/patches/00list +++ apr-1.2.12/debian/patches/00list @@ -0,0 +1,7 @@ +011_fix_apr-config +013_ship_find_apr.m4 +014_fix-apr.pc +015_sendfile_lfs +016_sendfile_hurd +022_hurd_path_max.dpatch +023_fix_doxygen.dpatch --- apr-1.2.12.orig/debian/patches/013_ship_find_apr.m4.dpatch +++ apr-1.2.12/debian/patches/013_ship_find_apr.m4.dpatch @@ -0,0 +1,26 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 013_ship_find_apr.m4.dpatch by Tollef Fog Heen +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Install a set of random build files too + +@DPATCH@ +diff -urNad apr1.0-1.2.2~/Makefile.in apr1.0-1.2.2/Makefile.in +--- apr1.0-1.2.2~/Makefile.in 2005-02-04 12:55:44.000000000 +0100 ++++ apr1.0-1.2.2/Makefile.in 2006-01-26 20:19:44.000000000 +0100 +@@ -85,6 +85,15 @@ + done + $(INSTALL_DATA) build/apr_rules.out $(DESTDIR)$(installbuilddir)/apr_rules.mk + $(INSTALL) -m 755 apr-config.out $(DESTDIR)$(bindir)/$(APR_CONFIG) ++ ++ if [ ! -d $(DESTDIR)$(installbuilddir) ]; then \ ++ $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(installbuilddir); \ ++ fi ++ for file in find_apr.m4 apr_common.m4 install.sh gen-build.py get-version.sh ; do \ ++ $(LIBTOOL) --mode=install cp $(top_srcdir)/build/$$file \ ++ $(DESTDIR)$(installbuilddir)/$$file ; \ ++ done ++ + @if [ $(INSTALL_SUBDIRS) != "none" ]; then \ + for i in $(INSTALL_SUBDIRS); do \ + ( cd $$i ; $(MAKE) DESTDIR=$(DESTDIR) install ); \ --- apr-1.2.12.orig/debian/patches/014_fix-apr.pc.dpatch +++ apr-1.2.12/debian/patches/014_fix-apr.pc.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 014_fix-apr.pc.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad apr1.0-1.2.2~/apr.pc.in apr1.0-1.2.2/apr.pc.in +--- apr1.0-1.2.2~/apr.pc.in 2006-01-27 17:28:12.000000000 +0100 ++++ apr1.0-1.2.2/apr.pc.in 2006-01-27 17:31:18.000000000 +0100 +@@ -7,5 +7,6 @@ + Name: APR + Description: The Apache Portable Runtime library + Version: @APR_DOTTED_VERSION@ +-Libs: -L${libdir} -l@APR_LIBNAME@ @EXTRA_LIBS@ +-Cflags: @EXTRA_CPPFLAGS@ @EXTRA_CFLAGS@ -I${includedir} ++Libs: -L${libdir} -l@APR_LIBNAME@ ++Libs.private: @EXTRA_LIBS@ ++Cflags: @EXTRA_CPPFLAGS@ -I${includedir}