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.
This commit is contained in:
joerg 2007-08-04 12:32:01 +00:00
parent 0bd65e95f1
commit f24ae1bb8a
2 changed files with 37 additions and 3 deletions

View file

@ -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}\""

View file

@ -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.