diff options
author | joerg <joerg> | 2007-08-04 12:32:01 +0000 |
---|---|---|
committer | joerg <joerg> | 2007-08-04 12:32:01 +0000 |
commit | 175f6b4c389d86c5e5a0a9a7af6b07a81c20ce5b (patch) | |
tree | 5a0f924fe13b7c601004d59b39848d1186594070 /pkgtools | |
parent | 21861adc870c0c1c3ca15c0c47bd1a4686da9b0a (diff) | |
download | pkgsrc-175f6b4c389d86c5e5a0a9a7af6b07a81c20ce5b.tar.gz |
Try hard to get 64bit offsets in all modules, fixing misunderstandings
between libarchive and pkg_create e.g. on HP-UX.
Add my copyright to build.c, it is almost completely rewritten.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkg_install/Makefile | 5 | ||||
-rw-r--r-- | pkgtools/pkg_install/files/create/build.c | 35 |
2 files changed, 37 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile index a0b986f055c..1040cc9ca37 100644 --- a/pkgtools/pkg_install/Makefile +++ b/pkgtools/pkg_install/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.138 2007/08/03 15:12:43 joerg Exp $ +# $NetBSD: Makefile,v 1.139 2007/08/04 12:32:01 joerg Exp $ # Notes to package maintainers: # @@ -50,6 +50,9 @@ PKG_PRESERVE= yes USE_NATIVE_GCC= yes PKG_DELETE= ${WRKSRC}/delete/pkg_delete +CPPFLAGS+= -D_LARGEFILE_SOURCE -D_LARGE_FILES +CPPFLAGS+= -D_FILE_OFFSET_BITS=64 + CPPFLAGS+= -DDEF_UMASK=${DEF_UMASK} CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" CPPFLAGS+= -DSYSCONFDIR="\"${PKG_SYSCONFDIR}\"" diff --git a/pkgtools/pkg_install/files/create/build.c b/pkgtools/pkg_install/files/create/build.c index 4bdd7c69196..33744c8994e 100644 --- a/pkgtools/pkg_install/files/create/build.c +++ b/pkgtools/pkg_install/files/create/build.c @@ -1,4 +1,4 @@ -/* $NetBSD: build.c,v 1.2 2007/08/03 15:44:18 joerg Exp $ */ +/* $NetBSD: build.c,v 1.3 2007/08/04 12:32:01 joerg Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -11,10 +11,41 @@ #if 0 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.38 1997/10/13 15:03:51 jkh Exp"; #else -__RCSID("$NetBSD: build.c,v 1.2 2007/08/03 15:44:18 joerg Exp $"); +__RCSID("$NetBSD: build.c,v 1.3 2007/08/04 12:32:01 joerg Exp $"); #endif #endif +/*- + * Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>. + * All rights reserved. + * + * This code was developed as part of Google's Summer of Code 2007 program. + * + * 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. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 + * COPYRIGHT HOLDERS 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. + */ + /* * FreeBSD install - a package for the installation and maintainance * of non-core utilities. |